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

How Can I Make Player Teleport? [SLOVED] [closed]

Asked by 10 years ago

Hello!

How can I make player teleport to my torso when I type teleport/NAME And using :Moveto(). Try to make it on tool and local script.

Closed as Not Constructive by MrNicNac

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
-2
Answered by 10 years ago

Lol whole script:

script.Parent.Parent.Equipped:connect(function(mouse)
    mouse.Button1Down:connect(function()
        if mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
            mouse.Target.Parent:MoveTo(script.Parent.Position)
        end
    end)
end)

I just placed placed part in tool then added local script in that part.

Ad