Advertisement
Rusty_Clock

Project Light [Roblox local script R6]

Jan 4th, 2018
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.02 KB | None | 0 0
  1. -- Script made by M8Bat
  2. local player = game:GetService('Players').LocalPlayer
  3. local char = player.Character
  4. local mouse = player:GetMouse()
  5. local T = false
  6. local E = false
  7.  
  8. function Transform(inputObject, gameProcessedEvent)
  9. if inputObject.KeyCode == Enum.KeyCode.Q then
  10. if T == false then
  11. T = true
  12. game.Players.LocalPlayer.Character.Humanoid.HipHeight = 3
  13. wait(.5)
  14. char:FindFirstChild('Torso').Anchored = true
  15.  
  16. --bem from above
  17. local above = Instance.new('Part')
  18. above.Parent = game.Workspace
  19.  
  20. above.Size = Vector3.new(7,200,7)
  21. above.Transparency = 1
  22. above.Anchored = true
  23. above.CanCollide = false
  24. above.Position= Vector3.new(char.Torso.Position.X,char.Torso.Position.Y+90 + 3.5,char.Torso.Position.Z)
  25. above.Material = 'Neon'
  26. above.BrickColor =BrickColor.White()
  27. for i =1, 100 do
  28. above.Transparency = above.Transparency - 0.01
  29.  
  30. wait(0.02)
  31. end
  32. for i=1, 100 do
  33. above.Transparency = above.Transparency + 0.01
  34. above.Size = above.Size+ Vector3.new(0.01,0.01,0.01)
  35. wait(0.01)
  36. end
  37.  
  38.  
  39. above:Destroy()
  40. wait(.1)
  41.  
  42.  
  43.  
  44.  
  45. -- Transformation Lights
  46. local bem = Instance.new('Part')
  47. bem.Parent = game.Workspace
  48.  
  49. bem.Size = Vector3.new(7,7,7)
  50. bem.Anchored = true
  51. bem.CanCollide = false
  52. bem.Position= Vector3.new(char.Torso.Position.X,char.Torso.Position.Y + 3.5,char.Torso.Position.Z)
  53. bem.Material = 'Neon'
  54. bem.BrickColor =BrickColor.White()
  55.  
  56.  
  57. local gem = Instance.new('Part')
  58. gem.Parent = game.Workspace
  59. gem.Size = Vector3.new(7,7,7)
  60. gem.Name = 'arua'
  61. gem.Anchored = true
  62. gem.CanCollide = false
  63. gem.Position= Vector3.new(char.Torso.Position.X,char.Torso.Position.Y,char.Torso.Position.Z)
  64.  
  65. gem.Material = 'Neon'
  66. gem.BrickColor =BrickColor.White()
  67.  
  68.  
  69. --Shirt/pant removed
  70. if char:FindFirstChild('Shirt') then
  71. char.Shirt:Destroy()
  72. end
  73.  
  74. if char:FindFirstChild('Pants') then
  75. char.Pants:Destroy()
  76. end
  77. --
  78.  
  79.  
  80. bem.Position= Vector3.new(char.Torso.Position.X,char.Torso.Position.Y,char.Torso.Position.Z)
  81.  
  82. for i = 1, 10 do
  83.  
  84. bem.Size = bem.Size*1.1
  85. wait(0.01)
  86. end
  87. for i = 1, 10 do
  88. bem.Size = bem.Size+ Vector3.new(0.1,0.1,0.1)
  89. bem.Transparency = bem.Transparency + 0.1
  90. wait(0.02)
  91. end
  92. bem:Destroy()
  93.  
  94.  
  95.  
  96.  
  97. --Material
  98. char:FindFirstChild('Head').Material = 'Neon'
  99. char:FindFirstChild('Torso').Material = 'Neon'
  100. char:FindFirstChild('Left Arm').Material = 'Neon'
  101. char:FindFirstChild('Left Leg').Material = 'Neon'
  102. char:FindFirstChild('Right Arm').Material = 'Neon'
  103. char:FindFirstChild('Right Leg').Material = 'Neon'
  104. -- Script made by M8Bat
  105. --Char custom
  106. char.Head.Transparency = 1
  107. char.Head:FindFirstChild('face'):Destroy()
  108. local d = char:GetChildren()
  109. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 30
  110. char.Humanoid.MaxHealth = math.huge * math.huge
  111. -- Script made by M8Bat
  112.  
  113. for i=1, #d do
  114. if (d[i].className == "Accessory") then
  115. d[i]:remove()
  116. end
  117. end
  118.  
  119. -- Script made by M8Bat
  120. --Colours
  121. local bodyc = char:FindFirstChild('Body Colors')
  122. bodyc.HeadColor = BrickColor.new('Institutional white')
  123. bodyc.TorsoColor = BrickColor.new('Institutional white')
  124. bodyc.LeftArmColor = BrickColor.new('Institutional white')
  125. bodyc.LeftLegColor = BrickColor.new('Institutional white')
  126. bodyc.RightArmColor = BrickColor.new('Institutional white')
  127. bodyc.RightLegColor = BrickColor.new('Institutional white')
  128. for i = 1, 10 do
  129. local bem2 = Instance.new('Part')
  130. bem2.Parent = game.Workspace
  131. -- Script made by M8Bat
  132. bem2.Size = Vector3.new(7,7,7)
  133. bem2.Anchored = true
  134. bem2.CanCollide = false
  135. bem2.Position= Vector3.new(0,10,0)
  136. bem2.Material = 'Neon'
  137. bem2.BrickColor =BrickColor.White()
  138. -- Script made by M8Bat
  139.  
  140. bem2.Position= Vector3.new(char.Torso.Position.X,char.Torso.Position.Y,char.Torso.Position.Z)
  141.  
  142. for i = 1, 10 do
  143.  
  144. bem2.Size = bem2.Size*1.1
  145. wait(0.01)
  146. end
  147. for i = 1, 10 do
  148. bem2.Size = bem2.Size+ Vector3.new(0.1,0.1,0.1)
  149. bem2.Transparency = bem2.Transparency + 0.1
  150. wait(0.02)
  151. end
  152. bem2:Destroy()
  153. end
  154. gem:Destroy()
  155. char.Torso.Anchored = false
  156. char.Humanoid.HipHeight = 0
  157. E = true
  158.  
  159. end
  160.  
  161. end
  162.  
  163.  
  164.  
  165.  
  166. --Attack 1 Ray of light
  167.  
  168.  
  169.  
  170. if inputObject.KeyCode == Enum.KeyCode.E then
  171. if E == true then
  172. if mouse.Target~= nil then
  173. local ray = Ray.new(char.Torso.CFrame.p, (mouse.Hit.p - char.Torso.CFrame.p).unit * 300)
  174. local part, position = workspace:FindPartOnRay(ray, player.Character, false, true)
  175.  
  176. local beam = Instance.new("Part", workspace)
  177. beam.BrickColor = BrickColor.new("Institutional white")
  178. beam.FormFactor = "Custom"
  179. beam.Material = "Neon"
  180. beam.Transparency = 0
  181. -- Script made by M8Bat
  182. beam.Anchored = true
  183. beam.Locked = true
  184. beam.CanCollide = false
  185. beam.Name = 'b9'
  186. local distance = (char.Torso.CFrame.p - position).magnitude
  187. beam.Size = Vector3.new(3, 3, distance)
  188. mouse.Target.Anchored = true
  189. if mouse.Target.Name ~= 'Base' then
  190. print(mouse.Target.Name)
  191. mouse.Target:Destroy()
  192. end
  193.  
  194.  
  195.  
  196.  
  197.  
  198. local ray = Ray.new(char.Torso.CFrame.p, (mouse.Hit.p - (char.Torso.CFrame.p).unit * 300))
  199. local distance = (char.Torso.CFrame.p - position).magnitude
  200. beam.Size = Vector3.new(.3, .3, distance)
  201. beam.CFrame = CFrame.new(char.Torso.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  202. wait(.02)
  203. if game.Workspace:FindFirstChild('b9') then
  204. game.Workspace.b9:Destroy()
  205. end
  206.  
  207.  
  208.  
  209.  
  210. end
  211. end
  212. end
  213.  
  214.  
  215.  
  216. local combat1 = false
  217. if inputObject.KeyCode == Enum.KeyCode.R then
  218. if E == true then
  219. if mouse.Target.Parent:FindFirstChild('Humanoid')then
  220. if combat1 == false then
  221. combat1 = true
  222.  
  223. local bem3 = Instance.new('Part')
  224. local target = mouse.Target.Parent
  225. bem3.Parent = game.Workspace
  226.  
  227. char.Torso.CFrame = CFrame.new(target.Torso.Position.X,target.Torso.Position.Y,target.Torso.Position.Z + 5)
  228.  
  229. target.Torso.Anchored =true
  230.  
  231.  
  232.  
  233.  
  234. bem3.Size = Vector3.new(7,7,7)
  235. bem3.Anchored = true
  236. bem3.CanCollide = false
  237. bem3.Position= Vector3.new(0,10,0)
  238. bem3.Material = 'Neon'
  239. bem3.BrickColor =BrickColor.White()
  240.  
  241.  
  242. bem3.Position= Vector3.new(target.Torso.Position.X,target.Torso.Position.Y,target.Torso.Position.Z)
  243.  
  244. for i = 1, 10 do
  245.  
  246. bem3.Size = bem3.Size*1.1
  247. wait(0.01)
  248. end
  249. for i = 1, 10 do
  250. bem3.Size = bem3.Size+ Vector3.new(0.1,0.1,0.1)
  251. bem3.Transparency = bem3.Transparency + 0.1
  252. wait(0.02)
  253. end
  254. bem3:Destroy()
  255.  
  256. target.Torso.CFrame = CFrame.new(40,50,30)
  257. --Attack 2
  258. local bem4 = Instance.new('Part')
  259.  
  260. bem4.Parent = game.Workspace
  261.  
  262. bem4.Size = Vector3.new(7,7,7)
  263. bem4.Anchored = true
  264. -- Script made by M8Bat
  265. bem4.CanCollide = false
  266. bem4.Position= Vector3.new(0,10,0)
  267. bem4.Material = 'Neon'
  268. bem4.BrickColor =BrickColor.White()
  269.  
  270.  
  271. bem4.Position= Vector3.new(target.Torso.Position.X,target.Torso.Position.Y,target.Torso.Position.Z)
  272.  
  273. for i = 1, 10 do
  274.  
  275. bem4.Size = bem4.Size*1.1
  276. wait(0.01)
  277. end
  278. for i = 1, 10 do
  279. bem4.Size = bem4.Size+ Vector3.new(0.1,0.1,0.1)
  280. bem4.Transparency = bem4.Transparency + 0.1
  281. wait(0.02)
  282. end
  283.  
  284. target.Torso.CFrame = CFrame.new(target.Torso.Position.X + 20,target.Torso.Position.Y + 10,target.Torso.Position.Z + 90)
  285.  
  286. --Attack 3
  287. local bem5 = Instance.new('Part')
  288.  
  289. bem5.Parent = game.Workspace
  290.  
  291. bem5.Size = Vector3.new(7,7,7)
  292. bem5.Anchored = true
  293. bem5.CanCollide = false
  294. bem5.Position= Vector3.new(0,10,0)
  295. bem5.Material = 'Neon'
  296. bem5.BrickColor =BrickColor.White()
  297.  
  298.  
  299. bem5.Position= Vector3.new(target.Torso.Position.X,target.Torso.Position.Y,target.Torso.Position.Z)
  300.  
  301. for i = 1, 10 do
  302.  
  303. bem5.Size = bem5.Size*1.1
  304. wait(0.01)
  305. end
  306. for i = 1, 10 do
  307. bem5.Size = bem5.Size+ Vector3.new(0.1,0.1,0.1)
  308. bem5.Transparency = bem5.Transparency + 0.1
  309. wait(0.02)
  310. end
  311.  
  312. target.Torso.CFrame = CFrame.new(target.Torso.Position.X + 90,target.Torso.Position.Y + 50,target.Torso.Position.Z - 60)
  313.  
  314.  
  315. -- Attack 4
  316. local bem6 = Instance.new('Part')
  317.  
  318. bem6.Parent = game.Workspace
  319.  
  320. bem6.Size = Vector3.new(7,7,7)
  321. bem6.Anchored = true
  322. bem6.CanCollide = false
  323. -- Script made by M8Bat
  324. bem6.Position= Vector3.new(0,10,0)
  325. bem6.Material = 'Neon'
  326. bem6.BrickColor =BrickColor.White()
  327.  
  328.  
  329. bem6.Position= Vector3.new(target.Torso.Position.X,target.Torso.Position.Y,target.Torso.Position.Z)
  330.  
  331. for i = 1, 10 do
  332.  
  333. bem6.Size = bem6.Size*1.1
  334. wait(0.01)
  335. end
  336. for i = 1, 10 do
  337. bem6.Size = bem6.Size+ Vector3.new(0.1,0.1,0.1)
  338. bem6.Transparency = bem6.Transparency + 0.1
  339. wait(0.02)
  340. end
  341.  
  342. target.Torso.CFrame = CFrame.new(target.Torso.Position.X + 90,target.Torso.Position.Y + 50,target.Torso.Position.Z - 60)
  343.  
  344. --Attack 5
  345. local bem7 = Instance.new('Part')
  346.  
  347. bem7.Parent = game.Workspace
  348.  
  349. bem7.Size = Vector3.new(7,7,7)
  350. bem7.Anchored = true
  351. bem7.CanCollide = false
  352. bem7.Position= Vector3.new(0,10,0)
  353. bem7.Material = 'Neon'
  354. bem7.BrickColor =BrickColor.White()
  355.  
  356.  
  357. bem7.Position= Vector3.new(target.Torso.Position.X,target.Torso.Position.Y,target.Torso.Position.Z)
  358.  
  359. for i = 1, 10 do
  360.  
  361. bem7.Size = bem7.Size*1.1
  362. wait(0.01)
  363. end
  364. for i = 1, 10 do
  365. bem7.Size = bem7.Size+ Vector3.new(0.1,0.1,0.1)
  366. bem7.Transparency = bem7.Transparency + 0.1
  367. wait(0.02)
  368. end
  369.  
  370. target.Torso.CFrame = CFrame.new(15,char.Torso.Position.Y + 10,15)
  371.  
  372. bem3:Destroy()
  373. bem4:Destroy()
  374. bem5:Destroy()
  375. -- Script made by M8Bat
  376. bem6:Destroy()
  377. bem7:Destroy()
  378.  
  379.  
  380.  
  381. -- FINISHER
  382.  
  383. local bem8 = Instance.new('Part')
  384.  
  385. bem8.Parent = game.Workspace
  386.  
  387. bem8.Size = Vector3.new(7,7,7)
  388. bem8.Anchored = true
  389. bem8.CanCollide = false
  390. bem8.Position= Vector3.new(0,10,0)
  391. bem8.Material = 'Neon'
  392. bem8.BrickColor =BrickColor.White()
  393.  
  394.  
  395. bem8.Position= Vector3.new(target.Torso.Position.X,char.Torso.Position.Y,target.Torso.Position.Z)
  396. for i = 1, 10 do
  397.  
  398. bem8.Size = bem8.Size*1.3
  399. wait(0.01)
  400. end
  401. for i = 1, 10 do
  402. bem8.Size = bem8.Size+ Vector3.new(0.1,0.1,0.1)
  403. bem8.Transparency = bem8.Transparency + 0.1
  404. wait(0.02)
  405. end
  406.  
  407.  
  408. target:FindFirstChild('Head'):Destroy()
  409. target:FindFirstChild('Humanoid').Health = target:FindFirstChild('Humanoid').Health - target:FindFirstChild('Humanoid').Health
  410. char.Torso.Anchored = false
  411. target.Torso.Anchored = false
  412. end
  413. end
  414. end
  415. end
  416. end
  417.  
  418.  
  419.  
  420.  
  421. local e = false
  422. mouse.Button1Down:connect(function()
  423. if E==true then
  424.  
  425. if e == false then
  426. e = true
  427. bem = Instance.new('Part', game.Workspace)
  428.  
  429. bem.Name = 'bem'
  430. bem.Anchored = true
  431. bem.CanCollide = false
  432. bem.Material = 'Neon'
  433. -- Script made by M8Bat
  434. bem.BottomSurface = 'Smooth'
  435. bem.TopSurface = 'Smooth'
  436. bem.Size = Vector3.new(1,1,1)
  437. bem.Velocity = Vector3.new(0,math.huge,math.huge)
  438.  
  439. bem.CFrame = char.Torso.CFrame * CFrame.new(0,0,-5)
  440. bem.Touched:connect(function(otherPart)
  441. otherPart:Destroy()
  442. end)
  443.  
  444. for i =1,10 do
  445. bem.Size = bem.Size + Vector3.new(1,1,4)
  446. bem.CFrame = char.Torso.CFrame * CFrame.new(0,0,-5 - bem.Size.Z/2)
  447. bem.Touched:connect(function(otherPart)
  448. otherPart:Destroy()
  449. end)
  450. wait()
  451. end
  452. for i = 1,100 do
  453. bem.Size = bem.Size + Vector3.new(0,0,4)
  454. bem.CFrame = char.Torso.CFrame * CFrame.new(0,0,-5 - bem.Size.Z/2)
  455. bem.Touched:connect(function(otherPart)
  456. otherPart:Destroy()
  457. end)
  458.  
  459. wait()
  460. end
  461. laser = true
  462. while laser == true do
  463. bem.CFrame = char.Torso.CFrame * CFrame.new(0,0,-5 - bem.Size.Z/2)
  464. wait()
  465. end
  466.  
  467. end
  468. bem.Touched:connect(function(otherPart)
  469. otherPart:Destroy()
  470. end)
  471. end
  472. end)
  473.  
  474.  
  475. mouse.Button1Up:connect(function()
  476. if E==true then
  477. for i = 1,10 do
  478. bem.Size = bem.Size - Vector3.new(bem.Size.X/10,bem.Size.Y/10,0)
  479. bem.Transparency = bem.Transparency + 0.1
  480. bem.Touched:connect(function(otherPart)
  481. otherPart:Destroy()
  482. end)
  483. wait()
  484.  
  485. end
  486. bem:Destroy()
  487. e = false
  488.  
  489. end
  490. end)
  491.  
  492.  
  493. game:GetService("UserInputService").InputBegan:connect(Transform)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement