How to make this kind of text

so I made this in roblox studio using 2 textlabels one is positioned below the other with a lower zindex

but I feel this way of making this effect is inefficient and does not work that well either

is there any other way of making this look better and also more efficient to make?
I have seen it many games like pet simulator jailbreak, etc

I always wanted to know how I could make these kind of texts

I also saw this kind of effect in Bloxburg but its on buttons and etc

1 Like

Well, you could probably use an ImageLabel or ImageButton, so long as the image has a transparent background and the shadow effect you’re looking at.
I don’t know what Bloxburg and Jailbreak use, unfortunately.

You could do this by placing one text label inside the other, setting its size to (1,0,1,0) and position to (0.5,0,0.5,0) and its anchorpoint to (0.5,0.5)

This effectively clones the parent textlabels size, etc. I’d put this all in a separate frame just to use as a bounding box for other elements.

Next, to create the effect just change the position of the child text label, use offset. Note: the parent textlabel should be colored as the “shadow” and the child will be your foreground text.

Screenshot 2024-11-12 at 2.27.27 PM

1 Like

Can you show me an example, please?

He means something like this

Sorry it’s a pretty ugly example

I make this script :

local screenGui = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
local originalText = Instance.new("TextLabel", screenGui)
local textsize = 50-- Text size
local polices = Enum.Font.SourceSansBold-- Police of the text
originalText.Size = UDim2.new(0, 200,0, 50) -- Size of the TextLabel
originalText.Position = UDim2.new(0.5, -100, 0.5, -25) -- Position of the TextLabel
originalText.Text = "Label" -- Text
originalText.TextColor3 = Color3.new(1, 1, 1)
originalText.Font = polices
originalText.BackgroundTransparency = 1
originalText.TextSize = textsize
originalText.ZIndex = 2

local shadowText = originalText:Clone()
shadowText.Parent = screenGui
shadowText.Position = originalText.Position + UDim2.new(0, 0, 0, 5)
shadowText.TextColor3 = Color3.new(0, 0, 0)
shadowText.TextSize = textsize
shadowText.Font = polices
shadowText.ZIndex = 1

Take it in a LocalScript in a screen gui in starter gui.

It looks like this :
Capture d’écran 2024-11-13 122014

1 Like