Advertisement
SheeityArtist

the sun is a fucking dildo

Aug 11th, 2017 (edited)
686
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.11 KB | None | 0 0
  1. -----------------------------
  2. --the sun is a deadly laser--
  3. -----------------------------
  4. --By --
  5. --CKbackup-
  6. -----------
  7.  
  8. player = game.Players.LocalPlayer
  9. chara = player.Character
  10. debby = game.Debris
  11. Mouse = player:GetMouse()
  12. attacking = false
  13.  
  14. ArtificialHB = Instance.new("BindableEvent", script)
  15. ArtificialHB.Name = "Heartbeat"
  16. script:WaitForChild("Heartbeat")
  17. frame = 0.03333333333333
  18. tf = 0
  19. allowframeloss = false
  20. tossremainder = false
  21. lastframe = tick()
  22. script.Heartbeat:Fire()
  23. game:GetService("RunService").Heartbeat:connect(function(s, p)
  24. tf = tf + s
  25. if tf >= frame then
  26. if allowframeloss then
  27. script.Heartbeat:Fire()
  28. lastframe = tick()
  29. else
  30. for i = 1, math.floor(tf / frame) do
  31. script.Heartbeat:Fire()
  32. end
  33. lastframe = tick()
  34. end
  35. if tossremainder then
  36. tf = 0
  37. else
  38. tf = tf - frame * math.floor(tf / frame)
  39. end
  40. end
  41. end)
  42. function swait(num)
  43. if num == 0 or num == nil then
  44. ArtificialHB.Event:wait()
  45. else
  46. for i = 0, num*30 do
  47. ArtificialHB.Event:wait()
  48. end
  49. end
  50. end
  51.  
  52. --Outfit--
  53. New = function(Object, Parent, Name, Data)
  54. local Object = Instance.new(Object)
  55. for Index, Value in pairs(Data or {}) do
  56. Object[Index] = Value
  57. end
  58. Object.Parent = Parent
  59. Object.Name = Name
  60. return Object
  61. end
  62.  
  63. Sun = New("Part",chara,"SunPart",{BrickColor = BrickColor.new("Gold"),Material = Enum.Material.Neon,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-4, 44.5, -7, 1, 0, 0, 0, 1, 0, 0, 0, 1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.937255, 0.721569, 0.219608),})
  64. Mesh = New("SpecialMesh",Sun,"Mesh",{Scale = Vector3.new(50, 50, 50),MeshType = Enum.MeshType.Sphere,})
  65.  
  66. local bpos = Instance.new("BodyPosition",Sun)
  67. bpos.Position = chara.Head.Position + Vector3.new(0,50,0) + chara.Head.CFrame.lookVector*-50
  68. Sun.Position = chara.Head.Position + Vector3.new(0,50,0) + chara.Head.CFrame.lookVector*-50
  69. Sun.Transparency = 1
  70. swait(1)
  71.  
  72. function CreateTrailObj(parent,color1,color2,ofsx,ofsz)
  73. local Att1 = New("Attachment",parent,"Att1",{Position = Vector3.new(ofsx,parent.Size.Y/2,ofsz)})
  74. local Att2 = New("Attachment",parent,"Att2",{Position = Vector3.new(ofsx,-(parent.Size.Y/2),ofsz)})
  75. local TEff = New("Trail",parent,"TrailEff",{Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new(color1).Color),ColorSequenceKeypoint.new(1,BrickColor.new(color2).Color)}),Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,1)}),Attachment0 = Att1,Attachment1 = Att2,Enabled = false,Lifetime = .5,MinLength = .001})
  76. return TEff
  77. end
  78.  
  79. --Sounds--
  80. function LoadSnd(id,loop,vol,pit)
  81. local snd = New("Sound",chara,"Sound",{SoundId = "rbxassetid://"..id,Looped = loop,Volume = vol,Pitch = pit})
  82. return snd
  83. end
  84. SwingSnd = LoadSnd(158037267,false,1,1)
  85. Swing2Snd = LoadSnd(12222208,false,1,1)
  86. HitSnd = LoadSnd(153092274,false,1,1)
  87. ExpSnd = LoadSnd(142070127,false,1,1)
  88. FlySnd = LoadSnd(169445602,false,1,1)
  89. BExpSnd = LoadSnd(168586621,false,1,.5)
  90. GunFlameSnd = LoadSnd(48618802,false,1,1.5)
  91. ChargeSnd = LoadSnd(136007472,false,1,1)
  92. Charge2Snd = LoadSnd(137463716,false,1,.7)
  93. BurnSnd = LoadSnd(32791565,false,3,1)
  94. BurningSnd = LoadSnd(31760113,true,5,1)
  95. LaserSnd = LoadSnd(178452221,false,1,.6)
  96. DeadlyLasSnd = LoadSnd(811841430,false,1,.8)
  97.  
  98. --Play Sound in Part--
  99. function PlaySnd(snd,part)
  100. local sound = snd:Clone()
  101. sound.PlayOnRemove = true
  102. sound.Parent = part
  103. sound:Destroy()
  104. end
  105.  
  106. --Damage Function--
  107. function dealdmg(dude,damage,env,toim,kby,kbx)
  108. hurt = coroutine.wrap(function()
  109. if dude ~= chara and dude:FindFirstChild("IsHit") == nil then
  110. finaldmg = damage + math.random(-env,env)
  111. dude.Humanoid.Health = dude.Humanoid.Health - finaldmg
  112. local vall = Instance.new("ObjectValue",dude)
  113. vall.Name = "IsHit"
  114. debby:AddItem(vall,toim)
  115. local bfos = Instance.new("BodyVelocity",dude.Head)
  116. bfos.P = 20000
  117. bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P)
  118. bfos.Velocity = Vector3.new(0,kby,0) + chara.HumanoidRootPart.CFrame.lookVector * kbx
  119. debby:AddItem(bfos,.1)
  120. local naeeym2 = Instance.new("BillboardGui",dude)
  121. naeeym2.Size = UDim2.new(0,100,0,40)
  122. naeeym2.StudsOffset = Vector3.new(0,3,0)
  123. naeeym2.Adornee = dude.Head
  124. naeeym2.Name = "TalkingBillBoard"
  125. local tecks2 = Instance.new("TextLabel",naeeym2)
  126. tecks2.BackgroundTransparency = 1
  127. tecks2.BorderSizePixel = 0
  128. tecks2.Text = "-"..finaldmg
  129. tecks2.Font = "Fantasy"
  130. tecks2.FontSize = "Size24"
  131. tecks2.TextStrokeTransparency = 0
  132. tecks2.TextColor3 = Color3.new(1,0.6,0)
  133. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  134. tecks2.Size = UDim2.new(1,0,0.5,0)
  135. for i = 1, 5 do
  136. swait(.1)
  137. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  138. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  139. tecks2.TextTransparency = tecks2.TextTransparency + .2
  140. end
  141. naeeym2:Destroy()
  142. end
  143. end)
  144. hurt(dude,damage,env,toim)
  145. end
  146.  
  147.  
  148. --Burn Damage--
  149. function burndmg(dude)
  150. burndude = coroutine.wrap(function()
  151. if dude ~= chara then
  152. local dd = dude:GetChildren()
  153. for i = 1, #dd do
  154. if dd[i]:IsA("BasePart") then
  155. dd[i].BrickColor = BrickColor.new("Really black")
  156. FireEffect(dd[i])
  157. end
  158. end
  159. PlaySnd(BurnSnd,dude.Head)
  160. local snd2 = BurningSnd:clone()
  161. snd2.Parent = dude.Head
  162. snd2:Play()
  163. dude:BreakJoints()
  164. end
  165. end)
  166. burndude()
  167. end
  168.  
  169. --Explode Hitbox--
  170. function ExHitbox(rad,pos)
  171. local E = Instance.new("Explosion")
  172. E.Position = pos
  173. E.Parent = game.Workspace
  174. E.BlastRadius = rad
  175. E.BlastPressure = 0
  176. E.Visible = false
  177. E.Hit:connect(function(hit)
  178. if hit.Parent:FindFirstChildOfClass("Humanoid")~=nil then
  179. burndmg(hit.Parent)
  180. end
  181. end)
  182. end
  183.  
  184. --Material Return--
  185. gprop = {}
  186. function materialhit()
  187. local part = workspace:FindPartOnRay(Ray.new(chara.HumanoidRootPart.Position-Vector3.new(0,2.4,0),Vector3.new(0,-1000,0)))
  188. if part then
  189. gprop = {part.BrickColor,part.Material}
  190. end
  191. end
  192.  
  193. --Clerp Animations--
  194. --TC = chara.HumanoidRootPart.RootJoint
  195. --HC = chara.Torso.Neck
  196. --RAC = chara.Torso["Right Shoulder"]
  197. --LAC = chara.Torso["Left Shoulder"]
  198. --RLC = chara.Torso["Right Hip"]
  199. --LLC = chara.Torso["Left Hip"]
  200. --TCF = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  201. --HCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  202. --RACF = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  203. --LACF = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  204. --RLCF = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  205. --LLCF = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  206. --RWF = CFrame.new(-1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  207. --LWF = CFrame.new(1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  208. --RLWF = CFrame.new(-.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  209. --LLWF = CFrame.new(.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  210. --RW = Instance.new("Weld",HC.Parent)
  211. --RW.Part1 = HC.Parent
  212. --RW.Part0 = chara["Right Arm"]
  213. --RW.C0 = RWF
  214. --LW = Instance.new("Weld",HC.Parent)
  215. --LW.Part1 = HC.Parent
  216. --LW.Part0 = chara["Left Arm"]
  217. --LW.C0 = LWF
  218. --RLW = nil
  219. --LLW = nil
  220. --
  221. --function AddLegWelds()
  222. --RLW = Instance.new("Weld",chara["Right Leg"])
  223. --RLW.Part1 = HC.Parent
  224. --RLW.Part0 = chara["Right Leg"]
  225. --RLW.C0 = RLWF
  226. --LLW = Instance.new("Weld",chara["Left Leg"])
  227. --LLW.Part1 = HC.Parent
  228. --LLW.Part0 = chara["Left Leg"]
  229. --LLW.C0 = LLWF
  230. --end
  231. --
  232. --function DestroyLegWelds()
  233. --RLC = New("Motor6D",chara.Torso,"Right Hip",{Part0 = chara.Torso,Part1 = chara["Right Leg"],C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),})
  234. --LLC = New("Motor6D",chara.Torso,"Left Hip",{Part0 = chara.Torso,Part1 = chara["Left Leg"],C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),})
  235. --RLW:Destroy()
  236. --LLW:Destroy()
  237. --end
  238.  
  239. function clerp(a,b,c)
  240. return a:lerp(b,c)
  241. end
  242.  
  243. --TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90))
  244. --HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50))
  245. --RW.C0 = (RWF + Vector3.new(1,2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
  246. --LW.C0 = LWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(2))
  247.  
  248. --TC.C0 = TCF
  249. --HC.C0 = HCF
  250. --RW.C0 = RWF
  251. --LW.C0 = LWF
  252. --
  253. ----Idle Clerp--
  254. --ITCF = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50))
  255. --IHCF = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50))
  256. --IRWF = RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-5))
  257. --ILWF = LWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(5))
  258. --
  259. --function res()
  260. --TC.C0 = ITCF
  261. --HC.C0 = IHCF
  262. --RW.C0 = IRWF
  263. --LW.C0 = ILWF
  264. --end
  265. --res()
  266.  
  267.  
  268. ChargeSnd:Play()
  269.  
  270. for i = 0, 2.5, .1 do
  271. swait(.1)
  272. bpos.Position = chara.Head.Position + Vector3.new(0,50,0) + chara.Head.CFrame.lookVector*-50
  273. Sun.Position = chara.Head.Position + Vector3.new(0,50,0) + chara.Head.CFrame.lookVector*-50
  274. Sun.Transparency = 1
  275. for i = 1, 3 do
  276. local tr = coroutine.resume(coroutine.create(function()
  277. local hitp = Instance.new("Part",game.Workspace)
  278. hitp.Size = Vector3.new(1,1,1)
  279. hitp.Anchored = true
  280. hitp.CanCollide = false
  281. hitp.BrickColor = BrickColor.new("Gold")
  282. hitp.Transparency = 1
  283. hitp.CFrame = Sun.CFrame * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
  284. local hitm = Instance.new("SpecialMesh",hitp)
  285. hitm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  286. hitm.Scale = Vector3.new(4,4,1)
  287. for i = 0,1,.2 do
  288. swait()
  289. hitp.Transparency = i
  290. hitm.Scale = Vector3.new(100-i*50,100-i*50,1-i)
  291. end
  292. hitp:Destroy()
  293. end))
  294. end
  295. end
  296.  
  297. swait(1.5)
  298. Sun.Transparency = 0
  299. bpos.Position = chara.Head.Position + Vector3.new(0,50,0) + chara.Head.CFrame.lookVector*-50
  300. Sun.Position = chara.Head.Position + Vector3.new(0,50,0) + chara.Head.CFrame.lookVector*-50
  301.  
  302. BExpSnd:Play()
  303.  
  304. local tr = coroutine.resume(coroutine.create(function()
  305. local hitp = Instance.new("Part",game.Workspace)
  306. hitp.Size = Vector3.new(1,1,1)
  307. hitp.Anchored = true
  308. hitp.CanCollide = false
  309. hitp.BrickColor = BrickColor.new("Gold")
  310. hitp.Material = "Neon"
  311. hitp.Transparency = 1
  312. hitp.CFrame = Sun.CFrame * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
  313. local hitm = Instance.new("SpecialMesh",hitp)
  314. hitm.MeshType = "Sphere"
  315. hitm.Scale = Vector3.new(1,1,1)
  316. for i = 0,1,.01 do
  317. swait()
  318. hitp.Transparency = i
  319. hitm.Scale = Vector3.new(50+i*45,50+i*45,50+i*45)
  320. end
  321. hitp:Destroy()
  322. end))
  323.  
  324. for i = 0, 1, .1 do
  325. local tr = coroutine.resume(coroutine.create(function()
  326. local hitp = Instance.new("Part",game.Workspace)
  327. hitp.Size = Vector3.new(1,1,1)
  328. hitp.Anchored = true
  329. hitp.CanCollide = false
  330. hitp.BrickColor = BrickColor.new("Gold")
  331. hitp.Transparency = 1
  332. hitp.CFrame = Sun.CFrame * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
  333. local hitm = Instance.new("SpecialMesh",hitp)
  334. hitm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  335. hitm.Scale = Vector3.new(4,4,1)
  336. for i = 0,1,.01 do
  337. swait()
  338. hitp.Transparency = i
  339. hitm.Scale = Vector3.new(50+i*50,50+i*50,i)
  340. end
  341. hitp:Destroy()
  342. end))
  343. end
  344.  
  345. --Fire Effect-
  346. function FireEffect(part)
  347. if part:FindFirstChild("FireEffect")==nil then
  348. local fireeff = Instance.new("ParticleEmitter",part)
  349. fireeff.Name = "FireEffect"
  350. fireeff.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,0,0)),ColorSequenceKeypoint.new(1,Color3.new(1,1,0))})
  351. fireeff.LightEmission = 1
  352. fireeff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
  353. fireeff.Texture = "rbxasset://textures/particles/smoke_main.dds"
  354. fireeff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
  355. fireeff.Acceleration = Vector3.new(0,30,0)
  356. fireeff.Lifetime = NumberRange.new(.5)
  357. fireeff.Rate = 1000
  358. fireeff.Rotation = NumberRange.new(0,359)
  359. fireeff.RotSpeed = NumberRange.new(100)
  360. fireeff.Speed = NumberRange.new(0)
  361. fireeff.VelocitySpread = 10
  362. return fireeff
  363. end
  364. end
  365.  
  366. --lasser rasser--
  367. function Laser(Partt)
  368. local EffectPart = Instance.new("Part",game.Workspace)
  369. EffectPart.Size = Vector3.new(1,1,1)
  370. EffectPart.Anchored = true
  371. EffectPart.BrickColor = BrickColor.new("Gold")
  372. EffectPart.Material = "Neon"
  373. EffectPart.Position = Mouse.Hit.p
  374. EffectPart.CFrame = Mouse.Hit
  375. local mehs1 = Instance.new("SpecialMesh",EffectPart)
  376. mehs1.MeshType = "Sphere"
  377. mehs1.Scale = Vector3.new(2,2,2)
  378. local P = Instance.new("Part")
  379. local Place0 = Partt.CFrame
  380. local Place1 = EffectPart.CFrame
  381. local meshla = Instance.new("BlockMesh", P)
  382. meshla.Scale = Vector3.new(1,1,1)
  383. P.formFactor = 0
  384. P.Size = Vector3.new(1,1,(Place0.p - Place1.p).magnitude)
  385. P.Name = "Laser"
  386. P.CFrame = CFrame.new((Place0.p + Place1.p)/2,Place0.p)
  387. P.Parent = game.Workspace
  388. P.BrickColor = BrickColor.new("Gold")
  389. P.Material = "Neon"
  390. P.Anchored = true
  391. P.CanCollide = false
  392. P.Locked = true
  393. P.BottomSurface = "Smooth"
  394. P.TopSurface = "Smooth"
  395. DeadlyLasSnd:Play()
  396. PlaySnd(GunFlameSnd,chara)
  397. ExHitbox(5,Place1.p)
  398. for i = 0, 1, .1 do
  399. local tr = coroutine.resume(coroutine.create(function()
  400. local hitp = Instance.new("Part",game.Workspace)
  401. hitp.Size = Vector3.new(1,1,1)
  402. hitp.Anchored = true
  403. hitp.CanCollide = false
  404. hitp.BrickColor = BrickColor.new("Gold")
  405. hitp.Transparency = 1
  406. hitp.CFrame = EffectPart.CFrame * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
  407. local hitm = Instance.new("SpecialMesh",hitp)
  408. hitm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  409. hitm.Scale = Vector3.new(4,4,1)
  410. for i = 0,1,.1 do
  411. swait()
  412. hitp.Transparency = i
  413. hitm.Scale = Vector3.new(i*20,i*20,i)
  414. end
  415. hitp:Destroy()
  416. end))
  417. end
  418. local fu = coroutine.wrap(function()
  419. for i = 1, 10 do
  420. swait(.01)
  421. mehs1.Scale = mehs1.Scale + Vector3.new(.5,.5,.5)
  422. meshla.Scale = meshla.Scale + Vector3.new(.25,.25,0)
  423. EffectPart.Transparency = EffectPart.Transparency + .1
  424. P.Transparency = P.Transparency + .1
  425. end
  426. ----
  427. P:Destroy()
  428. EffectPart:Destroy()
  429. end)
  430. fu()
  431. end
  432.  
  433.  
  434. --Cannon--
  435. function Cannon()
  436. del = true
  437. Charge2Snd:Play()
  438. for i = 0, 2.5, .1 do
  439. swait(.1)
  440. for i = 1, 3 do
  441. local tr = coroutine.resume(coroutine.create(function()
  442. local hitp = Instance.new("Part",chara)
  443. hitp.Size = Vector3.new(1,1,1)
  444. hitp.Anchored = true
  445. hitp.CanCollide = false
  446. hitp.BrickColor = BrickColor.new("Gold")
  447. hitp.Transparency = 1
  448. hitp.CFrame = Sun.CFrame * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
  449. local hitm = Instance.new("SpecialMesh",hitp)
  450. hitm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  451. hitm.Scale = Vector3.new(4,4,1)
  452. for i = 0,1,.2 do
  453. swait()
  454. hitp.Transparency = i
  455. hitm.Scale = Vector3.new(100-i*50,100-i*50,1-i)
  456. end
  457. hitp:Destroy()
  458. end))
  459. end
  460. end
  461. swait(1.5)
  462. DeadlyLasSnd:Play()
  463. local EffectPart = Instance.new("Part",chara)
  464. EffectPart.Size = Vector3.new(1,1,1)
  465. EffectPart.Anchored = true
  466. EffectPart.BrickColor = BrickColor.new("Gold")
  467. EffectPart.Material = "Neon"
  468. local mehs1 = Instance.new("SpecialMesh",EffectPart)
  469. mehs1.MeshType = "Sphere"
  470. mehs1.Scale = Vector3.new(10,10,10)
  471. local P = Instance.new("Part")
  472. local meshla = Instance.new("BlockMesh", P)
  473. meshla.Scale = Vector3.new(5,5,1)
  474. for i = 1, 100 do
  475. swait()
  476. EffectPart.Position = Mouse.Hit.p
  477. EffectPart.CFrame = Mouse.Hit
  478. local Place0 = Sun.CFrame
  479. local Place1 = EffectPart.CFrame
  480. P.formFactor = 0
  481. P.Size = Vector3.new(1,1,(Place0.p - Place1.p).magnitude)
  482. P.Name = "Laser"
  483. P.CFrame = CFrame.new((Place0.p + Place1.p)/2,Place0.p)
  484. P.Parent = game.Workspace
  485. P.BrickColor = BrickColor.new("Gold")
  486. P.Material = "Neon"
  487. P.Anchored = true
  488. P.CanCollide = false
  489. P.Locked = true
  490. P.BottomSurface = "Smooth"
  491. P.TopSurface = "Smooth"
  492. PlaySnd(LaserSnd,chara)
  493. ExHitbox(15,Place1.p)
  494. for i = 1, 3 do
  495. local tr = coroutine.resume(coroutine.create(function()
  496. local hitp = Instance.new("Part",chara)
  497. hitp.Size = Vector3.new(1,1,1)
  498. hitp.Anchored = true
  499. hitp.CanCollide = false
  500. hitp.BrickColor = BrickColor.new("Gold")
  501. hitp.Transparency = 1
  502. hitp.CFrame = EffectPart.CFrame * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
  503. local hitm = Instance.new("SpecialMesh",hitp)
  504. hitm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  505. hitm.Scale = Vector3.new(4,4,1)
  506. for i = 0,1,.1 do
  507. swait()
  508. hitp.Transparency = i
  509. hitm.Scale = Vector3.new(i*80,i*80,i)
  510. end
  511. hitp:Destroy()
  512. end))
  513. end
  514. end
  515. local fu = coroutine.wrap(function()
  516. for i = 1, 10 do
  517. swait(.01)
  518. mehs1.Scale = mehs1.Scale + Vector3.new(.5,.5,.5)
  519. meshla.Scale = meshla.Scale + Vector3.new(.25,.25,0)
  520. EffectPart.Transparency = EffectPart.Transparency + .1
  521. P.Transparency = P.Transparency + .1
  522. end
  523. ----
  524. P:Destroy()
  525. EffectPart:Destroy()
  526. end)
  527. fu()
  528. del = false
  529. end
  530.  
  531. --Mouse Functions--
  532. del = false
  533. combo = 0
  534. function onKeyDown(key)
  535. if del == false then
  536. if key == "l" then
  537. Cannon()
  538. end
  539. end
  540. end
  541. function onButton1Down()
  542. if del == false then
  543. del = true
  544. Laser(Sun)
  545. swait(.5)
  546. del = false
  547. end
  548. end
  549.  
  550. --Mouse Activation--
  551. if Mouse then
  552. Mouse.KeyDown:connect(onKeyDown)
  553. Mouse.Button1Down:connect(onButton1Down)
  554. end
  555.  
  556. --Loop Function--
  557. walking = false
  558. while true do
  559. swait()
  560. bpos.Position = chara.Head.Position + Vector3.new(0,50,0) + chara.Head.CFrame.lookVector*-50
  561. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement