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

TextLabel Spawns Randomly at the Bottom of the Screen?

Asked by
Omzure 94
5 years ago
Edited 5 years ago

So I've been searching for an answer for a while now, and i can't find anything that'll help me. So i decided to come here...

What im saying is, im most simulators, when you use the tool, it will spawn a textlabel randomly at the bottom of the screen and move up to the top / middle quadrant of the screen. I've had trouble making it myself and i had no luck whatsoever in my mission to find a script that accomplishes my goals...

pls help me.....

2 answers

Log in to vote
0
Answered by 5 years ago

Open the explorer which can be found in the view tab open starter gui, click the gui you want to move and you can drag it anywhere on the screen.

0
im talking about when you activate a tool, a textlabel will spawn at the bottom of the screen and will move up. Indicating how much gold or strength you got Omzure 94 — 5y
0
oh lol I only read the title NotFrindow 346 — 5y
Ad
Log in to vote
0
Answered by 5 years ago

What your going to have to do first is set the text labels position on the X axis to a random amount. After that your going to use tweenservice or tweenposition to smoothly tween the text label up the screen at the same X. Once everything is done you just have to destroy the text label and it should look fresh.

local TweenService = game:GetService('TweenService')

local function AppearTextLabel()
    local XPos = math.random()
    local TextLabel = Instance.new('TextLabel') -- Define your text label
    TextLabel.Position = UDim2.new(XPos, 0, 1, 0)
    TextLabel.Parent = ScreenGui -- Define ScreenGui
    local Glide = TweenService:Create(TextLabel, TweeInfo.new(5), {Position = UDim2.new(XPos, 0, -0.25, 0)})
    Glide:Play()
    Glide.Completed:Wait()
    TextLabel:Destroy()
end

Answer this question