Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.30 KB | None | 0 0
  1. local play = game.Players.LocalPlayer
  2. local char = play.Character
  3. local debounce = false
  4. local attack = false
  5. local collid = true
  6. --[[
  7. coroutine.resume(coroutine.create(function()
  8. .Touched:connect(function(hit)
  9. game:service'RunService'.RenderStepped:connect(function()
  10.  
  11. end)
  12. game:GetService("Debris"):AddItem(p, 1)
  13. local d = char:GetChildren()
  14. for i=1, #d do
  15. d[i]
  16. end
  17. end
  18. ]]
  19.  
  20. local r = 255
  21. local g = 0
  22. local b = 0
  23.  
  24. coroutine.resume(coroutine.create(function()
  25.  
  26. while true do
  27. while b < 255 do
  28. b = b + 5
  29. wait()
  30. end
  31. while r > 0 do
  32. r = r - 5
  33. wait()
  34. end
  35. while g < 255 do
  36. g = g + 5
  37. wait()
  38. end
  39. while b > 5 do
  40. b = b - 5
  41. wait()
  42. end
  43. while b > 5 do
  44. b = b - 5
  45. wait()
  46. end
  47. while r < 255 do
  48. r = r + 5
  49. wait()
  50. end
  51. while g > 0 do
  52. g = g - 5
  53. wait()
  54. end
  55. end
  56. end))
  57.  
  58.  
  59. local tewl = Instance.new("Tool", char)
  60. tewl.Name = "Splitter"
  61.  
  62. local split = Instance.new("Part", tewl)
  63. split.Name = "Handle"
  64. split.Size = Vector3.new(1.1,1.1,4.1)
  65. --split.Size = Vector3.new(15,15,15)
  66. split.Material = "Glass"
  67. split.Transparency = 0.5
  68. split.CFrame = CFrame.new(100,100,100)
  69. split.CFrame = split.CFrame * CFrame.new(0,100,0)
  70.  
  71. play:GetMouse().Button1Down:connect(function()
  72. local str = Instance.new("StringValue")
  73. str.Name = "toolanim"
  74. str.Value = "Slash"
  75. str.Parent = tewl
  76. end)
  77.  
  78. local grav = function(par)
  79. par.Velocity = Vector3.new(par.Velocity.X/1.1,40, par.Velocity.Z/1.1)
  80. end
  81.  
  82. coroutine.resume(coroutine.create(function()
  83. while true do
  84. split.Color = Color3.fromRGB(r,g,b)
  85. wait()
  86. end
  87. end))
  88.  
  89. split.Touched:connect(function(hit)
  90. if hit.Name ~= "Base" and hit.Parent ~= char and debounce == false and hit.Name ~= "splitpart" then
  91. debounce = true
  92.  
  93. local sp1 = Instance.new("Part", workspace)
  94. sp1.Color = Color3.fromRGB(r,g,b)
  95. sp1.Material = hit.Material
  96. sp1.Size = Vector3.new(hit.Size.X/2,hit.Size.Y/2,hit.Size.Z/2)
  97. sp1.CFrame = hit.CFrame*CFrame.new(hit.Size.X/4,hit.Size.Y/4,-hit.Size.Z/4)
  98. local sp2 = Instance.new("Part", workspace)
  99. sp2.Color = Color3.fromRGB(r,g,b)
  100. sp2.Material = hit.Material
  101. sp2.Size = Vector3.new(hit.Size.X/2,hit.Size.Y/2,hit.Size.Z/2)
  102. sp2.CFrame = hit.CFrame*CFrame.new(-hit.Size.X/4,hit.Size.Y/4,-hit.Size.Z/4)
  103. local sp3 = Instance.new("Part", workspace)
  104. sp3.Color = Color3.fromRGB(r,g,b)
  105. sp3.Material = hit.Material
  106. sp3.Size = Vector3.new(hit.Size.X/2,hit.Size.Y/2,hit.Size.Z/2)
  107. sp3.CFrame = hit.CFrame*CFrame.new(hit.Size.X/4,-hit.Size.Y/4,-hit.Size.Z/4)
  108. local sp4 = Instance.new("Part", workspace)
  109. sp4.Color = Color3.fromRGB(r,g,b)
  110. sp4.Material = hit.Material
  111. sp4.Size = Vector3.new(hit.Size.X/2,hit.Size.Y/2,hit.Size.Z/2)
  112. sp4.CFrame = hit.CFrame*CFrame.new(-hit.Size.X/4,-hit.Size.Y/4,-hit.Size.Z/4)
  113.  
  114. local sp11 = Instance.new("Part", workspace)
  115. sp11.Color = Color3.fromRGB(r,g,b)
  116. sp11.Material = hit.Material
  117. sp11.Size = Vector3.new(hit.Size.X/2,hit.Size.Y/2,hit.Size.Z/2)
  118. sp11.CFrame = hit.CFrame*CFrame.new(hit.Size.X/4,hit.Size.Y/4,hit.Size.Z/4)
  119. local sp21 = Instance.new("Part", workspace)
  120. sp21.Color = Color3.fromRGB(r,g,b)
  121. sp21.Material = hit.Material
  122. sp21.Size = Vector3.new(hit.Size.X/2,hit.Size.Y/2,hit.Size.Z/2)
  123. sp21.CFrame = hit.CFrame*CFrame.new(-hit.Size.X/4,hit.Size.Y/4,hit.Size.Z/4)
  124. local sp31 = Instance.new("Part", workspace)
  125. sp31.Color = Color3.fromRGB(r,g,b)
  126. sp31.Material = hit.Material
  127. sp31.Size = Vector3.new(hit.Size.X/2,hit.Size.Y/2,hit.Size.Z/2)
  128. sp31.CFrame = hit.CFrame*CFrame.new(hit.Size.X/4,-hit.Size.Y/4,hit.Size.Z/4)
  129. local sp41 = Instance.new("Part", workspace)
  130. sp41.Color = Color3.fromRGB(r,g,b)
  131. sp41.Material = hit.Material
  132. sp41.Size = Vector3.new(hit.Size.X/2,hit.Size.Y/2,hit.Size.Z/2)
  133. sp41.CFrame = hit.CFrame*CFrame.new(-hit.Size.X/4,-hit.Size.Y/4,hit.Size.Z/4)
  134.  
  135. sp1.Name = "splitpart"
  136. sp2.Name = "splitpart"
  137. sp3.Name = "splitpart"
  138. sp4.Name = "splitpart"
  139.  
  140. sp11.Name = "splitpart"
  141. sp21.Name = "splitpart"
  142. sp31.Name = "splitpart"
  143. sp41.Name = "splitpart"
  144.  
  145. sp1.Material = "Neon"
  146. sp2.Material = "Neon"
  147. sp3.Material = "Neon"
  148. sp4.Material = "Neon"
  149.  
  150. sp11.Material = "Neon"
  151. sp21.Material = "Neon"
  152. sp31.Material = "Neon"
  153. sp41.Material = "Neon"
  154.  
  155. sp1.RotVelocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  156. sp2.RotVelocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  157. sp3.RotVelocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  158. sp4.RotVelocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  159. sp11.RotVelocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  160. sp21.RotVelocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  161. sp31.RotVelocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  162. sp41.RotVelocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  163.  
  164.  
  165. sp1.Velocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  166. sp2.Velocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  167. sp3.Velocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  168. sp4.Velocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  169. sp11.Velocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  170. sp21.Velocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  171. sp31.Velocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  172. sp41.Velocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  173.  
  174. if collid == true then
  175. sp1.CanCollide = false
  176. sp2.CanCollide = false
  177. sp3.CanCollide = false
  178. sp4.CanCollide = false
  179.  
  180. sp11.CanCollide = false
  181. sp21.CanCollide = false
  182. sp31.CanCollide = false
  183. sp41.CanCollide = false
  184. end
  185.  
  186.  
  187. hit:Destroy()
  188. coroutine.resume(coroutine.create(function()
  189. while sp1.Transparency < 1 do
  190. sp1.Transparency = sp1.Transparency + 0.005
  191. sp2.Transparency = sp1.Transparency
  192. sp3.Transparency = sp1.Transparency
  193. sp4.Transparency = sp1.Transparency
  194. sp11.Transparency = sp1.Transparency
  195. sp21.Transparency = sp1.Transparency
  196. sp31.Transparency = sp1.Transparency
  197. sp41.Transparency = sp1.Transparency
  198.  
  199. sp1.Color = Color3.fromRGB(r,g,b)
  200. sp2.Color = Color3.fromRGB(r,g,b)
  201. sp3.Color = Color3.fromRGB(r,g,b)
  202. sp4.Color = Color3.fromRGB(r,g,b)
  203.  
  204. sp11.Color = Color3.fromRGB(r,g,b)
  205. sp21.Color = Color3.fromRGB(r,g,b)
  206. sp31.Color = Color3.fromRGB(r,g,b)
  207. sp41.Color = Color3.fromRGB(r,g,b)
  208.  
  209. grav(sp1)
  210. grav(sp2)
  211. grav(sp3)
  212. grav(sp4)
  213. grav(sp11)
  214. grav(sp21)
  215. grav(sp31)
  216. grav(sp41)
  217. wait()
  218. end
  219. sp1:Destroy()
  220. sp2:Destroy()
  221. sp3:Destroy()
  222. sp4:Destroy()
  223. sp11:Destroy()
  224. sp21:Destroy()
  225. sp31:Destroy()
  226. sp41:Destroy()
  227. end))
  228.  
  229. debounce = false
  230. end
  231. end)
  232.  
  233. local rip = function(nam, par)
  234. local d = par:GetChildren()
  235. for i=1, #d do
  236. if d[i].Name == nam then
  237. local sp1 = Instance.new("Part", workspace)
  238. sp1.Color = Color3.fromRGB(r,g,b)
  239. sp1.Material = d[i].Material
  240. sp1.Size = Vector3.new(d[i].Size.X/2,d[i].Size.Y/2,d[i].Size.Z/2)
  241. sp1.CFrame = d[i].CFrame*CFrame.new(d[i].Size.X/4,d[i].Size.Y/4,-d[i].Size.Z/4)
  242. local sp2 = Instance.new("Part", workspace)
  243. sp2.Color = Color3.fromRGB(r,g,b)
  244. sp2.Material = d[i].Material
  245. sp2.Size = Vector3.new(d[i].Size.X/2,d[i].Size.Y/2,d[i].Size.Z/2)
  246. sp2.CFrame = d[i].CFrame*CFrame.new(-d[i].Size.X/4,d[i].Size.Y/4,-d[i].Size.Z/4)
  247. local sp3 = Instance.new("Part", workspace)
  248. sp3.Color = Color3.fromRGB(r,g,b)
  249. sp3.Material = d[i].Material
  250. sp3.Size = Vector3.new(d[i].Size.X/2,d[i].Size.Y/2,d[i].Size.Z/2)
  251. sp3.CFrame = d[i].CFrame*CFrame.new(d[i].Size.X/4,-d[i].Size.Y/4,-d[i].Size.Z/4)
  252. local sp4 = Instance.new("Part", workspace)
  253. sp4.Color = Color3.fromRGB(r,g,b)
  254. sp4.Material = d[i].Material
  255. sp4.Size = Vector3.new(d[i].Size.X/2,d[i].Size.Y/2,d[i].Size.Z/2)
  256. sp4.CFrame = d[i].CFrame*CFrame.new(-d[i].Size.X/4,-d[i].Size.Y/4,-d[i].Size.Z/4)
  257.  
  258. local sp11 = Instance.new("Part", workspace)
  259. sp11.Color = Color3.fromRGB(r,g,b)
  260. sp11.Material = d[i].Material
  261. sp11.Size = Vector3.new(d[i].Size.X/2,d[i].Size.Y/2,d[i].Size.Z/2)
  262. sp11.CFrame = d[i].CFrame*CFrame.new(d[i].Size.X/4,d[i].Size.Y/4,d[i].Size.Z/4)
  263. local sp21 = Instance.new("Part", workspace)
  264. sp21.Color = Color3.fromRGB(r,g,b)
  265. sp21.Material = d[i].Material
  266. sp21.Size = Vector3.new(d[i].Size.X/2,d[i].Size.Y/2,d[i].Size.Z/2)
  267. sp21.CFrame = d[i].CFrame*CFrame.new(-d[i].Size.X/4,d[i].Size.Y/4,d[i].Size.Z/4)
  268. local sp31 = Instance.new("Part", workspace)
  269. sp31.Color = Color3.fromRGB(r,g,b)
  270. sp31.Material = d[i].Material
  271. sp31.Size = Vector3.new(d[i].Size.X/2,d[i].Size.Y/2,d[i].Size.Z/2)
  272. sp31.CFrame = d[i].CFrame*CFrame.new(d[i].Size.X/4,-d[i].Size.Y/4,d[i].Size.Z/4)
  273. local sp41 = Instance.new("Part", workspace)
  274. sp41.Color = Color3.fromRGB(r,g,b)
  275. sp41.Material = d[i].Material
  276. sp41.Size = Vector3.new(d[i].Size.X/2,d[i].Size.Y/2,d[i].Size.Z/2)
  277. sp41.CFrame = d[i].CFrame*CFrame.new(-d[i].Size.X/4,-d[i].Size.Y/4,d[i].Size.Z/4)
  278.  
  279. sp1.Name = "splitpart"
  280. sp2.Name = "splitpart"
  281. sp3.Name = "splitpart"
  282. sp4.Name = "splitpart"
  283.  
  284. sp11.Name = "splitpart"
  285. sp21.Name = "splitpart"
  286. sp31.Name = "splitpart"
  287. sp41.Name = "splitpart"
  288.  
  289. sp1.Material = "Neon"
  290. sp2.Material = "Neon"
  291. sp3.Material = "Neon"
  292. sp4.Material = "Neon"
  293.  
  294. sp11.Material = "Neon"
  295. sp21.Material = "Neon"
  296. sp31.Material = "Neon"
  297. sp41.Material = "Neon"
  298.  
  299. sp1.RotVelocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  300. sp2.RotVelocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  301. sp3.RotVelocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  302. sp4.RotVelocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  303. sp11.RotVelocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  304. sp21.RotVelocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  305. sp31.RotVelocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  306. sp41.RotVelocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  307.  
  308.  
  309. sp1.Velocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  310. sp2.Velocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  311. sp3.Velocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  312. sp4.Velocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  313. sp11.Velocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  314. sp21.Velocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  315. sp31.Velocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  316. sp41.Velocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  317.  
  318. if collid == true then
  319. sp1.CanCollide = false
  320. sp2.CanCollide = false
  321. sp3.CanCollide = false
  322. sp4.CanCollide = false
  323.  
  324. sp11.CanCollide = false
  325. sp21.CanCollide = false
  326. sp31.CanCollide = false
  327. sp41.CanCollide = false
  328. end
  329.  
  330.  
  331. d[i]:Destroy()
  332. coroutine.resume(coroutine.create(function()
  333. while sp1.Transparency < 1 do
  334. sp1.Transparency = sp1.Transparency + 0.005
  335. sp2.Transparency = sp1.Transparency
  336. sp3.Transparency = sp1.Transparency
  337. sp4.Transparency = sp1.Transparency
  338. sp11.Transparency = sp1.Transparency
  339. sp21.Transparency = sp1.Transparency
  340. sp31.Transparency = sp1.Transparency
  341. sp41.Transparency = sp1.Transparency
  342.  
  343. sp1.Color = Color3.fromRGB(r,g,b)
  344. sp2.Color = Color3.fromRGB(r,g,b)
  345. sp3.Color = Color3.fromRGB(r,g,b)
  346. sp4.Color = Color3.fromRGB(r,g,b)
  347.  
  348. sp11.Color = Color3.fromRGB(r,g,b)
  349. sp21.Color = Color3.fromRGB(r,g,b)
  350. sp31.Color = Color3.fromRGB(r,g,b)
  351. sp41.Color = Color3.fromRGB(r,g,b)
  352.  
  353. grav(sp1)
  354. grav(sp2)
  355. grav(sp3)
  356. grav(sp4)
  357. grav(sp11)
  358. grav(sp21)
  359. grav(sp31)
  360. grav(sp41)
  361. wait()
  362. end
  363. sp1:Destroy()
  364. sp2:Destroy()
  365. sp3:Destroy()
  366. sp4:Destroy()
  367. sp11:Destroy()
  368. sp21:Destroy()
  369. sp31:Destroy()
  370. sp41:Destroy()
  371. end))
  372. end
  373. end
  374. end
  375.  
  376. local ball = function()
  377. attack = true
  378. --char.Head.Anchored = true
  379. local b = Instance.new("Part", char)
  380. b.Shape = "Ball"
  381. b.Anchored = true
  382. b.CFrame = char.Torso.CFrame
  383. b.Material = "Neon"
  384. b.Size = Vector3.new(0,0,0)
  385. b.Touched:connect(function(hit)
  386. if hit.parent ~= char and hit.Name ~= "Base" and hit.Name ~= "splitpart" then
  387. local sp1 = Instance.new("Part", workspace)
  388. sp1.Color = Color3.fromRGB(r,g,b)
  389. sp1.Material = hit.Material
  390. sp1.Size = Vector3.new(hit.Size.X/2,hit.Size.Y/2,hit.Size.Z/2)
  391. sp1.CFrame = hit.CFrame*CFrame.new(hit.Size.X/4,hit.Size.Y/4,-hit.Size.Z/4)
  392. local sp2 = Instance.new("Part", workspace)
  393. sp2.Color = Color3.fromRGB(r,g,b)
  394. sp2.Material = hit.Material
  395. sp2.Size = Vector3.new(hit.Size.X/2,hit.Size.Y/2,hit.Size.Z/2)
  396. sp2.CFrame = hit.CFrame*CFrame.new(-hit.Size.X/4,hit.Size.Y/4,-hit.Size.Z/4)
  397. local sp3 = Instance.new("Part", workspace)
  398. sp3.Color = Color3.fromRGB(r,g,b)
  399. sp3.Material = hit.Material
  400. sp3.Size = Vector3.new(hit.Size.X/2,hit.Size.Y/2,hit.Size.Z/2)
  401. sp3.CFrame = hit.CFrame*CFrame.new(hit.Size.X/4,-hit.Size.Y/4,-hit.Size.Z/4)
  402. local sp4 = Instance.new("Part", workspace)
  403. sp4.Color = Color3.fromRGB(r,g,b)
  404. sp4.Material = hit.Material
  405. sp4.Size = Vector3.new(hit.Size.X/2,hit.Size.Y/2,hit.Size.Z/2)
  406. sp4.CFrame = hit.CFrame*CFrame.new(-hit.Size.X/4,-hit.Size.Y/4,-hit.Size.Z/4)
  407.  
  408. local sp11 = Instance.new("Part", workspace)
  409. sp11.Color = Color3.fromRGB(r,g,b)
  410. sp11.Material = hit.Material
  411. sp11.Size = Vector3.new(hit.Size.X/2,hit.Size.Y/2,hit.Size.Z/2)
  412. sp11.CFrame = hit.CFrame*CFrame.new(hit.Size.X/4,hit.Size.Y/4,hit.Size.Z/4)
  413. local sp21 = Instance.new("Part", workspace)
  414. sp21.Color = Color3.fromRGB(r,g,b)
  415. sp21.Material = hit.Material
  416. sp21.Size = Vector3.new(hit.Size.X/2,hit.Size.Y/2,hit.Size.Z/2)
  417. sp21.CFrame = hit.CFrame*CFrame.new(-hit.Size.X/4,hit.Size.Y/4,hit.Size.Z/4)
  418. local sp31 = Instance.new("Part", workspace)
  419. sp31.Color = Color3.fromRGB(r,g,b)
  420. sp31.Material = hit.Material
  421. sp31.Size = Vector3.new(hit.Size.X/2,hit.Size.Y/2,hit.Size.Z/2)
  422. sp31.CFrame = hit.CFrame*CFrame.new(hit.Size.X/4,-hit.Size.Y/4,hit.Size.Z/4)
  423. local sp41 = Instance.new("Part", workspace)
  424. sp41.Color = Color3.fromRGB(r,g,b)
  425. sp41.Material = hit.Material
  426. sp41.Size = Vector3.new(hit.Size.X/2,hit.Size.Y/2,hit.Size.Z/2)
  427. sp41.CFrame = hit.CFrame*CFrame.new(-hit.Size.X/4,-hit.Size.Y/4,hit.Size.Z/4)
  428.  
  429. sp1.Name = "splitpart"
  430. sp2.Name = "splitpart"
  431. sp3.Name = "splitpart"
  432. sp4.Name = "splitpart"
  433.  
  434. sp11.Name = "splitpart"
  435. sp21.Name = "splitpart"
  436. sp31.Name = "splitpart"
  437. sp41.Name = "splitpart"
  438.  
  439. sp1.Material = "Neon"
  440. sp2.Material = "Neon"
  441. sp3.Material = "Neon"
  442. sp4.Material = "Neon"
  443.  
  444. sp11.Material = "Neon"
  445. sp21.Material = "Neon"
  446. sp31.Material = "Neon"
  447. sp41.Material = "Neon"
  448.  
  449. sp1.RotVelocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  450. sp2.RotVelocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  451. sp3.RotVelocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  452. sp4.RotVelocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  453. sp11.RotVelocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  454. sp21.RotVelocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  455. sp31.RotVelocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  456. sp41.RotVelocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  457.  
  458.  
  459. sp1.Velocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  460. sp2.Velocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  461. sp3.Velocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  462. sp4.Velocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  463. sp11.Velocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  464. sp21.Velocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  465. sp31.Velocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  466. sp41.Velocity = Vector3.new(math.random(-150,150),math.random(-150,150),math.random(-150,150))
  467.  
  468. if collid == true then
  469. sp1.CanCollide = false
  470. sp2.CanCollide = false
  471. sp3.CanCollide = false
  472. sp4.CanCollide = false
  473.  
  474. sp11.CanCollide = false
  475. sp21.CanCollide = false
  476. sp31.CanCollide = false
  477. sp41.CanCollide = false
  478. end
  479.  
  480.  
  481. hit:Destroy()
  482. coroutine.resume(coroutine.create(function()
  483. while sp1.Transparency < 1 do
  484. sp1.Transparency = sp1.Transparency + 0.005
  485. sp2.Transparency = sp1.Transparency
  486. sp3.Transparency = sp1.Transparency
  487. sp4.Transparency = sp1.Transparency
  488. sp11.Transparency = sp1.Transparency
  489. sp21.Transparency = sp1.Transparency
  490. sp31.Transparency = sp1.Transparency
  491. sp41.Transparency = sp1.Transparency
  492.  
  493. sp1.Color = Color3.fromRGB(r,g,b)
  494. sp2.Color = Color3.fromRGB(r,g,b)
  495. sp3.Color = Color3.fromRGB(r,g,b)
  496. sp4.Color = Color3.fromRGB(r,g,b)
  497.  
  498. sp11.Color = Color3.fromRGB(r,g,b)
  499. sp21.Color = Color3.fromRGB(r,g,b)
  500. sp31.Color = Color3.fromRGB(r,g,b)
  501. sp41.Color = Color3.fromRGB(r,g,b)
  502.  
  503. grav(sp1)
  504. grav(sp2)
  505. grav(sp3)
  506. grav(sp4)
  507. grav(sp11)
  508. grav(sp21)
  509. grav(sp31)
  510. grav(sp41)
  511. wait()
  512. end
  513. sp1:Destroy()
  514. sp2:Destroy()
  515. sp3:Destroy()
  516. sp4:Destroy()
  517. sp11:Destroy()
  518. sp21:Destroy()
  519. sp31:Destroy()
  520. sp41:Destroy()
  521. end))
  522. end
  523. end)
  524. coroutine.resume(coroutine.create(function()
  525. while charging == true do
  526. b.Color = Color3.fromRGB(r,g,b)
  527. b.Size = b.Size + Vector3.new(0.1,0.1,0.1)
  528. char.Humanoid.Health = char.Humanoid.Health + 0.05
  529. wait()
  530. end
  531. b:Destroy()
  532. char.Head.Anchored = false
  533. attack = false
  534. end))
  535. end
  536.  
  537. local spawnn = function()
  538. attack = true
  539. local k = Instance.new("Part", char)
  540. k.Size = Vector3.new(4,4,1)
  541. while charging == true do
  542. k.CFrame = char.Torso.CFrame * CFrame.new(0,0,-5)
  543. k.Name = "bigrip"
  544. k.Size = k.Size + Vector3.new(2,1,0)
  545. wait()
  546. end
  547. attack = false
  548. end
  549.  
  550. play:GetMouse().KeyUp:connect(function(k)
  551. k = k:lower()
  552. if k == "r" then
  553. charging = false
  554. end
  555. if k == "t" then
  556. charging = false
  557. end
  558. rip("bigrip", char)
  559. end)
  560.  
  561. play:GetMouse().KeyDown:connect(function(k)
  562.  
  563. k = k:lower()
  564. if k == "q" and attack == false then
  565. if collid == true then
  566. collid = false
  567. elseif collid == false then
  568. collid = true
  569. end
  570. elseif k == "e" and attack == false then
  571. attack = true
  572. for i = 0,19 do
  573. local p = Instance.new("Part", char)
  574. p.Anchored = true
  575. p.Size = Vector3.new(4,4,1)
  576. p.Name = "rip"
  577. p.CFrame = char.Torso.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) * CFrame.new(0,0,math.random(5,10))
  578. end
  579. wait(.2)
  580. rip("rip", char)
  581. attack = false
  582. elseif k == "r" and attack == false then
  583. charging = true
  584. spawnn()
  585. elseif k == "t" and attack == false then
  586. charging = true
  587. ball()
  588. end
  589. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement