Hello! Devs
So, I am having some trouble getting the player’s walkspeed and also jump power back to normal. It was working when I a while ago but whenever I try using it now everything else works except for changing the humanoid’s walkspeed and jump power.
Here’s my code:
local s = script.Parent
local sp = s.Parent
local sColor = s.Parent.Stable
local bColor = s.Parent.StableBorder
local ws = game.Workspace
local player = game.Players:FindFirstChildWhichIsA("Player")
s.MouseButton1Click:Connect(function()
if s.Online.Value == false and sp.Button5.Online.Value == true then
s.Online.Value = true
wait(0.015)
s.BackgroundColor3 = sColor.Value
s.BorderColor3 = bColor.Value
s.Text = '✔️'
wait(0.55)
sp.title.Text = 'Lighting Fixed!'
sp.completed.Visible = true
wait(0.75)
ws.FixableLight.Light.BrickColor = BrickColor.new("Daisy orange")
ws.FixableLight.Light.SurfaceLight.Enabled = true
ws.FixableLightTwo.Light.BrickColor = BrickColor.new("Daisy orange")
ws.FixableLightTwo.Light.SurfaceLight.Enabled = true
wait(0.05)
player.Character.Humanoid.WalkSpeed = 12
player.Character.Humanoid.JumpPower = 40
wait(3.5)
sp.Parent:Destroy()
end
end)
Any help would be appreciated!