Speed editor part

local part = script.parent
part.Touched:Connect(function(hit)
	local humanoid = hit.Parent:FindFirstChild("Humanoid")
	local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
	if plr then
		humanoid.WalkSpeed = humanoid.WalkSpeed - 10
	end
end)

Please let me know whats the error. I want 10 to be subtracted from the players walk speed.

wHATS WRONG WITH THIS

emphasized text

local part = script.parent
part.Touched:Connect(function(hit)
	local humanoid = hit.Parent:FindFirstChild("Humanoid")
	local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
	if plr then
		humanoid.WalkSpeed -=10
	end

end)

Are you seeing any errors in the output, if so, could you please post it/them here?

Try spelling ‘parent’ in line 1 with a Capital letter