Code yields strange error, completely lost

So it might seem simple but it says image

local arsgeg=false
while wait() do
	if arsgeg==false then
		arsgeg=true
		game:GetService("TweenService"):Create(script.Parent.chisinau,TweenInfo.new(2,Enum.EasingStyle.Quint),{script.Parent.chisinau.ImageTransparency=.8})
	else
		arsgeg=false
		game:GetService("TweenService"):Create(script.Parent.chisinau,TweenInfo.new(2,Enum.EasingStyle.Quint),{script.Parent.chisinau.ImageTransparency=0})
	end
	wait(3)
end

This is the script
image
I tried everything but nothing works! I am completely baffled!

Not quite how you use tween Service. The last argument it takes in a property name to tween. So you would switch it out to this.

game:GetService("TweenService"):Create(script.Parent.chisinau,TweenInfo.new(2,Enum.EasingStyle.Quint),{ImageTransparency = .8})

And don’t forget to actually play the tween as thats needed.

2 Likes

Silly me, such a simple fix yet my eye couldn’t figure it out. Thanks for helping