I want to make a player's character completely stuck I tried anchoring the humanoidrootpart but that doesn't seem to work very well you can still move. Is there a more efficient way to do this?
If you don’t want to adjust WalkSpeed then try the Platformstand...
function Freeze(player, bool) local char = player.Character local hum = char:FindFirstChildOfClass("Humanoid") for i,v in pairs(char:GetChildren()) do if v:IsA("BasePart") then v.Anchored = bool end end hum.PlatformStand = bool end Freeze(game:GetService("Players").LocalPlayer, true) wait(2) Freeze(game:GetService("Players").LocalPlayer, false)
Put this in a local script in the StarterPlayerScripts
local player = script.Parent.Parent repeat wait() until game.Workspace:FindFirstChild(player.Name) local character = game.Workspace:FindFirstChild(player.Name):GetChildren() wait(0.1) for i=1, #character do if character[i].ClassName == "Part" then character[i].Anchored = true end end
You don't need the "wait(0.1)" on line 6, it just prevents the head from going into the torso... This works with both R6 and R15, if you need any more help friend me on Roblox