The spinning cylinder moves jerkily when there are two or more players on it

In my obby game, as in many others, there is a spinning cylinder on which players must jump and move on.

The problem is that when there are two or more players on the cylinder, it starts to move jerkily with a slight shake.
I have attached a video, please watch it🎥

The cylinder rotates in my game using the CylindricalConstraint. I have attached a screenshot of the model structure, please take a look📷


I don’t understand how this can be fixed, although I’m sure the answer is very simple. Maybe you can tell me to use something else instead of the CylindricalConstraint. I will be very glad of your help!

Hi, try using a script that tweens the part and apply AssemblyLinearVelocity to move the player
RotatingCylinder.rbxm (3.4 KB)

The code I used
-- Services
local TweenService = game:GetService("TweenService")

-- Object
local Part = script.Parent

-- Variables
local TweenSpeed = 5
local Velocity = 5
local Rotation = CFrame.Angles(math.rad(180), 0, 0)

-- Functions
function GetDirectionalSpeed(Part: BasePart, Speed: number)
	return Speed * Part.CFrame.LookVector
end

function Init()
	local Info = TweenInfo.new(TweenSpeed, Enum.EasingStyle.Linear, Enum.EasingDirection.In, -1)
	local Properties = {CFrame = Part.CFrame * Rotation}
	local Tween = TweenService:Create(Part, Info, Properties)
	Tween:Play()
	
	Part.AssemblyLinearVelocity = GetDirectionalSpeed(Part, Velocity)
end

-- Setup
Init()
2 Likes

maybe try moving it in replicatedstorage and when player joins the game make local script to replace it in workspace so it seems for the player’s screen. I think it makes it local cylinder for each player

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