Hi there, I have a problem. I have a monster for my game, and, I have an animation for it of it going to the darkness, then deleting itself. But anything I’ve tried, nothing works. Doesn’t play the animation. There’s even no errors or warnings in the output. Here’s the script and my monster:
local animator = script.Parent.AnimationController.Animator
local db = false
local animationTrack = animator:LoadAnimation(script.Parent.AnimationController.anim1)
animationTrack.Priority = Enum.AnimationPriority.Action4
workspace:WaitForChild("BobToDarkAnimTrigger").Touched:Connect(function(hit)
if db == true then return end
if hit.Parent:FindFirstChild("Humanoid") then
db = true
animationTrack:Play()
end
end)
open the hamburger menu in the top right, lick setings and then check for updates at he very bottom
you should see a green dot and the text “The most recent version of roblox studio is downloading” it will take a minute or two and you are good to go.
The hamburger menu is the three dots. If you cant see the Check for updates you will have to do a fresh install of roblox studio since you cant menually update it. just download the exe and then run it and it will automatically download the latest version which will have the IsLooping property.
like, just before you call animationTrack:Play(), add a print (“before play”)
so…
if hit.Parent:FindFirstChild("Humanoid") then
db = true
print("before play")
animationTrack:Play()
end
if you see the ‘before play’ message, it means you have actually reached that line of code , which means the play function is being called, so we can rule out that you are not getting to that line of code