Motor6D with script causes tool to float for a bit

I don’t think I’m doing anything obviously wrong but I’ve thought that before and it was true so I just want to check to see if this is normal? and if there’s a way to mend it somehow


I’ve searched around a bit but I didn’t find anything that fit my situation and I don’t really know how to word what’s going on

here’s the piece of code im using (server script)

local function motorConnection()
	if not motor6 then
		motor6 = Instance.new("Motor6D")
		motor6.Part0 = currentHolder['Right Arm']
		motor6.Part1 = handle
		motor6.Parent = currentHolder['Right Arm']
	else
		motor6:Remove()
		motor6 = nil
	end
end
1 Like

It looks like the tool is falling down due to gravity.

Im guessing the client deleted the weld but the server is still CFraming the part back to the arm causing the weird effect or something like that.

Dont see anything wrong with the script as well must be some other script.

1 Like

would there be any way to fix this (visually at least)
im guessing it’s a roblox script and none of mine cause this happens even when im not using any other scripts

I’m not sure why you’d need motor6ds for this, unless you want to add animations to the tools which usually people animate the character instead.

I’d suggest using a weld instead then and see if that makes any difference.

to animate both the tool and the character do i not have to also use a motor6d for this? i.e if i want to move the tool’s position inside an animation for the player equipping it

Oh yeah then you’d need a motor6d, it could be because you’re creating a new motor6d. Why don’t you already have one implanted before runtime?

1 Like

would it be better to have a motor6d already inside the tool’s handle? and then just make Part1 whoever is holding it currently? so if it’s given to another person it’s not still “welded” to the other person

I mean i’m not sure what you mean entirely because english still isn’t my first language lol but what I tried to say was that instead of creating a new motor6d everytime the function is called, set it up already before the game starts.

I think this is the reason why it floats for a bit, because the motor6d has only been made and set up when the function was called

1 Like

If it’s possible you can try your script in a different place file or send your place file over.

I’m also guessing it could be due to your motor6d being enabled or disabled somehow.

This has been definitely done before so its on your end thats the issue.

tysm after a quick read and adapting it’s code it worked
also thank you @Amritss for the replies and trying to help me out

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.