kloop
kloop

Reputation: 4721

why can't I get a checkpoint to flash with a script?

I am trying really hard to start with a simple skeleton on Roblox Studio, and then change one of the checkpoints (or all of them) so that they flash.

I thought to do that by using a script that I saw online that changes the transparency from 1 to 0 and back every 1 second.

So I tried this (I added this to all Checkpoints quite consistently in the same way):

enter image description here

and this (for this one I just added the part at the bottom):

enter image description here

but whenever I played in the Studio to test it I always got static checkpoints:

enter image description here

It is either the script is not running, or transparency is not the right way to go or what?

Upvotes: 0

Views: 120

Answers (1)

Night94
Night94

Reputation: 975

The "Checkpoints" folder has many objects in it that are called "Checkpoint". If you want to flash a particular one from its child script, you could do this instead:

while (true) do
    script.Parent.Transparency = 1
    wait(1)
    script.Parent.Transparency = 0
    wait(1)
end

it will only flash its parent (the Checkpoint).

Upvotes: 1

Related Questions