Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I get the text to tween correctly?

Asked by
zadobyte 692 Moderation Voter
4 years 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 4 years ago
Edited 4 years 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. zadobyte 692 — 4y
0
you understand me wrong check new answer Gameplayer365247v2 1055 — 4y
0
I did, that didn't work. zadobyte 692 — 4y
1
for PartProperties add a " ; " after the first 2 line XxPatriotFinitexX 1 — 4y
0
forgot about that Gameplayer365247v2 1055 — 4y
Ad

Answer this question