Okay so I want my part to change colors in a specific order for example, red, orange, yellow then repeat (red, orange, yellow, red, orange, etc)
local anger = Color3.fromRGB(226,6,18)
local anticipation = Color3.fromRGB(243,144,50)
local joy = Color3.fromRGB(255,204,1)
local trust = Color3.fromRGB(147,194,59)
local fear = Color3.fromRGB(0,150,63)
local surprise = Color3.fromRGB(11,163,210)
local sadness = Color3.fromRGB(42,129,196)
local disgust = Color3.fromRGB(147,115,178)
local emotionCube = script.Parent
local Tool = script.Parent.Parent
function onActivation()
print("The color is now red")
-- function onActivation()
-- print("The color is now orange")
end
Tool.Activated:Connect(onActivation)
What I have done is make it so that onActivation it prints (for now) red. But the problem is I don't know how to get it to detect I've clicked again and then change to a different. I put in comments what I want to happen ( which is obviously wrong but the idea is to show that onActivation again it prints "The color is now orange".

1 comment
Holy shit thank you so much this is amazing!