I put this code in a LocalScript, and it'll run the script once the player touches the Brick with the script in it. Wheres my problem? I'm new to scripting...
local character = game.Players.LocalPlayer.Character
script.Parent.Touched:connect(function()
if character.Humanoid.WalkSpeed == 16 then
character.Humanoid.WalkSpeed = 20
else
character.Humanoid.WalkSpeed = 20
end
end)

2 comments
Just noticed I don't need line 6 and 7 :/
Is there a reason you are using a LocalScript rather than a regular script?