hey there my dear robloxians, I’ve been trying to fix this for over a week now.
i have a gamepass that makes your name color in chat color rainbow.
sometimes this applies to the wrong name tag. but the loop never gets fired.
Does anyone know how to fix this issue?
the defaulthchatmessage script is what I’ve edited to make the name color change
I’ve already tried to debug this but it has lead me to nothing.
i don’t know why this loop is being added to the other name colors since it cant even pass the if statement
spawn(function()
if game.Players:FindFirstChild(fromSpeaker).PlayerData.HasRainbowChat.Value then
local Button = NameButton
local Name = fromSpeaker
while true do
T:Create(Button,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),{TextColor3 = Color3.fromRGB(255, 97, 100)}):Play()
wait(1)
T:Create(Button,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),{TextColor3 = Color3.fromRGB(184, 97, 255)}):Play()
wait(1)
T:Create(Button,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),{TextColor3 = Color3.fromRGB(99, 180, 255)}):Play()
wait(1)
T:Create(Button,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),{TextColor3 = Color3.fromRGB(103, 255, 101)}):Play()
wait(1)
T:Create(Button,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),{TextColor3 = Color3.fromRGB(255, 198, 98)}):Play()
wait(1)
end
end
end)
would love to hear what you guys think what could be wrong with it. since i am not quite sure if its my code or the chat script.