I clicked on the UI and the textlabel shows up but the problem is that it doesn’t tween.
Show me the script again. Is it the same script or different?
Alright, here you go @GoodUsername777
local TweenService = game:GetService("TweenService")
local PlayerService = game:GetService('Players')
local Player = PlayerService.LocalPlayer
local PlayerGui = Player:WaitForChild('PlayerGui')
local ScreenGui = PlayerGui:WaitForChild('ScreenGui')
local TextButton = script.Parent.TextButton
local TextLabel = script.Parent.TextButton.TextLabel
ScreenGui.TextButton.MouseButton1Click:Connect(function()
TextLabel.BackgroundTransparency = 0
TextLabel.TextTransparency = 0
TextButton.BackgroundTransparency = 1
TextButton.TextTransparency = 1
local info = TweenInfo.new(15, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
local properties = {
['Position'] = UDim2.new(-0.4, 0,-3.42, 0)
}
local InfoPlay = TweenService:Create(TextLabel, info, properties)
InfoPlay:Play()
end)
That is because you made the text label transparent. What exactly are you trying to do now?
the textlabel was transparency before then after when someone click on the textbutton then the textlabel will become visible again.
First of all, try a different search engine.
Second, TweenService is mostly used for tweening parts.
Use
TextLabel:TweenPosition()
wait((tween time))
More info for Tweening Gui objects can be found here: GuiObject | Roblox Creator Documentation