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

How do I make a block that makes you smaller, then makes you big again?

Asked by 3 years ago
Edited 3 years ago

I am having trouble scripting for a game, It's about blocks that give you affects, that ware off after 10 seconds. This is the script I am using:

Script.Parent.Touched:Connect(function(hit) If hit.Parent:FindFirstChild(“Humanoid”) then game.Workspace[hit.Parent.Name].Humanoid.BodyHeightScale.Value = 0.5 end)

I do not get what is wrong, I just cant find the script that lowers the time to 10 seconds. Any help?

Thanks

0
Btw I am new to scripting lol D1amondySword 0 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

I've never made something like this. But I am assuming you will have to do stuff with the humanoid root part

Heres a script that might help;

script.Parent.Touched:Connect(function(hit) if game.Players:GetPlayerFromCharacter(hit.Parent) then hit.Parent.Torso.Scale (number, number, number) hit.Parent.RightLeg.Scale (number, number, number) hit.Parent.LeftLeg.Scale (number, number, number) hit.Parent.RightArm.Scale (number, number, number) hit.Parent.LeftArm.Scale (number, number, number) hit.Parent.Head.Scale (number, number, number) end end)

(this is an r6 script)

you may have to edit it to get it how you like.

Hope it helped!

0
also you may have to space out the scripts cause scripting helpers likes to be a pain in the butt sometimes lol fishboy141516 12 — 3y
Ad

Answer this question