Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago
Edited 5 years ago

Here's my script

01local char = script.Parent.Parent
02 local hum = char:FindFirstChild("Humanoid")
03 local pet = script.Parent
04 local maxFloat = 0.5
05 local floatInc = 0.025
06 local sw = false
07 local fl = 0
08 local head = char:FindFirstChild("Head")
09 
10 
11--I don't know what to write here to increase the rate it's gained--
12 
13 
14 
15 
16 
17 
18------------------------------
0
Your "script" is simply variables. Are you expecting us to give you a way to move the pet? alphawolvess 1784 — 5y
0
no im trying to get the players speed to increase in rate that it is gained AlphaFlame5 -1 — 5y

Closed as Too Broad by alphawolvess, namespace25, and DeceptiveCaster

This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
Markdrg 15
5 years ago

Hmm maybe

01    local char = script.Parent.Parent
02     local hum = char:FindFirstChild("Humanoid")
03     local pet = script.Parent
04     local maxFloat = 0.5
05     local floatInc = 0.025
06     local sw = false
07     local fl = 0
08     local head = char:FindFirstChild("Head")
09         local Humanoid = char:FindFirstChild("Humanoid") --I didn't know if char is the Player or the pet so....
10 
11Humanoid.Walkspeed = Humanoid.Walkspeeed +5 --Depends On the Rarity of the Pet
Ad