coolgoldboy166

neon

Nov 15th, 2017
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.67 KB | None | 0 0
  1. function TakeDamage(hum, dmg)
  2. hum:TakeDamage(50)
  3. end
  4. plr = game.Players.LocalPlayer
  5. repeat
  6. wait(0.4)
  7. until plr.Character
  8. chr = plr.Character
  9. human = chr:FindFirstChild("Humanoid")
  10. mouse = plr:GetMouse()
  11. cam = workspace.CurrentCamera
  12. selected = false
  13. equipd = false
  14. tors = chr:WaitForChild("Torso")
  15. rarm = chr:WaitForChild("Right Arm")
  16. larm = chr:WaitForChild("Left Arm")
  17. rleg = chr:WaitForChild("Right Leg")
  18. lleg = chr:WaitForChild("Left Leg")
  19. hrp = chr:WaitForChild("HumanoidRootPart")
  20. hed = chr:WaitForChild("Head")
  21. anim = human:FindFirstChild("Animator")
  22. activu = false
  23. shootingmode = false
  24. dacae = false
  25. --local hasProductnd = game:service("ReplicatedStorage").Logic.HasProduct:InvokeServer(84861999)
  26. local tagactives = {}
  27. Heartbeat = Instance.new("BindableEvent")
  28. Heartbeat.Name = "Heartbeat"
  29. Heartbeat.Parent = script
  30. frame = 0.03333333333333333
  31. tf = 0
  32. game:GetService("RunService").Heartbeat:connect(function(s, p)
  33. tf = tf + s
  34. if tf >= frame then
  35. for i = 1, math.floor(tf / frame) do
  36. Heartbeat:Fire()
  37. end
  38. tf = tf - frame * math.floor(tf / frame)
  39. end
  40. end)
  41. function swait(num)
  42. if num == 0 or num == nil then
  43. Heartbeat.Event:wait()
  44. else
  45. for i = 1, num do
  46. Heartbeat.Event:wait()
  47. end
  48. end
  49. end
  50. tool = Instance.new("Tool")
  51. tool.CanBeDropped = false
  52. tool.RequiresHandle = false
  53. tool.ToolTip = "OAOAOA"
  54. tool.Name = "Neon"
  55. tool.Parent = plr.Backpack
  56. modz = Instance.new("Model")
  57. modz.Name = "efx"
  58. modz.Parent = chr
  59. RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  60. RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  61. LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  62. LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  63. RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  64. RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  65. LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  66. RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  67. LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  68. NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  69. NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  70. RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  71. RS = tors:FindFirstChild("Right Shoulder")
  72. LS = tors:FindFirstChild("Left Shoulder")
  73. RH = tors:FindFirstChild("Right Hip")
  74. LH = tors:FindFirstChild("Left Hip")
  75. RJ = hrp:FindFirstChild("RootJoint")
  76. N = tors:FindFirstChild("Neck")
  77. cf = CFrame.new
  78. ang = CFrame.Angles
  79. rd = math.rad
  80. rd2 = math.random
  81. function lerpz(joint, prop, cfrmz, alp)
  82. joint[prop] = joint[prop]:lerp(cfrmz, alp)
  83. end
  84. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  85. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  86. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  87. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  88. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  89. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  90. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  91. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  92. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  93. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  94. function resetlerp()
  95. RJ.C0 = RJC0
  96. RJ.C1 = RJC1
  97. N.C0 = NC0
  98. N.C1 = NC1
  99. RS.C0 = RSC0
  100. RS.C1 = RSC1
  101. LS.C0 = LSC0
  102. LS.C1 = LSC1
  103. RH.C0 = RHC0
  104. RH.C1 = RHC1
  105. LH.C0 = LHC0
  106. LH.C1 = LHC1
  107. end
  108. function neontrail(thepart, randoderpo)
  109. local ttab = {}
  110. local bopbop = Instance.new("Model")
  111. bopbop.Name = "uWOT"
  112. bopbop.Parent = modz
  113. local disabling = Instance.new("BoolValue")
  114. disabling.Value = false
  115. disabling.Name = "nani"
  116. disabling.Parent = bopbop
  117. for c = 1, 8 do
  118. local tr = Instance.new("Part")
  119. tr.Size = Vector3.new(0.2, 0.2, 0.2)
  120. tr.Anchored = true
  121. tr.CanCollide = false
  122. tr.Material = "Neon"
  123. tr.BrickColor = BrickColor.new("White")
  124. tr.CFrame = thepart.CFrame
  125. tr.Transparency = 1
  126. tr.Parent = bopbop
  127. local aa = Instance.new("CylinderMesh")
  128. aa.Parent = tr
  129. local tr2 = Instance.new("Part")
  130. tr2.Size = Vector3.new(0.2, 0.2, 0.2)
  131. tr2.Anchored = true
  132. tr2.CanCollide = false
  133. tr2.Material = "Neon"
  134. tr2.Transparency = 1
  135. tr2.BrickColor = BrickColor.new("Hot pink")
  136. tr2.CFrame = thepart.CFrame
  137. tr2.Parent = tr
  138. local aa2 = Instance.new("CylinderMesh")
  139. aa2.Parent = tr2
  140. table.insert(ttab, tr)
  141. end
  142. local function fading(derp)
  143. local derp2 = derp:FindFirstChildOfClass("Part")
  144. if thepart:FindFirstChildOfClass("BoolValue") then
  145. if thepart:FindFirstChildOfClass("BoolValue").Value == true then
  146. derp.Transparency = 0.2
  147. derp2.Transparency = 0.2
  148. elseif thepart:FindFirstChildOfClass("BoolValue").Value == false then
  149. derp.Transparency = 1
  150. derp2.Transparency = 1
  151. end
  152. else
  153. derp.Transparency = 0
  154. derp2.Transparency = 0
  155. end
  156. for _ = 1, 8 do
  157. swait()
  158. derp.Transparency = derp.Transparency + 0.1
  159. if derp:FindFirstChildOfClass("CylinderMesh") then
  160. derp:FindFirstChildOfClass("CylinderMesh").Scale = derp:FindFirstChildOfClass("CylinderMesh").Scale - Vector3.new(0.2 * randoderpo, 0, 0.2 * randoderpo)
  161. end
  162. derp2.Transparency = derp2.Transparency + 0.1
  163. if derp2:FindFirstChildOfClass("CylinderMesh") then
  164. derp2:FindFirstChildOfClass("CylinderMesh").Scale = derp2:FindFirstChildOfClass("CylinderMesh").Scale - Vector3.new(0.2 * randoderpo, 0.001, 0.2 * randoderpo)
  165. end
  166. end
  167. end
  168. local pose1 = thepart.Position
  169. coroutine.resume(coroutine.create(function()
  170. repeat
  171. if disabling.Value == true then
  172. swait()
  173. bopbop:Destroy()
  174. return
  175. end
  176. for num, tra in pairs(ttab) do
  177. do
  178. local randomiser = Vector3.new(math.random(-1, 1) * randoderpo, math.random(-1, 1) * randoderpo, math.random(-1, 1) * randoderpo)
  179. swait(1)
  180. local pose2 = thepart.Position + randomiser
  181. local dista = (pose1 - pose2).magnitude
  182. tra.CFrame = CFrame.new(pose1, pose2) * CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, -dista / 2, 0)
  183. tra:FindFirstChildOfClass("CylinderMesh").Scale = Vector3.new(2 * randoderpo, dista / 0.2, 2 * randoderpo)
  184. tra:FindFirstChildOfClass("Part").CFrame = CFrame.new(pose1, pose2) * CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(0, -dista / 2, 0)
  185. tra:FindFirstChildOfClass("Part"):FindFirstChildOfClass("CylinderMesh").Scale = Vector3.new(3 * randoderpo, dista / 0.201, 3 * randoderpo)
  186. coroutine.resume(coroutine.create(function()
  187. if tra then
  188. fading(tra)
  189. end
  190. end))
  191. pose1 = pose2
  192. end
  193. end
  194. until not bopbop
  195. end))
  196. return bopbop
  197. end
  198. function nooutline(p)
  199. p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface, p.FrontSurface, p.BottomSurface = 10, 10, 10, 10, 10, 10
  200. end
  201. function makepart(color, name, reflec, trans, mater, parnt, cfram)
  202. local port = Instance.new("Part")
  203. port.BrickColor = BrickColor.new(color)
  204. port.Name = name
  205. port.Transparency = trans
  206. nooutline(port)
  207. port.Reflectance = reflec
  208. port.Material = mater
  209. port.Anchored = false
  210. port.CanCollide = false
  211. port.Locked = true
  212. port.Size = Vector3.new(0.2, 0.2, 0.2)
  213. port.CFrame = cfram
  214. port.Parent = parnt
  215. return port
  216. end
  217. function makemesh(meshtype, scale, meshid, parent)
  218. local mes = Instance.new("SpecialMesh")
  219. mes.MeshType = meshtype
  220. mes.Scale = scale
  221. if meshtype == "FileMesh" then
  222. mes.MeshId = meshid
  223. end
  224. mes.Parent = parent
  225. return mes
  226. end
  227. function makeweld(parent, p0, p1, c0, c1)
  228. swait()
  229. local wel = Instance.new("Weld")
  230. wel.Part0 = p0
  231. wel.Part1 = p1
  232. wel.C0 = c0
  233. if c1 ~= nil then
  234. wel.C1 = c1
  235. end
  236. wel.Parent = parent
  237. return wel
  238. end
  239. function makeneon()
  240. for _, X in pairs(chr:GetChildren()) do
  241. if X.ClassName == "Accessory" then
  242. do
  243. local thehatto = X:FindFirstChildOfClass("Part")
  244. local hatmesho = thehatto:FindFirstChildOfClass("SpecialMesh")
  245. local awa = makepart("Hot pink", "glowhat", 0, 1, "Neon", thehatto, thehatto.CFrame)
  246. local awam = makemesh("FileMesh", hatmesho.Scale + Vector3.new(0.05, 0.05, 0.05), hatmesho.MeshId, awa)
  247. makeweld(awa, awa, thehatto, cf(0, 0, 0), nil)
  248. local touchbool = Instance.new("BoolValue")
  249. touchbool.Value = false
  250. touchbool.Parent = awa
  251. table.insert(tagactives, touchbool)
  252. thehatto.Touched:connect(function(asd)
  253. if touchbool.Value == false and asd.Parent:FindFirstChildOfClass("Humanoid") then
  254. touchbool.Value = true
  255. delay(0.8, function()
  256. touchbool.Value = false
  257. end)
  258. end
  259. end)
  260. local s = Instance.new("ParticleEmitter")
  261. s.Enabled = false
  262. s.LockedToPart = true
  263. s.Color = ColorSequence.new(Color3.new(1, 0.4, 1))
  264. s.LightEmission = 0.6
  265. s.Size = NumberSequence.new({
  266. NumberSequenceKeypoint.new(0, 0.5, 0),
  267. NumberSequenceKeypoint.new(0.406, 1, 0),
  268. NumberSequenceKeypoint.new(0.433, 2.5, 0.75),
  269. NumberSequenceKeypoint.new(0.476, 0.8, 0),
  270. NumberSequenceKeypoint.new(1, 0.05, 0)
  271. })
  272. s.Texture = "rbxassetid://339880957"
  273. s.Transparency = NumberSequence.new({
  274. NumberSequenceKeypoint.new(0, 0.3, 0),
  275. NumberSequenceKeypoint.new(0.89, 0.3, 0),
  276. NumberSequenceKeypoint.new(1, 1, 0)
  277. })
  278. s.Name = "vid"
  279. s.Lifetime = NumberRange.new(0.2)
  280. s.Rate = 5
  281. s.Speed = NumberRange.new(8, 10)
  282. s.VelocitySpread = 360
  283. s.Parent = awa
  284. local s2 = Instance.new("ParticleEmitter")
  285. s2.Enabled = false
  286. s2.LockedToPart = false
  287. s2.Color = ColorSequence.new(Color3.new(1, 0.4, 1))
  288. s2.LightEmission = 0.6
  289. s2.Size = NumberSequence.new({
  290. NumberSequenceKeypoint.new(0, 0.1, 0),
  291. NumberSequenceKeypoint.new(0.853, 0.4, 0.1),
  292. NumberSequenceKeypoint.new(1, 0, 0)
  293. })
  294. s2.Texture = "rbxassetid://339880957"
  295. s2.Transparency = NumberSequence.new({
  296. NumberSequenceKeypoint.new(0, 0.3, 0),
  297. NumberSequenceKeypoint.new(0.89, 0.3, 0),
  298. NumberSequenceKeypoint.new(1, 1, 0)
  299. })
  300. s2.Name = "vid2"
  301. s2.Lifetime = NumberRange.new(0.5)
  302. s2.Rate = 10
  303. s2.Speed = NumberRange.new(2, 6)
  304. s2.VelocitySpread = 360
  305. s2.Parent = awa
  306. local awa2 = awa:Clone()
  307. awa2.BrickColor = BrickColor.new("White")
  308. awa2:FindFirstChildOfClass("SpecialMesh").Scale = awa2:FindFirstChildOfClass("SpecialMesh").Scale - Vector3.new(0.15, 0.15, 0.15)
  309. awa2.Parent = awa
  310. local fsadfs
  311. touchbool.Changed:connect(function(wot)
  312. if wot == true then
  313. awa.Transparency = 0.5
  314. awa2.Transparency = 0.5
  315. s.Enabled = true
  316. s2.Enabled = true
  317. fsadfs = makemesh("FileMesh", Vector3.new(0, 0, 0), "", thehatto)
  318. elseif wot == false then
  319. awa.Transparency = 1
  320. awa2.Transparency = 1
  321. s.Enabled = false
  322. s2.Enabled = false
  323. fsadfs:Destroy()
  324. end
  325. end)
  326. end
  327. elseif X.ClassName == "Part" and X ~= hrp then
  328. do
  329. local ha = makepart("Hot pink", "gglowiey", 0, 1, "Neon", X, X.CFrame)
  330. local ham
  331. if X == tors then
  332. ham = makemesh("Brick", Vector3.new(10.5, 10.5, 5.25), nil, ha)
  333. elseif X == hed then
  334. ham = makemesh("Head", Vector3.new(6.5, 6.5, 6.5), nil, ha)
  335. else
  336. ham = makemesh("Brick", Vector3.new(5.25, 10.125, 5.25), nil, ha)
  337. end
  338. makeweld(ha, ha, X, cf(0, 0, 0), nil)
  339. local touchbool = Instance.new("BoolValue")
  340. touchbool.Value = false
  341. touchbool.Parent = ha
  342. table.insert(tagactives, touchbool)
  343. X.Touched:connect(function(asd)
  344. if touchbool.Value == false and asd.Parent:FindFirstChildOfClass("Humanoid") then
  345. touchbool.Value = true
  346. delay(0.8, function()
  347. touchbool.Value = false
  348. end)
  349. end
  350. end)
  351. local lit = Instance.new("PointLight")
  352. lit.Enabled = false
  353. lit.Brightness = 2
  354. lit.Range = 6
  355. lit.Shadows = true
  356. lit.Color = Color3.new(0.9490196078431372, 0.2235294117647059, 1)
  357. lit.Parent = ha
  358. local s = Instance.new("ParticleEmitter")
  359. s.Enabled = false
  360. s.LockedToPart = true
  361. s.Color = ColorSequence.new(Color3.new(1, 0.4, 1))
  362. s.LightEmission = 0.6
  363. s.Size = NumberSequence.new({
  364. NumberSequenceKeypoint.new(0, 0.5, 0),
  365. NumberSequenceKeypoint.new(0.406, 1, 0),
  366. NumberSequenceKeypoint.new(0.433, 2.5, 0.75),
  367. NumberSequenceKeypoint.new(0.476, 0.8, 0),
  368. NumberSequenceKeypoint.new(1, 0.05, 0)
  369. })
  370. s.Texture = "rbxassetid://339880957"
  371. s.Transparency = NumberSequence.new({
  372. NumberSequenceKeypoint.new(0, 0.3, 0),
  373. NumberSequenceKeypoint.new(0.89, 0.3, 0),
  374. NumberSequenceKeypoint.new(1, 1, 0)
  375. })
  376. s.Name = "vid"
  377. s.Lifetime = NumberRange.new(0.2)
  378. s.Rate = 5
  379. s.Speed = NumberRange.new(7, 10)
  380. s.VelocitySpread = 360
  381. s.Parent = ha
  382. local s2 = Instance.new("ParticleEmitter")
  383. s2.Enabled = false
  384. s2.LockedToPart = false
  385. s2.Color = ColorSequence.new(Color3.new(1, 0.4, 1))
  386. s2.LightEmission = 0.6
  387. s2.Size = NumberSequence.new({
  388. NumberSequenceKeypoint.new(0, 0.1, 0),
  389. NumberSequenceKeypoint.new(0.853, 0.4, 0.1),
  390. NumberSequenceKeypoint.new(1, 0, 0)
  391. })
  392. s2.Texture = "rbxassetid://339880957"
  393. s2.Transparency = NumberSequence.new({
  394. NumberSequenceKeypoint.new(0, 0.3, 0),
  395. NumberSequenceKeypoint.new(0.89, 0.3, 0),
  396. NumberSequenceKeypoint.new(1, 1, 0)
  397. })
  398. s2.Name = "vid2"
  399. s2.Lifetime = NumberRange.new(0.5)
  400. s2.Rate = 10
  401. s2.Speed = NumberRange.new(2, 6)
  402. s2.VelocitySpread = 360
  403. s2.Parent = ha
  404. local ha2 = ha:Clone()
  405. ha2.BrickColor = BrickColor.new("White")
  406. ha2:FindFirstChildOfClass("SpecialMesh").Scale = ha2:FindFirstChildOfClass("SpecialMesh").Scale - Vector3.new(0.75, 0.75, 0.75)
  407. ha2.Parent = ha
  408. local fsadfs
  409. touchbool.Changed:connect(function(wot)
  410. if wot == true then
  411. ha.Transparency = 0.5
  412. ha2.Transparency = 0.5
  413. s.Enabled = true
  414. s2.Enabled = true
  415. lit.Enabled = true
  416. fsadfs = makemesh("FileMesh", Vector3.new(0, 0, 0), "", X)
  417. elseif wot == false then
  418. ha.Transparency = 1
  419. ha2.Transparency = 1
  420. s.Enabled = false
  421. s2.Enabled = false
  422. lit.Enabled = false
  423. fsadfs:Destroy()
  424. end
  425. end)
  426. neontrail(ha, 1)
  427. end
  428. end
  429. end
  430. end
  431. makeneon()
  432. function gotagofast()
  433. if activu == true or selected == false or dacae == true then
  434. return
  435. end
  436. activu = true
  437. local ws, jp = human.WalkSpeed, human.JumpPower
  438. human.WalkSpeed = 100
  439. human.JumpPower = 360
  440. local bfor = Instance.new("BodyVelocity")
  441. bfor.MaxForce = Vector3.new(10, 10, 10)
  442. bfor.P = 0
  443. bfor.Velocity = Vector3.new(0, 0, 0)
  444. bfor.Parent = hrp
  445. local bubbl1 = makepart("White", "bb1", 0, 0.7, "Neon", tors, tors.CFrame)
  446. local bb1m = makemesh("Sphere", Vector3.new(0, 0, 0), nil, bubbl1)
  447. local bb1w = makeweld(bubbl1, bubbl1, tors, cf(0, 0, 0), c1)
  448. local bubbl2 = makepart("Hot pink", "bb2", 0, 0.7, "Neon", tors, tors.CFrame)
  449. local bb2m = makemesh("Sphere", Vector3.new(0, 0, 0), nil, bubbl2)
  450. local bb2w = makeweld(bubbl2, bubbl2, tors, cf(0, 0, 0), c1)
  451. for _, d in pairs(tagactives) do
  452. swait()
  453. d.Value = true
  454. end
  455. for _ = 1, 60 do
  456. swait()
  457. bb1m.Scale = bb1m.Scale:lerp(Vector3.new(30, 30, 30), 0.2)
  458. bb2m.Scale = bb2m.Scale:lerp(Vector3.new(40, 40, 40), 0.2)
  459. local rayc = Ray.new(hrp.Position, hrp.CFrame.lookVector * 3)
  460. local par, pos = workspace:FindPartOnRayWithIgnoreList(rayc, {chr}, true, true)
  461. if par and 1 > par.Transparency then
  462. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-90), rd(0), rd(0)), 0.3)
  463. bfor.MaxForce = Vector3.new(0, 1000000000000000000, 0)
  464. bfor.P = 999999999
  465. bfor.Velocity = Vector3.new(0, 70, 0)
  466. else
  467. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  468. bfor.MaxForce = Vector3.new(0, 0, 0)
  469. bfor.P = 0
  470. bfor.Velocity = Vector3.new(0, 0, 0)
  471. end
  472. end
  473. for _, d in pairs(tagactives) do
  474. swait()
  475. d.Value = false
  476. end
  477. human.WalkSpeed = ws
  478. human.JumpPower = jp
  479. bfor.MaxForce = Vector3.new(0, 0, 0)
  480. bfor.P = 0
  481. bfor.Velocity = Vector3.new(0, 0, 0)
  482. for _ = 1, 10 do
  483. swait()
  484. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6)
  485. bb1m.Scale = bb1m.Scale:lerp(Vector3.new(50, 50, 50), 0.2)
  486. bb2m.Scale = bb2m.Scale:lerp(Vector3.new(60, 60, 60), 0.2)
  487. bubbl1.Transparency = bubbl1.Transparency + 0.05
  488. bubbl2.Transparency = bubbl2.Transparency + 0.05
  489. end
  490. resetlerp()
  491. bfor:Destroy()
  492. bubbl1:Destroy()
  493. bubbl2:Destroy()
  494. if plr.UserId ~= 8488617 then
  495. dacae = true
  496. end
  497. coroutine.resume(coroutine.create(function()
  498. wait(7)
  499. dacae = false
  500. end))
  501. activu = false
  502. end
  503. local ignoraappawpas = {chr}
  504. function pew(pewpartthing, wheritgoto)
  505. local pr = makepart("White", "pewpw", 0, 0.1, "Neon", workspace, CFrame.new(pewpartthing.Position, wheritgoto))
  506. game.Debris:AddItem(pr, 15)
  507. pr.Anchored = true
  508. local prm = makemesh("Sphere", Vector3.new(5, 5, 10), nil, pr)
  509. local tr = neontrail(pr, 1.25)
  510. table.insert(ignoraappawpas, pr)
  511. table.insert(ignoraappawpas, tr)
  512. local howfar = 0
  513. local lit = Instance.new("PointLight")
  514. lit.Enabled = false
  515. lit.Brightness = 2
  516. lit.Range = 6
  517. lit.Shadows = true
  518. lit.Color = Color3.new(0.9490196078431372, 0.2235294117647059, 1)
  519. lit.Parent = pr
  520. coroutine.resume(coroutine.create(function()
  521. repeat
  522. swait()
  523. howfar = howfar + 1
  524. local pray = Ray.new(pr.Position, pr.CFrame.lookVector * 31)
  525. local noot, wher = workspace:FindPartOnRayWithIgnoreList(pray, ignoraappawpas, true, true)
  526. if noot and wher then
  527. howfar = 420
  528. local uwotmate = pr.CFrame.lookVector
  529. pr.CFrame = CFrame.new(wher)
  530. local aaoeaoaodad = rd2(1, 6)
  531. if aaoeaoaodad == 3 then
  532. hito(pr, 3, rd2(12, 18), 0.1, uwotmate * 25, Vector3.new(rd2(-5, 5), rd2(-5, 5), rd2(-5, 5)))
  533. else
  534. hito(pr, 3, rd2(12, 18), 0.1, uwotmate * 25)
  535. end
  536. else
  537. pr.CFrame = pr.CFrame * cf(0, 0, -30)
  538. end
  539. until howfar > 100 or not pr
  540. game.Debris:AddItem(pr, 0.1)
  541. wait()
  542. tr:FindFirstChild("nani").Value = true
  543. end))
  544. end
  545. local succccccccccc = false
  546. local soupme = false
  547. local thedrawings = {}
  548. local lazersound = Instance.new("Sound")
  549. lazersound.SoundId = "rbxassetid://115327352"
  550. lazersound.Looped = true
  551. lazersound.Parent = hrp
  552. function drawingu(wheritpewing)
  553. if activu == true or selected == false or #thedrawings > 50 then
  554. return
  555. end
  556. succccccccccc = true
  557. activu = true
  558. lazersound:Play()
  559. soupme = mouse.KeyUp:connect(function(DDDDDD)
  560. if DDDDDD == "t" then
  561. succccccccccc = false
  562. end
  563. end)
  564. local iwin = makepart("White", "thedrawingu", 0, 0.15, "Neon", modz, hrp.CFrame)
  565. iwin.Anchored = true
  566. local iwm = makemesh("Cylinder", Vector3.new(0, 1, 1), nil, iwin)
  567. local iwin2 = makepart("Hot pink", "thedrawingu2", 0, 0.6, "Neon", iwin, hrp.CFrame)
  568. iwin2.Anchored = true
  569. local iwm2 = makemesh("Cylinder", Vector3.new(0, 2.5, 2.5), nil, iwin2)
  570. local mosoposo = mouse.Hit.p
  571. local pewpew = makepart("White", "thedrawingu", 0, 0.15, "Neon", modz, hrp.CFrame)
  572. pewpew.Anchored = true
  573. local pewm = makemesh("Cylinder", Vector3.new(0, 1, 1), nil, pewpew)
  574. local pewpew2 = makepart("Hot pink", "thedrawingu", 0, 0.6, "Neon", pewpew, hrp.CFrame)
  575. pewpew2.Anchored = true
  576. local pewm2 = makemesh("Cylinder", Vector3.new(0, 2.5, 2.5), nil, pewpew2)
  577. table.insert(thedrawings, iwin)
  578. local partemitderpo = makepart("White", "watever", 0, 1, "Neon", modz, hrp.CFrame)
  579. partemitderpo.Anchored = true
  580. local s2 = Instance.new("ParticleEmitter")
  581. s2.Enabled = true
  582. s2.LockedToPart = false
  583. s2.Color = ColorSequence.new(Color3.new(1, 0.4, 1))
  584. s2.LightEmission = 0.7
  585. s2.Size = NumberSequence.new({
  586. NumberSequenceKeypoint.new(0, 0.4, 0),
  587. NumberSequenceKeypoint.new(0.853, 0.2, 0.1),
  588. NumberSequenceKeypoint.new(1, 0, 0)
  589. })
  590. s2.Texture = "rbxassetid://339880957"
  591. s2.Transparency = NumberSequence.new({
  592. NumberSequenceKeypoint.new(0, 0.2, 0),
  593. NumberSequenceKeypoint.new(0.89, 0.2, 0),
  594. NumberSequenceKeypoint.new(1, 1, 0)
  595. })
  596. s2.Name = "vid2"
  597. s2.Lifetime = NumberRange.new(0.1, 0.2)
  598. s2.Rate = 0
  599. s2.Acceleration = Vector3.new(0, 5, 0)
  600. s2.Speed = NumberRange.new(10, 18)
  601. s2.VelocitySpread = 360
  602. s2.Parent = partemitderpo
  603. local uwotmate = wheritpewing
  604. local function pulso()
  605. coroutine.resume(coroutine.create(function()
  606. while iwin do
  607. local val1 = iwm.Scale
  608. local val2 = iwm2.Scale
  609. local tr1 = iwin.Transparency
  610. local tr2 = iwin2.Transparency
  611. for _ = 1, 5 do
  612. wait()
  613. iwm.Scale = iwm.Scale:lerp(val1 + Vector3.new(0, 0.2, 0.2), 0.1)
  614. iwm2.Scale = iwm2.Scale:lerp(val2 + Vector3.new(0, 0.2, 0.2), 0.1)
  615. iwin.Transparency = iwin.Transparency + 0.05
  616. iwin2.Transparency = iwin2.Transparency + 0.05
  617. end
  618. for _ = 1, 5 do
  619. wait()
  620. iwm.Scale = iwm.Scale:lerp(val1, 0.3)
  621. iwm2.Scale = iwm2.Scale:lerp(val2, 0.3)
  622. iwin.Transparency = iwin.Transparency - 0.05
  623. iwin2.Transparency = iwin2.Transparency - 0.05
  624. end
  625. iwm.Scale = val1
  626. iwm2.Scale = val2
  627. end
  628. end))
  629. end
  630. while succccccccccc == true do
  631. local mgn = (mosoposo - mouse.Hit.p).magnitude
  632. iwm.Scale = Vector3.new(mgn * 5, 1, 1)
  633. iwin.CFrame = CFrame.new(mosoposo, mouse.Hit.p) * ang(0, rd(270), 0) * cf(-mgn / 2, 0, 0)
  634. iwm2.Scale = Vector3.new(mgn * 5 + 0.025, 2, 2)
  635. iwin2.CFrame = iwin.CFrame
  636. local mgn2 = (wheritpewing.Position - mouse.Hit.p).magnitude
  637. pewm.Scale = Vector3.new(mgn2 * 5, 1, 1)
  638. pewpew.CFrame = CFrame.new(wheritpewing.Position, mouse.Hit.p) * ang(0, rd(270), 0) * cf(-mgn2 / 2, 0, 0)
  639. pewm2.Scale = Vector3.new(mgn2 * 5, 2, 2)
  640. pewpew2.CFrame = pewpew.CFrame
  641. partemitderpo.CFrame = CFrame.new(mouse.Hit.p)
  642. s2:Emit(4)
  643. if mgn > 1 then
  644. activu = false
  645. succccccccccc = false
  646. soupme:Disconnect()
  647. pewpew:Destroy()
  648. game.Debris:AddItem(partemitderpo, 0.8)
  649. pulso()
  650. drawingu(uwotmate)
  651. break
  652. end
  653. swait()
  654. end
  655. if pewpew then
  656. pewpew:Destroy()
  657. end
  658. if partemitderpo then
  659. game.Debris:AddItem(partemitderpo, 0.8)
  660. end
  661. lazersound:Stop()
  662. succccccccccc = false
  663. activu = false
  664. end
  665. local qshootdebounce = false
  666. local shotderp, draahw, bep, hhuurrr
  667. function qshoot()
  668. if activu == true or selected == false then
  669. return
  670. end
  671. if shootingmode == false then
  672. shootingmode = true
  673. bep = makepart("Hot pink", "bepis", 0, 1, "Neon", modz, rarm.CFrame)
  674. do
  675. local bepw = makeweld(bep, bep, rarm, cf(0, 1, 0), nil)
  676. hhuurrr = neontrail(bep, 0.5)
  677. local ss = Instance.new("Sound")
  678. ss.Volume = 0.5
  679. ss.SoundId = "rbxassetid://476938662"
  680. ss.Parent = bep
  681. local s2 = Instance.new("ParticleEmitter")
  682. s2.Enabled = true
  683. s2.LockedToPart = false
  684. s2.Color = ColorSequence.new(Color3.new(1, 0.4, 1))
  685. s2.LightEmission = 0.7
  686. s2.Size = NumberSequence.new({
  687. NumberSequenceKeypoint.new(0, 1, 0),
  688. NumberSequenceKeypoint.new(0.853, 0.5, 0.1),
  689. NumberSequenceKeypoint.new(1, 0, 0)
  690. })
  691. s2.Texture = "rbxassetid://339880957"
  692. s2.Transparency = NumberSequence.new({
  693. NumberSequenceKeypoint.new(0, 0.2, 0),
  694. NumberSequenceKeypoint.new(0.89, 0.2, 0),
  695. NumberSequenceKeypoint.new(1, 1, 0)
  696. })
  697. s2.Name = "vid2"
  698. s2.Lifetime = NumberRange.new(0.1, 0.4)
  699. s2.Rate = 0
  700. s2.Acceleration = Vector3.new(0, 2, 0)
  701. s2.Speed = NumberRange.new(12, 22)
  702. s2.VelocitySpread = 360
  703. s2.Parent = bep
  704. coroutine.resume(coroutine.create(function()
  705. repeat
  706. swait()
  707. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(90)), 0.25)
  708. until shootingmode == false
  709. end))
  710. shotderp = tool.Activated:connect(function()
  711. if qshootdebounce == true then
  712. return
  713. end
  714. ss:Play()
  715. s2:Emit(12)
  716. lerpz(RS, "C0", RSC0 * cf(rd2(-5, -1) / 10, 0, 0) * ang(rd(rd2(-5, 5)), rd(rd2(-5, 5)), rd(rd2(95, 120))), 0.8)
  717. qshootdebounce = true
  718. pew(bep, mouse.Hit.p + Vector3.new(rd2(-15, 15) / 10, rd2(-15, 15) / 10, 0))
  719. delay(1, function()
  720. qshootdebounce = false
  721. end)
  722. end)
  723. draahw = mouse.KeyDown:connect(function(dsadadsa)
  724. if dsadadsa == "t" then--and (plr.UserId == 8488617 or hasProductnd) then
  725. drawingu(bep)
  726. end
  727. end)
  728. end
  729. elseif shootingmode == true then
  730. shootingmode = false
  731. activu = true
  732. if bep then
  733. bep:Destroy()
  734. end
  735. if hhuurrr then
  736. hhuurrr:FindFirstChild("nani").Value = true
  737. end
  738. shotderp:Disconnect()
  739. draahw:Disconnect()
  740. for _ = 1, 8 do
  741. swait()
  742. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  743. end
  744. resetlerp()
  745. activu = false
  746. end
  747. end
  748. function hito(partoz, magn, dmg, debtim, bodyfdire, bodyrot)
  749. for _, guy in pairs(workspace:GetChildren()) do
  750. if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("HumanoidRootPart") and guy ~= chr and magn > (guy:FindFirstChild("HumanoidRootPart").Position - partoz.Position).magnitude and guy:FindFirstChild("HumanoidRootPart"):FindFirstChild("alabo") == nil then
  751. do
  752. local humz = guy:FindFirstChild("Humanoid")
  753. local horp = guy:FindFirstChild("HumanoidRootPart")
  754. TakeDamage(humz, dmg)
  755. humz:SetStateEnabled(16, true)
  756. delay(debtim, function()
  757. humz:SetStateEnabled(16, true)
  758. end)
  759. local db = Instance.new("StringValue")
  760. db.Name = "alabo"
  761. db.Parent = horp
  762. delay(debtim, function()
  763. db:Destroy()
  764. end)
  765. local b = Instance.new("Part")
  766. nooutline(b)
  767. b.Size = Vector3.new(0.2, 0.2, 0.2)
  768. b.Transparency = 0.25
  769. b.Anchored = true
  770. b.CanCollide = false
  771. b.BrickColor = BrickColor.new("Hot pink")
  772. b.Material = "Neon"
  773. b.Locked = true
  774. b.CFrame = horp.CFrame * CFrame.new(rd2(-1, 1), rd2(-2, 2), rd2(-1, 1))
  775. b.Parent = modz
  776. local c = Instance.new("SpecialMesh")
  777. c.MeshType = "Sphere"
  778. c.Scale = Vector3.new(3.5, 3.5, 3.5)
  779. c.Parent = b
  780. game.Debris:AddItem(b, 1)
  781. local damageind = Instance.new("Model")
  782. damageind.Name = dmg
  783. damageind.Parent = workspace
  784. game.Debris:AddItem(damageind, 1 + dmg / 75)
  785. local awawaa = Instance.new("Humanoid")
  786. awawaa.MaxHealth = 0
  787. awawaa.Parent = damageind
  788. local dhed = Instance.new("Part")
  789. dhed.Name = "Head"
  790. dhed.Locked = true
  791. dhed.Size = Vector3.new(0.2, 0.2, 0.2)
  792. dhed.Position = horp.Position
  793. dhed.BrickColor = BrickColor.new("Hot pink")
  794. dhed.Material = "Neon"
  795. dhed.CanCollide = false
  796. dhed.Parent = damageind
  797. local flo = Instance.new("BodyPosition")
  798. flo.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  799. flo.P = 20000
  800. flo.D = 300
  801. flo.Position = dhed.Position + Vector3.new(0, 5, 0)
  802. flo.Parent = dhed
  803. local dasdada = Instance.new("CylinderMesh")
  804. dasdada.Parent = dhed
  805. coroutine.resume(coroutine.create(function()
  806. while dasdada do
  807. swait()
  808. dasdada.Scale = dasdada.Scale:lerp(Vector3.new(2.5 + dmg / 10, 1.25 + dmg / 35, 2.5 + dmg / 10), 0.4)
  809. end
  810. end))
  811. if bodyfdire then
  812. local boopyve = Instance.new("BodyVelocity")
  813. boopyve.MaxForce = Vector3.new(9999999999999, 9999999999999, 9999999999999)
  814. boopyve.P = 9999999999
  815. boopyve.Velocity = bodyfdire
  816. boopyve.Parent = horp
  817. game.Debris:AddItem(boopyve, debtim)
  818. end
  819. if bodyrot then
  820. local boopyro = Instance.new("BodyAngularVelocity")
  821. boopyro.MaxTorque = Vector3.new(999999, 999999, 999999)
  822. boopyro.P = math.huge
  823. boopyro.AngularVelocity = bodyrot
  824. boopyro.Parent = horp
  825. game.Debris:AddItem(boopyro, debtim)
  826. end
  827. local bet = Instance.new("Sound")
  828. bet.Pitch = rd2(9, 11) / 10
  829. bet.Volume = rd2(12, 14) / 10
  830. bet.SoundId = "rbxassetid://305526724"
  831. bet.Parent = b
  832. coroutine.resume(coroutine.create(function()
  833. for _ = 1, 5 do
  834. swait()
  835. b.Transparency = b.Transparency + 0.175
  836. c.Scale = c.Scale + Vector3.new(0.8 * dmg, 0.8 * dmg, 0.8 * dmg)
  837. end
  838. end))
  839. end
  840. end
  841. end
  842. end
  843. function animo(yep)
  844. if yep == true then
  845. anim.Parent = human
  846. chr.Animate.Disabled = false
  847. elseif yep == false then
  848. chr.Animate.Disabled = true
  849. anim.Parent = nil
  850. end
  851. end
  852. local down = false
  853. mouse.KeyDown:connect(function(key)
  854. down = true
  855. if key == "f" then
  856. gotagofast()
  857. end
  858. if key == "q" then
  859. qshoot()
  860. end
  861. if key == "z" then
  862. while down do
  863. swait(1)
  864. if #thedrawings > 0 then
  865. thedrawings[#thedrawings]:Destroy()
  866. table.remove(thedrawings, #thedrawings)
  867. end
  868. end
  869. end
  870. end)
  871. mouse.KeyUp:connect(function(key)
  872. down = false
  873. end)
  874. tool.Equipped:connect(function()
  875. selected = true
  876. end)
  877. tool.Unequipped:connect(function()
  878. selected = false
  879. end)
  880. function dispose()
  881. for i, v in pairs(getfenv(0)) do
  882. v = nil
  883. end
  884. error = nil
  885. print = nil
  886. warn = nil
  887. end
  888. human.Died:connect(dispose)
  889. chr.Changed:connect(function()
  890. if chr.Parent == nil then
  891. dispose()
  892. end
  893. end)
Add Comment
Please, Sign In to add comment