Tool deleting itself

Hey guys

For some reason my tool keeps deleting itself after a couple seconds.
Been searching for a fix for a couple hours now. People are saying it’s a Roblox bug,
But I’m not sure to be honest. I also tried disabling FE, but no luck.

I did realize that whenever I tried to change an animation using the tool. For example, I was trying to change the default run animation to my custom animation when the tool was equipped. and change back when unequipped, but since then it deletes it faster.

I would show you my code, but I honestly forgot how to do code blocks.
But all my code does, is equip tool, play animation. That’s it.

Video:

Thank you for reading.
XYZLambda

Could you send us a model so we can look at the problem?

I would try and help you out but I’m pretty sure the only way the tool would remove itself from the character when equipped is when they die, or a certain script/code removes it somehow. If you possibly could, showing the code would be very helpful.

As i said, sorry I don’t know to do code blocks, so i will just past it in.

local idle = humanoid:LoadAnimation(anims:WaitForChild("Idle"))

tool.Equipped:Connect(function()
	equip:Play()
	equip.KeyframeReached:connect(function(name)
		if name=="stop" then
			print("reached")
			equip:Stop()
			idle:Play()
		end
	end)
end)

tool.Unequipped:Connect(function()
	print("stopped")
	equip:AdjustSpeed(3)
	equip:Stop()
	idle:Stop()
end) 

Okay, i got it. Just don't know how to end it.

A tool deletes itself like that if the RightGrip it creates does not replicate and it falls through the world. This is visible if you equip the tool then quickly switch to server view. Are any of your limbs/limb joints made on the client?

1 Like

problem.rbxl (55.8 KB)

I will send you the place. Might Be easier for you

image
Possibly has something to do with the PsuedoHandle

Edit: nevermind, I removed the animation and it works fine

ow, i see. You’re right. falls through the ground.
Sorry, I’m not exactly sure what you mean with

“Are any of your limbs/limb joints made on the client?”<

or… maybe this? it doesnt exist


image

That is supposed to be my running animation when i have the tool equipped, but i couldn’t make it work. But what @hockeylover29 said, is right i think. I just don’t know how to fix that

Oh, well it’s stopping the script, you should remove that line

Removed it, but i think i know what the problem is now.
I will have to do some research on tool grips, never used it before.

Thank you everyone for your time

I think it has something to do with the weld script inside the handle

you should heck that out

was thinking the same thing just now.
I thought maybe i need to use a normal script and weld on the server.
But i don’t know if that’s possible

You could use RemoteEvents for it

Or just put Tool.Equipped in a ServerScript (I think that works)

I got the same effect using remote events.
Didn’t try to put Tool.Equipped in a serverscript tho, will try that.

mhm, it works when I enable RequiresHandle and use a Handle.
I didn’t use it, because of the animation it played, but apparently my custom animation bypasses it.