|
| 10 Feb 2017 10:28 PM |
Being that no one REALLY tried to help me with this I'm re-posting but with more information.
I'm trying to have the player start terrain water swimming w/o the terrain water. There are a few functions in the humanoid that I'm trying to figure out...
bool GetStateEnabled ( HumanoidStateType state )
and
void SetStateEnabled ( HumanoidStateType state, bool enabled )
This is how my script works:
wait(1) --Letting some things load while wait() do local plr = game.Players.LocalPlayer repeat wait() until game.Workspace:FindFirstChild(plr.Name) local char = plr.Character local Human = char:WaitForChild("Humanoid") Human:ChangeState(Enum.HumanoidStateType.Swimming) Human.AutoJumpEnabled = false local S = Human:GetState() print(S) end All I want to do atm is to have the player swim.
The problem:
The player DOES enter the state for swimming but it only lasts a fraction of a second being that the player's state is constantly changing from moving to falling etc... That's why I'm trying to find out how the GetStateEnabled and SetStateEnabled can be activated and deactivated. |
|
|
| Report Abuse |
|