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

Head turning on and off error. Can someone help?

Asked by 4 years ago
Edited 4 years ago

This script me and my friend made should be making the head of an npc flash, can someone review it?

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

1 answer

Log in to vote
0
Answered by 4 years ago

Try this:

while wait() do
    script.Parent.Head.Transparency = 1
    wait(5)
    script.Parent.Head.Transparency = 0
    wait(5)
end
Ad

Answer this question