New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

How do I get the text to tween correctly?

Asked by 3 months ago

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?

1 answer

Log in to vote
0
Answered by 3 months ago
Edited 3 months 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 — 3mo
0
you understand me wrong check new answer Gameplayer365247v2 729 — 3mo
0
I did, that didn't work. iiMegabyteGaming 2 — 3mo
1
for PartProperties add a " ; " after the first 2 line XxPatriotFinitexX 1 — 3mo
0
forgot about that Gameplayer365247v2 729 — 3mo
Ad

Answer this question