I am currently making a game with a doorbell. When the doorbell rings a message will pop up on the bottom saying 'Seems like no one is home'. I tested the game out and clicked the bell, but the message wont work
Help!
script.Parent.ClickDetector.MouseClick:Connect(function(player) wait(2) local screengui= Instance.new'ScreenGui' screengui.Name = 'NobGui' screengui.Parent = player.PlayerGui local textlabel = Instance.new'TextLabel' textlabel.Text = 'Seems like no one is home.' textlabel.Font = 'Fantasy' textlabel.TextSize = 34 textlabel.BackgroundTransparency = 1 textlabel.TextColor3 = Color3.fromRGB(231,231,231) textlabel.Size = UDim2.new{0, 440},{0, 92} textlabel.Position = UDim2.new{0.277, 0},{0.742, 0} textlabel.Parent = screengui game:GetService'Debris':AddItem(screengui,5)--removes the ScreenGui after 5 seconds end)

3 comments
What does the output say?
Nothing
Accept my answer