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

Make text label in BillbroadGui move up down?

Asked by 4 years ago

I want make a text label in BillbroadGui can move up and down slowly in a small distance. Just like a hologram to increase realistic of it.

0
Just like in screen gui. LinavolicaDev 570 — 4y
0
Like, shifting position up and down by a few pixels to make it appear as though it's floating and trying to keep itself up but adjusts too much and drops back down? MrLonely1221 701 — 4y
0
yes , plz help me shime1122 6 — 4y

1 answer

Log in to vote
0
Answered by
DrShockz 233 Moderation Voter
4 years ago

You could use some loops for example!

local text = script.Parent

while true do  -- loops the up and down movement
    for i = 1,30 do
        text.Positon = text.Position + Vector2.new(0,0.3)-- text goes up smoothly by 3
        wait()
    end
    wait(1) -- waits 1 second
    for i = 1,30 do
        text.Positon = text.Position - Vector2.new(0,0.3)-- text goes down again smoothly by 3
        wait()
    end
    wait(1) -- waits another second before repeating
end

`

0
I put it in a script and it not work :( shime1122 6 — 4y
0
Here the error: Workspace.PlayerCounting.BillboardGui.TextLabel.Script:5: bad argument #2 to '?' (UDim2 expected, got Vector2) shime1122 6 — 4y
Ad

Answer this question