walkspeed and jumpheight changes, use the frameworks default values instead

This commit is contained in:
2023-12-29 03:19:28 -05:00
parent 989a52c60f
commit 93d2c3772d
4 changed files with 18 additions and 8 deletions

View File

@@ -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

View File

@@ -36,7 +36,8 @@ local function CrouchFeature()
end)
end
HumanoidSettings:SetWalkSpeed(10)
HumanoidSettings:SetWalkSpeed()
HumanoidSettings:SetJumpHeight()
HRPSettings:DisableRobloxSounds()
CameraConsturctor:EnableBobbing()

View File

@@ -0,0 +1,6 @@
local StarterPlayer = game:GetService("StarterPlayer")
return function()
StarterPlayer.CharacterWalkSpeed = 0
StarterPlayer.CharacterJumpHeight = 0
end

View File

@@ -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")