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

CanCollide still equals false?

Asked by 8 years ago

local hi = Instance.new("Hint", workspace) while true do while game.Players.NumPlayers < 2 do hi.Text = "Invite a player!" repeat wait(2) until game.Players.NumPlayers >= 2 e for w = 30,0,-1 do hi.Text = "Intermission : "..w wait(1) end game.Workspace.BlueFront.CanCollide = false game.Workspace.RedFront.CanCollide = false game.Workspace.Baseplate.CanCollide = true for r = 200,0,-1 do hi.Text = "Round "..r wait(1) end game.Workspace.BlueFront.CanCollide = true game.Workspace.RedFront.CanCollide = true game.Workspace.Baseplate.CanCollide = false wait(5) end

The problem is that the BlueFront, RedFront, or Baseplate won't disable CanCollide when told

1 answer

Log in to vote
0
Answered by 8 years ago

Not entirely sure what you want to happen, but maybe try this:

local hi = Instance.new("Hint", workspace)


while game.Players.NumPlayers < 2 do
    hi.Text = "Invite a player!"
    repeat wait(2) until game.Players.NumPlayers >= 2

    for w = 30,0,-1 do
      hi.Text = "Intermission : "..w
        wait(1)
    end

game.Workspace.BlueFront.CanCollide = false
game.Workspace.RedFront.CanCollide = false
game.Workspace.Baseplate.CanCollide = true

for r = 200,0,-1 do
    hi.Text = "Round "..r
    wait(1)
end


game.Workspace.BlueFront.CanCollide = true
game.Workspace.RedFront.CanCollide = true
game.Workspace.Baseplate.CanCollide = false
wait(5)
end

Ad

Answer this question