Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can i make this work every 300 seconds or so?

for _,v in pairs(game.Players:getChildren()) do
local p = v[math.random(1, #v)];
p.TeamColor = BrickColor.new("<TeamColor>");
p:LoadCharacter();
p.Character.Torso.CFrame = (game.Workspace.Brick.CFrame + Vector3.new(0, 5, 0));
end;

And would it be a Local Script or a reg script? Idk the difference

1 comment

0

Quick tip: LocalPlayer can only be caught from a local script (game.Players.LocalPlayer) returns whoever is doing the script

2 answers

✓ Accepted answer

The difference of the server scripts("reg scripts") and local scripts are that the server scripts are executed by the server and the local scripts by the client. (your computer.)

Basically just add a wait(300) at the end and then make it a loop.

1 comment

0

Duh -facepalm- I knew that

This discussion is preserved as it was. New answers, comments, and votes are closed.