Whenever I try to play this TweenService I get an error saying "unable to cast to dictionary". here is the section of code -
local kickBtn = Bfolder.KickBtn
local selection
local function changeability(btn)
re:FireServer(selection)
TweenService:Create(btn.BackgroundColor,TweenInfo.new(.5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false),{Color3.new(0, 1, 1)}):Play()
end
kickBtn.Activated:Connect(function()
selection = "kick"
changeability(kickBtn)
end)
I am confused as I don't seem to be casting from a dictionary (it should reference the selected button) so any help would be great.
