Whenever I am equipping my broom tool, the following happens:
The broom is using a motor6d, with handle not required. How can I make it so it has the idle animation, much like how it would if it had handle required (holding it straight out with the right arm)?
I also need help with the localscript for the tool, I don’t know how to make it server-sided (very little experience with remote events)
The particles also aren’t working for some reason, but I’d like to iron out the two major flaws first.
local player = game:GetService("Players").LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local Humanoid = character:WaitForChild("Humanoid") local tool = script.Parent local particles = tool.Bristle.ParticleEmitter.Enabled local animation = tool:WaitForChild("Animation") local animationTrack = Humanoid:LoadAnimation(animation) local canRun = true script.Parent.Activated:Connect(function() if canRun == true then canRun = false animationTrack:Play() wait(2) particles = true wait(3.5) particles = false canRun = true animationTrack:Stop() end end) script.Parent.Equipped:Connect(function() local motor = Instance.new("Motor6D") motor.Name = "HandAttach" motor.Parent = character.RightHand motor.Part0 = character.RightHand motor.Part1 = tool.HandAttach end) script.Parent.Unequipped:Connect(function() local motor = character.RightHand:WaitForChild("HandAttach") if motor then motor:Destroy() end end)