I've tried using the wiki and youtube, but I assume you would use CFrame/Vector3 on the player's humanoid. If someone could tell me how to lock a players position when they have clicked an object so that lock can be toggled on and off that would be great.
If you mean make somebody stuck at a certain point then here's a solution I guess.
01 | local player = game.Players.LocalPlayer |
02 | local Character = player.Character |
03 | local PartPosition = game.Workspace.Part.Position |
04 |
05 | local function testing(PartPosition) |
06 |
07 | Character:MoveTo(game.Workspace.Part.Position) |
08 | Character.Humanoid.WalkSpeed = 0 |
09 | Character.Humanoid.JumpPower = 0 |
10 | end |
11 |
12 | testing(PartPosition) |