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
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.