local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local tool = script.Parent
local function Activated ()
player.Character.Humanoid:LoadAnimation(tool.Equip)
player.Character.Humanoid:LoadAnimation(tool.Idle)
local target = mouse.Target
if target then
local remoteevent = target:FindFirstChild("RemoteEvent")
if remoteevent then
remoteevent:FireServer()
end
end
end
local function Deactivated ()
player.Character.Humanoid:LoadAnimation(tool.Unequip)
end
tool.Activated:Connect(Activated)
tool.Deactivated:Connect(Deactivated)
There's no errors, all animations are placed in the tool like they should be. How I made my animations: I have a tool and placed the handle of it inside an r15 block rig, and used tool grip (plugin) to align it, then used custom character creator (plugin) to bind the handle to the right hand. after that I made the animations and saved it to roblox. Then I inserted animation (object) to the tool and edited the animationid.
