Still have questions? Join our Discord server and get real time help.
0

# How do I get the text to tween correctly?

I have a title text that always appears at the bottom of the screen. I can't seem to bring it down any lower so I disable it, and script it to enable. Then, after that, I put in a tweening code, and all of a sudden, none of the code works at all

-- Local Values --
local parent = script.Parent
local tweenService = game:GetService("TweenService")
local tweeningInformation = TweenInfo.new(
1, -- Length
Enum.EasingStyle.Bounce,
Enum.EasingDirection.In,
1, -- # of Repeats
true,-- Should it repeat?
1 -- Tween delay

)
local partProperties = (
Size = Vector3.new(433,73,0)
Color = Color3.new(255,255,255)
Transparency = 1
)
local Tween = tweenService:Create(part,tweeningInformation,partProperties)
----------------------------------------------------------------------
-- Text Visibility --
wait(9.7)
parent.Visible = true
----------------------------------------------------------------------
Tween:Play()


This is the code I have in. Is there something wrong with the code?

0
Edited 12 days ago

partproperties have to be used with { and } instead of ( and ) this is how i mean it should look like

-- Local Values --
local parent = script.Parent
local tweenService = game:GetService("TweenService")
local tweeningInformation = TweenInfo.new(
1, -- Length
Enum.EasingStyle.Bounce,
Enum.EasingDirection.In,
1, -- # of Repeats
true,-- Should it repeat?
1 -- Tween delay

)
local partProperties = {
Size = Vector3.new(433,73,0);
Color = Color3.new(255,255,255);
Transparency = 1
}
local Tween = tweenService:Create(part,tweeningInformation,partProperties)
----------------------------------------------------------------------
-- Text Visibility --
wait(9.7)
parent.Visible = true
----------------------------------------------------------------------
Tween:Play()

0
Didn't fix it, it's saying that I need a }/) before Color, but that isn't what I want to do. iiMegabyteGaming 2 — 13d
0
you understand me wrong check new answer Gameplayer365247v2 449 — 13d
0
I did, that didn't work. iiMegabyteGaming 2 — 12d
1
for PartProperties add a " ; " after the first 2 line XxPatriotFinitexX 1 — 12d
0
forgot about that Gameplayer365247v2 449 — 12d