Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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?

1 answer

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()

5 comments

0

Didn't fix it, it's saying that I need a }/) before Color, but that isn't what I want to do.

0

you understand me wrong check new answer

0

I did, that didn't work.

1

for PartProperties add a " ; " after the first 2 line

0

forgot about that

This discussion is preserved as it was. New answers, comments, and votes are closed.