So im trying to make it so when a player clicks the text button they cant walk or jump. it was a simple script but still it didn't work
1 | script.Parent.MouseButton 1 Click:Connect( function () |
2 | script.Parent.Parent.Parent.HidePlayers.Disabled = false |
3 | game.StarterPlayer.CharacterJumpPower = "0" |
4 | game.StarterPlayer.CharacterWalkSpeed = "0" |
5 |
6 | end ) |