Help with Speed Modifier

I might be mistaken but I don’t see how this would work.

Then, what do you suggest I do?

I don’t know anything about scripting, or have the time for it. I’m just a UI/clothing designer.

try this

local players = game.Players.LocalPlayer
local label = script.Parent.Parent.Textlabel
script.Parent.MouseButton1Click(function()
	players.Humanoid.WalkSpeed = character.Humanoid.WalkSpeed + 1
    label.Text = players.Character.Humanoid.Walkspeed	
end)
1 Like

Your using the client script that is why the speed is not working .

1 Like

there are too many “end)”. only one is needed

What do you mean “client script”?

I’m confused, could you type out the script and I’ll see if that works?

You have two things named TextLabel you should change the name to something else, that could be the issue. image

1 Like

he means you are using this in a local script. try using remote events that are triggered when you click the button and when the remote event is triggered it changes the player speed by a certain amount

So in the local script try this

local players = game.Players.LocalPlayer
local label = script.Parent.Parent.SpeedNumber
script.Parent.MouseButton1Click(function()
	players.Humanoid.WalkSpeed = character.Humanoid.WalkSpeed + 1
    label.Text = players.Character.Humanoid.Walkspeed	
end)

What text label do you want to use the first one or the second one?
image

I changed the 2nd one to SpeedNumber, the 1st one is just a title.

By the way, character on line 5 has a line under it.

so you are using the first one or the second one??

Uhh… I’m using “SpeedNumber”.

ok then try this

local players = game.Players.LocalPlayer
local label = script.Parent.Parent.SpeedNumber
script.Parent.MouseButton1Click(function()
	players.Humanoid.WalkSpeed = character.Humanoid.WalkSpeed + 1
    label.Text = players.Character.Humanoid.Walkspeed	
end)

"Character " on line 5 is underlined, is it supposed to be?

Sadly, it dosen’t work…

sorry, try this

local players = game.Players.LocalPlayer
local label = script.Parent.Parent.SpeedNumber
script.Parent.MouseButton1Click(function()
	players.Humanoid.WalkSpeed = players.Humanoid.WalkSpeed + 1
    label.Text = players.Character.Humanoid.Walkspeed	
end)

Nope… I’m using a localscript should I change it to serverscript instead?

here is a place i made where you can lower or increase speed (this works so u can’t complain it doesn’t x3) hereugobuddyy.rbxl (31.5 KB)

1 Like

I’m serious… It’s actually not working…

Can I invite you to the game, for you to help me out?