Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to fix speed script?

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)

1 comment

0

remove lines 5 and 6

2 answers

✓ Accepted answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.