local replicatedstorage = game:GetService("ReplicatedStorage")
local status = replicatedstorage:WaitForChild("StatusValue")
local meat = game.Players.LocalPlayer
while true do
for i = 10,0,-1 do
status.Value = "Intermission:"..i
wait(1)
end
game.Players.LocalPlayer.TeamColor = BrickColor.new("Really red")
game.Players.LocalPlayer:LoadCharacter()
game.Players.LocalPlayer.TeamColor = BrickColor.new("Really red")
for i = 120,0,-1 do
status.Value = "Game In Progress:"..i
wait(1)
end
game.Players.LocalPlayer.TeamColor = BrickColor.new("White")
game.Players.LocalPlayer:LoadCharacter()
game.Players.LocalPlayer.TeamColor = BrickColor.new("White")
end
So, this code controls the round times and teleporting players away from and to the map. The Red team is in the game, and the white team is in the lobby. When it changes the players team, it resets them afterwards, basically teleoprting them to a diffrent spawn point.
The problem here is that This is the the serverscriptservice and in a normal script. How can i acheive something similar to .Localplayer in a non-local script?

4 comments
Not possible
It is possible... But it's about what the script need to do. In your loop it's Not Possible!
And you use LocalPlayer only. You need to make it "FindFirstChild" else it don't know who it's need to find. If you just use LocalPlayer it takes the first player it find but it can't find anyone. Not without "FindFirstChild"
Ahh, so I make it game.Players:FindFirstChild() ?