Advertisement
kleber1234

Magic Carpet And Deletor - Any Game

Jun 3rd, 2019
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. game:GetService("StarterGui"):SetCore("SendNotification",{
  2. Title = "Click Delete",
  3. Text = "Press > E < And Click To Delete",
  4. Duration = 15,
  5. })
  6. local Plr = game:GetService("Players").LocalPlayer
  7. local Mouse = Plr:GetMouse()
  8.  
  9. Mouse.Button1Down:connect(function()
  10. if not game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.E) then return end
  11. if not Mouse.Target then return end
  12. Mouse.Target:Destroy()
  13. end)
  14. game:GetService("StarterGui"):SetCore("SendNotification",{
  15. Title = "Magic Carpet",
  16. Text = "Press > F < To Active",
  17. Duration = 15,
  18. })
  19. function onKeyPress(actionName, userInputState, inputObject)
  20. if userInputState == Enum.UserInputState.Begin then
  21. function Fly()
  22. local part = Instance.new("Part", workspace)
  23. part.Anchored = true
  24. part.Size = Vector3.new(10,0.1,10)
  25. part.Material = Mat
  26. part.BrickColor = BrickColor.Random()
  27. part.Transparency = T
  28. part.Position = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(0,Y,0)
  29. wait(Time)
  30. part.Destroy(part)
  31. end
  32. local ScreenGui = Instance.new("ScreenGui")
  33. local OPEN = Instance.new("TextButton")
  34. ScreenGui.Parent = game.CoreGui
  35. OPEN.Name = "OPEN"
  36. OPEN.Parent = ScreenGui
  37. OPEN.BackgroundColor3 = Color3.new(0.141176, 1, 0.0470588)
  38. OPEN.BorderSizePixel = 0
  39. OPEN.Position = UDim2.new(0.876482189, 0, 0.553699315, 0)
  40. OPEN.Size = UDim2.new(0, 125, 0, 35)
  41. OPEN.Font = Enum.Font.SourceSans
  42. OPEN.Text = "Turn OFF"
  43. OPEN.TextColor3 = Color3.new(1, 0, 0)
  44. OPEN.TextScaled = true
  45. OPEN.TextSize = 14
  46. OPEN.TextWrapped = true
  47. OPEN.MouseButton1Down:Connect(function()
  48. OPEN.Text = "Turning OFF"
  49. wait(0.3)
  50. OPEN.Destroy(OPEN)
  51. end)
  52. while true do
  53. wait()
  54. if OPEN.Text == "Turn OFF" then
  55. Fly()
  56. end
  57. end
  58. end
  59. end
  60.  
  61. game.ContextActionService:BindAction("keyPress", onKeyPress, false, Enum.KeyCode.F)
  62.  
  63. --Config:
  64. --Time Until The Next Carpet:
  65. Time = 0.1
  66. --Magic Carpet Higher:
  67. Y = -3.15
  68. --Magic Carpet Transparency(0-1):
  69. T = 0.7
  70. --Magic Carpet Material:
  71. Mat = "Glass"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement