Advertisement
Meliodas0_0

Mad City Cargo Plane Notification

Sep 21st, 2019
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local Frame = Instance.new("Frame")
  3. local TextLabel = Instance.new("TextLabel")
  4. local Close = Instance.new("TextButton")
  5. local Teleport = Instance.new("TextButton")
  6.  
  7. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  8. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  9. ScreenGui.Enabled = false
  10.  
  11. Frame.Parent = ScreenGui
  12. Frame.BackgroundColor3 = Color3.new(0.223529, 0.223529, 0.223529)
  13. Frame.Position = UDim2.new(0.400000006, 0, 0.389929742, 0)
  14. Frame.Size = UDim2.new(0, 250, 0, 187)
  15.  
  16. TextLabel.Parent = Frame
  17. TextLabel.BackgroundColor3 = Color3.new(0.172549, 0.172549, 0.172549)
  18. TextLabel.Size = UDim2.new(0, 250, 0, 50)
  19. TextLabel.Font = Enum.Font.SourceSansSemibold
  20. TextLabel.Text = "Plane has arrived"
  21. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  22. TextLabel.TextSize = 30
  23.  
  24. Close.Name = "Close"
  25. Close.Parent = Frame
  26. Close.BackgroundColor3 = Color3.new(0.172549, 0.172549, 0.172549)
  27. Close.Position = UDim2.new(0.100000009, 0, 0.668235302, 0)
  28. Close.Size = UDim2.new(0, 200, 0, 50)
  29. Close.Font = Enum.Font.SourceSans
  30. Close.Text = "Close"
  31. Close.TextColor3 = Color3.new(1, 1, 1)
  32. Close.TextSize = 20
  33.  
  34. Teleport.Name = "Teleport"
  35. Teleport.Parent = Frame
  36. Teleport.BackgroundColor3 = Color3.new(0.172549, 0.172549, 0.172549)
  37. Teleport.Position = UDim2.new(0.100000001, 0, 0.362036705, 0)
  38. Teleport.Size = UDim2.new(0, 200, 0, 50)
  39. Teleport.Font = Enum.Font.SourceSansSemibold
  40. Teleport.Text = "Teleport"
  41. Teleport.TextColor3 = Color3.new(1, 1, 1)
  42. Teleport.TextSize = 20
  43. -- Scripts:
  44. function SCRIPT_UKCP85_FAKESCRIPT() -- Close.Close
  45. local script = Instance.new('LocalScript')
  46. script.Parent = Close
  47. script.Parent.MouseButton1Click:Connect(function()
  48. script.Parent.Parent.Parent.Enabled = false
  49. end)
  50.  
  51. end
  52. coroutine.resume(coroutine.create(SCRIPT_UKCP85_FAKESCRIPT))
  53. function SCRIPT_MWOT65_FAKESCRIPT() -- Teleport.Teleport
  54. local script = Instance.new('LocalScript')
  55. script.Parent = Teleport
  56. script.Parent.MouseButton1Click:Connect(function()
  57. CargoPlanePos = game.Workspace.CargoPlane.Plane.Tele1.CFrame
  58. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.CargoPlane.Plane.Tele1.CFrame
  59. end)
  60.  
  61. end
  62. coroutine.resume(coroutine.create(SCRIPT_MWOT65_FAKESCRIPT))
  63.  
  64. while wait(1) do
  65. Plane = game.Workspace.CargoPlane:FindFirstChild("Plane")
  66. if Plane then
  67. ScreenGui.Enabled = true
  68. while Plane do
  69. Plane = game.Workspace.CargoPlane:FindFirstChild("Plane")
  70. wait(1)
  71. end
  72. end
  73. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement