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

How do I make my gametime turn back into the intermission when a block is touched?

Asked by 9 years ago

How do I make my gametime turn back into the intermission when a block is touched?

this is what i have. Ive tried everything but it just doesnt work all i need it to do is just make the gametime turn into the intermission time when a block is touched if anyone can help i would be very greatful.

heres my script

Brickky is the brick that will be touched to make the gametime turn into intermission time

the script is also in serverscriptservice

This is my script below

for i = 90,0,-1 do if i == 0 then status.Value = 'Time up!' break end wait(1)

01function onTouch(hit)
02   if game.Workspace.Brickky == game.Workspace.Brickky.Touched then
03    for i, v in pairs (_G.gameplayers) do
04        if v ~= nil then
05            status.Value = v..'is the winner!'
06            game.Workspace.Brickky.Touched:connect(onTouch)
07            break
08        end
09 
10    end
11else
12    status.Value = i..'Remaining'
13end

end

1wait(5)

end end

0
First, put the whole code in the code block. Second, take the function out of the loop. Third, take out the first if statement and just put the status change after the loop. GoldenPhysics 474 — 9y
0
it didnt work but thanks for trying supamaster888 28 — 9y

Answer this question