Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 10 years ago

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

Log in to vote
2
Answered by 10 years ago
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)
0
Put this in the tele brick? yzeerf1313 25 — 10y
0
Yes. Put the tool in ServerStorage and replace "TOOLNAME" with the actual tool's name. TheGuyWithAShortName 673 — 10y
0
Please accept this answer if it helped. :) TheGuyWithAShortName 673 — 10y
0
If it works I will yzeerf1313 25 — 10y
View all comments (2 more)
0
Thanks it works. But I get 6 swords xD yzeerf1313 25 — 10y
0
Try adding a debounce. TheGuyWithAShortName 673 — 10y
Ad
Log in to vote
0
Answered by
Hybric 271 Moderation Voter
10 years ago

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) ~~~~~~~~~~~~~~~~~

Answer this question