|
| 04 Apr 2016 02:53 PM |
| I have a loading menu, blah blah blah. Basically when you click one of the TextButton's it teleports you to a different game. Could someone provide me with a simple script where I can just edit the id for the place? |
|
|
| Report Abuse |
|
|
spinywind
|
  |
| Joined: 26 Jan 2012 |
| Total Posts: 3580 |
|
|
| 04 Apr 2016 02:56 PM |
Leave
#Code for i,v in pairs do (game.Players:GetChildren()) v:Kick('Your a noob!') end |
|
|
| Report Abuse |
|
|
|
| 04 Apr 2016 02:59 PM |
http://wiki.roblox.com/index.php?title=API:Class/GuiButton/MouseButton1Click
http://wiki.roblox.com/index.php?title=API:Class/TeleportService/Teleport
|
|
|
| Report Abuse |
|
|
|
| 04 Apr 2016 03:05 PM |
| "Leave" Nice to see the community has improved from "gtfo"! |
|
|
| Report Abuse |
|
|
error9999
|
  |
| Joined: 05 Sep 2009 |
| Total Posts: 1593 |
|
|
| 04 Apr 2016 03:07 PM |
| You can't blame windy for being like that. That's just how he is. |
|
|
| Report Abuse |
|
|
error9999
|
  |
| Joined: 05 Sep 2009 |
| Total Posts: 1593 |
|
| |
|
|
| 04 Apr 2016 03:17 PM |
// This assume you're placing this code into a LocalScript into the TextButton you click to teleport with.
Client = game.Players.LocalPlayer; PlaceID = 0 -- Change to the PlaceID you want to teleport the player to. Button = script.Parent;
Button.Button1Click:connect(function()
game:GetService('TeleportService'):Teleport(PlaceID, Client);
end)
|
|
|
| Report Abuse |
|
|
|
| 04 Apr 2016 03:50 PM |
| This is a forum for helping people learn to script not just give out the answer cuz the person asked for it there are only certain situations where we do that so if you are not coming here to learn them leave[2] |
|
|
| Report Abuse |
|
|
|
| 04 Apr 2016 04:04 PM |
| I have learned to do things from getting the answer, but figuring out the inner processes allowing me to do the things myself. Also, that script did not work. |
|
|
| Report Abuse |
|
|
|
| 04 Apr 2016 04:21 PM |
| After editing the script provided, I successfully completed my task. There's an example of how getting an answer can help you learn. |
|
|
| Report Abuse |
|
|
|
| 04 Apr 2016 04:23 PM |
| could you help me out? how did you do it in the end? |
|
|
| Report Abuse |
|
|
|
| 04 Apr 2016 04:28 PM |
Sharp, just don't be one of those. God forbid someone helps an unexperienced soul on this sub-forum. If he wanted to know how/why I did what I did he could ask and learn that way as well. You do definitely still learn from just seeing the code though.
|
|
|
| Report Abuse |
|
|