It may also be that the HumanoidRootPart is being anchored but not the rest of the character, maybe a for loop through the characters body parts might fix it?
The problem might be here, when you set the position of any part in the model, you only change the position of that part, you will have to use CFrame, and not position, I made this mistake before lol.
You can remove my CFrame code, because I think it might mess with your positioning.
local Player = game:GetService("Players").LocalPlayer
local Character = Player.Character or Player.CharacterAdded:wait()
local Humanoid = Character:WaitForChild("Humanoid")
local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
local RunSound=HumanoidRootPart:WaitForChild("Running")
task.wait(8)
local ActiveTracks = Humanoid:GetPlayingAnimationTracks()
for _,v in pairs(ActiveTracks) do
if(v.Name == "WalkAnim" or v.Name == "RunAnim") then
v:Stop()
end
end
HumanoidRootPart.Anchored = true
RunSound.Volume = 0
RunSound:Stop()
You would have to reset the sound volume after the anchor.
Problem here is the key still being down …
Maybe … Whatever they use now put that in there.
You could just stop them all … but them are the two you’re looking for.
A bit tricky as you need to stop both.