In this video we are going to be learning about functions. This is intermediate, ALMOST advanced, so you might want to watch the other intermediate tutorials before you watch this one.
Script 1:
function lava(hit)
hit:Remove()
end
script.Parent.Touched:connect(lava)
Script 2:
function lava(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid ~= nil then
humanoid.Health = 0
end
end
script.Parent.Touched:connect(lava)
script 3:
function lava(hit)
function remove2
hit:Remove()
end
remove2()
end
script.Parent.Touched:connect(lava)
En esta página del sitio puede ver el video en línea Roblox INTERMEDIATE Lua Scripting Tutorial - Functions de Duración hora minuto segunda en buena calidad , que subió el usuario Roblox News 2010 12 febrero 2011, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 11,794 veces y le gustó 77 a los espectadores. Disfruta viendo!