In the most recent screenshot I didn’t see any errors that occurred recently so I think you’re ok now on the errors part
Did that, still doesn’t work. Anything else?
What is every single line of code that you wrote for the animation?
It’s all in the two screenshots above, the animation is 4 seconds long.
I think Ik what’s wrong. In the AnimationPart I think you need to hit the plus sign and add an animation. (I don’t remember if you can do that. Sadly I’m in my phone rn so I can’t check). Keep the scripts the same but add the animation to the part
Ok, I just did that and copy and pasted the animation id but nothing happens when I touch the part.
Do I have to unanchor it?
Do you have a script that checks if the part is touched?
Yep, that part is in Anything which is the script under the part.
Well I’m out of ideas. Hopefully you find someone that can help. Good luck!
The touched function gets the part that touched it, not the model. so you have to get the Parent
of the part first before finding the animation. EDIT: @xander5610 replied to the wrong person
So the code would be:
script.Parent.Touched:Connect(function(hit)
local parent = hit.Parent
local script = parent:FindFirstChild("AnimationScript")
if script then
script.BoolValueName.Value = true
end
end)
When did I reply to the wrong person?
Just tried this, doesn’t work.
Did you replace BoolValueName
with the name of the bool value? Also,
i meant that I replied to the wrong person
Yep, I changed the name of my BoolValue and then changed BoolValueName to the name of my BoolValue. I also made the transparency 0 instead of 1.
Can I see the output and your current code?
I don’t understand why thing is not valid. Let me see the properties (and probably children) of Thing please. also why is there an animation inside the touched part?
No, that means the value is false. I don’t know why this happens. I’ll check it later.
Well I gtg now so I’ll be back tomorrow if you think of anything.