I’ve been trying to tween the TextSize of a TextButton, but there’s just an error appearing which I can’t find a fix for. Help would be appreciated.
local TweenService = game:GetService("TweenService")
local play = script.Parent.playbutton
local playinfo = TweenInfo.new(3, Enum.EasingStyle.Quint, Enum.EasingDirection.Out)
local playhover2 = TweenService:Create(play, playinfo, {TextSize = 49})
playhover2:Play()
What’s the exact error?
[Need this many characters for some reason]
Says it in the title, but here again: “attempt to call a table value”
at the playhover2 line
ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ
Have you created a variable from “play”?
yeah its the textbutton
ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ
I can’t find any error in your code, try this:
local TweenService = game:GetService("TweenService")
local playinfo = TweenInfo.new(3, Enum.EasingStyle.Quint, Enum.EasingDirection.Out)
local play = script.Parent -- TextButton Variable
local playhover2 = TweenService:Create(play, playinfo, {TextSize = 49})
playhover2:Play()
You might put the TextButton variable above the TweenService
Try this, this is the last code I will give, if it still fails I can’t help you anymore:
local TweenService = game:GetService("TweenService")
local play = script.Parent
local playinfo = TweenInfo.new(3, Enum.EasingStyle.Quint, Enum.EasingDirection.Out)
local playarray = {TextSize = 49}
local playhover2 = TweenService:Create(play, playinfo, playarray)
playhover2:Play()
welp doesnt work either
ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ