So I get the error in the title. I don’t know why? I searched it up and I did it correctly?
This is the script:
UserInputService.InputBegan:Connect(function(inputObject, processed)
if script.Ragdolled.Changed:Connect(function()
if script.Ragdolled.Value == true then
humanoid.BreakJointsOnDeath = false
humanoid.RequiresNeck=false
humanoid:ChangeState(Enum.HumanoidStateType.Physics)
RagdollServerEvent:FireServer(character)
end
end)
end
end)
