Advertisement
Bendy928443534

Untitled

Jul 25th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.68 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6.  
  7. --[[
  8. SUN IS A DEADLY LASER SCRIPT
  9. { NOT ANYMORE THERE'S A BLANKET! }
  10. Created by Minty_Latios (ROBLOX)
  11. MintyLatios (V3rmillion)
  12. Minty Latios#1938
  13.  
  14.  
  15. --]]
  16. wait(1 / 60)
  17. Effects = { }
  18. local Player = game.Players.localPlayer
  19. local Character = Player.Character
  20. local Humanoid = Character.Humanoid
  21. local Mouse = Player:GetMouse()
  22. local LeftArm = Character["Left Arm"]
  23. local RightArm = Character["Right Arm"]
  24. local LeftLeg = Character["Left Leg"]
  25. local RightLeg = Character["Right Leg"]
  26. local Head = Character.Head
  27. local Torso = Character.Torso
  28. local Camera = game.Workspace.CurrentCamera
  29. local RootPart = Character.HumanoidRootPart
  30. local RootJoint = RootPart.RootJoint
  31. local attack = false
  32. local Anim = 'Idle'
  33. local attacktype = 1
  34. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  35. local velocity = RootPart.Velocity.y
  36. local sine = 0
  37. local change = 1
  38. local Create = LoadLibrary("RbxUtility").Create
  39.  
  40. local m = Create("Model"){
  41. Parent = Character,
  42. Name = "WeaponModel",
  43. }
  44.  
  45. Humanoid.Animator.Parent = nil
  46. Character.Animate.Parent = nil
  47.  
  48. local newMotor = function(part0, part1, c0, c1)
  49. local w = Create('Motor'){
  50. Parent = part0,
  51. Part0 = part0,
  52. Part1 = part1,
  53. C0 = c0,
  54. C1 = c1,
  55. }
  56. return w
  57. end
  58.  
  59. function clerp(a, b, t)
  60. return a:lerp(b, t)
  61. end
  62.  
  63. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  64. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  65.  
  66. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  67. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  68. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  69. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  70. RootJoint.C1 = CFrame.new(0, 0, 0)
  71. RootJoint.C0 = CFrame.new(0, 0, 0)
  72. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  73. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  74.  
  75. local rarmc1 = RW.C1
  76. local larmc1 = LW.C1
  77. local rlegc1 = RH.C1
  78. local llegc1 = LH.C1
  79.  
  80. local resetc1 = false
  81.  
  82. function PlayAnimationFromTable(table, speed, bool)
  83. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  84. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  85. RW.C0 = clerp(RW.C0, table[3], speed)
  86. LW.C0 = clerp(LW.C0, table[4], speed)
  87. RH.C0 = clerp(RH.C0, table[5], speed)
  88. LH.C0 = clerp(LH.C0, table[6], speed)
  89. if bool == true then
  90. if resetc1 == false then
  91. resetc1 = true
  92. RootJoint.C1 = RootJoint.C1
  93. Torso.Neck.C1 = Torso.Neck.C1
  94. RW.C1 = rarmc1
  95. LW.C1 = larmc1
  96. RH.C1 = rlegc1
  97. LH.C1 = llegc1
  98. end
  99. end
  100. end
  101.  
  102. ArtificialHB = Create("BindableEvent", script){
  103. Parent = script,
  104. Name = "Heartbeat",
  105. }
  106.  
  107. script:WaitForChild("Heartbeat")
  108.  
  109. frame = 1 / 30
  110. tf = 0
  111. allowframeloss = false
  112. tossremainder = false
  113. lastframe = tick()
  114. script.Heartbeat:Fire()
  115.  
  116. game:GetService("RunService").Heartbeat:connect(function(s, p)
  117. tf = tf + s
  118. if tf >= frame then
  119. if allowframeloss then
  120. script.Heartbeat:Fire()
  121. lastframe = tick()
  122. else
  123. for i = 1, math.floor(tf / frame) do
  124. script.Heartbeat:Fire()
  125. end
  126. lastframe = tick()
  127. end
  128. if tossremainder then
  129. tf = 0
  130. else
  131. tf = tf - frame * math.floor(tf / frame)
  132. end
  133. end
  134. end)
  135.  
  136. function swait(num)
  137. if num == 0 or num == nil then
  138. ArtificialHB.Event:wait()
  139. else
  140. for i = 0, num do
  141. ArtificialHB.Event:wait()
  142. end
  143. end
  144. end
  145.  
  146. function RemoveOutlines(part)
  147. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  148. end
  149.  
  150. CFuncs = {
  151. ["Part"] = {
  152. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  153. local Part = Create("Part"){
  154. Parent = Parent,
  155. Reflectance = Reflectance,
  156. Transparency = Transparency,
  157. CanCollide = false,
  158. Locked = true,
  159. BrickColor = BrickColor.new(tostring(BColor)),
  160. Name = Name,
  161. Size = Size,
  162. Material = Material,
  163. }
  164. RemoveOutlines(Part)
  165. return Part
  166. end;
  167. };
  168.  
  169. ["Mesh"] = {
  170. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  171. local Msh = Create(Mesh){
  172. Parent = Part,
  173. Offset = OffSet,
  174. Scale = Scale,
  175. }
  176. if Mesh == "SpecialMesh" then
  177. Msh.MeshType = MeshType
  178. Msh.MeshId = MeshId
  179. end
  180. return Msh
  181. end;
  182. };
  183.  
  184. ["Mesh"] = {
  185. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  186. local Msh = Create(Mesh){
  187. Parent = Part,
  188. Offset = OffSet,
  189. Scale = Scale,
  190. }
  191. if Mesh == "SpecialMesh" then
  192. Msh.MeshType = MeshType
  193. Msh.MeshId = MeshId
  194. end
  195. return Msh
  196. end;
  197. };
  198.  
  199. ["Weld"] = {
  200. Create = function(Parent, Part0, Part1, C0, C1)
  201. local Weld = Create("Weld"){
  202. Parent = Parent,
  203. Part0 = Part0,
  204. Part1 = Part1,
  205. C0 = C0,
  206. C1 = C1,
  207. }
  208. return Weld
  209. end;
  210. };
  211.  
  212. ["Sound"] = {
  213. Create = function(id, par, vol, pit)
  214. coroutine.resume(coroutine.create(function()
  215. local S = Create("Sound"){
  216. Volume = vol,
  217. Pitch = pit or 1,
  218. SoundId = id,
  219. Parent = par or workspace,
  220. }
  221. wait()
  222. S:play()
  223. game:GetService("Debris"):AddItem(S, 6)
  224. end))
  225. end;
  226. };
  227.  
  228. ["ParticleEmitter"] = {
  229. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  230. local fp = Create("ParticleEmitter"){
  231. Parent = Parent,
  232. Color = ColorSequence.new(Color1, Color2),
  233. LightEmission = LightEmission,
  234. Size = Size,
  235. Texture = Texture,
  236. Transparency = Transparency,
  237. ZOffset = ZOffset,
  238. Acceleration = Accel,
  239. Drag = Drag,
  240. LockedToPart = LockedToPart,
  241. VelocityInheritance = VelocityInheritance,
  242. EmissionDirection = EmissionDirection,
  243. Enabled = Enabled,
  244. Lifetime = LifeTime,
  245. Rate = Rate,
  246. Rotation = Rotation,
  247. RotSpeed = RotSpeed,
  248. Speed = Speed,
  249. VelocitySpread = VelocitySpread,
  250. }
  251. return fp
  252. end;
  253. };
  254.  
  255. CreateTemplate = {
  256.  
  257. };
  258. }
  259.  
  260. function rayCast(Position, Direction, Range, Ignore)
  261. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  262. end
  263.  
  264. FindNearestTorso = function(pos)
  265. local list = (game.Workspace:children())
  266. local torso = nil
  267. local dist = 1000
  268. local temp, human, temp2 = nil, nil, nil
  269. for x = 1, #list do
  270. temp2 = list[x]
  271. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  272. temp = temp2:findFirstChild("Torso")
  273. human = temp2:findFirstChild("Humanoid")
  274. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  275. local dohit = true
  276. if dohit == true then
  277. torso = temp
  278. dist = (temp.Position - pos).magnitude
  279. end
  280. end
  281. end
  282. end
  283. return torso, dist
  284. end
  285.  
  286. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  287. if hit.Parent == nil then
  288. return
  289. end
  290. local h = hit.Parent:FindFirstChild("Humanoid")
  291. for _, v in pairs(hit.Parent:children()) do
  292. if v:IsA("Humanoid") then
  293. h = v
  294. end
  295. end
  296. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  297. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  298. if hit.Parent.DebounceHit.Value == true then
  299. return
  300. end
  301. end
  302. local c = Create("ObjectValue"){
  303. Name = "creator",
  304. Value = game:service("Players").LocalPlayer,
  305. Parent = h,
  306. }
  307. game:GetService("Debris"):AddItem(c, .5)
  308. if HitSound ~= nil and HitPitch ~= nil then
  309. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  310. end
  311. local Damage = math.random(minim, maxim)
  312. local blocked = false
  313. local block = hit.Parent:findFirstChild("Block")
  314. if block ~= nil then
  315. if block.className == "IntValue" then
  316. if block.Value > 0 then
  317. blocked = true
  318. block.Value = block.Value - 1
  319. print(block.Value)
  320. end
  321. end
  322. end
  323. if blocked == false then
  324. h.Health = h.Health - Damage
  325. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  326. else
  327. h.Health = h.Health - (Damage / 2)
  328. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  329. end
  330. if Type == "Knockdown" then
  331. local hum = hit.Parent.Humanoid
  332. hum.PlatformStand = true
  333. coroutine.resume(coroutine.create(function(HHumanoid)
  334. swait(1)
  335. HHumanoid.PlatformStand = false
  336. end), hum)
  337. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  338. local bodvol = Create("BodyVelocity"){
  339. velocity = angle * knockback,
  340. P = 5000,
  341. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  342. Parent = hit,
  343. }
  344. local rl = Create("BodyAngularVelocity"){
  345. P = 3000,
  346. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  347. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  348. Parent = hit,
  349. }
  350. game:GetService("Debris"):AddItem(bodvol, .5)
  351. game:GetService("Debris"):AddItem(rl, .5)
  352. elseif Type == "Normal" then
  353. local vp = Create("BodyVelocity"){
  354. P = 500,
  355. maxForce = Vector3.new(math.huge, 0, math.huge),
  356. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  357. }
  358. if knockback > 0 then
  359. vp.Parent = hit.Parent.Torso
  360. end
  361. game:GetService("Debris"):AddItem(vp, .5)
  362. elseif Type == "Up" then
  363. local bodyVelocity = Create("BodyVelocity"){
  364. velocity = Vector3.new(0, 20, 0),
  365. P = 5000,
  366. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  367. Parent = hit,
  368. }
  369. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  370. elseif Type == "DarkUp" then
  371. coroutine.resume(coroutine.create(function()
  372. for i = 0, 1, 0.1 do
  373. swait()
  374. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  375. end
  376. end))
  377. local bodyVelocity = Create("BodyVelocity"){
  378. velocity = Vector3.new(0, 20, 0),
  379. P = 5000,
  380. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  381. Parent = hit,
  382. }
  383. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  384. elseif Type == "Snare" then
  385. local bp = Create("BodyPosition"){
  386. P = 2000,
  387. D = 100,
  388. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  389. position = hit.Parent.Torso.Position,
  390. Parent = hit.Parent.Torso,
  391. }
  392. game:GetService("Debris"):AddItem(bp, 1)
  393. elseif Type == "Freeze" then
  394. local BodPos = Create("BodyPosition"){
  395. P = 50000,
  396. D = 1000,
  397. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  398. position = hit.Parent.Torso.Position,
  399. Parent = hit.Parent.Torso,
  400. }
  401. local BodGy = Create("BodyGyro") {
  402. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  403. P = 20e+003,
  404. Parent = hit.Parent.Torso,
  405. cframe = hit.Parent.Torso.CFrame,
  406. }
  407. hit.Parent.Torso.Anchored = true
  408. coroutine.resume(coroutine.create(function(Part)
  409. swait(1.5)
  410. Part.Anchored = false
  411. end), hit.Parent.Torso)
  412. game:GetService("Debris"):AddItem(BodPos, 3)
  413. game:GetService("Debris"):AddItem(BodGy, 3)
  414. end
  415. local debounce = Create("BoolValue"){
  416. Name = "DebounceHit",
  417. Parent = hit.Parent,
  418. Value = true,
  419. }
  420. game:GetService("Debris"):AddItem(debounce, Delay)
  421. c = Create("ObjectValue"){
  422. Name = "creator",
  423. Value = Player,
  424. Parent = h,
  425. }
  426. game:GetService("Debris"):AddItem(c, .5)
  427. end
  428. end
  429.  
  430. function ShowDamage(Pos, Text, Time, Color)
  431. local Rate = (1 / 30)
  432. local Pos = (Pos or Vector3.new(0, 0, 0))
  433. local Text = (Text or "")
  434. local Time = (Time or 2)
  435. local Color = (Color or Color3.new(1, 0, 1))
  436. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  437. EffectPart.Anchored = true
  438. local BillboardGui = Create("BillboardGui"){
  439. Size = UDim2.new(3, 0, 3, 0),
  440. Adornee = EffectPart,
  441. Parent = EffectPart,
  442. }
  443. local TextLabel = Create("TextLabel"){
  444. BackgroundTransparency = 1,
  445. Size = UDim2.new(1, 0, 1, 0),
  446. Text = Text,
  447. Font = "SciFi",
  448. TextColor3 = Color,
  449. TextScaled = true,
  450. Parent = BillboardGui,
  451. }
  452. game.Debris:AddItem(EffectPart, (Time))
  453. EffectPart.Parent = game:GetService("Workspace")
  454. delay(0, function()
  455. local Frames = (Time / Rate)
  456. for Frame = 1, Frames do
  457. wait(Rate)
  458. local Percent = (Frame / Frames)
  459. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  460. TextLabel.TextTransparency = Percent
  461. end
  462. if EffectPart and EffectPart.Parent then
  463. EffectPart:Destroy()
  464. end
  465. end)
  466. end
  467.  
  468. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  469. for _, c in pairs(workspace:children()) do
  470. local hum = c:findFirstChild("Humanoid")
  471. if hum ~= nil then
  472. local head = c:findFirstChild("Torso")
  473. if head ~= nil then
  474. local targ = head.Position - Part.Position
  475. local mag = targ.magnitude
  476. if mag <= Magnitude and c.Name ~= Player.Name then
  477. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  478. end
  479. end
  480. end
  481. end
  482. end
  483.  
  484. EffectModel = Create("Model"){
  485. Parent = Character,
  486. Name = "Effects",
  487. }
  488.  
  489. Humanoid.WalkSpeed = 0
  490. Humanoid.JumpPower = 0
  491.  
  492. CFuncs['Sound'].Create("rbxassetid://836740253",Character,10,1)
  493. attack = true
  494.  
  495. New = function(Object, Parent, Name, Data)
  496. local Object = Instance.new(Object)
  497. for Index, Value in pairs(Data or {}) do
  498. Object[Index] = Value
  499. end
  500. Object.Parent = Parent
  501. Object.Name = Name
  502. return Object
  503. end
  504.  
  505. Deadly = New("Model",Torso,"Deadly",{})
  506. Sun = New("Part",Deadly,"Sun",{BrickColor = BrickColor.new("New Yeller"),Material = Enum.Material.Neon,Size = Vector3.new(0.5, 0.5, 0.5),CFrame = CFrame.new(-128.325043, 6.92500401, -88.5550079, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 1, 0),})
  507. SunWeld = New("Weld",Sun,"Weld",{Part0 = Sun,Part1 = Torso,C0 = CFrame.new(0,10,-10)})
  508. Mesh = New("SpecialMesh",Sun,"Mesh",{Scale = Vector3.new(25, 25, 25),MeshType = Enum.MeshType.Sphere,})
  509.  
  510.  
  511. wait(2.4)
  512. for i = 0, 5, .1 do
  513. swait()
  514. PlayAnimationFromTable({
  515. CFrame.new(0, -0, 0, 1, 0, -0, 0, 1, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  516. CFrame.new(7.62939453e-06, 1.49997127, 0, 1, 0, -0, 0, 1, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  517. CFrame.new(1.49998116, 1.30000138, -0, -0.925471961, -0.378816098, -0, 0.378816068, -0.925472021, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  518. CFrame.new(-1.49998665, -7.67409801e-07, 0, 0.996534884, 0.083175458, -0, -0.0831753537, 0.996536195, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  519. CFrame.new(0.500002444, -1.99997056, 0, 0.997888863, -0.0649460033, -0, 0.0649460033, 0.997888863, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  520. CFrame.new(-0.499981999, -1.99997056, 0, 0.998180926, 0.0602900013, -0, -0.0602900013, 0.998180926, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  521. }, .1, false)
  522. SunWeld.C0 = clerp(SunWeld.C0, CFrame.new(0,-15,-10), 0.1)
  523. end
  524. wait(0.5)
  525. Humanoid.WalkSpeed = 19
  526. Humanoid.JumpPower = 75
  527. attack = false
  528.  
  529. Effects = {
  530. Block = {
  531. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  532. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  533. prt.Anchored = true
  534. prt.CFrame = cframe
  535. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  536. game:GetService("Debris"):AddItem(prt, 10)
  537. if Type == 1 or Type == nil then
  538. table.insert(Effects, {
  539. prt,
  540. "Block1",
  541. delay,
  542. x3,
  543. y3,
  544. z3,
  545. msh
  546. })
  547. elseif Type == 2 then
  548. table.insert(Effects, {
  549. prt,
  550. "Block2",
  551. delay,
  552. x3,
  553. y3,
  554. z3,
  555. msh
  556. })
  557. end
  558. end;
  559. };
  560.  
  561. Cylinder = {
  562. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  563. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  564. prt.Anchored = true
  565. prt.CFrame = cframe
  566. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  567. game:GetService("Debris"):AddItem(prt, 10)
  568. table.insert(Effects, {
  569. prt,
  570. "Cylinder",
  571. delay,
  572. x3,
  573. y3,
  574. z3,
  575. msh
  576. })
  577. end;
  578. };
  579. Head = {
  580. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  581. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  582. prt.Anchored = true
  583. prt.CFrame = cframe
  584. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  585. game:GetService("Debris"):AddItem(prt, 10)
  586. table.insert(Effects, {
  587. prt,
  588. "Cylinder",
  589. delay,
  590. x3,
  591. y3,
  592. z3,
  593. msh
  594. })
  595. end;
  596. };
  597.  
  598. Sphere = {
  599. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  600. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  601. prt.Anchored = true
  602. prt.CFrame = cframe
  603. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  604. game:GetService("Debris"):AddItem(prt, 10)
  605. table.insert(Effects, {
  606. prt,
  607. "Cylinder",
  608. delay,
  609. x3,
  610. y3,
  611. z3,
  612. msh
  613. })
  614. end;
  615. };
  616.  
  617. Elect = {
  618. Create = function(cff, x, y, z)
  619. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  620. prt.Anchored = true
  621. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  622. prt.CFrame = CFrame.new(prt.Position)
  623. game:GetService("Debris"):AddItem(prt, 2)
  624. local xval = math.random() / 2
  625. local yval = math.random() / 2
  626. local zval = math.random() / 2
  627. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  628. table.insert(Effects, {
  629. prt,
  630. "Elec",
  631. 0.1,
  632. x,
  633. y,
  634. z,
  635. xval,
  636. yval,
  637. zval
  638. })
  639. end;
  640.  
  641. };
  642.  
  643. Ring = {
  644. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  645. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  646. prt.Anchored = true
  647. prt.CFrame = cframe
  648. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  649. game:GetService("Debris"):AddItem(prt, 10)
  650. table.insert(Effects, {
  651. prt,
  652. "Cylinder",
  653. delay,
  654. x3,
  655. y3,
  656. z3,
  657. msh
  658. })
  659. end;
  660. };
  661.  
  662.  
  663. Wave = {
  664. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  665. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  666. prt.Anchored = true
  667. prt.CFrame = cframe
  668. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  669. game:GetService("Debris"):AddItem(prt, 10)
  670. table.insert(Effects, {
  671. prt,
  672. "Cylinder",
  673. delay,
  674. x3,
  675. y3,
  676. z3,
  677. msh
  678. })
  679. end;
  680. };
  681.  
  682. Break = {
  683. Create = function(brickcolor, cframe, x1, y1, z1)
  684. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  685. prt.Anchored = true
  686. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  687. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  688. local num = math.random(10, 50) / 1000
  689. game:GetService("Debris"):AddItem(prt, 10)
  690. table.insert(Effects, {
  691. prt,
  692. "Shatter",
  693. num,
  694. prt.CFrame,
  695. math.random() - math.random(),
  696. 0,
  697. math.random(50, 100) / 100
  698. })
  699. end;
  700. };
  701.  
  702. Fire = {
  703. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  704. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  705. prt.Anchored = true
  706. prt.CFrame = cframe
  707. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  708. game:GetService("Debris"):AddItem(prt, 10)
  709. table.insert(Effects, {
  710. prt,
  711. "Fire",
  712. delay,
  713. 1,
  714. 1,
  715. 1,
  716. msh
  717. })
  718. end;
  719. };
  720.  
  721. FireWave = {
  722. Create = function(brickcolor, cframe, x1, y1, z1)
  723. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  724. prt.Anchored = true
  725. prt.CFrame = cframe
  726. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  727. local d = Create("Decal"){
  728. Parent = prt,
  729. Texture = "rbxassetid://26356434",
  730. Face = "Top",
  731. }
  732. local d = Create("Decal"){
  733. Parent = prt,
  734. Texture = "rbxassetid://26356434",
  735. Face = "Bottom",
  736. }
  737. game:GetService("Debris"):AddItem(prt, 10)
  738. table.insert(Effects, {
  739. prt,
  740. "FireWave",
  741. 1,
  742. 30,
  743. math.random(400, 600) / 100,
  744. msh
  745. })
  746. end;
  747. };
  748.  
  749. Lightning = {
  750. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  751. local magz = (p0 - p1).magnitude
  752. local curpos = p0
  753. local trz = {
  754. -ofs,
  755. ofs
  756. }
  757. for i = 1, tym do
  758. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  759. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  760. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  761. li.Material = "Neon"
  762. if tym == i then
  763. local magz2 = (curpos - p1).magnitude
  764. li.Size = Vector3.new(th, th, magz2)
  765. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  766. table.insert(Effects, {
  767. li,
  768. "Disappear",
  769. last
  770. })
  771. else
  772. do
  773. do
  774. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  775. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  776. game.Debris:AddItem(li, 10)
  777. table.insert(Effects, {
  778. li,
  779. "Disappear",
  780. last
  781. })
  782. end
  783. end
  784. end
  785. end
  786. end
  787. };
  788.  
  789. EffectTemplate = {
  790.  
  791. };
  792. }
  793.  
  794. function supernova()
  795. attack = true
  796. for i = 0, 1, 0.1 do
  797. swait()
  798. PlayAnimationFromTable({
  799. CFrame.new(0, -0, 0, 1, 0, -0, 0, 1, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  800. CFrame.new(7.62939453e-06, 1.49997127, 0, 1, 0, -0, 0, 1, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  801. CFrame.new(1.49998248, 1.03999865, 1.31132779e-07, -0.874934673, -0.48424086, -8.74230253e-08, 0.48424086, -0.874934673, 2.16521015e-13, -7.64895418e-08, -4.23336139e-08, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  802. CFrame.new(-1.45997405, 1.03999221, 0, -0.85547322, 0.5178473, -0, -0.517847538, -0.855473042, 0, 0, -0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  803. CFrame.new(0.500002444, -1.99997056, 0, 0.997888863, -0.0649460033, -0, 0.0649460033, 0.997888863, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  804. CFrame.new(-0.499981999, -1.99997056, 0, 0.998180926, 0.0602900013, -0, -0.0602900013, 0.998180926, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  805. }, .3, false)
  806. end
  807. wait(.5)
  808. for i = 0, 5, .1 do
  809. Mesh.Scale = Mesh.Scale + Vector3.new(2,2,2)
  810. swait()
  811. end
  812. --
  813. coroutine.wrap(function()
  814. repeat swait()
  815. Mesh.Scale = Mesh.Scale + Vector3.new(2,2,2)
  816. until nil
  817. end)()
  818. --CFuncs['Sound'].Create("rbxassetid://265492506",Character,10,1)
  819. local a = Instance.new("ColorCorrectionEffect",game:service'Lighting')
  820. a.TintColor = Color3.new(1,1,1)
  821. local b = Instance.new("BlurEffect",game:service'Lighting')
  822. b.Size = 0
  823.  
  824. for i = 1,0,-.1 do
  825. b.Size = b.Size + .5
  826. a.TintColor = Color3.new(1,1,i)
  827. wait()
  828. end
  829. wait(1)
  830.  
  831.  
  832. for i = 1,0,-.1 do
  833. a.TintColor = Color3.new(1,i,0)
  834. b.Size = b.Size + 1
  835. wait()
  836. end
  837.  
  838. wait(1)
  839.  
  840. for i = 1,0,-.1 do
  841. a.TintColor = Color3.new(i,0,0)
  842. wait()
  843. end
  844. wait(1)
  845.  
  846. coroutine.wrap(function()
  847. for i,v in next, workspace:children() do
  848. if v:IsA"Model" or v:IsA"Part" then
  849. if v:FindFirstChildOfClass"Humanoid"then
  850. v:BreakJoints()
  851. end
  852. end
  853. end
  854. end)()
  855. wait(1)
  856.  
  857. for i = 0,1,.1 do
  858. a.TintColor = Color3.new(1,1,i)
  859. b.Size = b.Size - 2
  860. wait()
  861. end
  862.  
  863. a:destroy()
  864. game:service'Debris':AddItem(b,3)
  865. end
  866. function attackone()
  867. CFuncs['Sound'].Create("rbxassetid://811841430",Character,10,1)
  868. local a = Instance.new("Part",Character)
  869. a.Name = "Lazer"
  870. a.Anchored = true
  871. a.CanCollide = false
  872. a.BrickColor = BrickColor.new"New Yeller"
  873. local ray = Ray.new(
  874. Sun.CFrame.p, -- origin
  875. (Mouse.Hit.p - Sun.CFrame.p).unit * 500 -- direction
  876. )
  877. local ignore = Character
  878. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  879. if hit then
  880. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  881.  
  882. if not humanoid then
  883. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  884. end
  885. if humanoid then
  886. if humanoid.Parent:IsA"Model" then
  887. humanoid.Parent:BreakJoints()
  888. end
  889. end
  890. end
  891. a.BottomSurface = 10
  892. a.TopSurface = 10
  893. local distance = (Sun.CFrame.p - position).magnitude
  894. a.Size = Vector3.new(1, 1, distance)
  895. a.CFrame = CFrame.new(Sun.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  896. game:GetService("Debris"):AddItem(a, 0.1)
  897. end
  898.  
  899. Mouse.Button1Down:connect(function()
  900. if attack == false and attacktype == 1 then
  901. attackone()
  902. end
  903. end)
  904.  
  905.  
  906. Mouse.KeyDown:connect(function(k)
  907. if attack == false and k == 'v' then
  908. supernova()
  909. end
  910. end)
  911. while true do
  912. swait()
  913. for i, v in pairs(Character:GetChildren()) do
  914. if v:IsA("Part") then
  915. v.Material = "SmoothPlastic"
  916. elseif v:IsA("Accessory") then
  917. v:WaitForChild("Handle").Material = "SmoothPlastic"
  918. end
  919. end
  920. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  921. velocity = RootPart.Velocity.y
  922. sine = sine + change
  923. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  924. if RootPart.Velocity.y > 1 and hit == nil then
  925. Anim = "Jump"
  926. if attack == false then
  927. PlayAnimationFromTable({
  928. CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  929. CFrame.new(-0.0579944476, 1.48445117, -0.000906195492, 0.999631822, -0.0259140469, -0.00804444961, 0.0262291897, 0.998776913, 0.0419151038, 0.0069484422, -0.0421099029, 0.999089062) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  930. CFrame.new(1.68067598, 0.167780995, 5.50026158e-08, 0.965881884, -0.258982956, -3.41060513e-13, 0.258982956, 0.965881884, 4.47034836e-07, 8.49010675e-08, 3.16640808e-07, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  931. CFrame.new(-1.67620921, 0.188169807, -3.04922651e-07, 0.95698452, 0.290146649, -2.61441073e-07, -0.290146649, 0.95698452, -1.0069979e-05, -2.89639524e-06, 1.04542296e-05, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  932. CFrame.new(0.537238836, -1.93797374, 0.176598221, 0.998698533, -0.0506777391, -0.00574572897, 0.0510024093, 0.992341697, 0.112511501, -6.35704041e-08, -0.112657718, 0.993634105) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  933. CFrame.new(-0.536944568, -1.94808352, 0.126473114, 0.998626292, 0.0520468242, 0.00521374354, -0.0523067154, 0.993665218, 0.0995327011, -3.84102691e-07, -0.099668026, 0.995023906) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  934. }, .3, false)
  935. end
  936. elseif RootPart.Velocity.y < -1 and hit == nil then
  937. Anim = "Fall"
  938. if attack == false then
  939. PlayAnimationFromTable({
  940. CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  941. CFrame.new(-0.0576509275, 1.50532985, -0.129091382, 0.999631822, -0.0231846143, -0.0140984114, 0.0262298863, 0.958684564, 0.283279002, 0.00694822101, -0.283544153, 0.958935201) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  942. CFrame.new(1.68622994, 0.21415168, 7.02040666e-08, 0.881990671, -0.471266806, -3.41060513e-13, 0.471266806, 0.881990671, 4.47034836e-07, 1.54493137e-07, 2.89139166e-07, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  943. CFrame.new(-1.72513735, 0.240890861, 2.54038241e-07, 0.814108491, 0.58071363, -2.61430017e-07, -0.580713034, 0.814108849, -1.00698489e-05, -6.08482924e-06, 8.98058715e-06, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  944. CFrame.new(0.536720514, -1.92783141, 0.223740995, 0.998698533, -0.0498600565, -0.0107376017, 0.0510031059, 0.976314366, 0.210260883, -3.04512355e-07, -0.210534185, 0.977587521) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  945. CFrame.new(-0.535922825, -1.92850935, 0.222419083, 0.99863112, 0.0512506701, 0.0104565797, -0.0523065142, 0.978474379, 0.199629858, -3.7062793e-07, -0.199902818, 0.97981596) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  946. }, .3, false)
  947. end
  948. elseif Torsovelocity < 1 and hit ~= nil then
  949. Anim = "Idle"
  950. if attack == false then
  951. change = 1
  952. PlayAnimationFromTable({
  953. CFrame.new(0, -0, 0, 1, 0, -0, 0, 1, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  954. CFrame.new(7.62939453e-06, 1.49997127, 0, 1, 0, -0, 0, 1, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(math.sin(sine/22)/12,0,0),
  955. CFrame.new(0.429973245, 0.490001738, -0.460011989, 0.0975494087, 0.994276762, -0.0435587466, 0.0559796244, -0.0491798446, -0.997221529, -0.993656218, 0.0948399603, -0.0604567304) * CFrame.new(0, 0, math.sin(sine/16)/14) * CFrame.Angles(0, math.sin(sine/16)/10, math.sin(sine/16)/10),
  956. CFrame.new(-0.320005357, 0.480002224, -0.539992452, 0.357028693, -0.930425704, -0.0826981664, -0.130211353, 0.0380947962, -0.990754068, 0.924973309, 0.364495993, -0.107551016) * CFrame.new(0, 0, math.sin(sine/16)/14) * CFrame.Angles(0, -math.sin(sine/16)/10, -math.sin(sine/16)/10),
  957. CFrame.new(0.500002444, -1.99997056, 0, 0.997888863, -0.0649460033, -0, 0.0649460033, 0.997888863, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  958. CFrame.new(-0.499981999, -1.99997056, 0, 0.998180926, 0.0602900013, -0, -0.0602900013, 0.998180926, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  959. }, .3, false)
  960.  
  961. end
  962. elseif Torsovelocity > 2 and hit ~= nil then
  963. Anim = "Walk"
  964. if attack == false then
  965. PlayAnimationFromTable({
  966. CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0- .08 * math.cos((sine) / 3), 0) * CFrame.Angles(0, 0, 0),
  967. CFrame.new(-0.0595112406, 1.55331731, -0.0425721854, 0.999631822, -0.0248252042, -0.010953242, 0.0262294486, 0.987443328, 0.155781403, 0.00694842171, -0.156010598, 0.987731278) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  968. CFrame.new(0.429973245, 0.490001738, -0.460011989, 0.0975494087, 0.994276762, -0.0435587466, 0.0559796244, -0.0491798446, -0.997221529, -0.993656218, 0.0948399603, -0.0604567304) * CFrame.new(0, 0, math.sin(sine/16)/14) * CFrame.Angles(0, math.sin(sine/16)/10, math.sin(sine/16)/10),
  969. CFrame.new(-0.320005357, 0.480002224, -0.539992452, 0.357028693, -0.930425704, -0.0826981664, -0.130211353, 0.0380947962, -0.990754068, 0.924973309, 0.364495993, -0.107551016) * CFrame.new(0, 0, math.sin(sine/16)/14) * CFrame.Angles(0, -math.sin(sine/16)/10, -math.sin(sine/16)/10),
  970. CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 6)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 6)), 0, 0),
  971. CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 6)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 6)), 0, 0),
  972. }, .3, false)
  973. end
  974. end
  975. if 0 < #Effects then
  976. for e = 1, #Effects do
  977. if Effects[e] ~= nil then
  978. local Thing = Effects[e]
  979. if Thing ~= nil then
  980. local Part = Thing[1]
  981. local Mode = Thing[2]
  982. local Delay = Thing[3]
  983. local IncX = Thing[4]
  984. local IncY = Thing[5]
  985. local IncZ = Thing[6]
  986. if Thing[2] == "Shoot" then
  987. local Look = Thing[1]
  988. local move = 30
  989. if Thing[8] == 3 then
  990. move = 10
  991. end
  992. local hit, pos = rayCast(Thing[4], Thing[1], move, m)
  993. if Thing[10] ~= nil then
  994. da = pos
  995. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  996. cfa = CFrame.new(Thing[4], pos)
  997. tehCF = cfa:lerp(cf2, 0.2)
  998. Thing[1] = tehCF.lookVector
  999. end
  1000. local mag = (Thing[4] - pos).magnitude
  1001. Effects["Head"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
  1002. if Thing[8] == 2 then
  1003. Effects["Ring"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1)
  1004. end
  1005. Thing[4] = Thing[4] + Look * move
  1006. Thing[3] = Thing[3] - 1
  1007. if 2 < Thing[5] then
  1008. Thing[5] = Thing[5] - 0.3
  1009. Thing[6] = Thing[6] - 0.3
  1010. end
  1011. if hit ~= nil then
  1012. Thing[3] = 0
  1013. if Thing[8] == 1 or Thing[8] == 3 then
  1014. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1015. else
  1016. if Thing[8] == 2 then
  1017. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1018. if (hit.Parent:findFirstChild("Humanoid")) ~= nil or (hit.Parent.Parent:findFirstChild("Humanoid")) ~= nil then
  1019. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1020. ref.Anchored = true
  1021. ref.CFrame = CFrame.new(pos)
  1022. CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
  1023. game:GetService("Debris"):AddItem(ref, 0.2)
  1024. Effects["Block"].Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2)
  1025. Effects["Ring"].Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1)
  1026. MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
  1027. end
  1028. end
  1029. end
  1030. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1031. ref.Anchored = true
  1032. ref.CFrame = CFrame.new(pos)
  1033. Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  1034. game:GetService("Debris"):AddItem(ref, 1)
  1035. end
  1036. if Thing[3] <= 0 then
  1037. table.remove(Effects, e)
  1038. end
  1039. end
  1040. do
  1041. do
  1042. if Thing[2] == "FireWave" then
  1043. if Thing[3] <= Thing[4] then
  1044. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1045. Thing[3] = Thing[3] + 1
  1046. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1047. else
  1048. Part.Parent = nil
  1049. table.remove(Effects, e)
  1050. end
  1051. end
  1052. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1053. if Thing[1].Transparency <= 1 then
  1054. if Thing[2] == "Block1" then
  1055. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1056. Mesh = Thing[7]
  1057. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1058. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1059. else
  1060. if Thing[2] == "Block2" then
  1061. Thing[1].CFrame = Thing[1].CFrame
  1062. Mesh = Thing[7]
  1063. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1064. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1065. else
  1066. if Thing[2] == "Fire" then
  1067. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1068. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1069. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1070. else
  1071. if Thing[2] == "Cylinder" then
  1072. Mesh = Thing[7]
  1073. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1074. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1075. else
  1076. if Thing[2] == "Blood" then
  1077. Mesh = Thing[7]
  1078. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1079. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1080. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1081. else
  1082. if Thing[2] == "Elec" then
  1083. Mesh = Thing[10]
  1084. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1085. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1086. else
  1087. if Thing[2] == "Disappear" then
  1088. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1089. else
  1090. if Thing[2] == "Shatter" then
  1091. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1092. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1093. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1094. Thing[6] = Thing[6] + Thing[5]
  1095. end
  1096. end
  1097. end
  1098. end
  1099. end
  1100. end
  1101. end
  1102. end
  1103. else
  1104. Part.Parent = nil
  1105. table.remove(Effects, e)
  1106. end
  1107. end
  1108. end
  1109. end
  1110. end
  1111. end
  1112. end
  1113. end
  1114. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement