Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make it so that when you do through a tele then you get a certain gear?

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.

2 answers

✓ Accepted answer
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)

6 comments

0

Put this in the tele brick?

0

Yes. Put the tool in ServerStorage and replace "TOOLNAME" with the actual tool's name.

0

Please accept this answer if it helped. :)

0

If it works I will

0

Thanks it works. But I get 6 swords xD

0

Try adding a debounce.

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)


This discussion is preserved as it was. New answers, comments, and votes are closed.