Hello all of developers! I wish you a good day. Anyway I have a problem with the script. I made a animation with the moon animation and I added a Animation to the AnimSaver model. Then I put to the handle model a AnimationController and added Animator inside of it. I Exported the animation of the door by clicking Files > Export Rigs then I saved the exported animation to the roblox. I put Animation to the DoorAnim which was the animation that I put to the AnimSaver. However, I started scripting but it’s not worked. I think I’m doing something wrong and I want someone help me please. I’m not sorry if my grammar is bad. The pictures of my model and script will be in the downstairs of this text.
the script itself will be there if the quality picture of the script is low:
local Handle = script.Parent.Handle
local Proximity = Handle.BackHandle2:WaitForChild("ProximityPrompt")
local door = script.Parent
local Anim = door.AnimSave:WaitForChild("DoorAnim")
local LoadAnim = Handle.AnimationController.Animator:LoadAnimation("DoorAnim")
Proximity.Triggered:Connect(function()
LoadAnim:Play()
end)
I think this might be your problem right here. I’m surprised you’re not getting an error.
You’re passing a string into the LoadAnimation function. This should be the variable “Anim” from this line:
First, Thank you very much for trying help me and give me some tips.
Second I’m not sorry if my grammar was bad.
Third, I also did some of my solution like you by dig and dig until I will find solution. I also had problem with the handle of the door. The handle of the door was not moving with the door itself when I did it animation. I couldn’t fixed this problem like 6 days then I find solution. Now I will find another solution to this problem too. Thank you for helping me!