I was trying to make a Test game for a Gui, But it didn’t work. The script of the code would not run and there were no errors in the output.
The gui wouldn’t pop up when the game ran.
My Script:
game.Players.PlayerAdded:Connect(function(Player)
if Player.UserId == 230707182 then
wait(4)
Player.PlayerGui.DialogGui.Enabled = true
wait(2)
Player.PlayerGui.DialogGui.Text.Text = "Have a good day owner :)"
wait(3)
Player.PlayerGui.DialogGui:Destroy()
else
wait(4)
Player.PlayerGui.DialogGui.Enabled = true
wait(1)
Player.PlayerGui.DialogGui.Text.Text = "Wait..."
wait(3)
Player.PlayerGui.DialogGui.Text.Text = "You are not the owner..."
wait(3)
Player.PlayerGui.DialogGui.Text.Text = "..."
wait(3)
Player.PlayerGui.DialogGui:Destroy()
script.Boom:Play()
wait(2)
Player:Kick("Get out! Sincerly Luigi.")
end
end)