Advertisement
Guest User

Untitled

a guest
Feb 19th, 2018
659
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.31 KB | None | 0 0
  1. ----// Click to destroy by krit2552 Enjoy! Helper VictoriaChristophe
  2.  
  3.  
  4. local p = game.Players.LocalPlayer
  5.  
  6. local char = p.Character
  7.  
  8. local hum = char.Humanoid
  9.  
  10. hum.MaxHealth = math.huge
  11.  
  12. hum.Health = math.huge
  13.  
  14. Instance.new("ForceField",char).Visible = false
  15.  
  16. local mouse = p:GetMouse()
  17.  
  18. local soundPart
  19.  
  20.  
  21.  
  22.  
  23. local soundStart = Instance.new("Sound",char.Torso)
  24.  
  25. soundStart.Volume = 0
  26.  
  27. soundStart.SoundId = "rbxassetid://407239668"
  28.  
  29.  
  30.  
  31.  
  32. local soundRun = Instance.new("Sound",char.Torso)
  33.  
  34. soundRun.Volume = 0
  35.  
  36. soundRun.Looped = true
  37.  
  38. soundRun.SoundId = "rbxassetid://407218731"
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46. local down = false
  47.  
  48.  
  49.  
  50.  
  51. function FireLaser(a, b)
  52.  
  53. if (soundPart) then
  54.  
  55. soundPart.CFrame = b
  56.  
  57. end
  58.  
  59. local a2 = Instance.new("Part", char)
  60.  
  61. local b2 = Instance.new("SpecialMesh", a2)
  62.  
  63. b2.MeshType = "Cylinder"
  64.  
  65. a2.Material = "Neon"
  66.  
  67. a2.TopSurface = "Smooth"
  68.  
  69. a2.BottomSurface = "Smooth"
  70.  
  71. a2.Anchored = true
  72.  
  73. a2.CanCollide = false
  74.  
  75. a2.Transparency = 1
  76.  
  77. touchCounter = 0
  78. local cR=255
  79. local cG=0
  80. local cB=0
  81. local flg5=1 local omgidk=1
  82. local add=50
  83. game:GetService("RunService"):BindToRenderStep("Ghost",1,function()
  84. if omgidk>10000 then omgidk=0 end
  85. omgidk=omgidk+1
  86. if cR>=255 then flg5=1 end
  87. if cG>=255 then flg5=2 end
  88. if cB>=255 then flg5=3 end
  89. if flg5==1 then cR=cR-add cG=cG+add end
  90. if flg5==2 then cG=cG-add cB=cB+add end
  91. if flg5==3 then cB=cB-add cR=cR+add end
  92. color=Color3.fromRGB(cR,cG,cB)
  93. a2.Color = color
  94. end)
  95.  
  96. local c = Instance.new("ParticleEmitter", a2)
  97.  
  98. c.Color = ColorSequence.new(a2.BrickColor.Color, Color3.new(1, 1, 1))
  99.  
  100. c.Size = NumberSequence.new(0.1, 0.2)
  101.  
  102. c.Lifetime = NumberRange.new(0.3, 0.7)
  103.  
  104. c.Rate = 0
  105.  
  106. c.EmissionDirection = "Right"
  107.  
  108. c.Speed = NumberRange.new(6, 12)
  109.  
  110. c.VelocitySpread = 0
  111.  
  112. local function CreateRegion3FromLocAndSize(Position, Size)
  113.  
  114. local SizeOffset = Size/2
  115.  
  116. local Point1 = Position - SizeOffset
  117.  
  118. local Point2 = Position + SizeOffset
  119.  
  120. return Region3.new(Point1, Point2)
  121.  
  122. end
  123.  
  124. local reg = CreateRegion3FromLocAndSize(b.p, Vector3.new(10, 10, 10))
  125.  
  126. local index = 0
  127.  
  128. local small = 1000
  129.  
  130. local purts = {}
  131.  
  132. for i, v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, char:GetChildren(), 100)) do
  133.  
  134. table.insert(purts, v)
  135.  
  136. end
  137.  
  138. for i, v in pairs(purts) do
  139.  
  140. if (b.p - v.Position).magnitude < small and v.Name ~= "Baseplate" and not v:FindFirstChild("SurfaceGui") and v.Name ~= "Base" and v ~= workspace.Terrain then
  141.  
  142. small = (b.p - v.Position).magnitude
  143.  
  144. index = i
  145.  
  146. end
  147.  
  148. end
  149.  
  150. if index ~= 0 then
  151.  
  152. b = purts[index].CFrame
  153.  
  154. end
  155.  
  156. local dis = (a.p - b.p).magnitude
  157.  
  158. a2.Size = Vector3.new(dis, 1.3, 1.3)
  159. b2.Scale = Vector3.new(0, 1.3, 1.3)
  160.  
  161. a2.CFrame = CFrame.new(a.p, b.p) * CFrame.new(0, 0, -dis / 2) * CFrame.Angles(0, math.rad(90), 0)
  162.  
  163. for i = 0.2, 0, -0.1 do
  164.  
  165. b2.Scale = Vector3.new(1, i, i)
  166.  
  167. wait()
  168.  
  169. end
  170.  
  171. a2:Destroy()
  172.  
  173. pcall(function() purts[index]:Destroy() end)
  174.  
  175. wait()
  176.  
  177. --t:Destroy()
  178.  
  179. end
  180.  
  181.  
  182.  
  183.  
  184. mouse.Button1Down:connect(function()
  185.  
  186. down = true
  187.  
  188. local t = Instance.new("Part", char)
  189.  
  190. t.Size = Vector3.new(0.2, 0.2, 0.2)
  191.  
  192. t.Anchored = true
  193.  
  194. t.CanCollide = false
  195.  
  196. t.Transparency = 1
  197.  
  198. local s = Instance.new("Sound", t)
  199.  
  200. s.Looped = true
  201.  
  202. s.SoundId = "rbxassetid://407218786"
  203.  
  204. soundPart = t
  205.  
  206.  
  207.  
  208.  
  209. local c = Instance.new("ParticleEmitter", t)
  210.  
  211. c.Color = ColorSequence.new(char.Torso.BrickColor.Color, Color3.new(1, 1, 1))
  212.  
  213. c.LightEmission = 1
  214.  
  215. c.Size = NumberSequence.new(0.2, 0.3)
  216.  
  217. c.Lifetime = NumberRange.new(0.3, 0.7)
  218.  
  219. c.Rate = 0
  220.  
  221. c.EmissionDirection = "Back"
  222.  
  223. c.Speed = NumberRange.new(5, 10)
  224.  
  225. c.VelocitySpread = 0
  226.  
  227.  
  228.  
  229. soundStart:play()
  230.  
  231. soundRun:play()
  232.  
  233. end)
  234.  
  235.  
  236.  
  237.  
  238. mouse.Button1Up:connect(function()
  239.  
  240. down = false
  241.  
  242. if (soundPart) then
  243.  
  244. soundPart.Sound:stop()
  245.  
  246. soundPart:Destroy()
  247.  
  248. end
  249.  
  250. soundStart:stop()
  251.  
  252. soundRun:stop()
  253.  
  254. end)
  255.  
  256.  
  257.  
  258.  
  259. game:GetService("RunService").Heartbeat:connect(function()
  260.  
  261. if down then
  262.  
  263. FireLaser(char.Torso.CFrame, mouse.Hit)
  264.  
  265. end
  266.  
  267. end)
  268.  
  269. MRANDOM = math.random
  270. local MATHS = {"0", "1", "3", "2", "4", "5", "6", "7", "8", "9", "10"}
  271. spawn(function()
  272. while wait() do
  273. hum.Name = MATHS[MRANDOM(1,#MATHS)].."V"..MATHS[MRANDOM(1,#MATHS)].."I"..MATHS[MRANDOM(1,#MATHS)].."C"..MATHS[MRANDOM(1,#MATHS)].."T"..MATHS[MRANDOM(1,#MATHS)].."T"..MATHS[MRANDOM(1,#MATHS)].."O"..MATHS[MRANDOM(1,#MATHS)].."R"..MATHS[MRANDOM(1,#MATHS)].."I"..MATHS[MRANDOM(1,#MATHS)].."A"..MATHS[MRANDOM(1,#MATHS)]
  274. end
  275. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement