Чел из видео • Как сделать разрушение...
скрипт на бампер:
deb = false
boom = false -- взрыв если хотите взрыв напишите вместо false вот это true
function ontouch(hit)
if hit.Name == "CrashPart" and deb == false then
hit:BreakJoints()
if
boom == true then
local Explosion = Instance.new("Explosion",game.Workspace)
local ExplosionPart = script.Parent
Explosion.Position = ExplosionPart.Position
end
if
boom == false
then
print ("boom no needed")
end
end
end
script.Parent.Touched:Connect(ontouch)
скрипт на стену:
function ontouch(hit)
hit:BreakJoints()
end
script.Parent.Touched:Connect(ontouch)
теперь всё готово
Негізгі бет Как сделать разрушаемую машину в Roblox Studio???
Пікірлер