kingkoolie

Untitled

Jun 30th, 2016
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.46 KB | None | 0 0
  1. --Variables--
  2. local p = game.Players.LocalPlayer
  3. local c = p.Character
  4. local m = p:GetMouse()
  5. local tor = c:WaitForChild("Torso")
  6. local h = c:WaitForChild("Head")
  7. local rl = c:WaitForChild("Right Leg")
  8. local ll = c:WaitForChild("Left Leg")
  9. local ra = c:WaitForChild("Right Arm")
  10. local rl = c:WaitForChild("Left Leg")
  11. local hum = c:WaitForChild("Humanoid")
  12. local gui = p.PlayerGui
  13.  
  14.  
  15.  
  16.  
  17. --end--
  18.  
  19. function debounce(func)
  20. local isRunning = false -- Create a local debounce variable
  21. return function(...) -- Return a new function
  22. if not isRunning then
  23. isRunning = true
  24.  
  25. func(...) -- Call it with the original arguments
  26.  
  27. isRunning = false
  28. end
  29. end
  30. end
  31. --Coroutines--
  32. angle = 0
  33. Player = game.Players.LocalPlayer
  34. Object = Player.Character.HumanoidRootPart
  35. Arm1 = Player.Character["Right Arm"]
  36. PreviousA1 = Arm1.CFrame.p
  37. Arm2 = Player.Character["Left Arm"]
  38. PreviousA2 = Arm2.CFrame.p
  39.  
  40. Leg1 = Player.Character["Right Leg"]
  41. PreviousL1 = Leg1.CFrame.p
  42. Leg2 = Player.Character["Left Leg"]
  43. PreviousL2 = Leg2.CFrame.p
  44.  
  45. Run = game["Run Service"]
  46.  
  47. PreviousP = Object.CFrame.p
  48. Running = false
  49. Phase = false
  50. PhaseActive = false
  51. Morph = false
  52. MorphActive = false
  53. Tornado = false
  54. TornadoRadius = 50
  55. TornadoActive = false
  56. Portal = false
  57. PortalEnd = false
  58. MaxZ = 15
  59. MinZ = -15
  60. LightMaxX = 3
  61. LightMinX = 1
  62. LightMaxX2 = -1
  63. LightMinX2 = -3
  64. LightMaxY = 3
  65. LightMinY = -1
  66. Rotation = 0
  67. Length = 10
  68. oka = math.random(1,2)
  69. if oka == 1 then
  70. Color = BrickColor.new("Toothpaste")
  71. PColor = Color3.new(0,0,255/255)
  72. else
  73. PColor = Color3.new(4/255, 253/255, 255/255)
  74. Color = BrickColor.new("Really blue")
  75. end
  76. --end--
  77. local function weldBetween1(a, b)
  78. --Make a new Weld and Parent it to a.
  79. local weld = Instance.new("ManualWeld", a)
  80. weld.Part0 = a
  81. weld.Part1 = b
  82. --Get the CFrame of b relative to a.
  83. while wait() do
  84. weld.C0 = a.CFrame:inverse() * b.CFrame*CFrame.new(0,20,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
  85. --Return the reference to the weld so that you can change it later.
  86.  
  87. return weld
  88. end
  89. end
  90. --end--
  91. local function weldBetween2(a, b)
  92. --Make a new Weld and Parent it to a.
  93. local weld = Instance.new("ManualWeld", a)
  94. weld.Part0 = a
  95. weld.Part1 = b
  96. --Get the CFrame of b relative to a.
  97. while wait() do
  98. weld.C0 = a.CFrame:inverse() * b.CFrame*CFrame.new(0,50,0)*CFrame.Angles(math.rad(0),0,math.rad(0))
  99. --Return the reference to the weld so that you can change it later.
  100.  
  101. return weld
  102. end
  103. end
  104. local function weldBetween3(a, b)
  105. --Make a new Weld and Parent it to a.
  106. local weld = Instance.new("ManualWeld", a)
  107. weld.Part0 = a
  108. weld.Part1 = b
  109. --Get the CFrame of b relative to a.
  110. while wait() do
  111. weld.C0 = a.CFrame:inverse() * b.CFrame *CFrame.new(0,90,-65)* CFrame.Angles(math.rad(30),math.rad(0),math.rad(0))
  112. --Return the reference to the weld so that you can change it later.
  113.  
  114. return weld
  115. end
  116. end
  117.  
  118. local function weldBetween(a, b)
  119. --Make a new Weld and Parent it to a.
  120. local weld = Instance.new("ManualWeld", a)
  121. weld.Part0 = a
  122. weld.Part1 = b
  123. --Get the CFrame of b relative to a.
  124. while wait() do
  125. weld.C0 = a.CFrame:inverse() * b.CFrame *CFrame.new(0,15,-15)* CFrame.Angles(math.rad(30),math.rad(0),math.rad(0))
  126. --Return the reference to the weld so that you can change it later.
  127.  
  128. return weld
  129. end
  130. end
  131.  
  132. function onKeyPress2(actionName, userInputState, inputObject)
  133. if userInputState == Enum.UserInputState.Begin then
  134. print("R was pressed")
  135. local mk = Instance.new("Part",tor)
  136. mk.CFrame = tor.CFrame*CFrame.new(0,15,-15)
  137. mk.Anchored = false
  138. mk.Transparency = 0
  139. mk.Size = Vector3.new(.2,.2,.2)
  140. local weld = weldBetween(tor, mk)
  141. mk.Name = "Shot"
  142. coroutine.resume(coroutine.create(function()
  143. local pd = 100
  144. while pd > 10 do
  145. pd = pd - 1
  146. local ring = Instance.new("Part", c.Torso)
  147. ring.Anchored = true
  148. ring.CanCollide = false
  149. ring.Material = "Neon"
  150. ring.BrickColor = BrickColor.new("Crimson")
  151. ring.FormFactor = "Custom"
  152. ring.Size = Vector3.new(30,30,30)
  153. ring.Transparency = 0.3
  154. ring.CFrame = c.Head.CFrame*CFrame.new(0,0,-3)*CFrame.fromEulerAnglesXYZ(math.random(-20,20),0,math.random(-20,20))
  155. local rmesh = Instance.new("BlockMesh", ring)
  156. game.Debris:AddItem(ring,1)
  157. rmesh.Scale = Vector3.new(1,1,1)
  158. ring.Touched:connect(function(hit)
  159. if hit.Parent:FindFirstChild("Value") then
  160. hit.Parent:WaitForChild("Humanoid").Health = hit.Parent:WaitForChild("Humanoid").Health - 5
  161. end
  162. end)
  163. coroutine.resume(coroutine.create(function(c)
  164. for i=1,10 do
  165. c.Transparency = i/10
  166. c.Mesh.Scale = c.Mesh.Scale + Vector3.new(1,1,1)
  167. c.CFrame = c.CFrame *CFrame.new(0,0,-10)* CFrame.Angles(-.2,0,-.2)
  168. wait(0.025)
  169. end
  170. c.Parent = nil
  171. end),ring)
  172. wait()
  173. end
  174. end))
  175. coroutine.resume(coroutine.create(function()
  176. local pd = 50
  177. while pd > 10 do
  178. pd = pd - 1
  179. local ring = Instance.new("Part", c.Torso)
  180. ring.Anchored = true
  181. ring.CanCollide = false
  182. ring.BrickColor = BrickColor.new("Really red")
  183. ring.FormFactor = "Custom"
  184. ring.Size = Vector3.new(1,1,1)
  185. ring.Transparency = 0.3
  186. ring.CFrame = c.Torso.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-20,20),0,math.random(-20,20))
  187. local rmesh = Instance.new("SpecialMesh", ring)
  188. rmesh.MeshId = "rbxassetid://437085648"
  189. rmesh.Scale = Vector3.new(0,0,0)
  190. game.Debris:AddItem(ring,2)
  191. coroutine.resume(coroutine.create(function(c)
  192. for i=1,10 do
  193. c.Transparency = i/10
  194. c.Mesh.Scale = c.Mesh.Scale + Vector3.new(.4,.4,.4)
  195. wait(0.1)
  196. end
  197. c.Parent = nil
  198. end),ring)
  199. wait()
  200. end
  201. end))
  202. tor.Anchored = true
  203. tor.CFrame = tor.CFrame*CFrame.new(0,50,0)
  204. wait(3)
  205. local ring = Instance.new("Part", c.Torso)
  206. ring.CanCollide = false
  207. ring.FormFactor = "Custom"
  208. ring.Size = Vector3.new(0.2,0.2,0.2)
  209. ring.Transparency = 0
  210. ring.CFrame = c.Head.CFrame
  211. local rmesh = Instance.new("SpecialMesh", ring)
  212. rmesh.MeshId = "rbxassetid://430331583"
  213. rmesh.TextureId = "rbxassetid://430331587"
  214. rmesh.Scale = Vector3.new(3,4,3)
  215. ring.Anchored = false
  216. tor.Anchored = false
  217. local weld = weldBetween1(tor, ring)
  218. end
  219. end
  220.  
  221. function onKeyPress1(actionName, userInputState, inputObject)
  222. if userInputState == Enum.UserInputState.Begin then
  223.  
  224. coroutine.resume(coroutine.create(function()
  225. local pd = 100
  226. while pd > 10 do
  227. pd = pd - 1
  228. local ring = Instance.new("Part", c.Torso)
  229. ring.Anchored = true
  230. ring.CanCollide = false
  231. ring.Material = "Neon"
  232. ring.BrickColor = BrickColor.new("Really red")
  233. ring.FormFactor = "Custom"
  234. ring.Size = Vector3.new(10,10,10)
  235. ring.Transparency = 0.3
  236. ring.CFrame = tor.Shot.CFrame
  237. local rmesh = Instance.new("BlockMesh", ring)
  238. game.Debris:AddItem(ring,1)
  239. rmesh.Scale = Vector3.new(1,1,1)
  240. ring.Touched:connect(function(hit)
  241.  
  242. hit.Parent:WaitForChild("Humanoid").Health = hit.Parent:WaitForChild("Humanoid").Health - 5
  243.  
  244. end)
  245. coroutine.resume(coroutine.create(function(c)
  246. for i=1,10 do
  247. c.Transparency = i/10
  248. c.Mesh.Scale = c.Mesh.Scale + Vector3.new(.2,.2,.2)
  249. c.CFrame = c.CFrame *CFrame.new(0,-10,-10)* CFrame.Angles(-.2,0,-.2)
  250. wait(0.025)
  251. end
  252. c.Parent = nil
  253. end),ring)
  254. wait()
  255. end
  256. end))
  257. end
  258. end
  259.  
  260. function onKeyPress3(actionName, userInputState, inputObject)
  261. if userInputState == Enum.UserInputState.Begin then
  262. print("R was pressed")
  263. local mk = Instance.new("Part",tor)
  264. mk.CFrame = tor.CFrame*CFrame.new(0,15,-15)
  265. mk.Anchored = false
  266. mk.Transparency = 0
  267. mk.Size = Vector3.new(.2,.2,.2)
  268. local weld = weldBetween3(tor, mk)
  269. mk.Name = "Shot"
  270. coroutine.resume(coroutine.create(function()
  271. local pd = 100
  272. while pd > 10 do
  273. pd = pd - 1
  274. local ring = Instance.new("Part", c.Torso)
  275. ring.Anchored = true
  276. ring.CanCollide = false
  277. ring.Material = "Neon"
  278. ring.BrickColor = BrickColor.new("Crimson")
  279. ring.FormFactor = "Custom"
  280. ring.Size = Vector3.new(30,30,30)
  281. ring.Transparency = 0.3
  282. ring.CFrame = c.Head.CFrame*CFrame.new(0,0,-3)*CFrame.fromEulerAnglesXYZ(math.random(-20,20),0,math.random(-20,20))
  283. local rmesh = Instance.new("BlockMesh", ring)
  284. game.Debris:AddItem(ring,1)
  285. rmesh.Scale = Vector3.new(1,1,1)
  286. ring.Touched:connect(function(hit)
  287. if hit.Parent:FindFirstChild("Value") then
  288. hit.Parent:WaitForChild("Humanoid").Health = hit.Parent:WaitForChild("Humanoid").Health - 5
  289. end
  290. end)
  291. coroutine.resume(coroutine.create(function(c)
  292. for i=1,10 do
  293. c.Transparency = i/10
  294. c.Mesh.Scale = c.Mesh.Scale + Vector3.new(1,1,1)
  295. c.CFrame = c.CFrame *CFrame.new(0,0,-10)* CFrame.Angles(-.2,0,-.2)
  296. wait(0.025)
  297. end
  298. c.Parent = nil
  299. end),ring)
  300. wait()
  301. end
  302. end))
  303. coroutine.resume(coroutine.create(function()
  304. local pd = 50
  305. while pd > 10 do
  306. pd = pd - 1
  307. local ring = Instance.new("Part", c.Torso)
  308. ring.Anchored = true
  309. ring.CanCollide = false
  310. ring.BrickColor = BrickColor.new("Really red")
  311. ring.FormFactor = "Custom"
  312. ring.Size = Vector3.new(1,1,1)
  313. ring.Transparency = 0.3
  314. ring.CFrame = c.Torso.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-20,20),0,math.random(-20,20))
  315. local rmesh = Instance.new("SpecialMesh", ring)
  316. rmesh.MeshId = "rbxassetid://437085648"
  317. rmesh.Scale = Vector3.new(0,0,0)
  318. game.Debris:AddItem(ring,2)
  319. coroutine.resume(coroutine.create(function(c)
  320. for i=1,10 do
  321. c.Transparency = i/10
  322. c.Mesh.Scale = c.Mesh.Scale + Vector3.new(.4,.4,.4)
  323. wait(0.1)
  324. end
  325. c.Parent = nil
  326. end),ring)
  327. wait()
  328. end
  329. end))
  330. tor.Anchored = true
  331. tor.CFrame = tor.CFrame*CFrame.new(0,50,0)
  332. wait(3)
  333. local ring = Instance.new("Part", c.Torso)
  334. ring.CanCollide = false
  335. ring.FormFactor = "Custom"
  336. ring.Size = Vector3.new(0.2,0.2,0.2)
  337. ring.Transparency = 0
  338. ring.CFrame = c.Head.CFrame
  339. local rmesh = Instance.new("SpecialMesh", ring)
  340. rmesh.MeshId = "rbxassetid://430177801"
  341. rmesh.TextureId = "rbxassetid://430177813"
  342. rmesh.Scale = Vector3.new(.5,.7,.5)
  343. ring.Anchored = false
  344. tor.Anchored = false
  345. local weld = weldBetween2(tor, ring)
  346. end
  347. end
  348.  
  349. function onKeyPress4(actionName, userInputState, inputObject)
  350. if userInputState == Enum.UserInputState.Begin then
  351.  
  352. coroutine.resume(coroutine.create(function()
  353. local pd = 100
  354. while pd > 10 do
  355. pd = pd - 1
  356. local ring = Instance.new("Part", c.Torso)
  357. ring.Anchored = true
  358. ring.CanCollide = false
  359. ring.BrickColor = BrickColor.new("New Yeller")
  360. ring.FormFactor = "Custom"
  361. ring.Size = Vector3.new(10,10,10)
  362. ring.Transparency = 0.3
  363. ring.CFrame = c.Torso.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-20,20),0,math.random(-20,20))
  364. local rmesh = Instance.new("SpecialMesh", ring)
  365. rmesh.MeshId = "rbxassetid://437085648"
  366. rmesh.Scale = Vector3.new(0,0,0)
  367. game.Debris:AddItem(ring,2)
  368. ring.Anchored = false
  369. tor.Anchored = false
  370. ring.Touched:connect(function(hit)
  371.  
  372. hit.Parent:WaitForChild("Humanoid").Health = hit.Parent:WaitForChild("Humanoid").Health - 5
  373.  
  374. end)
  375. coroutine.resume(coroutine.create(function(c)
  376. for i=1,10 do
  377. c.Transparency = i/10
  378. c.Mesh.Scale = c.Mesh.Scale + Vector3.new(1,2,3)
  379. c.CFrame = c.CFrame *CFrame.new(0,-30,-30)* CFrame.Angles(-.2,0,-.2)
  380. wait(0.025)
  381. end
  382. c.Parent = nil
  383. end),ring)
  384. wait()
  385. end
  386. end))
  387. end
  388. end
  389. p.Chatted:connect(function(msg)
  390. if msg:sub(1,33) == "free me... from the pits of hell." then
  391. hum.MaxHealth = math.huge
  392. hum.Health = math.huge
  393. print'Activated'
  394. coroutine.resume(coroutine.create(function()
  395. local pd = 150
  396. while pd > 10 do
  397. pd = pd - 1
  398. local ring = Instance.new("Part", c.Torso)
  399. ring.Anchored = true
  400. ring.CanCollide = false
  401. ring.BrickColor = BrickColor.new("Really blue")
  402. ring.FormFactor = "Custom"
  403. ring.Size = Vector3.new(0.1,0.1,0.1)
  404. ring.Transparency = 0.3
  405. ring.CFrame = c.Torso.CFrame*CFrame.new(0,10,0)*CFrame.fromEulerAnglesXYZ(math.random(-20,20),0,math.random(-20,20))
  406. local rmesh = Instance.new("SpecialMesh", ring)
  407. rmesh.MeshId = "rbxassetid://437085648"
  408. rmesh.Scale = Vector3.new(0,0,0)
  409. game.Debris:AddItem(ring,2)
  410. coroutine.resume(coroutine.create(function(c)
  411. for i=1,10 do
  412. c.Transparency = i/10
  413. c.Mesh.Scale = c.Mesh.Scale + Vector3.new(.4,.4,.4)
  414. wait(0.1)
  415. end
  416. c.Parent = nil
  417. end),ring)
  418. wait()
  419. end
  420. end))
  421.  
  422. coroutine.resume(coroutine.create(function()
  423. local pd = 300
  424. while pd > 10 do
  425. pd = pd - 1
  426. local ring = Instance.new("Part", c.Torso)
  427. ring.Anchored = true
  428. ring.CanCollide = false
  429. ring.Material = "Neon"
  430. ring.BrickColor = BrickColor.new("Toothpaste")
  431. ring.FormFactor = "Custom"
  432. ring.Size = Vector3.new(6,6,6)
  433. ring.Transparency = 0.3
  434. ring.CFrame = c.Torso.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-20,20),0,math.random(-20,20))
  435. local rmesh = Instance.new("BlockMesh", ring)
  436. game.Debris:AddItem(ring,2)
  437. coroutine.resume(coroutine.create(function(c)
  438. for i=1,10 do
  439. c.Transparency = i/10
  440. c.Mesh.Scale = c.Mesh.Scale - Vector3.new(.4,.4,.4)
  441. c.CFrame = c.CFrame * CFrame.Angles(-.2,0,-.2)
  442. wait(0.1)
  443. end
  444. c.Parent = nil
  445. end),ring)
  446. wait()
  447. end
  448. end))
  449. wait(6)
  450. coroutine.resume(coroutine.create(function()
  451. local pd = 150
  452. while pd > 10 do
  453. pd = pd - 1
  454. local ring = Instance.new("Part", c.Torso)
  455. ring.Anchored = true
  456. ring.CanCollide = false
  457. ok = math.random(1,2)
  458. if ok == 1 then
  459. ring.BrickColor = BrickColor.new("Toothpaste")
  460. else
  461. ring.BrickColor = BrickColor.new("Really blue")
  462. end
  463. ring.FormFactor = "Custom"
  464. ring.Size = Vector3.new(0.1,0.1,0.1)
  465. ring.Transparency = 0.3
  466. ring.CFrame = c.Torso.CFrame*CFrame.new(0,10,10)*CFrame.fromEulerAnglesXYZ(math.rad(-90),0,math.rad(180))
  467. local rmesh = Instance.new("SpecialMesh", ring)
  468. rmesh.MeshId = "rbxassetid://430083238"
  469. rmesh.Scale = Vector3.new(.5414, .8022, .68596)
  470. game.Debris:AddItem(ring,2)
  471. coroutine.resume(coroutine.create(function(c)
  472. for i=1,10 do
  473. c.Transparency = i/10
  474. c.Mesh.Scale = c.Mesh.Scale + Vector3.new(.01,.01,.01)
  475. wait(0.1)
  476. end
  477. c.Parent = nil
  478. end),ring)
  479. wait()
  480. end
  481. end))
  482. local tag = Instance.new("BoolValue",c)
  483. for u, c in pairs (c:GetChildren()) do
  484. if c.className == "Hat" and c.Name ~= "Swordpack" and c.Name ~= "GlassesBlackFrame" then
  485. c.Handle.Transparency = 1
  486. end
  487. end
  488. local up = Vector3.new(0, 1, 0)
  489. local forward = Vector3.new( 0, 0, -1)
  490. local pos = Vector3.new( 0, 0.47, 0.07)
  491. local right = Vector3.new( 1, 0, 0)
  492. h = Instance.new("Hat")
  493. p = Instance.new("Part")
  494. h.Name = script.Parent.Name
  495. p.Parent = h
  496. p.Position = c:findFirstChild("Head").Position
  497. p.Name = "Handle"
  498. p.formFactor = 0
  499. p.Size = Vector3.new(1,2,2)
  500. p.BottomSurface = 0
  501. p.TopSurface = 0
  502. p.Locked = true
  503. local pm = Instance.new("SpecialMesh",p)
  504. pm.MeshId = "http://www.roblox.com/asset/?id=420164161"
  505. pm.TextureId = "http://www.roblox.com/asset/?id=420164265"
  506. h.Parent = c
  507. h.AttachmentForward = forward
  508. h.AttachmentPos = pos
  509. h.AttachmentRight = right
  510. h.AttachmentUp = up
  511. local holder = Instance.new("Model",tor)
  512. while wait() do
  513. if Portal == false then
  514. angle = angle + 0.6
  515. local Model = Instance.new("Model",holder)
  516. Model.Name = "Lightning"
  517. local Point1 = Instance.new("Part",Model)
  518. Point1.Transparency = 1
  519. Point1.Size = Vector3.new(0.2,0.2,0.2)
  520. Point1.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point1.Size.Z/2))
  521. Point1.Anchored = true
  522. Point1.CanCollide = false
  523. Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  524.  
  525. local Point2 = Instance.new("Part",Model)
  526. Point2.Transparency = 1
  527. Point2.Size = Vector3.new(0.2,0.2,0.2)
  528. Point2.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point2.Size.Z/2))
  529. Point2.Anchored = true
  530. Point2.CanCollide = false
  531. Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  532.  
  533. local Point3 = Instance.new("Part",Model)
  534. Point3.Transparency = 1
  535. Point3.Size = Vector3.new(0.2,0.2,0.2)
  536. Point3.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point3.Size.Z/2))
  537. Point3.Anchored = true
  538. Point3.CanCollide = false
  539. Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  540.  
  541. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  542. local Light = Instance.new("Part",Model)
  543. local PointLight = Instance.new("PointLight",Light)
  544. PointLight.Range = 5
  545. PointLight.Color = PColor
  546. Light.Transparency = 0.5
  547. Light.BrickColor = Color
  548. Light.Material = "Neon"
  549. Light.Size = Vector3.new(0.25,0.25,distance)
  550. Light.Anchored = true
  551. Light.CanCollide = false
  552. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  553.  
  554. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  555. local Light = Instance.new("Part",Model)
  556. local PointLight = Instance.new("PointLight",Light)
  557. PointLight.Range = 5
  558. PointLight.Color = PColor
  559. Light.Transparency = 0.5
  560. Light.BrickColor = Color
  561. Light.Material = "Neon"
  562. Light.Size = Vector3.new(0.25,0.25,distance2)
  563. Light.Anchored = true
  564. Light.CanCollide = false
  565. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  566.  
  567. local Point1 = Instance.new("Part",Model)
  568. Point1.Transparency = 1
  569. Point1.Size = Vector3.new(0.2,0.2,0.2)
  570. Point1.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point1.Size.Z/2))
  571. Point1.Anchored = true
  572. Point1.CanCollide = false
  573. Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  574.  
  575. local Point2 = Instance.new("Part",Model)
  576. Point2.Transparency = 1
  577. Point2.Size = Vector3.new(0.2,0.2,0.2)
  578. Point2.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point2.Size.Z/2))
  579. Point2.Anchored = true
  580. Point2.CanCollide = false
  581. Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  582.  
  583. local Point3 = Instance.new("Part",Model)
  584. Point3.Transparency = 1
  585. Point3.Size = Vector3.new(0.2,0.2,0.2)
  586. Point3.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point3.Size.Z/2))
  587. Point3.Anchored = true
  588. Point3.CanCollide = false
  589. Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  590.  
  591. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  592. local Light = Instance.new("Part",Model)
  593. local PointLight = Instance.new("PointLight",Light)
  594. PointLight.Range = 5
  595. PointLight.Color = PColor
  596. Light.Transparency = 0.5
  597. Light.BrickColor = Color
  598. Light.Material = "Neon"
  599. Light.Size = Vector3.new(0.25,0.25,distance)
  600. Light.Anchored = true
  601. Light.CanCollide = false
  602. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  603.  
  604. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  605. local Light = Instance.new("Part",Model)
  606. local PointLight = Instance.new("PointLight",Light)
  607. PointLight.Range = 5
  608. PointLight.Color = PColor
  609. Light.Transparency = 0.5
  610. Light.BrickColor = Color
  611. Light.Material = "Neon"
  612. Light.Size = Vector3.new(0.3,0.3,distance2)
  613. Light.Anchored = true
  614. Light.CanCollide = false
  615. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  616.  
  617. local Point1 = Instance.new("Part",Model)
  618. Point1.Transparency = 1
  619. Point1.Size = Vector3.new(0.2,0.2,0.2)
  620. Point1.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  621. Point1.Anchored = true
  622. Point1.CanCollide = false
  623. Point1.CFrame = Point1.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  624.  
  625. local Point2 = Instance.new("Part",Model)
  626. Point2.Transparency = 1
  627. Point2.Size = Vector3.new(0.2,0.2,0.2)
  628. Point2.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  629. Point2.Anchored = true
  630. Point2.CanCollide = false
  631. Point2.CFrame = Point2.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  632.  
  633. local Point3 = Instance.new("Part",Model)
  634. Point3.Transparency = 1
  635. Point3.Size = Vector3.new(0.2,0.2,0.2)
  636. Point3.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  637. Point3.Anchored = true
  638. Point3.CanCollide = false
  639. Point3.CFrame = Point3.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  640.  
  641. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  642. local Light = Instance.new("Part",Model)
  643. local PointLight = Instance.new("PointLight",Light)
  644. PointLight.Range = 5
  645. PointLight.Color = PColor
  646. Light.Transparency = 0.5
  647. Light.BrickColor = Color
  648. Light.Material = "Neon"
  649. Light.Size = Vector3.new(0.25,0.25,distance)
  650. Light.Anchored = true
  651. Light.CanCollide = false
  652. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  653.  
  654. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  655. local Light = Instance.new("Part",Model)
  656. local PointLight = Instance.new("PointLight",Light)
  657. PointLight.Range = 5
  658. PointLight.Color = PColor
  659. Light.Transparency = 0.5
  660. Light.BrickColor = Color
  661. Light.Material = "Neon"
  662. Light.Size = Vector3.new(0.25,0.25,distance2)
  663. Light.Anchored = true
  664. Light.CanCollide = false
  665. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  666.  
  667. local Point1 = Instance.new("Part",Model)
  668. Point1.Transparency = 1
  669. Point1.Size = Vector3.new(0.2,0.2,0.2)
  670. Point1.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  671. Point1.Anchored = true
  672. Point1.CanCollide = false
  673. Point1.CFrame = Point1.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  674.  
  675. local Point2 = Instance.new("Part",Model)
  676. Point2.Transparency = 1
  677. Point2.Size = Vector3.new(0.2,0.2,0.2)
  678. Point2.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  679. Point2.Anchored = true
  680. Point2.CanCollide = false
  681. Point2.CFrame = Point2.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  682.  
  683. local Point3 = Instance.new("Part",Model)
  684. Point3.Transparency = 1
  685. Point3.Size = Vector3.new(0.2,0.2,0.2)
  686. Point3.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  687. Point3.Anchored = true
  688. Point3.CanCollide = false
  689. Point3.CFrame = Point3.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  690.  
  691. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  692. local Light = Instance.new("Part",Model)
  693. local PointLight = Instance.new("PointLight",Light)
  694. PointLight.Range = 5
  695. PointLight.Color = PColor
  696. Light.Transparency = 0.5
  697. Light.BrickColor = Color
  698. Light.Material = "Neon"
  699. Light.Size = Vector3.new(0.25,0.25,distance)
  700. Light.Anchored = true
  701. Light.CanCollide = false
  702. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  703.  
  704. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  705. local Light = Instance.new("Part",Model)
  706. local PointLight = Instance.new("PointLight",Light)
  707. PointLight.Range = 5
  708. PointLight.Color = PColor
  709. Light.Transparency = 0.5
  710. Light.BrickColor = Color
  711. Light.Material = "Neon"
  712. Light.Size = Vector3.new(0.25,0.25,distance2)
  713. Light.Anchored = true
  714. Light.CanCollide = false
  715. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  716.  
  717. local Children = Model:GetChildren()
  718. wait(0.1)
  719. for i = 1,#Children do
  720. wait(.025)
  721. if Children[i]:IsA("Part") then
  722. Children[i].Transparency = Children[i].Transparency + .1
  723. end
  724. game.Debris:AddItem(Children[i],0)
  725. end
  726. function onKeyPress(actionName, userInputState, inputObject)
  727. if userInputState == Enum.UserInputState.Begin then
  728. print("R was pressed")
  729. coroutine.resume(coroutine.create(function()
  730. local pd = 200
  731. while pd > 10 do
  732. pd = pd - 1
  733. local ring = Instance.new("Part", c.Torso)
  734. ring.Anchored = true
  735. ring.CanCollide = false
  736. ring.Material = "Neon"
  737. ring.BrickColor = BrickColor.new("Toothpaste")
  738. ring.FormFactor = "Custom"
  739. ring.Size = Vector3.new(6,6,6)
  740. ring.Transparency = 0.3
  741. ring.CFrame = c.Torso.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-20,20),0,math.random(-20,20))
  742. local rmesh = Instance.new("BlockMesh", ring)
  743. game.Debris:AddItem(ring,1)
  744.  
  745. ring.Touched:connect(function(hit)
  746.  
  747. hit.Parent:WaitForChild("Humanoid").Health = hit.Parent:WaitForChild("Humanoid").Health - 5
  748.  
  749. end)
  750. coroutine.resume(coroutine.create(function(c)
  751. for i=1,10 do
  752. c.Transparency = i/10
  753. c.Size = c.Size + Vector3.new(4,4,4)
  754. c.CFrame = c.CFrame * CFrame.Angles(-.2,0,-.2)
  755. wait(0.1)
  756. end
  757. c.Parent = nil
  758. end),ring)
  759. wait()
  760. end
  761. end))
  762. end
  763. end
  764. game.ContextActionService:BindAction("keyPress", onKeyPress, false, Enum.KeyCode.Q)
  765. end
  766. end
  767. elseif msg:sub(1,2) == "dr" then
  768. coroutine.resume(coroutine.create(function()
  769. local pd = 100
  770. while pd > 10 do
  771. pd = pd - 1
  772. local ring = Instance.new("Part", c.Torso)
  773. ring.Anchored = true
  774. ring.CanCollide = false
  775. ring.Material = "Neon"
  776. ok = math.random(1,2)
  777. if ok == 1 then
  778. ring.BrickColor = BrickColor.new("Toothpaste")
  779. else
  780. ring.BrickColor = BrickColor.new("Really blue")
  781. end
  782. ring.FormFactor = "Custom"
  783. ring.Size = Vector3.new(6,6,6)
  784. ring.Transparency = 0.3
  785. ring.CFrame = c.Torso.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-20,20),0,math.random(-20,20))
  786. local rmesh = Instance.new("BlockMesh", ring)
  787. game.Debris:AddItem(ring,2)
  788. coroutine.resume(coroutine.create(function(c)
  789. for i=1,10 do
  790. c.Transparency = i/10
  791. c.Mesh.Scale = c.Mesh.Scale - Vector3.new(.4,.4,.4)
  792. c.CFrame = c.CFrame * CFrame.Angles(-.2,0,-.2)
  793. wait(0.1)
  794. end
  795. c.Parent = nil
  796. end),ring)
  797. wait()
  798. end
  799. end))
  800. for u, c in pairs (c:GetChildren()) do
  801. if c.className == "Hat" and c.Name ~= "Swordpack" and c.Name ~= "GlassesBlackFrame" then
  802. c.Handle.Transparency = 1
  803. end
  804. end
  805. local up = Vector3.new(0, 1, 0)
  806. local forward = Vector3.new( 0, 0, -1)
  807. local pos = Vector3.new( 0, 0.47, 0.07)
  808. local right = Vector3.new( 1, 0, 0)
  809. h = Instance.new("Hat")
  810. p = Instance.new("Part")
  811. h.Name = script.Parent.Name
  812. p.Parent = h
  813. p.Position = c:findFirstChild("Head").Position
  814. p.Name = "Handle"
  815. p.formFactor = 0
  816. p.Size = Vector3.new(1,2,2)
  817. p.BottomSurface = 0
  818. p.TopSurface = 0
  819. p.Locked = true
  820. local pm = Instance.new("SpecialMesh",p)
  821. pm.MeshId = "http://www.roblox.com/asset/?id=420164161"
  822. pm.TextureId = "http://www.roblox.com/asset/?id=420164265"
  823. h.Parent = c
  824. h.AttachmentForward = forward
  825. h.AttachmentPos = pos
  826. h.AttachmentRight = right
  827. h.AttachmentUp = up
  828. local holder = Instance.new("Model",tor)
  829. while wait() do
  830. if Portal == false then
  831. angle = angle + 0.6
  832. local Model = Instance.new("Model",holder)
  833. Model.Name = "Lightning"
  834. local Point1 = Instance.new("Part",Model)
  835. Point1.Transparency = 1
  836. Point1.Size = Vector3.new(0.2,0.2,0.2)
  837. Point1.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point1.Size.Z/2))
  838. Point1.Anchored = true
  839. Point1.CanCollide = false
  840. Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  841.  
  842. local Point2 = Instance.new("Part",Model)
  843. Point2.Transparency = 1
  844. Point2.Size = Vector3.new(0.2,0.2,0.2)
  845. Point2.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point2.Size.Z/2))
  846. Point2.Anchored = true
  847. Point2.CanCollide = false
  848. Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  849.  
  850. local Point3 = Instance.new("Part",Model)
  851. Point3.Transparency = 1
  852. Point3.Size = Vector3.new(0.2,0.2,0.2)
  853. Point3.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point3.Size.Z/2))
  854. Point3.Anchored = true
  855. Point3.CanCollide = false
  856. Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  857.  
  858. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  859. local Light = Instance.new("Part",Model)
  860. local PointLight = Instance.new("PointLight",Light)
  861. PointLight.Range = 5
  862. PointLight.Color = PColor
  863. Light.Transparency = 0.5
  864. Light.BrickColor = Color
  865. Light.Material = "Neon"
  866. Light.Size = Vector3.new(0.25,0.25,distance)
  867. Light.Anchored = true
  868. Light.CanCollide = false
  869. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  870.  
  871. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  872. local Light = Instance.new("Part",Model)
  873. local PointLight = Instance.new("PointLight",Light)
  874. PointLight.Range = 5
  875. PointLight.Color = PColor
  876. Light.Transparency = 0.5
  877. Light.BrickColor = Color
  878. Light.Material = "Neon"
  879. Light.Size = Vector3.new(0.25,0.25,distance2)
  880. Light.Anchored = true
  881. Light.CanCollide = false
  882. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  883.  
  884. local Point1 = Instance.new("Part",Model)
  885. Point1.Transparency = 1
  886. Point1.Size = Vector3.new(0.2,0.2,0.2)
  887. Point1.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point1.Size.Z/2))
  888. Point1.Anchored = true
  889. Point1.CanCollide = false
  890. Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  891.  
  892. local Point2 = Instance.new("Part",Model)
  893. Point2.Transparency = 1
  894. Point2.Size = Vector3.new(0.2,0.2,0.2)
  895. Point2.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point2.Size.Z/2))
  896. Point2.Anchored = true
  897. Point2.CanCollide = false
  898. Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  899.  
  900. local Point3 = Instance.new("Part",Model)
  901. Point3.Transparency = 1
  902. Point3.Size = Vector3.new(0.2,0.2,0.2)
  903. Point3.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point3.Size.Z/2))
  904. Point3.Anchored = true
  905. Point3.CanCollide = false
  906. Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  907.  
  908. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  909. local Light = Instance.new("Part",Model)
  910. local PointLight = Instance.new("PointLight",Light)
  911. PointLight.Range = 5
  912. PointLight.Color = PColor
  913. Light.Transparency = 0.5
  914. Light.BrickColor = Color
  915. Light.Material = "Neon"
  916. Light.Size = Vector3.new(0.25,0.25,distance)
  917. Light.Anchored = true
  918. Light.CanCollide = false
  919. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  920.  
  921. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  922. local Light = Instance.new("Part",Model)
  923. local PointLight = Instance.new("PointLight",Light)
  924. PointLight.Range = 5
  925. PointLight.Color = PColor
  926. Light.Transparency = 0.5
  927. Light.BrickColor = Color
  928. Light.Material = "Neon"
  929. Light.Size = Vector3.new(0.3,0.3,distance2)
  930. Light.Anchored = true
  931. Light.CanCollide = false
  932. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  933.  
  934. local Point1 = Instance.new("Part",Model)
  935. Point1.Transparency = 1
  936. Point1.Size = Vector3.new(0.2,0.2,0.2)
  937. Point1.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  938. Point1.Anchored = true
  939. Point1.CanCollide = false
  940. Point1.CFrame = Point1.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  941.  
  942. local Point2 = Instance.new("Part",Model)
  943. Point2.Transparency = 1
  944. Point2.Size = Vector3.new(0.2,0.2,0.2)
  945. Point2.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  946. Point2.Anchored = true
  947. Point2.CanCollide = false
  948. Point2.CFrame = Point2.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  949.  
  950. local Point3 = Instance.new("Part",Model)
  951. Point3.Transparency = 1
  952. Point3.Size = Vector3.new(0.2,0.2,0.2)
  953. Point3.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  954. Point3.Anchored = true
  955. Point3.CanCollide = false
  956. Point3.CFrame = Point3.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  957.  
  958. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  959. local Light = Instance.new("Part",Model)
  960. local PointLight = Instance.new("PointLight",Light)
  961. PointLight.Range = 5
  962. PointLight.Color = PColor
  963. Light.Transparency = 0.5
  964. Light.BrickColor = Color
  965. Light.Material = "Neon"
  966. Light.Size = Vector3.new(0.25,0.25,distance)
  967. Light.Anchored = true
  968. Light.CanCollide = false
  969. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  970.  
  971. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  972. local Light = Instance.new("Part",Model)
  973. local PointLight = Instance.new("PointLight",Light)
  974. PointLight.Range = 5
  975. PointLight.Color = PColor
  976. Light.Transparency = 0.5
  977. Light.BrickColor = Color
  978. Light.Material = "Neon"
  979. Light.Size = Vector3.new(0.25,0.25,distance2)
  980. Light.Anchored = true
  981. Light.CanCollide = false
  982. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  983.  
  984. local Point1 = Instance.new("Part",Model)
  985. Point1.Transparency = 1
  986. Point1.Size = Vector3.new(0.2,0.2,0.2)
  987. Point1.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  988. Point1.Anchored = true
  989. Point1.CanCollide = false
  990. Point1.CFrame = Point1.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  991.  
  992. local Point2 = Instance.new("Part",Model)
  993. Point2.Transparency = 1
  994. Point2.Size = Vector3.new(0.2,0.2,0.2)
  995. Point2.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  996. Point2.Anchored = true
  997. Point2.CanCollide = false
  998. Point2.CFrame = Point2.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  999.  
  1000. local Point3 = Instance.new("Part",Model)
  1001. Point3.Transparency = 1
  1002. Point3.Size = Vector3.new(0.2,0.2,0.2)
  1003. Point3.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  1004. Point3.Anchored = true
  1005. Point3.CanCollide = false
  1006. Point3.CFrame = Point3.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  1007.  
  1008. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  1009. local Light = Instance.new("Part",Model)
  1010. local PointLight = Instance.new("PointLight",Light)
  1011. PointLight.Range = 5
  1012. PointLight.Color = PColor
  1013. Light.Transparency = 0.5
  1014. Light.BrickColor = Color
  1015. Light.Material = "Neon"
  1016. Light.Size = Vector3.new(0.25,0.25,distance)
  1017. Light.Anchored = true
  1018. Light.CanCollide = false
  1019. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  1020.  
  1021. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  1022. local Light = Instance.new("Part",Model)
  1023. local PointLight = Instance.new("PointLight",Light)
  1024. PointLight.Range = 5
  1025. PointLight.Color = PColor
  1026. Light.Transparency = 0.5
  1027. Light.BrickColor = Color
  1028. Light.Material = "Neon"
  1029. Light.Size = Vector3.new(0.25,0.25,distance2)
  1030. Light.Anchored = true
  1031. Light.CanCollide = false
  1032. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  1033.  
  1034. local Children = Model:GetChildren()
  1035. wait(0.1)
  1036. for i = 1,#Children do
  1037. if Children[i]:IsA("Part") then
  1038. Children[i].Transparency = Children[i].Transparency + .1
  1039. end
  1040. game.Debris:AddItem(Children[i],0)
  1041. end
  1042.  
  1043. game.ContextActionService:BindAction("keyPress", onKeyPress2, false, Enum.KeyCode.Q)
  1044. game.ContextActionService:BindAction("keyPress1", onKeyPress1, false, Enum.KeyCode.E)
  1045.  
  1046. end
  1047.  
  1048.  
  1049. end
  1050. elseif msg:sub(1,12) == "rawr" then
  1051. game.ContextActionService:BindAction("keyPress", onKeyPress3, false, Enum.KeyCode.G)
  1052. game.ContextActionService:BindAction("keyPress1", onKeyPress4, false, Enum.KeyCode.H)
  1053.  
  1054. end
  1055. end)
Advertisement
Add Comment
Please, Sign In to add comment