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

Need help with this script!?

Asked by
sad_eyez 162
8 years ago

I'm trying to make a textlabel show up saying the name of the song, and everthing else works but the textlabel doesn't show up, if anyone can help me with this that would be great!

game.Players.PlayerAdded:connect(function() local m = Instance.new("Sound", game.Workspace) local sg = Instance.new("ScreenGui", game.StarterGui) sg.Name = "Song" local tl = Instance.new("TextLabel", game.StarterGui.Song) tl.Name = "Song" wait (2) tl.BackgroundTransparency = 0.35 tl.BackgroundColor3 = Color3.new(0,0,0) tl.BorderSizePixel = 3 tl.BorderColor3 = Color3.new(130,203,255) tl.TextColor3 = Color3.new(1,1,1) tl.Font = "SourceSans" tl.FontSize = "Size18" tl.Size = UDim2.new(1, 0, 0, 25) tl.Position = UDim2.new(0, 1, 0, 300) tl.Visible = false

while true do
wait (1)
m.Volume = 2
m.SoundId = "rbxassetid://255355162"
m:Play()
tl.Text = "AmaLee - Innocence"
tl.Visible = true
wait (2)
tl.Visible = false
wait (118)
m:Stop()
end

end)

Answer this question