How do i make a gui that will show player's walkspeed and jumppower?

I need help, script is not working
here is screenshot and script
walk1

local plr = game.Players.LocalPlayer

local walkSpeedText = workspace.StarterGui.WALKGUI.walkSpeedText1

local jumpPowerText = workspace.StarterGui.WALKGUI.jumpPowerText1

while wait(1) do

walkSpeedText.Text = "Walkspeed: " + plr.Character.Humanoid.WalkSpeed

jumpPowerText.Text = "Jump Power: " + plr.Character.Humanoid.JumpPower

end

Maybe instead of "Walkspeed: " + plr.Character.Humanoid.WalkSpeed
You could do "Walkspeed: "…plr.Character.Humanoid.WalkSpeed

You can do this for Jump Power as well.

EDIT: Sorry, two dots, not three.

Almost, two dots instead of three though.

Thanks for reply, but it is not working

local plr = game.Players.LocalPlayer

local walkGui = script.Parent
local walkSpeedText = walkGui.walkSpeedText1
local jumpPowerText = walkGui.jumpPowerText1

while wait(1) do
	walkSpeedText.Text = "Walkspeed: " .. plr.Character.Humanoid.WalkSpeed
	jumpPowerText.Text = "Jump Power: " .. plr.Character.Humanoid.JumpPower
end
2 Likes

Theres many issues in your script, so I just cleaned them up for you :slight_smile:

local plr = game:GetService("Players").LocalPlayer

local walkSpeedText = script.Parent.walkSpeedText1

local jumpPowerText =script.Parent.jumpPowerText1

plr.Character.Humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()

walkSpeedText.Text = "Walkspeed: " .. plr.Character.Humanoid.WalkSpeed

jumpPowerText.Text = "Jump Power: " .. plr.Character.Humanoid.JumpPower

end)
2 Likes
local players = game:GetService("Players")
local player = players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")

local walkGui = script.Parent
local walkSpeedText = walkGui.walkSpeedText1
local jumpPowerText = walkGui.jumpPowerText1

while task.wait(1) do
	walkSpeedText.Text = "Walkspeed: "..humanoid.WalkSpeed
	jumpPowerText.Text = "Jump Power: "..humanoid.JumpPower
end
2 Likes

image
It still not working, maybe i did something wrong?

Did you try mine? If it’s not working with mine then please show the output.

Why did you rename the labels?

They should be named “walkSpeedText1” and “jumpPowerText1”.

Sorry, my bad
i renamed it back and now it is working, but how do i make it change if the player stops walking?
here is the video
“h” is walkspeed

Yes, i tried your script.
Here is output
Callstack:
cloud_144938633.archimedesTwo.initiatePlugin.MainModule, line 30
cloud_144938633.archimedesTwo.initiatePlugin.MainModule, line 28

  • Server
    16:31:36.183 Humanoid is not a valid member of Model “Workspace.SpynApple_P” - Client - LocalScript:7
    16:31:36.183 Stack Begin - Studio
    16:31:36.183 Script ‘Players.SpynApple_P.PlayerGui.WALKGUI.LocalScript’, Line 7 - Studio - LocalScript:7
    16:31:36.183 Stack End - Studio

It does change when the player stops moving, it goes back to 0.


it doesn’t change

Oh, I thought you were referring to the video you sent, in that case you’ll need a different implementation entirely.

Here’s an example.

local players = game:GetService("Players")
local player = players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")

local label = script.Parent

humanoid.Running:Connect(function(speed)
	label.Text = "Speed: "..speed
end)

Thank you for you help, i found the script and now it is finally working