Advertisement
FireyScripter

Pepe path (WORKS!)

Sep 26th, 2016
456
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.12 KB | None | 0 0
  1. --THE PEPE PATH LEAKED (is a local script)
  2. Player = game.Players.LocalPlayer
  3.  
  4. bin = Instance.new("HopperBin",Player.Backpack)
  5. bin.Name = "Pepe Path"
  6.  
  7. function onKeyDown(Key)
  8.     if Key:lower() == "r" then
  9.         for _,v in pairs(game.Workspace:GetChildren()) do
  10.             if v.Name == "NewPart" then
  11.                 if v:findFirstChild("creator") and v.creator.Value == game.Players.LocalPlayer then
  12.                     v:Remove()
  13.                 end
  14.             end
  15.         end
  16.     end
  17. end
  18.  
  19. function press(mouse)
  20.     if sel == true then
  21.         local hit = mouse.Target
  22.         local point = mouse.Hit.p
  23.         local s = Instance.new("Part")
  24.         s.CanCollide = true
  25.         s.Size=Vector3.new(6,6,6)
  26.         s.Anchored = true
  27.         s.BrickColor = BrickColor.Green()
  28.         s.Transparency = 0
  29.         s.Velocity = mouse.Hit.lookVector * 100
  30.         s.Name = "NewPart"
  31.         s.Material = "Neon"
  32.         s.TopSurface = "Smooth"
  33.         s.BottomSurface = "Smooth"
  34.         s.Parent = game.Workspace
  35.         local t = Instance.new("SelectionBox",s)
  36.         t.Adornee = s
  37.         t.Color3 = s.BrickColor.Color
  38.         for i=0, 5 do
  39.             local D = Instance.new("Decal")
  40.             D.Name = "PEPE"
  41.             D.Face = i
  42.             D.Parent = s
  43.             D.Texture = "http://www.roblox.com/asset/?id=244905904"
  44.         end
  45.         game:GetService("Debris"):AddItem(s,120)
  46.         s.CFrame = CFrame.new(game.Players.LocalPlayer.Character.Head.Position)
  47.         s.CFrame = CFrame.new(game.Players.LocalPlayer.Character.Torso.Position.x,game.Players.LocalPlayer.Character.Torso.Position.y-6,game.Players.LocalPlayer.Character.Torso.Position.z)
  48.         s.CFrame = CFrame.new(s.Position,point)
  49.         local r = Instance.new("ObjectValue")
  50.         r.Value = game.Players.LocalPlayer
  51.         r.Parent = s
  52.         r.Name = "creator"
  53.         wait()
  54.         press(mouse)
  55.     end
  56. end
  57.  
  58.  
  59. function onButton1Down(mouse)
  60.     sel = true
  61.     if sel == true then
  62.         press(mouse)
  63.     end
  64. end
  65.  
  66. function onButton1Up(mouse)
  67.     sel = false
  68. end
  69.  
  70. function onEquippedLocal(mouse)
  71.     if mouse == nil then
  72.         print("Mouse not found")
  73.         return
  74.     end
  75.     mouse.Icon = "rbxasset://textures\\GunCursor.png"
  76.     mouse.Button1Down:connect(function()
  77.         onButton1Down(mouse)
  78.     end)
  79.     mouse.Button1Up:connect(function()
  80.         onButton1Up(mouse)
  81.     end)
  82.     mouse.KeyDown:connect(onKeyDown)
  83. end
  84.  
  85.  
  86. bin.Selected:connect(onEquippedLocal)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement