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

Script not working...help?

This is a speed pickup. Basically, it changes your maximum walkspeed by 34, but, it doesn't do anything. It just continues to float. Any ideas?

print'Script - Working'
local Pack = script.Parent
Pack.Handle.BodyPosition.position = Pack.Handle.Position
Pack.Handle.Anchored = false
Took = false
script.Parent.Handle.Touched:connect(function(hit)
	if hit.Parent then
		local Patient = hit.Parent:findFirstChild("Humanoid")
		if Patient then
			if Patient.Walkspeed then
				if not Took then
					Took = true
					Patient.Walkspeed = Patient.Walkspeed + 34
					Pack.Parent = nil
					wait(15)
					Pack.Parent = Workspace
					wait(1)
					Took = false
				end
			end
		end
	end
end)

2 comments

0

Are you asking for the Handle to disappear when someone "takes" it? That isn't in this code, it only modified the WalkSpeed.

0

Yes. When someone takes it, I'd like it to disappear. But, for it to return 60 seconds (or a minute) later.

1 answer

Capitalize the 'S' in the two WalkSpeeds on line 13 of that code.

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