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

Do you have to make a :connect() after every function?

Asked by
Moosee 62
8 years ago

I would like to know if it would be needed for this too.

part = Instance.new("Part")

function PartResize()
   while true do
   part.Size = Vector3.new(5,5,5)
   wait(0.2)
   part.Size = Vector3.new(10,10,10)
   wait(0.2)
   end
end

1 answer

Log in to vote
1
Answered by 8 years ago

Yes it would be needed for this, for this you just need to call it.

You just need to add PartResize() after the function.

Full script:

part = Instance.new("Part")

function PartResize()
   while true do
       part.Size = Vector3.new(5,5,5)
       wait(0.2)
       part.Size = Vector3.new(10,10,10)
       wait(0.2)
   end
end

PartResize()
0
Oooooh, thank you! I forgot I needed to call it! thank you so much! Moosee 62 — 8y
Ad

Answer this question