My friend and me are making animations for a tool we are making.
I made the game and exported the animations too, and it still doesn’t seem to be working.
Does anyone know how to fix this?
The owner of the place you’re working on must export the animations. If the owner of a game is a group, the animations must be exported with that group as the owner of the animation.
I am actually the owner of the place, and i exported the animations.
I do not know if this is actually a script problem, because i dont see any problem on the script, it just works fine.
Try your script with animations that DO work, and make sure that it’s not an issue with the script.
Well, i have tested it a few times and even put prints over it, it prints everything, no errors.
I also checked the console and nothing.
Is it okay if I see your code?
task.wait()
local Tool = script.Parent
local Handle = Tool.Handle
local Player = script.Parent.Parent.Parent
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild(‘Humanoid’)
local Animator = Humanoid:WaitForChild(‘Animator’)
local OtherFolder = Tool.Other
local AnimationsFolder = Tool.Animations
local GunParts = OtherFolder.GunParts
local GunHandle = OtherFolder.GunHandle
local Animations = {
[‘Idle’] = Animator:LoadAnimation(AnimationsFolder.Idle),
}
local IsActive = false
local function onActivate()
Tool.ToolTip = “Joel Miller.”
print('Works')
Animations.Idle:Play()
Handle.DrinkSound:Play()
Tool.GripForward = Vector3.new(0.989, 0.148, -0)
Tool.GripPos = Vector3.new(0.5, -0.75, 1.55)
Tool.GripRight = Vector3.new(0, 0, 1)
Tool.GripUp = Vector3.new(-0.148, 0.989, -0)
Handle.DrinkSound.Ended:Wait()
wait(.1)
print('Works')
Animations.Idle:Play()
Tool.GripForward = Vector3.new(-1, 0, 0)
Tool.GripPos = Vector3.new(0.5, -0.2, -0)
Tool.GripRight = Vector3.new(0, 0, -1)
Tool.GripUp = Vector3.new(0, 1, 0)
Handle.Transparency = 1
for _, v in pairs(GunParts:GetChildren()) do
v.Transparency = 0
end
GunHandle.Transparency = 0
print('Works')
end
Tool.Activated:Connect(function()
if not IsActive then
IsActive = true
onActivate()
end
end)
This is a script that is placed in the tool if you want to know.
Do you already have the AnimationPriority of the animation as Action?
Yes, but i think it’s because the Priority is supposed to be ‘Idle’, not action.
Alright, i exported the animation again and it seems to work now. I do not know what was the problem, but thank’s for helping too.