Help with Speed Modifier

I was following a tutorial on YouTube on how to make a “speed modifier”, but It’s not working.

Screenshot 2021-05-01 at 20.05.12

(I’m not experienced in scripting, I don’t even know how to…)

On line 2, you wrote script.Paren instead of script.Parent.

1 Like

Nope, not the issue. Just fixed the word.

try changing “character” to “Character” on line 3

And would you mind posting the link to the YouTube tutorial you are watching?

1 Like

Speed isn’t changing, or the text.

1 Like

You forgot to add the Walkspeed

game.Players.LocalPlayer.Character.Humanoid.Walkspeed += 5

This will add 5 walkspeed to the player.

On line three there I just noticed there is supposed a +5 at the end of the line.

I’m getting a SyntaxError when I add “+= 1”

try this

local label = script.Parent.TextLabel

script.Parent.MouseButton1Click:Connect(function()
    game.Players.LocalPlayer.Character.Humanoid.WalkSpeed += 5 -- change this to how much you want to add to player speed
    label.Text = game.Players.LocalPlayer.Character.Humanoid.WalkSpeed
end)

what does it say in the output console for the syntax error

Are you doing

game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = game.Players.LocalPlayer.Character.Humanoid.WalkSpeed += 5

It’s supposed to be, only:

game.Players.LocalPlayer.Character.Humanoid.WalkSpeed += 5

Try this

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

You shouldn’t make connections inside a connection.

Simply do

local character = player.Character or player.CharacterAdded:Wait()

Nope, that is not working…
AAAAAAAHAHHHAHAHAHAHHA

I think you mistake is line 1 do
local label = script.Parent.Parent.TextLabel

Nothing is working… AT ALL!

Do you actually know the basics of scripting yet?

You should read this: Getting Started (roblox.com) before you start trying to follow more advanced tutorials.

How did mine work??? Good or bad?

Sorry, my intention wasn’t to be rude. I was trying to say that nothing is working.