speedBlock = script.Parent function PickUpSpeed(touchedObject) print("My speed increased!") print(touchedObject) if touchedObject and touchedObject.Parent:FindFirstChild("Humanoid") then local humanoid = touchedObject.Parent.Humanoid humanoid.WalkSpeed = 40 wait(10) humanoid.WalkSpeed = 16 end end speedBlock.Touched:Connect(PickUpSpeed)
speedBlock = script.Parent
function PickUpSpeed(touchedObject)
print("My speed increased!")
print(touchedObject)
if touchedObject and touchedObject.Parent:FindFirstChild("Humanoid") then
local humanoid = touchedObject.Parent.Humanoid
humanoid.WalkSpeed = 40
wait(10)
humanoid.WalkSpeed = 16
end
end
speedBlock.Touched:Connect(PickUpSpeed)