I have a part placed in Workspace
, and here is the Server Script. It is meant to trip any players on touch!
local effectTime = 2 script.Parent.Touched:Connect(function(hitPart) local h = hitPart.Parent:FindFirstChildOfClass("Humanoid") if h then h:ChangeState(Enum.HumanoidStateType.FallingDown) wait(effectTime) h:ChangeState(Enum.HumanoidStateType.PlatformStanding) end end)
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! :)
I think your problem is on line 3
where it says "Connect" the 'c' needs to be lowercase so it should look like
script.Parent.Touched:connect(function(hitPart)