im getting a unable to cast to dictionary even though everything is correct. its just one line that is messing it up and i dont know why (last tweenService line is messing it up)
local info = TweenInfo.new(
0.5,
Enum.EasingStyle.Circular,
Enum.EasingDirection.Out,
0,
false,
0
)
local goal = {
TextSize = 56
}
local leave = {
TextSize = 46
}
local enter = game:GetService("TweenService"):Create(script.Parent.MissionName, info, goal)
local leave = game:GetService("TweenService"):Create(script.Parent.MissionName, info, leave)
local enterShadow = game:GetService("TweenService"):Create(script.Parent.MissionName.Shadow, info, goal)
local leaveShadow = game:GetService("TweenService"):Create(script.Parent.MissionName.Shadow, info, leave) THIS IS THE LINE THAT IS SAYING UNABLE TO CAST TO DICTIONARY
script.Parent.MouseEnter:Connect(function()
enter:Play()
enterShadow:Play()
end)
script.Parent.MouseLeave:Connect(function()
leave:Play()
leaveShadow:Play()
end)
i solved it. i just moved the line to the top and that fixed it.