#how to gradually change size of a part?

36 messages · Page 1 of 1 (latest)

late arrow
#

so i need the parts in a tool to gradually grow small by small every second but the script isn't working. How do i make it work?

#

here is the script: local tool `= script.Parent
local seconds = tool.AgePart.BillboardGui.TextLabel.Second
local everypart = tool:GetDescendants()
local size = 2.494

while true do
size += 0.1
task.wait(1)
end

seconds.Changed:Connect(function()
for i, objects in pairs(tool:GetDescendants()) do
if objects:IsA("Part") then
objects.Size = Vector3.new(size,size,size)
print("debug")
elseif objects:IsA("MeshPart") then
objects.Size = Vector3.new(1,1,1)
end
end
end)`

late arrow
#

like those games that go like 'every second you grow' or smth idk

tardy wagon
#

Ass games

#

But ye

late arrow
#

the vector3.new part

tardy wagon
late arrow
#

yeah the debug isnt showing

tardy wagon
#

Add prints right under changed

#

To see if it even works

late arrow
tardy wagon
#

So your changed ain't working

late arrow
#

yup

tardy wagon
#

Can u even use changed for that

late arrow
#

i think

tardy wagon
#

Thing.GetPropertyChangedSigmal("someproperyy"):Connect(function()

End)

late arrow
#

no

#

doesnt work

viral gullBOT
#

studio** You are now Level 2! **studio

tardy wagon
#

Show

late arrow
#

size is still the same

#

no errors in output

lone linden
#

use while loop

#

but ig u wanna grow up even the childs

#

so yeah use "for"

small birch
#

for i = start, end, step (defaulted to 1) do

late arrow
#

can you plz elaborate

small birch