this script is from “Euphoria Ragdoll” (like gta V ragdoll), so after i fall my character doesn’t get up
here error:
here script:
local humanoid = character:WaitForChild("Humanoid")
local humanoidRP = character:WaitForChild("HumanoidRootPart")
local stateType = Enum.HumanoidStateType
while wait(0.1) do
if character.UpperTorso.Velocity.Magnitude < 0.1 then
if script.DontRepeat.Value == false then
wait(0.1)
character.HumanoidRootPart.CollisionGroupId = 0
workspace.CurrentCamera.CameraSubject = character.Humanoid
workspace.UnRagdollServer.UnRagdollOff:FireServer()
wait(0.02)
workspace.UnRagdollServer.UnRagdollOff:FireServer()
wait(0.2)
humanoid:ChangeState(stateType.GettingUp)
wait(1)
script.DontRepeat.Value = true
end
end
end```