Disable Player Controls

If i use the script under me the Player can control the Vehicle with his Character but i want that the Vehicle moves the Player. Like i want to disable Player Controls but Serverside how do i do that?


player.Character.HumanoidRootPart.CFrame = workspace.Part.CFrame + Vector3.new(0,10,0)

local a = Instance.new(“WeldConstraint”)

a.Parent = workspace.Part
a.Part0 = workspace.Part
a.Part1 = player.Character.HumanoidRootPart

player.Character.HumanoidRootPart.Anchored = false


The Part is moving all the Time to one Direction. After i welded the Player to the Part the Part will not move anymore and i can move the Part with my Body like the Part is my body how could i do it so i cant control the Part and the Part is continue moving?

disable player movement

local plrmodule = require(game.Players.LocalPlayer.PlayerScripts.PlayerModule)
local controls = plrmodule:GetControls()

] then instantiate the part,weld it, apply linear velocity(or smth)

edit: enable it again when you have to

Can i do something like that but in server?