The part trips the player in studio, but not in the actual game. Why?
Asked by
8 years ago Edited 8 years ago
I have a part placed in Workspace
, and here is the Server Script. It is meant to trip any players on touch!
03 | script.Parent.Touched:Connect( function (hitPart) |
04 | local h = hitPart.Parent:FindFirstChildOfClass( "Humanoid" ) |
06 | h:ChangeState(Enum.HumanoidStateType.FallingDown) |
08 | h:ChangeState(Enum.HumanoidStateType.PlatformStanding) |
In Studio, the script works fine, but in the actual game, the script did not do anything to the player. Also, there are no errors or warning messages in the Developer Console/Output.
Also, the game is FilteringEnabled!
What should I do? Any help will be appreciated! :)