I would like to know how to make it so when you go thorough the tele you get a gear, Use sword for an example. Help me please.
script.Parent.Touched:connect(function(hit) if Game.Players:GetPlayerFromCharacter(hit.Parent) then Game:GetService("ServerStorage"):FindFirstChild("TOOLNAME"):Clone().Parent=Game.Players:GetPlayerFromCharacter(hit.Parent).Backpack end end)
f~~~~~~~~~~~~~~~~~ unction h(g) local d = g.Parent:findFirstChild("Humanoid") if (d ~= nil) then local f = game.Players:findFirstChild(d.Parent.Name) d:MoveTo(Vector3.new(PUT A POSITION HERE)) -- TELEPORT PART Game:GetService("ServerStorage"):findFirstChild("TOOL NAME HERE"):Clone().Parent = f.Backpack -- TOOL GIVER PART end end
script.Parent.Touched:connect(h) ~~~~~~~~~~~~~~~~~