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

Tools (This has been solved :D)

How do I make a teleporting tool that has some sort of animation to it? Like the one in Castle Tycoon. Also maybe a Teleporting Gui? Maybe ike the one from Kingdom Life 2. It's just I can't figure it out even after my training with Lua Learners, and I really want to start making good games. Thanks for reading

  • Duck

1 comment

0

Please click the Accept button under the answer that solved your problem.

2 answers

✓ Accepted answer

Animations are entirely up to you, unfortunately.

However, the teleporting part is simple. Assuming the variable character references the Character object for a specific player (the one we're teleporting) and mouse references the player's mouse...

mouse.Button1Down:connect(function()
character:MoveTo(mouse.Hit.p)
end)

You can read more about MoveTo on the Wiki.

What are you looking for exactly? A tool/gui that when used (clicked, pressed) your character gets moved to a set location? Or a tool that when you click your character moves to the position of your mouse (where you clicked?)

game.Players.LocalPlayer.Character:MoveTo(Vector3.new(0, 0 + 5, 0)) is the main bit of code you'll be looking for anyway. That's all I can give you with the information you provided. Comment on this answer and I'll update my post accordingly.

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