Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

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

Asked by 10 years ago
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

0
Quick tip: LocalPlayer can only be caught from a local script (game.Players.LocalPlayer) returns whoever is doing the script fireboltofdeath 635 — 10y

2 answers

Log in to vote
-1
Answered by
x1op 0
10 years ago

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.)

Ad
Log in to vote
1
Answered by
EFPA223 10
10 years ago

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

0
Duh -facepalm- I knew that snoppyploptart 59 — 10y

Answer this question