Hi, I’m having trouble with UIStroke. The stroke gets bigger as a player zooms out and I’m wondering if anyone has a quick fix for this.
Try this!
I’ve tried changing the size of the stroke to a fixed number and that works, but then the stroke is always the same size and doesn’t follow the screen.
local Gui = script.Parent
local Frame = Gui.Frame
local Stroke = Gui.Stroke
local Text = Gui.Text
– Fade in
game:GetService(“TweenService”):Create(Frame, TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Transparency = 0.99}):Play()
wait(1)
Frame.Transparency = 1
Text.TextTransparency = 1
– Fade out
game:GetService(“TweenService”):Create(Frame, TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Transparency = 0.1}):Play()
wait(1)
Frame.Transparency = 0.1
Text.TextTransparency = 0.1
You can make the stroke follow the frame by changing the parent of the stroke to be the same as the frame.
local Frame = Gui.Frame
local Stroke = Gui.Stroke
Stroke.Parent = Frame