I am having problems with this script can anyone help? This is what it looks like with the current script- i.imgur.com/BClDcEN.jpg
local PlayerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
PlayerGui:SetTopbarTransparency(0)
local screen = Instance.new("ScreenGui")
screen.Parent = PlayerGui
local textLabel = Instance.new("TextLabel")
textLabel.Parent = screen
textLabel.Text = "Welcome to the City of bloxbury"
textLabel.Size = UDim2.new(1,0,1,0)
textLabel.FontSize = Enum.FontSize.Size14
textLabel.Font = Enum.Font.SourceSansLight
local sound = Instance.new("Sound", PlayerGui)
sound.SoundId = "http://www.roblox.com/asset/?id=334321597"
sound:play(120)
game.ReplicatedFirst:RemoveDefaultLoadingScreen()
sound.Ended:connect(function()
screen:destroy()
end)
local count = 0
local start = tick ()
while tick(60)- start < 6 do
textLabel.Text = "Welcome to the City of bloxbury"
textLabel.Size = UDim2.new(1,0,0.25,0)
textLabel.FontSize = Enum.FontSize.Size48
textLabel.Font = Enum.Font.SourceSansLight
textLabel.Position = UDim2.new(0.0,0.5,0.0)
textLabel.TextColor3 = Color3.new(255,255,255)
end
Now I will add things like and, and then another function that I want to be done at the same time as the previous one. Also with the previous script, it would play music and then when the music was over the gui would be destroyed. Well now that I add an image and combine functions this is what is looks like-
http://i.imgur.com/zgc9ebi.png
and for reference, here is the newer script-
local PlayerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
PlayerGui:SetTopbarTransparency(0)
local screen = Instance.new("ScreenGui")
screen.Parent = PlayerGui
local textLabel = Instance.new("TextLabel")
textLabel.Parent = screen
textLabel.Text = "Welcome to the City of bloxbury"
textLabel.Size = UDim2.new(1,0,1,0)
textLabel.FontSize = Enum.FontSize.Size14
textLabel.Font = Enum.Font.SourceSansLight
local imageLabel = Instance.new("imageLabel")
imageLabel.Parent = screen
imageLabel.Size = UDim2.new(1,0,1,0)
imageLabel.Image = "http://www.roblox.com/asset?id=365763889"
local sound = Instance.new("Sound", PlayerGui)
sound.SoundId = "http://www.roblox.com/asset/?id=334321597"
sound:play(120)
game.ReplicatedFirst:RemoveDefaultLoadingScreen()
sound.Ended:connect(function()
screen:destroy()
end)
local count = 0
local start = tick ()
while tick(60)- start < 6 do
textLabel.Text = "Welcome to the City of bloxbury"
textLabel.Size = UDim2.new(1,0,0.25,0)
textLabel.FontSize = Enum.FontSize.Size48
textLabel.Font = Enum.Font.SourceSansLight
textLabel.Position = UDim2.new(0.0,0.5,0.0)
textLabel.TextColor3 = Color3.new(255,255,255)
and
imageLabel.Size UDim2.new(1,0,1,0)
imageLabel.Image = "http://www.roblox.com/asset/?id=365763889"
end
I applied changes in lines 14-17 and 38-40.
Thank you guys for the help.

1 comment
I got the same results as the script with
andon line 38