Since I am new to scripting I don’t know how to fix this to get my script running
Target
You’re missing something after until
. repeat until
checks for something after one loop is ran. If it’s false, it’ll keep running.
This is not an infinite loop yet, add false
for infinite looping.
Where would I place the true at?
if you want it to run forever do
while true do
–Change Color
wait(2)
–Change Color
end
Consider this alternative:
while true do
script.Parent.Handle.IlluminaSparkles.SparkleColor = Color3.fromRGB(85, 0, 255) -- do not use .new, if you're using RGB
wait(2)
script.Parent.Handle.IlluminaSparkles.SparkleColor = Color3.fromRGB(255, 85, 255)
wait(2)
end
You only need to use the while true do loop, you can remove the repeat and until
for more information on loops you can go here
1 Like