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

Is It Possible?

Asked by 8 years ago

Is it possible to make teleport script like this (it might be confusing) When you press a button The Map shows up on you're screen (how to make map tho xD) When You click on any spot you can teleport there or You have to click on certain place Marked on map to teleport there... Im kinda confused myself Haha +++++++++++++++++ Thank In Advance +++++++++++++++++

1 answer

Log in to vote
1
Answered by
Wutras 294 Moderation Voter
8 years ago

Yes, it is possible. The map thing can be made either with images that you create or by scripting. If you really need this then I'll explain the scripting part to you later. (Skype:admin_jo66) The teleporting is some pretty easy thing, you most likely already had linear functions in school and know about x and y. Getting x and y of the mouse is easy as you can see here: http://wiki.roblox.com/index.php?title=API:Class/PlayerMouse

I'll explain all that with examples in the following script.

-- This script has to be in PlayerGui
plr = script.Parent.Parent
mouse = plr:GetMouse() -- Method to get the mouse of the player.

mouse.Button1Down:connect(function() -- Event that's being called whenever the left mouse button was set down. You may also use another event specific for GUI.
    local x = mouse.X -- The X coordinate of the mouse will be the X coordinate.
    local z = mouse.Y -- The Y coordinate of the mouse will be the Z coordinate as the map is looking on the ground like a bird from the sky.
    local char = plr:WaitForChild("Character") -- Waiting for the character to exist and declaring the variable
    char.Torso.CFrame = CFrame.new(x, workspace.Baseplate.Y+workspace.Baseplate.Size, z) -- Changing the Position would kill the character.
end)

If you have any other questions, feel free to ask!

0
@Wutras Ahh sorry im not using skype but we could chat trough kik (android aplication) will that be good? BrOpAsTaFiSt 0 — 8y
0
Sure. Wutras 294 — 8y
0
Y would you answer this question, He's literally asking for a free script, I'm surprised this question didn't get shut down. EzraNehemiah_TF2 3552 — 8y
0
He has asked how to do this, not whether somebody can make this for him. He surely doesn't know a lot about it, but that's why we got this website, right? To help people with their lack of knowledge. Wutras 294 — 8y
View all comments (2 more)
0
I actually didn't even have to write all that code, he just asked whether it is possible. By the way, I just downloaded kik and my usernameis Wutras. Wutras 294 — 8y
0
alright thank you and i apologize im new to this site hehe BrOpAsTaFiSt 0 — 8y
Ad

Answer this question