|
| 12 Dec 2015 03:33 PM |
Say I had a player spawn at a spawnpoint area. I wanted him to move to a different location after pressing a GUI button that says "Play".
This different location has a "beacon" that is basically a part. I want the players position to be set to there, but I don't know how to.
If someone could tell me the basic idea of how this would work, I would be greatful. ~kon
~ I am a lovely ROBLOX Developer ~ |
|
|
| Report Abuse |
|
|
|
| 12 Dec 2015 03:36 PM |
| player.Character:MoveTo(Vector3Position) |
|
|
| Report Abuse |
|
|
|
| 12 Dec 2015 03:40 PM |
Thanks!
~ I am a lovely ROBLOX Developer ~ |
|
|
| Report Abuse |
|
|
|
| 12 Dec 2015 04:28 PM |
heres what you do Put a localscript in the text button, it can't be a text label --CODE STARTS HERE-- function Teleportation() script.Parent.Parent.Parent.Parent.Character.Torso.CFrame = game.Workspace.PartToTeleport.CFrame end
script.Parent.MouseButton1Click:connect(Teleportation)
|
|
|
| Report Abuse |
|
|