Update: I made wait(31) damn(thicc) I'm trying to define thicc as wait(31) since im not a bully :/ if thats even posssible btw Time is a intvalue the script i workspace:
01 | local thicc = wait( 31 ) |
02 | thicc |
03 | if game.Workspace.Time.Value = = 0 then |
04 | target = CFrame.new( 80.04 , 0.5 , - 63.9 ) --could be near a brick or in a new area |
05 | for i, player in ipairs (game.Players:GetChildren()) do |
06 |
07 | if player.Character and player.Character:FindFirstChild( "HumanoidRootPart" ) then |
08 |
09 | player.Character.HumanoidRootPart.CFrame = target |
10 | end |
11 | end |
12 | end |
1 | print (fla) |
You could use a local function here:
01 | local function thicc() -- This is how you do it |
02 | wait( 31 ) |
03 | end |
04 | thicc() |
05 | if game.Workspace.Time.Value = = 0 then |
06 | target = CFrame.new( 80.04 , 0.5 , - 63.9 ) --could be near a brick or in a new area |
07 | for i, player in ipairs (game.Players:GetChildren()) do |
08 |
09 | if player.Character and player.Character:FindFirstChild( "HumanoidRootPart" ) then |
10 |
11 | player.Character.HumanoidRootPart.CFrame = target |
12 | end |
13 | end |
14 | end |
Bonus: You could use parameter to change the amount of sec it will wait
01 | local function thicc(x) -- This is how you do it |
02 | wait(x) |
03 | end |
04 | thicc( 31 ) -- It will wait for 31 sec |
05 | if game.Workspace.Time.Value = = 0 then |
06 | target = CFrame.new( 80.04 , 0.5 , - 63.9 ) --could be near a brick or in a new area |
07 | for i, player in ipairs (game.Players:GetChildren()) do |
08 |
09 | if player.Character and player.Character:FindFirstChild( "HumanoidRootPart" ) then |
10 |
11 | player.Character.HumanoidRootPart.CFrame = target |
12 | end |
13 | end |
14 | end |
Hope that helped
01 | local function thicc() |
02 | wait( 30 ) |
03 | if game.Workspace.Time.Value = = 0 then |
04 | target = CFrame.new( 80.04 , 0.5 , - 63.9 ) --could be near a brick or in a new area |
05 | for i, player in ipairs (game.Players:GetChildren()) do |
06 | if player.Character and player.Character:FindFirstChild( "HumanoidRootPart" ) then |
07 | player.Character.HumanoidRootPart.CFrame = target |
08 | end |
09 | end |
10 | end |
11 | end |
ummm just do this?
01 | local thicc = 30 |
02 | wait(thicc) |
03 | if game.Workspace.Time.Value = = 0 then |
04 | target = CFrame.new( 80.04 , 0.5 , - 63.9 ) --could be near a brick or in a new area |
05 | for i, player in ipairs (game.Players:GetChildren()) do |
06 |
07 | if player.Character and player.Character:FindFirstChild( "HumanoidRootPart" ) then |
08 |
09 | player.Character.HumanoidRootPart.CFrame = target |
10 | end |
11 | end |
12 | end |
btw why you are defining a wait to a variable instead of just writing wait(30)?