Advertisement
meech_0ekui

Untitled

Feb 15th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.67 KB | None | 0 0
  1. local plr = game.Players
  2. local loc_plr = plr.LocalPlayer
  3. local bya = loc_plr.Backpack.main.byakugan
  4. bya.Parent = game.Lighting
  5. bya.Enabled = false
  6. local bya2 = loc_plr.Backpack.main.byakugan2
  7. local tp = loc_plr.Backpack.main.bg.Fall.ParticleEmitter
  8. local bem = tp
  9.   bem.Enabled = false
  10.   bem.LockedToPart = true
  11.   bem.Name = "bem1"
  12.   bem.EmissionDirection = "Bottom"
  13.   bem.Parent = loc_plr.Character.HumanoidRootPart
  14.   bem.Transparency = NumberSequence.new(00.01,0.001)
  15.   bem.Lifetime = NumberRange.new(0.15)
  16.   bem.Drag = 490
  17.   bem.Rate = 500
  18.   bem.LightEmission = -0.45
  19.   bem.ZOffset = 5
  20.   bem.Color = ColorSequence.new(Color3.fromRGB(0,0,0))
  21.   bem.Size = NumberSequence.new(3,7)
  22.   bem.Speed = NumberRange.new(-350,350)
  23.   bem.SpreadAngle = Vector2.new(50,50)
  24. game.Lighting.Bloom:Destroy()
  25. game.Lighting.SunRays:Destroy()
  26. game.Lighting.menublur:Destroy()
  27.  
  28. loc_plr.Character.Humanoid.Died:Connect(function()
  29.   tp.Parent = game.Lighting
  30. end)
  31.  
  32. loc_plr.Chatted:Connect(function(talk)
  33.   if talk == ".remove" then
  34.   bya:Destroy()
  35.   bya2:Destroy()
  36.   elseif talk == ".fix" then
  37.     for i,v in pairs(plr:GetChildren()) do
  38.       local k = v.Character.HumanoidRootPart:FindFirstChild("byakugan2")
  39.       if k then
  40.         k:Destroy()
  41.       end
  42.     end
  43.     elseif talk == ".disable" then
  44.       bya.Parent = game.Players
  45.       bya2.Enabled = false
  46.       elseif talk == ".enable" then
  47.         bya.Parent = game.Lighting
  48.         bya2.Enabled = true
  49.   end
  50. end)
  51.  
  52. function f(x,y)
  53.   if x == true then
  54.     bem.Enabled = y
  55.     bem.Transparency = NumberSequence.new(1)
  56.     elseif x == false then
  57.       bem.Enabled = x
  58.       bem.Transparency = NumberSequence.new(0.1,0.001)
  59.     end
  60.   return x
  61. end
  62.  
  63. function copy(x)
  64.   local b = bya2:Clone()
  65.   b.Parent = x
  66.   return x
  67. end
  68.  
  69. function invis()
  70. var = workspace.Oekui
  71. for i,v in pairs(var:GetChildren()) do
  72.   if v ~= var.HumanoidRootPart then
  73.   if v:IsA("Part") or v:IsA("MeshPart") then
  74.     v.Transparency = 1
  75.     end
  76.   end
  77. end
  78. for i,v in pairs(var:GetChildren()) do
  79.   if v:IsA("Model") then
  80.     r = v:GetChildren()
  81.     r[1].Transparency = 1
  82.   end
  83. end
  84. wait(0.09)
  85. for i,v in pairs(var:GetChildren()) do
  86.   if v ~= var.HumanoidRootPart then
  87.   if v:IsA("Part") or v:IsA("MeshPart") then
  88.     v.Transparency = 0
  89.     end
  90.   end
  91. end
  92. for i,v in pairs(var:GetChildren()) do
  93.   if v:IsA("Model") then
  94.     r = v:GetChildren()
  95.     r[1].Transparency = 0
  96.   end
  97. end
  98. end
  99.  
  100. local Player = game.Players.LocalPlayer
  101. local Mouse = Player:GetMouse()
  102. local UserInputService = game:GetService('UserInputService')
  103.  
  104. local HoldingControl = false
  105.  
  106. Mouse.Button1Down:connect(function()
  107. if HoldingControl then
  108.     bya.Enabled = false
  109.   Player.Character:MoveTo(Mouse.Hit.p,f(false,false),invis())
  110. end
  111. end)
  112.  
  113. UserInputService.InputBegan:connect(function(Input)  --HELD DOWN
  114. if Input.UserInputType == Enum.UserInputType.Keyboard then
  115. if Input.KeyCode == Enum.KeyCode.LeftControl then
  116. HoldingControl = true
  117. tp.Parent = loc_plr.Character.HumanoidRootPart
  118. bya.Enabled = true
  119. f(true,true)
  120. for i,v in pairs(plr:GetChildren()) do
  121.       sight = v.Character:FindFirstChild("HumanoidRootPart")
  122.       copy(sight)
  123.       if v == loc_plr then
  124.         loc_plr.Character.HumanoidRootPart.byakugan2:Destroy()
  125.       end
  126.     end
  127. end
  128. end
  129. end)
  130.  
  131. UserInputService.InputEnded:connect(function(Input) -- LET GO OF
  132. if Input.UserInputType == Enum.UserInputType.Keyboard then
  133. if Input.KeyCode == Enum.KeyCode.LeftControl then
  134. HoldingControl = false
  135. bya.Enabled = false
  136. for i,v in pairs(plr:GetChildren()) do
  137.     local b = v.Character.HumanoidRootPart:FindFirstChild("byakugan2")
  138.   if b then
  139.     b:Destroy()
  140.   end
  141.   wait()
  142.   end
  143. end
  144. end
  145. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement