|
| 27 Jun 2015 10:47 PM |
| Can someone give me a script that teleports you within your game to another place when a textbutton is clicked. |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
| |
|
|
| 27 Jun 2015 10:50 PM |
| dis is unhelpful kid /\ Dont post unless you can help |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 27 Jun 2015 10:50 PM |
| http://wiki.roblox.com/index.php?title=Absolute_beginner%27s_guide_to_scripting |
|
|
| Report Abuse |
|
|
| |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 27 Jun 2015 10:52 PM |
| No you don't. Or else you wouldn't be asking. |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2015 10:54 PM |
| To go in more depth. I need a script in a surfacegui within a part within a model. So once the textbutton is click it will send the player to a brick in the workspace named : Checkpoint. Thats what I want |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2015 10:55 PM |
| "I know all that" I actually read that before and it has nothing to do with this. |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2015 10:56 PM |
| The only thing useful I think is that onTouched event, it is the closest thing im looking for. |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2015 10:57 PM |
| And Its not useful in this situation its closest to my situation |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2015 11:18 PM |
Figured out the script. I was using the old scripting way to teleport. Here is a teleport script that works.
Made by me. --Made by Coolanthony1239 local player = game.Players.LocalPlayer workspace.ITEMNAMEHERE.SurfaceGui.TextButton.MouseButton1Click:connect(function() if player.Character and player.Character:FindFirstChild("Torso") then game.Workspace.Player.Torso.CFrame = CFrame.new(Vector3.new(0, 50, 0)) end end)
|
|
|
| Report Abuse |
|
|
|
| 27 Jun 2015 11:22 PM |
Here is with notes if you need help.
--Made by Coolanthony1239
local player = game.Players.LocalPlayer --Created a function called Player and Defines it workspace.Part.SurfaceGui.TextButton.MouseButton1Click:connect(function() -- On Clicked if player.Character and player.Character:FindFirstChild("Torso") then --Checks if the Person/Thing has clicked it game.Workspace.Player.Torso.CFrame = CFrame.new(Vector3.new(0, 50, 0)) -- If so then Teleports player to 0, 50, 0 (Changeable) end end)
--} Please Give Credit if you used this script. Enjoy! |
|
|
| Report Abuse |
|
|
| |
|
|
| 27 Jun 2015 11:33 PM |
| Put this in StarterGui. Note that it doesn't work in online mode yet Ill update |
|
|
| Report Abuse |
|
|