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

I'm making a speed simulator and I don't know how to make pets increase the rate speed is gained?

Here's my script

local char = script.Parent.Parent
 local hum = char:FindFirstChild("Humanoid")
 local pet = script.Parent
 local maxFloat = 0.5
 local floatInc = 0.025
 local sw = false
 local fl = 0
 local head = char:FindFirstChild("Head")


--I don't know what to write here to increase the rate it's gained--






------------------------------

2 comments

0

Your "script" is simply variables. Are you expecting us to give you a way to move the pet?

0

no im trying to get the players speed to increase in rate that it is gained

1 answer

✓ Accepted answer

Hmm maybe

	local char = script.Parent.Parent
	 local hum = char:FindFirstChild("Humanoid")
	 local pet = script.Parent
	 local maxFloat = 0.5
	 local floatInc = 0.025
	 local sw = false
	 local fl = 0
	 local head = char:FindFirstChild("Head")
         local Humanoid = char:FindFirstChild("Humanoid") --I didn't know if char is the Player or the pet so....

Humanoid.Walkspeed = Humanoid.Walkspeeed +5 --Depends On the Rarity of the Pet

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