Hello there. I have made this following script:
local SpawnOne = game.Workspace.SpawnOne
local SpawnTwo = game.Workspace.SpawnTwo
local SpawnThree = game.Workspace.SpawnThree
local SpawnFour = game.Workspace.SpawnFour
local Player = game.Players.LocalPlayer
local Player = Players.LocalPlayer
PlayerSpawn = math.random(1, 4)
print(PlayerSpawn)
if PlayerSpawn == 1 then
Player.Position = Vector3.new(196, 119.5, 192.5)
end
if PlayerSpawn == 2 then
Player.Position = Vector3.new(196, 119.5, -208.5)
end
if PlayerSpawn == 3 then
Player.Position = Vector3.new(-186, 120.5, -208.5)
end
if PlayerSpawn == 4 then
Player.Position = Vector3.new(-188, 121.5, 190.5)
end
When I play, I cannot go to the designated random spawnpoint. If there is any way I cac improve this script please tell me. It would also be nice just to fix it. Thanks!

2 comments
Hi, thanks for answering, but it still doesn't seem to be working. Something I would like to mention is that this is first off in Workspace, if that has anything to do with it. Also, the random number is not printing, so I don't know what to do about that. Thanks again, and I would really love a reply!
Make this a Local script and toss it in Backpack.