I am trying to make a script that when you step on a block (part) it gives a sword.
script.Parent.Touched:connect(function(t) player = game.Players:GetPlayerFromCharacter(t.Parent) if player then wait() game.Lighting["Sword"]:Clone().Parent = player.Backpack end end)
Hope I helped!
script.Parent.Touched:connect(function(hit) char = hit.Parent if char then wait() game.Lighting["Sword"]:Clone().Parent = char end end)
if ya need it Equipped Automatically...