generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Teleport Surface Gui

Previous Thread :: Next Thread 
coolanthony1239 is not online. coolanthony1239
Joined: 05 Jul 2011
Total Posts: 120
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 is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
27 Jun 2015 10:48 PM
no
Report Abuse
coolanthony1239 is not online. coolanthony1239
Joined: 05 Jul 2011
Total Posts: 120
27 Jun 2015 10:50 PM
dis is unhelpful kid /\ Dont post unless you can help
Report Abuse
TimeTicks is not online. 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
coolanthony1239 is not online. coolanthony1239
Joined: 05 Jul 2011
Total Posts: 120
27 Jun 2015 10:51 PM
I know all that -_-
Report Abuse
TimeTicks is not online. 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
coolanthony1239 is not online. coolanthony1239
Joined: 05 Jul 2011
Total Posts: 120
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
coolanthony1239 is not online. coolanthony1239
Joined: 05 Jul 2011
Total Posts: 120
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
coolanthony1239 is not online. coolanthony1239
Joined: 05 Jul 2011
Total Posts: 120
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
coolanthony1239 is not online. coolanthony1239
Joined: 05 Jul 2011
Total Posts: 120
27 Jun 2015 10:57 PM
And Its not useful in this situation its closest to my situation
Report Abuse
coolanthony1239 is not online. coolanthony1239
Joined: 05 Jul 2011
Total Posts: 120
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
coolanthony1239 is not online. coolanthony1239
Joined: 05 Jul 2011
Total Posts: 120
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
iamsmartcookie is not online. iamsmartcookie
Joined: 18 Aug 2012
Total Posts: 2738
27 Jun 2015 11:27 PM
did you adornee the gui
Report Abuse
coolanthony1239 is not online. coolanthony1239
Joined: 05 Jul 2011
Total Posts: 120
27 Jun 2015 11:33 PM
Put this in StarterGui. Note that it doesn't work in online mode yet Ill update
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image