hello again! i made a pizza with a click detector when you click it its supposed to show a gui but it dosent show anything and all i see in the output is the print messages
script:
script.Parent.ClickDetector.MouseClick:Connect(function()
script.Parent.Parent.SoundEmmiter.YumYum:Play()
print("Somebody ate Altera's pizza!")
wait(3)
print("NOW THEY WILL PAY FOR IT")
game.StarterGui.PizzaGui.Enabled = true
wait(1)
game.StarterGui.PizzaGui.PizzaMessage.Text = "Mhmm.. This pizza tastes good!"
wait(4)
game.StarterGui.PizzaGui.PizzaMessage.Text = "Uhm.. why do i hear boss music?"
game.StarterGui.PizzaGui.Enabled = false
wait(4)
game.StarterGui.DiedScreen.Enabled = true
game.StarterGui.DiedScreen.Front.DeadMessage.Text = "YOU DIED"
wait(3)
game.StarterGui.DiedScreen.Front.DeadMessage.Text = "you should have not ate that pizza.."
end)
btw im a beginner scripter :D

1 comment
Use playergui. Here's the link [https://developer.roblox.com/en-us/api-reference/class/PlayerGui ]