Hello! I made a script for when players touch the brick its in they get a speed boost, Could you help me fix it? Heres the script:
local speedBoost = script.Parent local function SteppedOn (part) local parent = part.Parent if game.Players: GetPlayerFromCharacter(parent) then parent.Humanoid.WalkSpeek = 160 wait (200) parent.Humanoid.Walkspeed = 160 end end speedBoost.Touched:connect(steppedOn)
Hi..(I havent tested this) I notice a typo..
parent.Humanoid.WalkSpeek = 160
parent.Humanoid.WalkSpeed = 160 -- it needs to be WalkSpeed
Hope this helped let me know if it did besides that your script should work but remember lua is very case sensitive:)
oko ok ok so I shall b da fixr of all scropts111!!1
local speedBoost = script.Parent local function SteppedOn (part) local parent = part.Parent if game.Players: GetPlayerFromCharacter(parent) then parent.Humanoid.WalkSpeed = 160 -- error is har wait (200) parent.Humanoid.WalkSpeed = 160 --and har end end speedBoost.Touched:connect(steppedOn)
u c, u spell it as speek first den forgot the captial S on the other line