|
| 20 Feb 2015 09:17 PM |
| All players, not just one to a brick location..? |
|
|
| Report Abuse |
|
|
|
| 20 Feb 2015 09:21 PM |
I though..
for i,v in pairs(game.Players:GetChildren())do v.Character:MoveTo(game.Workspace.BasePlate.Position + Vector3.new(0, math.random(1, 10) ,math.random(-10, 10))) end |
|
|
| Report Abuse |
|
|
|
| 20 Feb 2015 09:22 PM |
local lobby = game.Workspace:WaitForChild("Lobby") local obbylist = game.ServerStorage:WaitForChild("Folder") local msg = Instance.new("Message", workspace)
while true do wait(5) msg.Text = "Choosing Map" wait(5) local obbychoice = math.random(1, 1) msg.Text = "Map Chosen!" if obbychoice == 1 then wait(3) msg.Text = "Loading Map: Obby1" wait(3) msg:remove() obbylist.Obby1:clone().Parent = game.Workspace local teleport = game.Workspace.Obby1.PlayerTeleportPos for i,v in pairs(game.Players:GetChildren()) do v.Character:MoveTo(teleport) end end end
this isn't working..? |
|
|
| Report Abuse |
|
|
|
| 20 Feb 2015 09:25 PM |
any errors in output?
also I'm not sure if you can write it either way or not, but I always wrote ":clone()" as ":Clone()"
( ͡ಠ ͜ʖಠ) |
|
|
| Report Abuse |
|
|
|
| 20 Feb 2015 09:26 PM |
21:26:15.239 - Unable to cast Instance to Vector3
PlayerTeleportPos is just a part in the model |
|
|
| Report Abuse |
|
|
|
| 20 Feb 2015 09:28 PM |
try this then
local teleport = game.Workspace.Obby1.PlayerTeleportPos.Position for i,v in pairs(game.Players:GetChildren()) do v.Character.Torso.CFrame = CFrame.new(teleport) end
( ͡ಠ ͜ʖಠ) |
|
|
| Report Abuse |
|
|
|
| 20 Feb 2015 09:30 PM |
| 21:30:29.616 - Workspace.MainScript:20: bad argument #1 to 'new' (Vector3 expected, got userdata) |
|
|
| Report Abuse |
|
|
|
| 20 Feb 2015 09:31 PM |
local teleport = game.Workspace.Obby1.PlayerTeleportPos for i,v in pairs(game.Players:GetChildren()) do v.Character.Torso.CFrame = CFrame.new(teleport.Position) end
( ͡ಠ ͜ʖಠ) |
|
|
| Report Abuse |
|
|
|
| 20 Feb 2015 09:35 PM |
thanks so much!
follow-up question
how would i disable the message without removing it? like get it off the screen while the game is in session? |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Feb 2015 09:38 PM |
Glad I could help :P
( ͡ಠ ͜ʖಠ) |
|
|
| Report Abuse |
|
|