Turntable Glitching

I am currently making a game that involves two revolving turntables, however, sometimes it breaks and doesn’t carry the player as it spins. Is there a local script I can add to the model to force the player to move with it, but only when it is turning? The turntable does stop and start spinning, so I can’t just change the AngularVelocity. Before and after examples below:


This is the script that manages the turn:

local TweenService = game:GetService("TweenService")

local Config = script.Parent
local Speed = Config.Speed

Speed:GetPropertyChangedSignal("Value"):Connect(function()
	local tween = TweenService:Create(
		script.Parent.Parent.TableModel.root.HingeConstraint,
		TweenInfo.new(2.5, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out),
		{AngularVelocity = Speed.Value}
	)

	tween:Play()
end)

This is the script that starts and stops the turn (enabled by a button):

s = script
g = game.Workspace

local a = false
local ts = game.TweenService

local twi= game.TweenService

local TweenService = game:GetService("TweenService")
------------------------------------------
local turnTables = {
    workspace.TurntableModel,
    workspace.TurntableModel2,
}
local spinning = false
if not spinning then
    spinning = true

    game.workspace.TurntableModel.Turntable.Config.Speed.Value = 0.2 --speed of outer
    game.workspace.TurntableModel2.Turntable.Config.Speed.Value = 0.2 --speed of center

    spinning = false
end
wait(10)
local turnTables = {
    workspace.TurntableModel,
    workspace.TurntableModel2,
}
local spinning = false
if not spinning then
    spinning = true

    game.workspace.TurntableModel.Turntable.Config.Speed.Value = 0 --speed of outer
    game.workspace.TurntableModel2.Turntable.Config.Speed.Value = 0 --speed of center

    spinning = false
end
```

First of all. This is awesome. I love Hamilton.

This seems to be because Roblox is a big stupid meanie with Physics. One way you could fix it is by making a ray cast straight down and applying an offset to the player.

Since I’m just trying to help people out. There is a whole TOPIC about moving parts & players. This is probably the best code in the forum since it works with me.

Yeah, I read this but I’m not a scripter at all so I don’t exactly know where I’d put a script to manage it. :sob:

Put it in startercharacterscripts in starterplayer

Do I use a local script or a regular script?