Idle animations worked for my tool using this method, but with the hit animation, it also worked but the BodyAttach did not rotate or move like I moved it in the animator. How do I fix that?
I followed everything in the tutorial.
never mind it was because the animation priority was not high enough
Overall so far I have gotten the animations to work themselves quite well, but I am a horrible lua scripter so I cant make weapons function all that well. I have gotten the animations to work with the weapon and make them play correctly however.
Not sure if you solved your issue or not, but it honestly looks like a issue that i went through initially with the scripted welding to character. Perhaps you are making the unweld effect all users using that specifc weapon?
I’ve used this page many times to animate tools, and its really fun and cool but, just today as I was animating a weapon, for some reason the tool/gun could be animated fine using animation editer but wouldnt play in game and just instead spam Failed To Load Animation Id - Sanitized id errors, How can I fix it?
Heres some images to help
I’m having the same problem, no errors but when I equip the tool it’s in the workspace. Are we meant to manually set it’s position to the player’s hand? (I’m pretty new to tool stuff)
i did something like this which replicates to the server
client
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
local TargetCFrame
script.Parent:WaitForChild("Torso")
Mouse.Move:Connect(function()
if game.Players.LocalPlayer.Name == script.Parent.Name then
local Torso = Player.Character:WaitForChild("Torso")
local RightShoulder = Torso:WaitForChild("Right Shoulder")
local LeftShoulder = Torso:WaitForChild("Left Shoulder")
TargetCFrame = CFrame.new(-1, .5, 0) * CFrame.Angles(-math.asin((Mouse.Origin.p - Mouse.Hit.p).Unit.y), -1.55, LeftShoulder.C0.Rotation.Z)
script.RemoteEvent:FireServer(TargetCFrame,LeftShoulder)
TargetCFrame = CFrame.new(1, .5, 0) * CFrame.Angles(-math.asin((Mouse.Origin.p - Mouse.Hit.p).Unit.y), 1.55, RightShoulder.C0.Rotation.Z)
script.RemoteEvent:FireServer(TargetCFrame,RightShoulder)
end
end)
server
script.Parent.RemoteEvent.OnServerEvent:Connect(function(player,cfrrr,weld)
local t = game.TweenService:Create(weld,TweenInfo.new(.3),{C0 = cfrrr})
t:Play()
end)
Hey, have you come up with a solution to this? Still having this problem and besides the hacky way of doing it (making it transparent for a split second), I cant seem to find any ideal way to fix this.
This thread has almost saved my life. However, my only issue is that tool (in my case a phone) only appears in my hand after changing the BodyAttach name to Handle and the animation I intended for the phone itself doesn’t play, only the arm does. HELP