Attaching RopeConstraint to Tool makes the character shake

There is currently no fix for this, someone please post about this in Bug Reports > Engine Bugs

I am trying to make a gas pump for my game. You’re supposed to click E to get the nozzle. It works but whenever you equip it, your character starts shaking. It’s still controllable but nonetheless shaking.

I have tried delaying the constraint creation and making the rope extremely long, but none work. The tool has massless on already, but it doesn’t do anything either.

Does someone know how to fix this?

local Handle = script.Parent.Handle

local track = nil

function CreateConstraint()
	Handle.Hose:ClearAllChildren()
	
	local rope = Instance.new("RopeConstraint")
	rope.Parent = Handle.Hose
	rope.Name = "HoseConstraint"
	rope.Attachment0 = Handle.Hose
	rope.Attachment1 = script.Parent.PumpAttachment.Value
	
	rope.Color = BrickColor.new("Really black")
	rope.Thickness = 0.08
	rope.Length = 8
	
	rope.Visible = true
end

script.Parent.Equipped:Connect(function()
	CreateConstraint()
	Handle.Anchored = false
end)

That’s a bug of RopeConstraint, and i was able to fix it by anchoring Players root part and setting Enabled of the rope to true for a short duration and then unachoring the root part

Thank you for your answer. I will try it now

Edit: didn’t work

May i see the script you used ?

Try this




local Handle = script.Parent.Handle
Handle.Anchored=false
Handle.CanCollide=false
local track = nil

function CreateConstraint()
	Handle.Hose:ClearAllChildren()
	
	local rope = Instance.new("RopeConstraint")
	
	rope.Name = "HoseConstraint"
	rope.Attachment0 = Handle.Hose
	rope.Attachment1 = script.Parent.PumpAttachment.Value
	
	rope.Color = BrickColor.new("Really black")
	rope.Thickness = 0.08
	rope.Length = 8
	rope.Enabled=false
	rope.Visible = true
  
  rope.Parent=Handle.Hose
  return rope
end

script.Parent.Equipped:Connect(function()
  Player.Character.PrimaryPart.Anchored=true
local rope=	CreateConstraint()
  rope.Enabled=true
  task.delay(.5,function()
    Player.Character.PrimaryPart.Anchored=false
    )
end)

The character is still shaking, this didn’t do anything

Could you please send a video of the character shaking?

Give me a second to record the clip

1 Like

Sorry for the lag my pc is horrible

Uhh, that’s exactly how the Nozzle in my game works… i have no clue how to fix this

Oh well. Then it would be better if someone puts this into Bug Reports > Engine Bugs

i couldnt seem to replicate this - the only issues i had were an offset center of mass and weird bugs with shiftlock where it made a smooth rotation (probably cuz of the center of mass). i just had a post (part) with a ropeconstraint and attached one end to an att inside the post and the other to an att in the handle of my tool.