How to do "flying" text effect?

I’m trying to achieve the flying text effect that Roblox Doors has when you die. Can someone please tell me how you do this?

Example:

Thanks to anyone that helps! :slight_smile:

4 Likes

This is just an animated UI with a cyan TextLabel.

What? I want to know how to animate it like that.

What you could do to make an animation for the TextLabel is tweening the TextLabel ‘Rotation’ property.

local TextLabel = -- Path find to your text

for i=10,1,-1 do  -- How many times do you want the Text Rotation property change.
local FirstRotation = game.TweenService:Create(TextLabel, TweenInfo.new(), {Rotation = 3}
FirstRotation:Play()

FirstRotation.Completed:Wait()
local SecondRotation = game.TweenService:Create(TextLabel, TweenInfo.new(), {Rotation = 0}
SecondRotation:Play()
SecondRotation.Completed:Wait()
end
1 Like

Here’s a simple recreation of the effect.

local TWS = game:GetService("TweenService")
local RNS = game:GetService("RunService")

local text: TextLabel = script.Parent
local pos: NumberValue = Instance.new("NumberValue")
pos.Value = .5
local rot: NumberValue = Instance.new("NumberValue")
rot.Value = -2

TWS:Create(pos, TweenInfo.new(5, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, -1, true, 0), {Value = .55}):Play()
TWS:Create(rot, TweenInfo.new(2.5, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, -1, true, 0), {Value = 2}):Play()

RNS.Heartbeat:Connect(function()
	text.Rotation = rot.Value
	text.Position = UDim2.new(text.Position.X.Scale, text.Position.X.Offset, pos.Value, text.Position.Y.Offset)
end)

5 Likes

But how you decide what it write? (Sorry if it’s easy to understand, I am a noob developer :slight_smile:)

1 Like

I would say making two separate scripts for the flying effect and the text changing. I know I’m not the person who you’re asking but I think this would be a good solution to your problem.

Ok but that’s not really my problem, it’s just a question like this from a noob developer lol

Oh, okay I see hehe. What’s the problem?

Ah by “It’s not my problem” I would say I’m not the creator of the topic lol

Ohhhh… Sorry I didn’t really get the comment :sweat_smile:

1 Like

I don’t understand your question…?

Where did you choose what the text print (what sentence, what words) ?

2 Likes

I didn’t, I just gave some example code as to how you would do the floating effect (slowly rotating and moving up and down).

… I’m asking where you choose what you write …

1 Like

I used a TextLabel…? I changed it’s ‘Text’ property to change the text…?

I’m guessing we have some sort of language barrier, considering how I don’t really get what you’re asking for.

I’m french, sorry if I do language misstakes :slight_smile:

Nevermind. You have to do it manually.