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

Why isn't my changing player size by clicking with tool not working? (simple script)

Asked by 5 years ago

Hi, I've completed my script and tested it. The output says nothing is wrong, but my script isn't working. I would like to know what's wrong with my script and learn by my mistakes, thanks!

script.Parent.Equipped:Connect(function(Mouse)
Mouse.Button1Down:Connect(function(Player)
 local Character = Player.Character
 local Humanoid = Character:FindFirstChild('Humanoid')

 if Humanoid then
     local BDS = Humanoid:FindFirstChild('BodyDepthScale')
     local BWS = Humanoid:FindFirstChild('BodyWidthScale')
     local BHS = Humanoid:FindFirstChild('BodyHeightScale')
     local H = Humanoid:FindFirstChild('HeadScale')

    if BDS and BWS then
     BDS.Value = BDS.Value + .05
     BWS.Value = BWS.Value + .05
     BHS.Value = BHS.Value + .05
     H.Value = H.Value + .05

     end
    end
end)
end)

1
Is this a local script or a server script EpicMetatableMoment 1444 — 5y
0
^? starmaq 1290 — 5y
0
. starmaq 1290 — 5y
0
is the script blue or does it have a person on it the8bitdude11 358 — 5y
0
@SinisterMemories No it is not a local script, it is just a regular script. @the8bitdude11 only the first word on the first line is blue and i dont see any person. iinaoriku 52 — 5y

Answer this question