Weird tweening error

So, i was making a tween for a gui, and suddenly the tween started to give some errors in the output, this isnt the first time that this happens bc in first time i didnt want to post here but now its kind of necessary

Error
Attempt to call a tweeninfo value

Script

local icon = script.Parent
local tweenservice = game:GetService("TweenService")

local in1 = tweenservice:Create(icon.UIScale, TweenInfo.new(1, Enum.EasingStyle.Quart, Enum.EasingDirection.Out) {Scale = 1.2})
local out = tweenservice:Create(icon.UIScale, TweenInfo.new(1, Enum.EasingStyle.Quart, Enum.EasingDirection.Out) {Scale = 1})
icon.MouseEnter:Connect(function()
	in1:Play()
end)
icon.MouseLeave:Connect(function()
	out:PLay()
end)
local icon = script.Parent
local tweenservice = game:GetService("TweenService")

local in1 = tweenservice:Create(icon.UIScale, TweenInfo.new(1, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Scale = 1.2})
local out = tweenservice:Create(icon.UIScale, TweenInfo.new(1, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Scale = 1})
icon.MouseEnter:Connect(function()
	in1:Play()
end)
icon.MouseLeave:Connect(function()
	out:Play()
end)

Pretty sure you were just forgetting two commas at the end.

2 Likes

And this big L in the second :PLay()

1 Like