hi there so i have a issue with my RGB outlinecolor script portion that won’t let me do a while loop inside of a elseif statement all it does is counts the kills and then makes it go RGB once it gets 10 or above
elseif count >= 10 then
Sounds.Kill5:Play()
local highedit = Humanoid.Parent:WaitForChild("Highlight")
local t = 5
while wait() do
local hue = tick() % t/t
local color = Color3.fromHSV(hue,1,1)
highedit.OutlineColor = color
end
elseif Humanoid.Died then
count = 0
highlight:Destroy()
end
end
end
i think its the loop, i dont know why its not working really, it functionally should? but its not printing anything either, so its most definitely the loop
so it doesnt even get to the print either, it just waits for the uh, highlight, but its already there after the first kill or so, and it wont go past the sound i dont think, to confirm it does not go past the sound for some reason, it just does that and nothing else
i think i figured it out, so i had count >= 5 change the color, and that applied for everything else above 5 too, so that gets rid of the RGB entirely, and switches to red
yea no what i just did worked like a charm, and its honestly my fault LOL i shouldnt have posted without checking first, but hey atleast we figured it out, thank u so much ill give u a solution