So I have a Weapon Royale game, and I'm making it, so after 60 seconds, the players get teleported to the map, but heres where I am confused. I am able to easily make one spawnpoint, but I want each player to have a different spawnpoint. I tried to put "or" in the script, to make it choose one or the other, but one of the equal signs comes up red, and it says "Expected Indentifier, got '='" Can someone please Help me?
Heres the script with only one spawnpoint:
while true do wait(5) game.Workspace:WaitForChild(game.Players.LocalPlayer.Name).Head.CFrame = CFrame.new(-901.5, 5, -306.1) wait(5) game.Workspace:WaitForChild(game.Players.LocalPlayer.Name).Head.CFrame = CFrame.new(-31.86, 18.069, -18.085) wait() end
Here's what the script looks like when i try to do more than one:
while true do wait(5) game.Workspace:WaitForChild(game.Players.LocalPlayer.Name).Head.CFrame = CFrame.new(-901.5, 5, -306.1) or game.Workspace:WaitForChild(game.Players.LocalPlayer.Name).Head.CFrame = CFrame.new(-701, 5, 902) wait(5) game.Workspace:WaitForChild(game.Players.LocalPlayer.Name).Head.CFrame = CFrame.new(-31.86, 18.069, -18.085) wait() end
Am I just using the "or" keyword wrong? Or do i have to do math.random. And how would I do math.random with spawnpoints?