TintinDevs
(TintinDevs)
#1
An example:
local myVar = script.Parent
myVar.Changed:Connect(myFunc)
-- If myVar was to be changed, will the event change as well? (to the new 'myVar.Changed'
I am asking this question because my script isn’t running properly: (gem animation script)
for i=1, localGem1.Value - savedValue do
local newGem = script.Parent.Parent.MovingGem:Clone()
myTween = tS:Create(newGem, myInfo, myEnding)
myTween:Play()
myTween.Completed:Connect(function()
newGem:Destroy()
end)
wait(0.1)
end
2 Likes
That would depend on if the instance is being removed or not.
2 Likes
TintinDevs
(TintinDevs)
#3
I don’t really understand what you mean by that, can you explain?
Are you destroying the instance that is connected to your variable or what are you doing with it?
TintinDevs
(TintinDevs)
#5
I’m asking if I change the variable into a new instance, will the event change?
No, you will have to connect the event again.