-
What do you want to achieve?
Basically, I’m trying to achieve a working animation to be played on an NPC that will be showed on all clients at the same time. -
What is the issue?
No matter what I’ve tried so far, the animation I made hasn’t even moved. The layout of my animation is in a screenshot below.
-
What solutions have you tried so far?
I’ve been struggling for a while now trying to use different pieces of code edit into my script to make this work, but so far no luck yet. I looked into the Developer Hub, even though I’m not the best scripter, I still gave it a shot. Nothing in specific helped me out on this topic, unless I missed it.
on = false
function onClicked()
if on == false then
on = true
script.Parent.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
-- I attempted multiple codes in here
script.Parent.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
on = false
end
end
script.Parent.MouseButton1Click:Connect(onClicked)
Note: I appreciate any responses in attempt to help me solve this problem I’ve been having.