Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game:GetService("StarterGui"):SetCore("SendNotification",{
- Title = "Click Delete",
- Text = "Press > E < And Click To Delete",
- Duration = 15,
- })
- local Plr = game:GetService("Players").LocalPlayer
- local Mouse = Plr:GetMouse()
- Mouse.Button1Down:connect(function()
- if not game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.E) then return end
- if not Mouse.Target then return end
- Mouse.Target:Destroy()
- end)
- game:GetService("StarterGui"):SetCore("SendNotification",{
- Title = "Magic Carpet",
- Text = "Press > F < To Active",
- Duration = 15,
- })
- function onKeyPress(actionName, userInputState, inputObject)
- if userInputState == Enum.UserInputState.Begin then
- function Fly()
- local part = Instance.new("Part", workspace)
- part.Anchored = true
- part.Size = Vector3.new(10,0.1,10)
- part.Material = Mat
- part.BrickColor = BrickColor.Random()
- part.Transparency = T
- part.Position = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(0,Y,0)
- wait(Time)
- part.Destroy(part)
- end
- local ScreenGui = Instance.new("ScreenGui")
- local OPEN = Instance.new("TextButton")
- ScreenGui.Parent = game.CoreGui
- OPEN.Name = "OPEN"
- OPEN.Parent = ScreenGui
- OPEN.BackgroundColor3 = Color3.new(0.141176, 1, 0.0470588)
- OPEN.BorderSizePixel = 0
- OPEN.Position = UDim2.new(0.876482189, 0, 0.553699315, 0)
- OPEN.Size = UDim2.new(0, 125, 0, 35)
- OPEN.Font = Enum.Font.SourceSans
- OPEN.Text = "Turn OFF"
- OPEN.TextColor3 = Color3.new(1, 0, 0)
- OPEN.TextScaled = true
- OPEN.TextSize = 14
- OPEN.TextWrapped = true
- OPEN.MouseButton1Down:Connect(function()
- OPEN.Text = "Turning OFF"
- wait(0.3)
- OPEN.Destroy(OPEN)
- end)
- while true do
- wait()
- if OPEN.Text == "Turn OFF" then
- Fly()
- end
- end
- end
- end
- game.ContextActionService:BindAction("keyPress", onKeyPress, false, Enum.KeyCode.F)
- --Config:
- --Time Until The Next Carpet:
- Time = 0.1
- --Magic Carpet Higher:
- Y = -3.15
- --Magic Carpet Transparency(0-1):
- T = 0.7
- --Magic Carpet Material:
- Mat = "Glass"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement