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)
On this page of the site you can watch the video online Roblox INTERMEDIATE Lua Scripting Tutorial - Functions with a duration of hours minute second in good quality, which was uploaded by the user Roblox News 2010 12 February 2011, share the link with friends and acquaintances, this video has already been watched 11,794 times on youtube and it was liked by 77 viewers. Enjoy your viewing!