Hugo1234cool

Untitled

Jan 28th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 56.83 KB | None | 0 0
  1. --------------------------This is an Official script from Duelist--------------------------
  2. ---{-------------------- -------------------}---
  3. ---{-------------------- / \ -------------------}---
  4. ---{-------------------- II -------------------}---
  5. ---{-------------------- II -------------------}---
  6. ---{-------------------- II -------------------}---
  7. ---{-------------------- A========A -------------------}---
  8. ---{-------------------- II -------------------}---
  9. ---{-------------------- II -------------------}---
  10. ---{-------------------- W -------------------}---
  11. -------------------------------------------------------------------------------------------------------------
  12. --[[
  13. yu cri
  14. Hollow by grgrgry21 and Dooven. (Discontinued)
  15. A
  16. A A
  17. A C A
  18. A A
  19. A
  20. ]]---- This script has been converted to FE by iPxter
  21.  
  22.  
  23. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  24. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  25. do
  26. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  27. script.Parent = Player.Character
  28.  
  29. --RemoteEvent for communicating
  30. local Event = Instance.new("RemoteEvent")
  31. Event.Name = "UserInput_Event"
  32.  
  33. --Fake event to make stuff like Mouse.KeyDown work
  34. local function fakeEvent()
  35. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  36. t.connect = t.Connect
  37. return t
  38. end
  39.  
  40. --Creating fake input objects with fake variables
  41. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  42. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  43. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  44. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  45. end}
  46. --Merged 2 functions into one by checking amount of arguments
  47. CAS.UnbindAction = CAS.BindAction
  48.  
  49. --This function will trigger the events that have been :Connect()'ed
  50. local function te(self,ev,...)
  51. local t = m[ev]
  52. if t and t._fakeEvent and t.Function then
  53. t.Function(...)
  54. end
  55. end
  56. m.TrigEvent = te
  57. UIS.TrigEvent = te
  58.  
  59. Event.OnServerEvent:Connect(function(plr,io)
  60. if plr~=Player then return end
  61. if io.isMouse then
  62. m.Target = io.Target
  63. m.Hit = io.Hit
  64. else
  65. local b = io.UserInputState == Enum.UserInputState.Begin
  66. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  67. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  68. end
  69. for _,t in pairs(CAS.Actions) do
  70. for _,k in pairs(t.Keys) do
  71. if k==io.KeyCode then
  72. t.Function(t.Name,io.UserInputState,io)
  73. end
  74. end
  75. end
  76. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  77. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  78. end
  79. end)
  80. Event.Parent = NLS([==[
  81. local Player = game:GetService("Players").LocalPlayer
  82. local Event = script:WaitForChild("UserInput_Event")
  83.  
  84. local UIS = game:GetService("UserInputService")
  85. local input = function(io,a)
  86. if a then return end
  87. --Since InputObject is a client-side instance, we create and pass table instead
  88. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  89. end
  90. UIS.InputBegan:Connect(input)
  91. UIS.InputEnded:Connect(input)
  92.  
  93. local Mouse = Player:GetMouse()
  94. local h,t
  95. --Give the server mouse data 30 times every second, but only if the values changed
  96. --If player is not moving their mouse, client won't fire events
  97. while wait(1/30) do
  98. if h~=Mouse.Hit or t~=Mouse.Target then
  99. h,t=Mouse.Hit,Mouse.Target
  100. Event:FireServer({isMouse=true,Target=t,Hit=h})
  101. end
  102. end]==],Player.Character)
  103. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  104. end
  105. wait(1 / 60)
  106. Effects = { }
  107. local Player =owner
  108. local Character = Player.Character
  109. local Humanoid = Character.Humanoid
  110.  
  111. local LeftArm = Character["Left Arm"]
  112. local RightArm = Character["Right Arm"]
  113. local LeftLeg = Character["Left Leg"]
  114. local RightLeg = Character["Right Leg"]
  115. local Head = Character.Head
  116. local Torso = Character.Torso
  117. local Camera = game.Workspace.CurrentCamera
  118. local RootPart = Character.HumanoidRootPart
  119. local RootJoint = RootPart.RootJoint
  120. local attack = false
  121. local Anim = 'Idle'
  122. local attacktype = 1
  123. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  124. local velocity = RootPart.Velocity.y
  125. local sine = 0
  126. local change = 1
  127. local Create = LoadLibrary("RbxUtility").Create
  128. Humanoid.MaxHealth = math.huge
  129. local spooky = Instance.new("Sound",Character)
  130. spooky.SoundId = "rbxassetid://338849538"
  131. spooky.Looped = true
  132. spooky.Pitch = 1
  133. spooky.Volume = 10
  134. spooky:Stop()
  135. local spooky2 = Instance.new("Sound",Character)
  136. spooky2.SoundId = "rbxassetid://0"
  137. spooky2.Looped = false
  138. spooky2.Pitch = 1
  139. spooky2.Volume = 1.4
  140. spooky2:Play()
  141. local m = Create("Model"){
  142. Parent = Character,
  143. Name = "WeaponModel",
  144. }
  145.  
  146. Humanoid.Animator.Parent = nil
  147. Character.Animate.Parent = nil
  148.  
  149. local newMotor = function(part0, part1, c0, c1)
  150. local w = Create('Motor'){
  151. Parent = part0,
  152. Part0 = part0,
  153. Part1 = part1,
  154. C0 = c0,
  155. C1 = c1,
  156. }
  157. return w
  158. end
  159.  
  160. function clerp(a, b, t)
  161. return a:lerp(b, t)
  162. end
  163.  
  164. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  165. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  166.  
  167. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  168. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  169. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  170. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  171. RootJoint.C1 = CFrame.new(0, 0, 0)
  172. RootJoint.C0 = CFrame.new(0, 0, 0)
  173. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  174. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  175.  
  176. local rarmc1 = RW.C1
  177. local larmc1 = LW.C1
  178. local rlegc1 = RH.C1
  179. local llegc1 = LH.C1
  180.  
  181. local resetc1 = false
  182.  
  183. function PlayAnimationFromTable(table, speed, bool)
  184. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  185. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  186. RW.C0 = clerp(RW.C0, table[3], speed)
  187. LW.C0 = clerp(LW.C0, table[4], speed)
  188. RH.C0 = clerp(RH.C0, table[5], speed)
  189. LH.C0 = clerp(LH.C0, table[6], speed)
  190. if bool == true then
  191. if resetc1 == false then
  192. resetc1 = true
  193. RootJoint.C1 = RootJoint.C1
  194. Torso.Neck.C1 = Torso.Neck.C1
  195. RW.C1 = rarmc1
  196. LW.C1 = larmc1
  197. RH.C1 = rlegc1
  198. LH.C1 = llegc1
  199. end
  200. end
  201. end
  202.  
  203. ArtificialHB = Create("BindableEvent", script){
  204. Parent = script,
  205. Name = "Heartbeat",
  206. }
  207.  
  208. script:WaitForChild("Heartbeat")
  209.  
  210. frame = 1 / 30
  211. tf = 0
  212. allowframeloss = false
  213. tossremainder = false
  214. lastframe = tick()
  215. script.Heartbeat:Fire()
  216.  
  217. game:GetService("RunService").Heartbeat:connect(function(s, p)
  218. tf = tf + s
  219. if tf >= frame then
  220. if allowframeloss then
  221. script.Heartbeat:Fire()
  222. lastframe = tick()
  223. else
  224. for i = 1, math.floor(tf / frame) do
  225. script.Heartbeat:Fire()
  226. end
  227. lastframe = tick()
  228. end
  229. if tossremainder then
  230. tf = 0
  231. else
  232. tf = tf - frame * math.floor(tf / frame)
  233. end
  234. end
  235. end)
  236.  
  237. function swait(num)
  238. if num == 0 or num == nil then
  239. ArtificialHB.Event:wait()
  240. else
  241. for i = 0, num do
  242. ArtificialHB.Event:wait()
  243. end
  244. end
  245. end
  246.  
  247. function RemoveOutlines(part)
  248. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  249. end
  250.  
  251. CFuncs = {
  252. ["Part"] = {
  253. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  254. local Part = Create("Part"){
  255. Parent = Parent,
  256. Reflectance = Reflectance,
  257. Transparency = Transparency,
  258. CanCollide = false,
  259. Locked = true,
  260. BrickColor = BrickColor.new(tostring(BColor)),
  261. Name = Name,
  262. Size = Size,
  263. Material = Material,
  264. }
  265. RemoveOutlines(Part)
  266. return Part
  267. end;
  268. };
  269.  
  270. ["Mesh"] = {
  271. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  272. local Msh = Create(Mesh){
  273. Parent = Part,
  274. Offset = OffSet,
  275. Scale = Scale,
  276. }
  277. if Mesh == "SpecialMesh" then
  278. Msh.MeshType = MeshType
  279. Msh.MeshId = MeshId
  280. end
  281. return Msh
  282. end;
  283. };
  284.  
  285. ["Mesh"] = {
  286. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  287. local Msh = Create(Mesh){
  288. Parent = Part,
  289. Offset = OffSet,
  290. Scale = Scale,
  291. }
  292. if Mesh == "SpecialMesh" then
  293. Msh.MeshType = MeshType
  294. Msh.MeshId = MeshId
  295. end
  296. return Msh
  297. end;
  298. };
  299.  
  300. ["Weld"] = {
  301. Create = function(Parent, Part0, Part1, C0, C1)
  302. local Weld = Create("Weld"){
  303. Parent = Parent,
  304. Part0 = Part0,
  305. Part1 = Part1,
  306. C0 = C0,
  307. C1 = C1,
  308. }
  309. return Weld
  310. end;
  311. };
  312.  
  313. ["Sound"] = {
  314. Create = function(id, par, vol, pit)
  315. coroutine.resume(coroutine.create(function()
  316. local S = Create("Sound"){
  317. Volume = vol,
  318. Pitch = pit or 1,
  319. SoundId = id,
  320. Parent = par or workspace,
  321. }
  322. wait()
  323. S:play()
  324. game:GetService("Debris"):AddItem(S, 6)
  325. end))
  326. end;
  327. };
  328.  
  329. ["ParticleEmitter"] = {
  330. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  331. local fp = Create("ParticleEmitter"){
  332. Parent = Parent,
  333. Color = ColorSequence.new(Color1, Color2),
  334. LightEmission = LightEmission,
  335. Size = Size,
  336. Texture = Texture,
  337. Transparency = Transparency,
  338. ZOffset = ZOffset,
  339. Acceleration = Accel,
  340. Drag = Drag,
  341. LockedToPart = LockedToPart,
  342. VelocityInheritance = VelocityInheritance,
  343. EmissionDirection = EmissionDirection,
  344. Enabled = Enabled,
  345. Lifetime = LifeTime,
  346. Rate = Rate,
  347. Rotation = Rotation,
  348. RotSpeed = RotSpeed,
  349. Speed = Speed,
  350. VelocitySpread = VelocitySpread,
  351. }
  352. return fp
  353. end;
  354. };
  355.  
  356. CreateTemplate = {
  357.  
  358. };
  359. }
  360. New = function(Object, Parent, Name, Data)
  361. local Object = Instance.new(Object)
  362. for Index, Value in pairs(Data or {}) do
  363. Object[Index] = Value
  364. end
  365. Object.Parent = Parent
  366. Object.Name = Name
  367. return Object
  368. end
  369.  
  370. function rayCast(Position, Direction, Range, Ignore)
  371. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  372. end
  373.  
  374. FindNearestTorso = function(pos)
  375. local list = (game.Workspace:children())
  376. local torso = nil
  377. local dist = 1000
  378. local temp, human, temp2 = nil, nil, nil
  379. for x = 1, #list do
  380. temp2 = list[x]
  381. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  382. temp = temp2:findFirstChild("Torso")
  383. human = temp2:findFirstChild("Humanoid")
  384. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  385. local dohit = true
  386. if dohit == true then
  387. torso = temp
  388. dist = (temp.Position - pos).magnitude
  389. end
  390. end
  391. end
  392. end
  393. return torso, dist
  394. end
  395.  
  396. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  397. if hit.Parent == nil then
  398. return
  399. end
  400. local h = hit.Parent:FindFirstChild("Humanoid")
  401. for _, v in pairs(hit.Parent:children()) do
  402. if v:IsA("Humanoid") then
  403. h = v
  404. end
  405. end
  406. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  407. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  408. if hit.Parent.DebounceHit.Value == true then
  409. return
  410. end
  411. end
  412. local c = Create("ObjectValue"){
  413. Name = "creator",
  414. Value = game:service("Players").LocalPlayer,
  415. Parent = h,
  416. }
  417. game:GetService("Debris"):AddItem(c, .5)
  418. if HitSound ~= nil and HitPitch ~= nil then
  419. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  420. end
  421. local Damage = math.random(minim, maxim)
  422. local blocked = false
  423. local block = hit.Parent:findFirstChild("Block")
  424. if block ~= nil then
  425. if block.className == "IntValue" then
  426. if block.Value > 0 then
  427. blocked = true
  428. block.Value = block.Value - 1
  429. print(block.Value)
  430. end
  431. end
  432. end
  433. if blocked == false then
  434. h.Health = h.Health - Damage
  435. 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)
  436. else
  437. h.Health = h.Health - (Damage / 2)
  438. 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)
  439. end
  440. if Type == "Knockdown" then
  441. local hum = hit.Parent.Humanoid
  442. hum.PlatformStand = true
  443. coroutine.resume(coroutine.create(function(HHumanoid)
  444. swait(1)
  445. HHumanoid.PlatformStand = false
  446. end), hum)
  447. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  448. local bodvol = Create("BodyVelocity"){
  449. velocity = angle * knockback,
  450. P = 5000,
  451. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  452. Parent = hit,
  453. }
  454. local rl = Create("BodyAngularVelocity"){
  455. P = 3000,
  456. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  457. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  458. Parent = hit,
  459. }
  460. game:GetService("Debris"):AddItem(bodvol, .5)
  461. game:GetService("Debris"):AddItem(rl, .5)
  462. elseif Type == "Normal" then
  463. local vp = Create("BodyVelocity"){
  464. P = 500,
  465. maxForce = Vector3.new(math.huge, 0, math.huge),
  466. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  467. }
  468. if knockback > 0 then
  469. vp.Parent = hit.Parent.Torso
  470. end
  471. game:GetService("Debris"):AddItem(vp, .5)
  472. elseif Type == "Up" then
  473. local bodyVelocity = Create("BodyVelocity"){
  474. velocity = Vector3.new(0, 20, 0),
  475. P = 5000,
  476. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  477. Parent = hit,
  478. }
  479. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  480. elseif Type == "DarkUp" then
  481. coroutine.resume(coroutine.create(function()
  482. for i = 0, 1, 0.1 do
  483. swait()
  484. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  485. end
  486. end))
  487. local bodyVelocity = Create("BodyVelocity"){
  488. velocity = Vector3.new(0, 20, 0),
  489. P = 5000,
  490. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  491. Parent = hit,
  492. }
  493. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  494. elseif Type == "Snare" then
  495. local bp = Create("BodyPosition"){
  496. P = 2000,
  497. D = 100,
  498. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  499. position = hit.Parent.Torso.Position,
  500. Parent = hit.Parent.Torso,
  501. }
  502. game:GetService("Debris"):AddItem(bp, 1)
  503. elseif Type == "Freeze" then
  504. local BodPos = Create("BodyPosition"){
  505. P = 50000,
  506. D = 1000,
  507. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  508. position = hit.Parent.Torso.Position,
  509. Parent = hit.Parent.Torso,
  510. }
  511. local BodGy = Create("BodyGyro") {
  512. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  513. P = 20e+003,
  514. Parent = hit.Parent.Torso,
  515. cframe = hit.Parent.Torso.CFrame,
  516. }
  517. hit.Parent.Torso.Anchored = true
  518. coroutine.resume(coroutine.create(function(Part)
  519. swait(1.5)
  520. Part.Anchored = false
  521. end), hit.Parent.Torso)
  522. game:GetService("Debris"):AddItem(BodPos, 3)
  523. game:GetService("Debris"):AddItem(BodGy, 3)
  524. end
  525. local debounce = Create("BoolValue"){
  526. Name = "DebounceHit",
  527. Parent = hit.Parent,
  528. Value = true,
  529. }
  530. game:GetService("Debris"):AddItem(debounce, Delay)
  531. c = Create("ObjectValue"){
  532. Name = "creator",
  533. Value = Player,
  534. Parent = h,
  535. }
  536. game:GetService("Debris"):AddItem(c, .5)
  537. end
  538. end
  539.  
  540. function ShowDamage(Pos, Text, Time, Color)
  541. local Rate = (1 / 30)
  542. local Pos = (Pos or Vector3.new(0, 0, 0))
  543. local Text = (Text or "")
  544. local Time = (Time or 2)
  545. local Color = (Color or Color3.new(1, 0, 1))
  546. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  547. EffectPart.Anchored = true
  548. local BillboardGui = Create("BillboardGui"){
  549. Size = UDim2.new(3, 0, 3, 0),
  550. Adornee = EffectPart,
  551. Parent = EffectPart,
  552. }
  553. local TextLabel = Create("TextLabel"){
  554. BackgroundTransparency = 1,
  555. Size = UDim2.new(1, 0, 1, 0),
  556. Text = Text,
  557. Font = "SciFi",
  558. TextColor3 = Color,
  559. TextScaled = true,
  560. Parent = BillboardGui,
  561. }
  562. game.Debris:AddItem(EffectPart, (Time))
  563. EffectPart.Parent = game:GetService("Workspace")
  564. delay(0, function()
  565. local Frames = (Time / Rate)
  566. for Frame = 1, Frames do
  567. wait(Rate)
  568. local Percent = (Frame / Frames)
  569. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  570. TextLabel.TextTransparency = Percent
  571. end
  572. if EffectPart and EffectPart.Parent then
  573. EffectPart:Destroy()
  574. end
  575. end)
  576. end
  577.  
  578. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  579. for _, c in pairs(workspace:children()) do
  580. local hum = c:findFirstChild("Humanoid")
  581. if hum ~= nil then
  582. local head = c:findFirstChild("Torso")
  583. if head ~= nil then
  584. local targ = head.Position - Part.Position
  585. local mag = targ.magnitude
  586. if mag <= Magnitude and c.Name ~= Player.Name then
  587. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  588. end
  589. end
  590. end
  591. end
  592. end
  593. function UltraMagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) -- kek
  594. for _, c in pairs(workspace:children()) do
  595. local hum = c:findFirstChild("Humanoid")
  596. if hum ~= nil then
  597. local head = c:findFirstChild("Torso")
  598. if head ~= nil then
  599. local targ = head.Position - Part.Position
  600. local mag = targ.magnitude
  601. if mag <= Magnitude and c.Name ~= Player.Name then
  602. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  603. head.Size = head.Size + Vector3.new(0.01, 0.01, 0.01)
  604. end
  605. end
  606. end
  607. end
  608. end
  609. EffectModel = Create("Model"){
  610. Parent = Character,
  611. Name = "Effects",
  612. }
  613.  
  614. Effects = {
  615. Block = {
  616. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  617. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  618. prt.Anchored = true
  619. prt.CFrame = cframe
  620. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  621. game:GetService("Debris"):AddItem(prt, 10)
  622. if Type == 1 or Type == nil then
  623. table.insert(Effects, {
  624. prt,
  625. "Block1",
  626. delay,
  627. x3,
  628. y3,
  629. z3,
  630. msh
  631. })
  632. elseif Type == 2 then
  633. table.insert(Effects, {
  634. prt,
  635. "Block2",
  636. delay,
  637. x3,
  638. y3,
  639. z3,
  640. msh
  641. })
  642. end
  643. end;
  644. };
  645.  
  646. Cylinder = {
  647. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  648. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  649. prt.Anchored = true
  650. prt.CFrame = cframe
  651. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  652. game:GetService("Debris"):AddItem(prt, 10)
  653. table.insert(Effects, {
  654. prt,
  655. "Cylinder",
  656. delay,
  657. x3,
  658. y3,
  659. z3,
  660. msh
  661. })
  662. end;
  663. };
  664. Head = {
  665. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  666. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  667. prt.Anchored = true
  668. prt.CFrame = cframe
  669. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  670. game:GetService("Debris"):AddItem(prt, 10)
  671. table.insert(Effects, {
  672. prt,
  673. "Cylinder",
  674. delay,
  675. x3,
  676. y3,
  677. z3,
  678. msh
  679. })
  680. end;
  681. };
  682.  
  683. Sphere = {
  684. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  685. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  686. prt.Anchored = true
  687. prt.CFrame = cframe
  688. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  689. game:GetService("Debris"):AddItem(prt, 10)
  690. table.insert(Effects, {
  691. prt,
  692. "Cylinder",
  693. delay,
  694. x3,
  695. y3,
  696. z3,
  697. msh
  698. })
  699. end;
  700. };
  701.  
  702. Elect = {
  703. Create = function(cff, x, y, z)
  704. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  705. prt.Anchored = true
  706. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  707. prt.CFrame = CFrame.new(prt.Position)
  708. game:GetService("Debris"):AddItem(prt, 2)
  709. local xval = math.random() / 2
  710. local yval = math.random() / 2
  711. local zval = math.random() / 2
  712. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  713. table.insert(Effects, {
  714. prt,
  715. "Elec",
  716. 0.1,
  717. x,
  718. y,
  719. z,
  720. xval,
  721. yval,
  722. zval
  723. })
  724. end;
  725.  
  726. };
  727.  
  728. Ring = {
  729. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  730. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  731. prt.Anchored = true
  732. prt.CFrame = cframe
  733. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  734. game:GetService("Debris"):AddItem(prt, 10)
  735. table.insert(Effects, {
  736. prt,
  737. "Cylinder",
  738. delay,
  739. x3,
  740. y3,
  741. z3,
  742. msh
  743. })
  744. end;
  745. };
  746.  
  747.  
  748. Wave = {
  749. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  750. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  751. prt.Anchored = true
  752. prt.CFrame = cframe
  753. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  754. game:GetService("Debris"):AddItem(prt, 10)
  755. table.insert(Effects, {
  756. prt,
  757. "Cylinder",
  758. delay,
  759. x3,
  760. y3,
  761. z3,
  762. msh
  763. })
  764. end;
  765. };
  766.  
  767. Break = {
  768. Create = function(brickcolor, cframe, x1, y1, z1)
  769. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  770. prt.Anchored = true
  771. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  772. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  773. local num = math.random(10, 50) / 1000
  774. game:GetService("Debris"):AddItem(prt, 10)
  775. table.insert(Effects, {
  776. prt,
  777. "Shatter",
  778. num,
  779. prt.CFrame,
  780. math.random() - math.random(),
  781. 0,
  782. math.random(50, 100) / 100
  783. })
  784. end;
  785. };
  786.  
  787. Fire = {
  788. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  789. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  790. prt.Anchored = true
  791. prt.CFrame = cframe
  792. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  793. game:GetService("Debris"):AddItem(prt, 10)
  794. table.insert(Effects, {
  795. prt,
  796. "Fire",
  797. delay,
  798. 1,
  799. 1,
  800. 1,
  801. msh
  802. })
  803. end;
  804. };
  805.  
  806. FireWave = {
  807. Create = function(brickcolor, cframe, x1, y1, z1)
  808. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  809. prt.Anchored = true
  810. prt.CFrame = cframe
  811. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  812. local d = Create("Decal"){
  813. Parent = prt,
  814. Texture = "rbxassetid://26356434",
  815. Face = "Top",
  816. }
  817. local d = Create("Decal"){
  818. Parent = prt,
  819. Texture = "rbxassetid://26356434",
  820. Face = "Bottom",
  821. }
  822. game:GetService("Debris"):AddItem(prt, 10)
  823. table.insert(Effects, {
  824. prt,
  825. "FireWave",
  826. 1,
  827. 30,
  828. math.random(400, 600) / 100,
  829. msh
  830. })
  831. end;
  832. };
  833.  
  834. Lightning = {
  835. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  836. local magz = (p0 - p1).magnitude
  837. local curpos = p0
  838. local trz = {
  839. -ofs,
  840. ofs
  841. }
  842. for i = 1, tym do
  843. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  844. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  845. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  846. li.Material = "Neon"
  847. if tym == i then
  848. local magz2 = (curpos - p1).magnitude
  849. li.Size = Vector3.new(th, th, magz2)
  850. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  851. table.insert(Effects, {
  852. li,
  853. "Disappear",
  854. last
  855. })
  856. else
  857. do
  858. do
  859. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  860. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  861. game.Debris:AddItem(li, 10)
  862. table.insert(Effects, {
  863. li,
  864. "Disappear",
  865. last
  866. })
  867. end
  868. end
  869. end
  870. end
  871. end
  872. };
  873.  
  874. EffectTemplate = {
  875.  
  876. };
  877. }
  878. function hahahohoho(Part, Dmg)
  879. sp = Part.Position
  880. dirr = Part.CFrame * CFrame.fromEulerAnglesXYZ(-1.57, 0, 0)
  881. local hit, pos = rayCast(sp, dirr.lookVector, 500, Character)
  882. local las = Instance.new("Part", Character)
  883. las.Anchored = true
  884. las.Locked = true
  885. las.CanCollide = false
  886. las.TopSurface = 0
  887. las.BottomSurface = 0
  888. las.BrickColor = BrickColor.new("Really black")
  889. las.Size = Vector3.new(1, 1, 1)
  890. las.CFrame = CFrame.new((Part.Position + pos) / 2, pos) * CFrame.Angles(math.rad(90), 0, 0)
  891. local msh = Instance.new("SpecialMesh", las)
  892. mag = (Part.Position - pos).magnitude
  893. msh.Scale = Vector3.new(0.1, mag, 0.1)
  894. coroutine.resume(coroutine.create(function(Part, Mesh)
  895. for i = 0, 3, 0.1 do
  896. wait()
  897. Part.Transparency = Part.Transparency + 0.03
  898. Mesh.Scale = Mesh.Scale + Vector3.new(0.5, 0.7, 0.5)
  899. end
  900. Part.Parent = nil
  901. end), las, msh)
  902. if pos ~= nil then
  903. local las2 = Instance.new("Part", Character)
  904. las2.Anchored = true
  905. las2.Locked = true
  906. las2.CanCollide = false
  907. las2.TopSurface = 0
  908. las2.BottomSurface = 0
  909. las2.Transparency = 1
  910. las2.BrickColor = BrickColor.new("Really black")
  911. las2.Size = Vector3.new(1, 1, 1)
  912. las2.CFrame = CFrame.new(pos) * CFrame.Angles(math.rad(90), 0, 0)
  913. local msh = Instance.new("SpecialMesh", las2)
  914. msh.MeshType = "Sphere"
  915. mag = (Part.Position - pos).magnitude
  916. msh.Scale = Vector3.new(0.1, 0.1, 0.1)
  917. Effects.Ring.Create(BrickColor.new("Really black"), las2.CFrame * CFrame.Angles(math.random(-4,4),math.random(-4,4),math.random(-4,4)), 8, 8, 8, 2.5, 2.5, 2.5, 0.04)
  918. Effects.Sphere.Create(BrickColor.new("Really black"), las2.CFrame, 6, 6, 6, 9, 9, 9, 0.04)
  919. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=228343252", las2, 1.2, 0.9)
  920. UltraMagnitudeDamage(las2, 20, 100, 100, math.random(1, 5), "Normal", "http://www.roblox.com/asset/?id=228343252", 1)
  921. coroutine.resume(coroutine.create(function(Part, Mesh)
  922. for i = 0, 3, 0.1 do
  923. wait()
  924. Part.Transparency = Part.Transparency + 1
  925. Mesh.Scale = Mesh.Scale + Vector3.new(0, 0, 0)
  926. end
  927. Part.Parent = nil
  928. end), las2, msh)
  929. end
  930. if hit ~= nil and pos ~= nil then
  931. if hit.Parent.className == "Hat" then
  932. hit:BreakJoints()
  933. hit.Velocity = Vector3.new(math.random(-5, 5), 20, math.random(-5, 5))
  934. end
  935. if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then
  936. hit.Parent.Humanoid:TakeDamage(Dmg)
  937. end
  938. end
  939. end
  940. function attackone()
  941. attack = true
  942. local ref = New("Part",Character,"ref",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-63.7534943, 0.396845818, -9.92230225, -1, 0, 0, 0, 0.00350399944, -0.999993861, 0, -0.999993861, -0.00350399921),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  943. mot = New("Weld",ref,"mot",{Part0 = ref,Part1 = RootPart,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0.00350399944, -0.999993861, 0, -0.999993861, -0.00350399921),C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
  944.  
  945. for i = 0, 1, 0.1 do
  946. swait()
  947. PlayAnimationFromTable({
  948. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  949. CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  950. CFrame.new(1.5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  951. CFrame.new(-1.5, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  952. CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  953. CFrame.new(-0.5, -2, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  954. }, .3, false)
  955. end
  956. hahahohoho(ref, 100)
  957. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=156572165", Character, 1, .6)
  958. attack = false
  959. wait(1)
  960. ref:Remove()
  961. end
  962. function spamrein()
  963. attack = true
  964. local ref1 = New("Part",EffectModel,"ref1",{Anchored = true,CanCollide = false,BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-55.9288712, 27.204155, -45.3742905, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  965. local ref2 = New("Part",EffectModel,"ref2",{Anchored = true,CanCollide = false,BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-55.9288712, 27.204155, -45.3742905, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  966. for i = 0, 1, 0.1 do
  967. swait()
  968. PlayAnimationFromTable({
  969. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  970. CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  971. CFrame.new(1.5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  972. CFrame.new(-1.5, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  973. CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  974. CFrame.new(-0.5, -2, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  975. }, .3, false)
  976. end
  977. for i = 0, 8 do
  978. swait(3)
  979. ref1.CFrame = RootPart.CFrame * CFrame.new(math.random(-30,30),50,math.random(-30,30)) * CFrame.Angles(math.rad(math.random(-25,25)),0,math.rad(math.random(-25,25)))
  980. hahahohoho(ref1, 100)
  981. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=156572165", ref1, 1, .6)
  982. wait(.05)
  983. ref2.CFrame = RootPart.CFrame * CFrame.new(math.random(-30,30),50,math.random(-30,30)) * CFrame.Angles(math.rad(math.random(-25,25)),0,math.rad(math.random(-25,25)))
  984. hahahohoho(ref2, 100)
  985. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=156572165", ref2, 1, .6)
  986. wait(.05)
  987. end
  988. attack = false
  989. end
  990. function spamspin()
  991. attack = true
  992. local ref3 = New("Part",EffectModel,"ref3",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-55.9288712, 27.204155, -45.3742905, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  993. local ref4 = New("Part",EffectModel,"ref4",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-55.9288712, 27.204155, -45.3742905, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  994. moter1 = New("Motor",ref3,"mot",{Part0 = LeftArm,Part1 = ref3,})
  995. moter2 = New("Motor",ref4,"mot",{Part0 = RightArm,Part1 = ref4,})
  996. for i = 0, 1, 0.1 do
  997. swait()
  998. PlayAnimationFromTable({
  999. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1000. CFrame.new(0, 1.49998045, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1001. CFrame.new(2.00000072, 0.500000775, 0, -6.33299351e-007, -1.00000048, 0, 1.00000048, -6.33299351e-007, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1002. CFrame.new(-1.99999726, 0.500000834, 0, -2.38418579e-007, 1.0000006, 0, -1.00000048, -3.7252903e-007, 0, 0, -0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1003. CFrame.new(0.5, -1.99999619, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1004. CFrame.new(-0.5, -1.99999619, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1005. }, .3, false)
  1006. end
  1007. coroutine.wrap(function()
  1008. for i = 0, 18 do
  1009. swait(2)
  1010. hahahohoho(ref3, 100)
  1011. hahahohoho(ref4, 100)
  1012. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=156572165", RootPart, 1, .6)
  1013. end
  1014. end)()
  1015. for i = 0, 7, 0.1 do
  1016. swait()
  1017. PlayAnimationFromTable({
  1018. CFrame.new(0, -0.500001013, 7.62939453e-006, 1, 0, 0, 0, 0, -1, 0, 1, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(sine * 25), 0),
  1019. CFrame.new(0, 1.4999733, -9.00030136e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1020. CFrame.new(2, 0.499996185, -1.40070915e-005, 0, -1, 0, 1, 0, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1021. CFrame.new(-1.99999237, 0.499996185, -1.40070915e-005, 0, 1, 0, -1, 0, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1022. CFrame.new(0.5, -1.99998474, -2.02655792e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1023. CFrame.new(-0.5, -1.99998474, -2.02655792e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1024. }, .3, false)
  1025. moter1.C0 = clerp(moter1.C0, CFrame.new(1.07955907e-006, -1.10001731, 0, 1.0000031, 3.13669534e-006, 0, -3.00258512e-006, 1.00000322, -0, 0, -0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
  1026. moter2.C0 = clerp(moter2.C0, CFrame.new(-2.22906492e-005, -1.10000086, 1.03585517e-005, -1.00000048, 4.00841191e-006, -1.0410066e-011, 4.00840509e-006, 1.00000215, -2.61515493e-006, 1.75116303e-014, -2.48104334e-006, -1.00000179) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
  1027. end
  1028. attack = false
  1029. end
  1030. function criufkinbastard()
  1031. Humanoid.WalkSpeed = 0
  1032. Humanoid.JumpPower = 0
  1033. coroutine.wrap(function()
  1034. attack = true
  1035. local txt = Instance.new("BillboardGui", Character)
  1036. txt.Adornee = game.Players.LocalPlayer.Character.Head
  1037. txt.Name = "_status"
  1038. txt.Size = UDim2.new(2, 0, 1.2, 0)
  1039. txt.StudsOffset = Vector3.new(-9, 8, 0)
  1040. local text = Instance.new("TextLabel", txt)
  1041. text.Size = UDim2.new(10, 0, 7, 0)
  1042. text.FontSize = "Size24"
  1043. text.TextScaled = true
  1044. text.TextTransparency = 1
  1045. text.BackgroundTransparency = 1
  1046. text.TextStrokeTransparency = 1
  1047. text.Font = "Garamond"
  1048. text.TextStrokeColor3 = Color3.new(1,1,1)
  1049. text.TextColor3 = Color3.new(0, 0, 0)
  1050. text.Text = "I'm scared..."
  1051.  
  1052. local text2 = Instance.new("TextLabel", txt)
  1053. text2.Size = UDim2.new(10, 0, 7, 0)
  1054. text2.FontSize = "Size24"
  1055. text2.TextScaled = true
  1056. text2.TextTransparency = 1
  1057. text2.BackgroundTransparency = 1
  1058. text2.TextStrokeTransparency = 1
  1059. text2.Font = "Garamond"
  1060. text2.TextStrokeColor3 = Color3.new(1,1,1)
  1061. text2.TextColor3 = Color3.new(0, 0, 0)
  1062. text2.Text = "Why is this.. Happening to me?..."
  1063.  
  1064. local text3 = Instance.new("TextLabel", txt)
  1065. text3.Size = UDim2.new(10, 0, 7, 0)
  1066. text3.FontSize = "Size24"
  1067. text3.TextScaled = true
  1068. text3.TextTransparency = 1
  1069. text3.BackgroundTransparency = 1
  1070. text3.TextStrokeTransparency = 1
  1071. text3.Font = "Garamond"
  1072. text3.TextStrokeColor3 = Color3.new(1,1,1)
  1073. text3.TextColor3 = Color3.new(0, 0, 0)
  1074. text3.Text = "Should i be afraid...?"
  1075.  
  1076. local text4 = Instance.new("TextLabel", txt)
  1077. text4.Size = UDim2.new(10, 0, 7, 0)
  1078. text4.FontSize = "Size24"
  1079. text4.TextScaled = true
  1080. text4.TextTransparency = 1
  1081. text4.BackgroundTransparency = 1
  1082. text4.TextStrokeTransparency = 1
  1083. text4.Font = "Garamond"
  1084. text4.TextStrokeColor3 = Color3.new(1,1,1)
  1085. text4.TextColor3 = Color3.new(0, 0, 0)
  1086. text4.Text = "No..."
  1087.  
  1088. local text5 = Instance.new("TextLabel", txt)
  1089. text5.Size = UDim2.new(10, 0, 7, 0)
  1090. text5.FontSize = "Size24"
  1091. text5.TextScaled = true
  1092. text5.TextTransparency = 1
  1093. text5.BackgroundTransparency = 1
  1094. text5.TextStrokeTransparency = 1
  1095. text5.Font = "Garamond"
  1096. text5.TextStrokeColor3 = Color3.new(1,0,0)
  1097. text5.TextColor3 = Color3.new(0, 0, 0)
  1098. text5.Text = "It's just who i am.."
  1099.  
  1100.  
  1101. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=191006402", RootPart, 3, 1)
  1102. while wait() and text and text.TextTransparency >= 0 do
  1103. text.TextStrokeTransparency = text.TextStrokeTransparency - .05
  1104. text.TextTransparency = text.TextTransparency - .05
  1105.  
  1106. end
  1107. wait(3)
  1108. while wait() and text and text.TextTransparency <= 1 do
  1109. text.TextStrokeTransparency = text.TextStrokeTransparency + .05
  1110. text.TextTransparency = text.TextTransparency + .05
  1111. text.Position = text.Position - UDim2.new(0,0,0,1)
  1112. text.Rotation = text.Rotation - 1
  1113. text2.TextStrokeTransparency = text2.TextStrokeTransparency - .05
  1114. text2.TextTransparency = text2.TextTransparency - .05
  1115. end
  1116. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=191006402", RootPart, 3, 1)
  1117. wait(3)
  1118. while wait() and text2 and text2.TextTransparency <= 1 do
  1119. text2.TextStrokeTransparency = text2.TextStrokeTransparency + .05
  1120. text2.TextTransparency = text2.TextTransparency + .05
  1121. text2.Position = text2.Position - UDim2.new(0,0,0,1)
  1122. text2.Rotation = text2.Rotation - 1
  1123. text3.TextStrokeTransparency = text3.TextStrokeTransparency - .05
  1124. text3.TextTransparency = text3.TextTransparency - .05
  1125. end
  1126. wait(3)
  1127. while wait() and text3 and text3.TextTransparency <= 1 do
  1128. text3.TextStrokeTransparency = text3.TextStrokeTransparency + .05
  1129. text3.TextTransparency = text3.TextTransparency + .05
  1130. text3.Position = text3.Position - UDim2.new(0,0,0,1)
  1131. text3.Rotation = text3.Rotation - 1
  1132. text4.TextStrokeTransparency = text4.TextStrokeTransparency - .05
  1133. text4.TextTransparency = text4.TextTransparency - .05
  1134. end
  1135. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=191006402", RootPart, 3, 1)
  1136. wait(1)
  1137. while wait() and text4 and text4.TextTransparency <= 1 do
  1138. text4.TextStrokeTransparency = text4.TextStrokeTransparency + .05
  1139. text4.TextTransparency = text4.TextTransparency + .05
  1140. text4.Position = text4.Position - UDim2.new(0,0,0,1)
  1141. text4.Rotation = text4.Rotation - 1
  1142. text5.TextStrokeTransparency = text5.TextStrokeTransparency - .05
  1143. text5.TextTransparency = text5.TextTransparency - .05
  1144. end
  1145. wait(3)
  1146. while wait() and text5 and text5.TextTransparency <= 1 do
  1147. text5.TextStrokeTransparency = text5.TextStrokeTransparency + .05
  1148. text5.TextTransparency = text5.TextTransparency + .05
  1149. text5.Position = text5.Position - UDim2.new(math.random(-0.3,0.3),math.random(-5,5),math.random(-0.3,0.3),math.random(-5,5))
  1150. text5.Rotation = text5.Rotation - 1
  1151. spooky2.Volume = spooky2.Volume - 0.05
  1152. end
  1153. spooky:Play()
  1154. text:Remove()
  1155. text2:Remove()
  1156. text3:Remove()
  1157. text4:Remove()
  1158. text5:Remove()
  1159. end)()
  1160. for i = 0, 51, 0.1 do
  1161. swait()
  1162. PlayAnimationFromTable({
  1163. CFrame.new(-0, -2.01999879, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1164. CFrame.new(-0.100006104, 1.64000487, -3.69548798e-006, 1, 0, 0, 0, 0.891016304, 0.453991741, 0, -0.453991264, 0.891006649) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1165. CFrame.new(0.950131536, 1.02000284, -0.609929323, 0.838677049, 0.544629633, 1.82800829e-006, 0.280503511, -0.431945533, -0.857170463, -0.466839492, 0.718889475, -0.515032887) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1166. CFrame.new(-1.01001573, 1.08999729, -0.649995506, 0.743156135, -0.669118106, 5.49372999e-006, -0.324383408, -0.360283762, -0.874626398, 0.585230291, 0.649981976, -0.484797955) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1167. CFrame.new(0.5, -0.169970214, -1.0898838, 1, 0, -0, 0, 0.681989849, -0.73136127, 0, 0.73136127, 0.681989849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1168. CFrame.new(-0.549926758, -0.149971083, -1.56995773, 1, 0, -0, 0, 0.1736864, -0.984801233, 0, 0.984801233, 0.1736864) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1169. }, .1, false)
  1170. end
  1171. for i = 0, 5, 0.1 do
  1172. swait()
  1173. PlayAnimationFromTable({
  1174. CFrame.new(-0.0981965065, -1.31277657, -0.54871279, 0.808166862, -0.196366429, -0.555253625, 0.575620949, 0.0638884008, 0.815217137, -0.124606982, -0.97844708, 0.164665088) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1175. CFrame.new(0.0582410395, 1.44129539, 0.0734805763, 0.934516311, 2.10106373e-006, 0.355920374, 0.121625632, 0.939799547, -0.319349885, -0.334494382, 0.34172672, 0.878257751) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1176. CFrame.new(0.759254932, 0.609628737, -1.37132394, 0.887519658, 0.460769922, 5.49852848e-006, 0.0474366248, -0.0913589746, -0.994687736, -0.458321631, 0.882805049, -0.102940291) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1177. CFrame.new(-1.522138, 1.1763432, -0.233797818, 0.654816628, 0.623950124, -0.426499099, 0.0684916377, -0.610978603, -0.788678765, -0.752677917, 0.487228334, -0.44281441) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1178. CFrame.new(0.55273962, -1.8331666, -0.853646398, 0.994906187, -2.04518437e-006, 0.100805953, 0.0784842819, 0.627576351, -0.774589181, -0.0632617697, 0.778555214, 0.624379694) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1179. CFrame.new(-0.663739324, -1.72484899, -0.279409111, 0.936938882, 0.336636096, -0.0939244553, -0.32966578, 0.762038469, -0.557331204, -0.116043702, 0.553148985, 0.824960768) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1180. }, .05, false)
  1181. end
  1182. for i = 0, 5, 0.1 do
  1183. swait()
  1184. PlayAnimationFromTable({
  1185. CFrame.new(0, -0.0442145504, -0.205582842, 1, 0, 0, 0, 0.911569417, 0.411146224, 0, -0.411146194, 0.911569417) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1186. CFrame.new(0, 1.446419, -0.149725705, 1, 0, 0, 0, 0.941553891, 0.336862653, 0, -0.336862624, 0.94155395) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1187. CFrame.new(1.62312984, 0.0405562371, -0.126877204, 0.987515867, -0.155472979, 0.0253103133, 0.157519713, 0.974684954, -0.158671856, -3.94880772e-007, 0.160677835, 0.987006903) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1188. CFrame.new(-1.62933123, 0.039488472, -0.0764760524, 0.982997239, 0.18362084, -1.8598115e-008, -0.180242166, 0.964909732, -0.190950453, -0.0350624695, 0.187703788, 0.981599748) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1189. CFrame.new(0.50331378, -2.03031564, -0.386381626, 0.994077384, -0.100885771, 0.0404032469, 0.108675495, 0.922825038, -0.369572222, -5.43892384e-007, 0.371774226, 0.92832315) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1190. CFrame.new(-0.610246539, -1.9785527, -0.533763826, 0.991280973, 0.13176541, 7.16808756e-007, -0.118788213, 0.893654883, -0.432747513, -0.057021793, 0.428974301, 0.901515245) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1191. }, .05, false)
  1192. end
  1193. for i = 0, 2 do
  1194. for i = 0, 1, 0.1 do
  1195. swait()
  1196. PlayAnimationFromTable({
  1197. CFrame.new(0, -0.0442145504, -0.205582842, 1, 0, 0, 0, 0.911569417, 0.411146224, 0, -0.411146194, 0.911569417) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1198. CFrame.new(5.51342964e-007, 1.44641995, -0.149724424, 0.782274365, -6.99407749e-008, -0.622934043, 0.209844083, 0.941553354, 0.263520032, 0.586525559, -0.336863965, 0.736553073) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1199. CFrame.new(1.62312984, 0.0405562371, -0.126877204, 0.987515867, -0.155472979, 0.0253103133, 0.157519713, 0.974684954, -0.158671856, -3.94880772e-007, 0.160677835, 0.987006903) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1200. CFrame.new(-1.62933123, 0.039488472, -0.0764760524, 0.982997239, 0.18362084, -1.8598115e-008, -0.180242166, 0.964909732, -0.190950453, -0.0350624695, 0.187703788, 0.981599748) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1201. CFrame.new(0.50331378, -2.03031564, -0.386381626, 0.994077384, -0.100885771, 0.0404032469, 0.108675495, 0.922825038, -0.369572222, -5.43892384e-007, 0.371774226, 0.92832315) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1202. CFrame.new(-0.610246539, -1.9785527, -0.533763826, 0.991280973, 0.13176541, 7.16808756e-007, -0.118788213, 0.893654883, -0.432747513, -0.057021793, 0.428974301, 0.901515245) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1203. }, .3, false)
  1204. end
  1205. for i = 0, 1, 0.1 do
  1206. swait()
  1207. PlayAnimationFromTable({
  1208. CFrame.new(0, -0.0442145504, -0.205582842, 1, 0, 0, 0, 0.911569417, 0.411146224, 0, -0.411146194, 0.911569417) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1209. CFrame.new(1.78813934e-007, 1.4464184, -0.149724573, 0.864948869, -2.57774872e-007, 0.501860023, -0.169061571, 0.941551089, 0.291375846, -0.472526848, -0.336870432, 0.81439352) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1210. CFrame.new(1.62312984, 0.0405562371, -0.126877204, 0.987515867, -0.155472979, 0.0253103133, 0.157519713, 0.974684954, -0.158671856, -3.94880772e-007, 0.160677835, 0.987006903) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1211. CFrame.new(-1.62933123, 0.039488472, -0.0764760524, 0.982997239, 0.18362084, -1.8598115e-008, -0.180242166, 0.964909732, -0.190950453, -0.0350624695, 0.187703788, 0.981599748) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1212. CFrame.new(0.50331378, -2.03031564, -0.386381626, 0.994077384, -0.100885771, 0.0404032469, 0.108675495, 0.922825038, -0.369572222, -5.43892384e-007, 0.371774226, 0.92832315) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1213. CFrame.new(-0.610246539, -1.9785527, -0.533763826, 0.991280973, 0.13176541, 7.16808756e-007, -0.118788213, 0.893654883, -0.432747513, -0.057021793, 0.428974301, 0.901515245) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1214. }, .3, false)
  1215. end
  1216. end
  1217. Humanoid.WalkSpeed = 16
  1218. Humanoid.JumpPower = 50
  1219. attack = false
  1220. end
  1221. criufkinbastard()
  1222. Mouse.Button1Down:connect(function()
  1223. if attack == false and attacktype == 1 then
  1224. attackone()
  1225. end
  1226. end)
  1227.  
  1228. Mouse.KeyDown:connect(function(k)
  1229. k = k:lower()
  1230. if attack == false and k == 'z' then
  1231. spamrein()
  1232. elseif attack == false and k == 'x' then
  1233. spamspin()
  1234. end
  1235. end)
  1236.  
  1237. while true do
  1238. swait()
  1239. for i, v in pairs(Character:GetChildren()) do
  1240. if v:IsA("Part") then
  1241. v.Material = "SmoothPlastic"
  1242. elseif v:IsA("Accessory") then
  1243. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1244. end
  1245. end
  1246. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1247. velocity = RootPart.Velocity.y
  1248. sine = sine + change
  1249. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1250. if RootPart.Velocity.y > 1 and hit == nil then
  1251. Anim = "Jump"
  1252. if attack == false then
  1253. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1254. Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1255. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1256. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1257. RH.C0 = clerp(RH.C0, CFrame.new(.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1258. LH.C0 = clerp(LH.C0, CFrame.new(-.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1259. end
  1260. elseif RootPart.Velocity.y < -1 and hit == nil then
  1261. Anim = "Fall"
  1262. if attack == false then
  1263. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1264. Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1265. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1266. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1267. RH.C0 = clerp(RH.C0, CFrame.new(.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1268. LH.C0 = clerp(LH.C0, CFrame.new(-.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1269. end
  1270. elseif Torsovelocity < 1 and hit ~= nil then
  1271. Anim = "Idle"
  1272. if attack == false then
  1273. change = 1
  1274. PlayAnimationFromTable({
  1275. CFrame.new(0, -0.00887098443, -0.0937612727, 1, 0, 0, 0, 0.982259452, 0.18752709, 0, -0.18752709, 0.982259452) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1276. CFrame.new(0, 1.53825808, -0.0745411664, 1, 0, 0, 0, 0.982847154, 0.184422195, 0, -0.184422195, 0.982847154) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0+ 0.02 * math.cos((sine) / 45)),
  1277. CFrame.new(1.58500147, 0.0840085745, -4.23921301e-006, 0.988930881, -0.148377314, 2.86626602e-007, 0.148377329, 0.988930821, -3.42726707e-007, -2.32830644e-007, 3.7252903e-007, 1) * CFrame.new(0, 0+ 0.03 * math.cos((sine) / 35), 0) * CFrame.Angles(0+ 0.04 * math.cos((sine) / 35), 0, 0),
  1278. CFrame.new(-1.59969079, 0.0581852607, 0.00147094927, 0.98752898, 0.15742676, 0.00183918548, -0.157437503, 0.987461925, 0.01151824, -2.84425914e-006, -0.011664167, 0.999932051) * CFrame.new(0, 0+ 0.03 * math.cos((sine) / 35), 0) * CFrame.Angles(0+ 0.04 * math.cos((sine) / 35), 0, 0),
  1279. CFrame.new(0.609301865, -2.01351237, -0.193993554, 0.993222535, -0.0876774415, -0.0762994736, 0.0721344054, 0.979739249, -0.186836153, 0.0911348984, 0.180066094, 0.979423642) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1280. CFrame.new(-0.52007699, -1.94294918, -0.261722565, 0.997069001, 0.0162452944, 0.0747634321, 1.35414302e-006, 0.977193356, -0.212351725, -0.0765080377, 0.211729422, 0.974329174) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1281. }, .3, false)
  1282.  
  1283. end
  1284. elseif Torsovelocity > 2 and hit ~= nil then
  1285. Anim = "Walk"
  1286. if attack == false then
  1287. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1288. Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1289. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1290. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1291. RH.C0 = clerp(RH.C0, CFrame.new(.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1292. LH.C0 = clerp(LH.C0, CFrame.new(-.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1293. end
  1294. end
  1295. if 0 < #Effects then
  1296. for e = 1, #Effects do
  1297. if Effects[e] ~= nil then
  1298. local Thing = Effects[e]
  1299. if Thing ~= nil then
  1300. local Part = Thing[1]
  1301. local Mode = Thing[2]
  1302. local Delay = Thing[3]
  1303. local IncX = Thing[4]
  1304. local IncY = Thing[5]
  1305. local IncZ = Thing[6]
  1306. if Thing[2] == "Shoot" then
  1307. local Look = Thing[1]
  1308. local move = 30
  1309. if Thing[8] == 3 then
  1310. move = 10
  1311. end
  1312. local hit, pos = rayCast(Thing[4], Thing[1], move, m)
  1313. if Thing[10] ~= nil then
  1314. da = pos
  1315. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  1316. cfa = CFrame.new(Thing[4], pos)
  1317. tehCF = cfa:lerp(cf2, 0.2)
  1318. Thing[1] = tehCF.lookVector
  1319. end
  1320. local mag = (Thing[4] - pos).magnitude
  1321. 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)
  1322. if Thing[8] == 2 then
  1323. 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)
  1324. end
  1325. Thing[4] = Thing[4] + Look * move
  1326. Thing[3] = Thing[3] - 1
  1327. if 2 < Thing[5] then
  1328. Thing[5] = Thing[5] - 0.3
  1329. Thing[6] = Thing[6] - 0.3
  1330. end
  1331. if hit ~= nil then
  1332. Thing[3] = 0
  1333. if Thing[8] == 1 or Thing[8] == 3 then
  1334. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1335. else
  1336. if Thing[8] == 2 then
  1337. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1338. if (hit.Parent:findFirstChild("Humanoid")) ~= nil or (hit.Parent.Parent:findFirstChild("Humanoid")) ~= nil then
  1339. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1340. ref.Anchored = true
  1341. ref.CFrame = CFrame.new(pos)
  1342. CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
  1343. game:GetService("Debris"):AddItem(ref, 0.2)
  1344. 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)
  1345. 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)
  1346. MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
  1347. end
  1348. end
  1349. end
  1350. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1351. ref.Anchored = true
  1352. ref.CFrame = CFrame.new(pos)
  1353. Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  1354. game:GetService("Debris"):AddItem(ref, 1)
  1355. end
  1356. if Thing[3] <= 0 then
  1357. table.remove(Effects, e)
  1358. end
  1359. end
  1360. do
  1361. do
  1362. if Thing[2] == "FireWave" then
  1363. if Thing[3] <= Thing[4] then
  1364. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1365. Thing[3] = Thing[3] + 1
  1366. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1367. else
  1368. Part.Parent = nil
  1369. table.remove(Effects, e)
  1370. end
  1371. end
  1372. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1373. if Thing[1].Transparency <= 1 then
  1374. if Thing[2] == "Block1" then
  1375. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1376. Mesh = Thing[7]
  1377. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1378. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1379. else
  1380. if Thing[2] == "Block2" then
  1381. Thing[1].CFrame = Thing[1].CFrame
  1382. Mesh = Thing[7]
  1383. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1384. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1385. else
  1386. if Thing[2] == "Fire" then
  1387. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1388. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1389. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1390. else
  1391. if Thing[2] == "Cylinder" then
  1392. Mesh = Thing[7]
  1393. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1394. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1395. else
  1396. if Thing[2] == "Blood" then
  1397. Mesh = Thing[7]
  1398. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1399. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1400. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1401. else
  1402. if Thing[2] == "Elec" then
  1403. Mesh = Thing[10]
  1404. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1405. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1406. else
  1407. if Thing[2] == "Disappear" then
  1408. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1409. end
  1410. end
  1411. end
  1412. end
  1413. end
  1414. end
  1415. end
  1416. else
  1417. Part.Parent = nil
  1418. table.remove(Effects, e)
  1419. end
  1420. end
  1421. end
  1422. end
  1423. end
  1424. end
  1425. end
  1426. end
  1427. end
Advertisement
Add Comment
Please, Sign In to add comment