diff --git a/src/client/Character/Client/Humanoid.lua b/src/client/Character/Client/Humanoid.lua index 5f3f1fc..0f8f4bf 100644 --- a/src/client/Character/Client/Humanoid.lua +++ b/src/client/Character/Client/Humanoid.lua @@ -2,6 +2,7 @@ local HumanoidModule = {} HumanoidModule.__index = HumanoidModule type WalkSpeed = number? +type JumpHeight = number? function HumanoidModule.constructor(Humanoid: Humanoid) return setmetatable({ @@ -10,7 +11,11 @@ function HumanoidModule.constructor(Humanoid: Humanoid) end function HumanoidModule:SetWalkSpeed(Speed: WalkSpeed) - self.Humanoid.WalkSpeed = Speed or 16 + self.Humanoid.WalkSpeed = Speed or 10 +end + +function HumanoidModule:SetJumpHeight(Height: JumpHeight) + self.Humanoid.JumpHeight = Height or 7.2 end return HumanoidModule \ No newline at end of file diff --git a/src/client/Character/Client/init.client.lua b/src/client/Character/Client/init.client.lua index a99eafd..cc73cd3 100644 --- a/src/client/Character/Client/init.client.lua +++ b/src/client/Character/Client/init.client.lua @@ -36,7 +36,8 @@ local function CrouchFeature() end) end -HumanoidSettings:SetWalkSpeed(10) +HumanoidSettings:SetWalkSpeed() +HumanoidSettings:SetJumpHeight() HRPSettings:DisableRobloxSounds() CameraConsturctor:EnableBobbing() diff --git a/src/server/Studio/StarterPlayer.lua b/src/server/Studio/StarterPlayer.lua new file mode 100644 index 0000000..73a846f --- /dev/null +++ b/src/server/Studio/StarterPlayer.lua @@ -0,0 +1,6 @@ +local StarterPlayer = game:GetService("StarterPlayer") + +return function() + StarterPlayer.CharacterWalkSpeed = 0 + StarterPlayer.CharacterJumpHeight = 0 +end \ No newline at end of file diff --git a/src/server/Studio/init.server.lua b/src/server/Studio/init.server.lua index 5b06b19..0ec51e2 100644 --- a/src/server/Studio/init.server.lua +++ b/src/server/Studio/init.server.lua @@ -1,12 +1,10 @@ -local HideEditorEntities = require(script:WaitForChild("EditorEntities")) -local Lighting = require(script:WaitForChild("Lighting")) +local HideEditorEntities = require(script:WaitForChild("EditorEntities")) +local Lighting_Stuff = require(script:WaitForChild("Lighting")) +local Workspace_Stuff = require(script:WaitForChild("Workspace")) +local StarterPlayer_Stuff = require(script:WaitForChild("StarterPlayer")) local RS = game:GetService("RunService") local Storage = game:GetService("ReplicatedStorage") -local StarterPlayer = game:GetService("StarterPlayer") - -StarterPlayer.CharacterWalkSpeed = 0 -StarterPlayer.CharacterJumpHeight = 0 local ServerStorage = Storage:WaitForChild("Server")