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

I want to make a PowerUp part but my script does not work. Why?

Asked by 5 years ago

This Script is Supposted to make my part give me (Or other player) powers. But when i run through it, i stay the normal speed and jump height.

01--Variables
02local PowerUp = script.Parent
03local SpeedUp = PowerUp.SpeedUpAmount.Value
04local JumpPower = PowerUp.JumpPowerAmount.Value
05local Duration = PowerUp.Duration.Value
06local CanTouch = true
07 
08--Function script:
09local function GivePowers(part)
10    local hum = part.Parent:FindFirstChild("Humaniod")
11    if hum and CanTouch then
12        CanTouch = false
13        local OriginalWalkSpeed = hum.WalkSpeed
14        local OriginalJumpPower = hum.JumpPower
15        hum.WalkSpeed = SpeedUp
View all 26 lines...
0
Does it print out any errors? Sonnenroboter 336 — 5y
0
humaniod RegisteredCode 5 — 5y
0
u spelled humanoid wrong DEVLogos 8 — 5y
0
Thanks so much! Bssiemeow 30 — 5y

Answer this question