How to make person's walkspeed 0?
I am making a baseball game and ran into a problem I can't fix. So basically, when someone enters the batters box, I want them to have 0 walkspeed. I know that it has to do with the humanoid, but problem is I just dont know how to implement it and I've tried everything. Help would be appreciated
02 | local IsBatting = false |
03 | local RH = game.Workspace.PlayerParts.RH |
04 | local LH = game.Workspace.PlayerParts.LH |
06 | local Camera = workspace.CurrentCamera |
07 | local TweenService = game:GetService( "TweenService" ) |
08 | local BatterCamera = game.Workspace.MouseIgnores.BatterCamera |
10 | local Player = game.Players.LocalPlayer |
15 | Camera.CameraType = Enum.CameraType.Scriptable |
16 | local TI = TweenInfo.new( 1 , Enum.EasingStyle.Quart, Enum.EasingDirection.Out, 0 ) |
17 | local Goal = { CFrame = BatterCamera.CFrame, FieldOfView = 60 } |
18 | local Animation = TweenService:Create(Camera, TI, Goal) |
22 | function StartAtBat(WhichSide) |
31 | RH.Touched:Connect( function () |
35 | LH.Touched:Connect( function () |