Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait()
- player = game.Players.LocalPlayer
- backpack = player.Backpack
- character = player.Character
- bin = Instance.new("HopperBin")
- bin.Name = "Teleport"
- bin.Parent = backpack
- script.Parent = bin
- function onButton1Down(mouse)
- if mouse.hit.p ~= nil then
- character:MoveTo(mouse.hit.p)
- end
- end
- function onSelected(mouse)
- mouse.Button1Down:connect(function() onButton1Down(mouse) end)
- end
- bin.Selected:connect(onSelected)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement