So I’ve been trying to Fire a Event Client Sided with a Local Script in ReplicatedFirst and the Event isn’t firing. I’ve tried doing this Server Sided but the server can’t see these specific Children of the HumanoidRootPart or disable Humanoid States. I also don’t want to cloud my starter player scripts with these either so can someone pls help me with this.
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
print("Added")
local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
local Humanoid = Character:WaitForChild("Humanoid")
--Destroy
HumanoidRootPart:WaitForChild("Splash"):Destroy()
HumanoidRootPart:WaitForChild("Landing"):Destroy()
HumanoidRootPart:WaitForChild("Jumping"):Destroy()
HumanoidRootPart:WaitForChild("GettingUp"):Destroy()
HumanoidRootPart:WaitForChild("Swimming"):Destroy()
HumanoidRootPart:WaitForChild("FreeFalling"):Destroy()
HumanoidRootPart:WaitForChild("Climbing"):Destroy()
--DisableStates
Humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing, false)
Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming, false)
Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying,false)
Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated, false)
Humanoid:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics, false)
Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, false)
Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp, false)
Humanoid:SetStateEnabled (Enum.HumanoidStateType.Seated, false)
Humanoid:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics, false)
Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown, false)
--Body Movers
local BodyAngularVelocity = Instance.new("BodyAngularVelocity",HumanoidRootPart)
BodyAngularVelocity.MaxTorque = Vector3.new(0,0,0)
local BodyVelocity = Instance.new("BodyVelocity",HumanoidRootPart)
BodyVelocity.MaxForce = Vector3.new(0,0,0)
end)
end)