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

Another ScreenGui Problem ._. Help with this local script for a Gui? (SOLVED)

Asked by 8 years ago

Thank you for viewing my question, I'll get to the point; I have a ScreenGui in StarterGui That plays a sequence of words on a TextLabel. The first sequence of code works fine, I get no error in the Output, but then, whenever I try to change the text, it just won't do. Here's the code;

local TL = Instance.new('TextLable')
TL.Parent = game.StarterGui.ScreenGui

TL.BackgroundColor3 = Color3.new()
TL.TextColor3 = Color3.new(197/255)
TL.Transparency = 0
TL.TextScaled = true
TL.Font = 'Legacy'
TL.FontSize = 'Size12'
TL.Position = UDim2.new(0,0,0,0)
TL.Size = UDim2.new(1,0,1,0)
TL.Text = 'Dark Realm Games Presents To You '..game.Players.LocalPlayer.Name..'...'
wait(3)
TL.Text = 'A Game Brought To You By Our Hardworking Developers...'
wait(3)
TL.Text = 'The Course...'
wait(3)
script.Parent.ScreenGui:Destroy()

I have no idea why it won't change, because the script.Parent.ScreenGui:Destory()works just fine. Can you help me? Thanks!

1
Line 01 should be `TextLabel` woodengop 1134 — 8y

1 answer

Log in to vote
1
Answered by
NotSoNorm 777 Moderation Voter
8 years ago

You are changing the replication, not the actual playergui

Ad

Answer this question