Advertisement
lafur

Untitled

Sep 4th, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.95 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. yu cri
  7. Hollow by grgrgry21 and Dooven. (Discontinued)
  8. A
  9. A A
  10. A C A
  11. A A
  12. A
  13. ]]--
  14. wait(1 / 60)
  15. Effects = { }
  16. local Player = game.Players.localPlayer
  17. local Character = Player.Character
  18. local Humanoid = Character.Humanoid
  19. local Mouse = Player:GetMouse()
  20. local LeftArm = Character["Left Arm"]
  21. local RightArm = Character["Right Arm"]
  22. local LeftLeg = Character["Left Leg"]
  23. local RightLeg = Character["Right Leg"]
  24. local Head = Character.Head
  25. local Torso = Character.Torso
  26. local Camera = game.Workspace.CurrentCamera
  27. local RootPart = Character.HumanoidRootPart
  28. local RootJoint = RootPart.RootJoint
  29. local attack = false
  30. local Anim = 'Idle'
  31. local attacktype = 1
  32. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  33. local velocity = RootPart.Velocity.y
  34. local sine = 0
  35. local change = 1
  36. local Create = LoadLibrary("RbxUtility").Create
  37. Humanoid.MaxHealth = math.huge
  38. local spooky = Instance.new("Sound",Character)
  39. spooky.SoundId = "rbxassetid://331384152"
  40. spooky.Looped = true
  41. spooky.Pitch = 1
  42. spooky.Volume = 1.1
  43. spooky:Stop()
  44. local spooky2 = Instance.new("Sound",Character)
  45. spooky2.SoundId = "rbxassetid://509646527"
  46. spooky2.Looped = false
  47. spooky2.Pitch = 1
  48. spooky2.Volume = 1.4
  49. spooky2:Play()
  50. local m = Create("Model"){
  51. Parent = Character,
  52. Name = "WeaponModel",
  53. }
  54.  
  55. Humanoid.Animator.Parent = nil
  56. Character.Animate.Parent = nil
  57.  
  58. local newMotor = function(part0, part1, c0, c1)
  59. local w = Create('Motor'){
  60. Parent = part0,
  61. Part0 = part0,
  62. Part1 = part1,
  63. C0 = c0,
  64. C1 = c1,
  65. }
  66. return w
  67. end
  68.  
  69. function clerp(a, b, t)
  70. return a:lerp(b, t)
  71. end
  72.  
  73. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  74. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  75.  
  76. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  77. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  78. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  79. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  80. RootJoint.C1 = CFrame.new(0, 0, 0)
  81. RootJoint.C0 = CFrame.new(0, 0, 0)
  82. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  83. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  84.  
  85. local rarmc1 = RW.C1
  86. local larmc1 = LW.C1
  87. local rlegc1 = RH.C1
  88. local llegc1 = LH.C1
  89.  
  90. local resetc1 = false
  91.  
  92. function PlayAnimationFromTable(table, speed, bool)
  93. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  94. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  95. RW.C0 = clerp(RW.C0, table[3], speed)
  96. LW.C0 = clerp(LW.C0, table[4], speed)
  97. RH.C0 = clerp(RH.C0, table[5], speed)
  98. LH.C0 = clerp(LH.C0, table[6], speed)
  99. if bool == true then
  100. if resetc1 == false then
  101. resetc1 = true
  102. RootJoint.C1 = RootJoint.C1
  103. Torso.Neck.C1 = Torso.Neck.C1
  104. RW.C1 = rarmc1
  105. LW.C1 = larmc1
  106. RH.C1 = rlegc1
  107. LH.C1 = llegc1
  108. end
  109. end
  110. end
  111.  
  112. ArtificialHB = Create("BindableEvent", script){
  113. Parent = script,
  114. Name = "Heartbeat",
  115. }
  116.  
  117. script:WaitForChild("Heartbeat")
  118.  
  119. frame = 1 / 30
  120. tf = 0
  121. allowframeloss = false
  122. tossremainder = false
  123. lastframe = tick()
  124. script.Heartbeat:Fire()
  125.  
  126. game:GetService("RunService").Heartbeat:connect(function(s, p)
  127. tf = tf + s
  128. if tf >= frame then
  129. if allowframeloss then
  130. script.Heartbeat:Fire()
  131. lastframe = tick()
  132. else
  133. for i = 1, math.floor(tf / frame) do
  134. script.Heartbeat:Fire()
  135. end
  136. lastframe = tick()
  137. end
  138. if tossremainder then
  139. tf = 0
  140. else
  141. tf = tf - frame * math.floor(tf / frame)
  142. end
  143. end
  144. end)
  145.  
  146. function swait(num)
  147. if num == 0 or num == nil then
  148. ArtificialHB.Event:wait()
  149. else
  150. for i = 0, num do
  151. ArtificialHB.Event:wait()
  152. end
  153. end
  154. end
  155.  
  156. function RemoveOutlines(part)
  157. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  158. end
  159.  
  160. CFuncs = {
  161. ["Part"] = {
  162. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  163. local Part = Create("Part"){
  164. Parent = Parent,
  165. Reflectance = Reflectance,
  166. Transparency = Transparency,
  167. CanCollide = false,
  168. Locked = true,
  169. BrickColor = BrickColor.new(tostring(BColor)),
  170. Name = Name,
  171. Size = Size,
  172. Material = Material,
  173. }
  174. RemoveOutlines(Part)
  175. return Part
  176. end;
  177. };
  178.  
  179. ["Mesh"] = {
  180. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  181. local Msh = Create(Mesh){
  182. Parent = Part,
  183. Offset = OffSet,
  184. Scale = Scale,
  185. }
  186. if Mesh == "SpecialMesh" then
  187. Msh.MeshType = MeshType
  188. Msh.MeshId = MeshId
  189. end
  190. return Msh
  191. end;
  192. };
  193.  
  194. ["Mesh"] = {
  195. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  196. local Msh = Create(Mesh){
  197. Parent = Part,
  198. Offset = OffSet,
  199. Scale = Scale,
  200. }
  201. if Mesh == "SpecialMesh" then
  202. Msh.MeshType = MeshType
  203. Msh.MeshId = MeshId
  204. end
  205. return Msh
  206. end;
  207. };
  208.  
  209. ["Weld"] = {
  210. Create = function(Parent, Part0, Part1, C0, C1)
  211. local Weld = Create("Weld"){
  212. Parent = Parent,
  213. Part0 = Part0,
  214. Part1 = Part1,
  215. C0 = C0,
  216. C1 = C1,
  217. }
  218. return Weld
  219. end;
  220. };
  221.  
  222. ["Sound"] = {
  223. Create = function(id, par, vol, pit)
  224. coroutine.resume(coroutine.create(function()
  225. local S = Create("Sound"){
  226. Volume = vol,
  227. Pitch = pit or 1,
  228. SoundId = id,
  229. Parent = par or workspace,
  230. }
  231. wait()
  232. S:play()
  233. game:GetService("Debris"):AddItem(S, 6)
  234. end))
  235. end;
  236. };
  237.  
  238. ["ParticleEmitter"] = {
  239. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  240. local fp = Create("ParticleEmitter"){
  241. Parent = Parent,
  242. Color = ColorSequence.new(Color1, Color2),
  243. LightEmission = LightEmission,
  244. Size = Size,
  245. Texture = Texture,
  246. Transparency = Transparency,
  247. ZOffset = ZOffset,
  248. Acceleration = Accel,
  249. Drag = Drag,
  250. LockedToPart = LockedToPart,
  251. VelocityInheritance = VelocityInheritance,
  252. EmissionDirection = EmissionDirection,
  253. Enabled = Enabled,
  254. Lifetime = LifeTime,
  255. Rate = Rate,
  256. Rotation = Rotation,
  257. RotSpeed = RotSpeed,
  258. Speed = Speed,
  259. VelocitySpread = VelocitySpread,
  260. }
  261. return fp
  262. end;
  263. };
  264.  
  265. CreateTemplate = {
  266.  
  267. };
  268. }
  269. New = function(Object, Parent, Name, Data)
  270. local Object = Instance.new(Object)
  271. for Index, Value in pairs(Data or {}) do
  272. Object[Index] = Value
  273. end
  274. Object.Parent = Parent
  275. Object.Name = Name
  276. return Object
  277. end
  278.  
  279. function rayCast(Position, Direction, Range, Ignore)
  280. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  281. end
  282.  
  283. FindNearestTorso = function(pos)
  284. local list = (game.Workspace:children())
  285. local torso = nil
  286. local dist = 1000
  287. local temp, human, temp2 = nil, nil, nil
  288. for x = 1, #list do
  289. temp2 = list[x]
  290. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  291. temp = temp2:findFirstChild("Torso")
  292. human = temp2:findFirstChild("Humanoid")
  293. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  294. local dohit = true
  295. if dohit == true then
  296. torso = temp
  297. dist = (temp.Position - pos).magnitude
  298. end
  299. end
  300. end
  301. end
  302. return torso, dist
  303. end
  304.  
  305. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  306. if hit.Parent == nil then
  307. return
  308. end
  309. local h = hit.Parent:FindFirstChild("Humanoid")
  310. for _, v in pairs(hit.Parent:children()) do
  311. if v:IsA("Humanoid") then
  312. h = v
  313. end
  314. end
  315. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  316. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  317. if hit.Parent.DebounceHit.Value == true then
  318. return
  319. end
  320. end
  321. local c = Create("ObjectValue"){
  322. Name = "creator",
  323. Value = game:service("Players").LocalPlayer,
  324. Parent = h,
  325. }
  326. game:GetService("Debris"):AddItem(c, .5)
  327. if HitSound ~= nil and HitPitch ~= nil then
  328. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  329. end
  330. local Damage = math.random(minim, maxim)
  331. local blocked = false
  332. local block = hit.Parent:findFirstChild("Block")
  333. if block ~= nil then
  334. if block.className == "IntValue" then
  335. if block.Value > 0 then
  336. blocked = true
  337. block.Value = block.Value - 1
  338. print(block.Value)
  339. end
  340. end
  341. end
  342. if blocked == false then
  343. h.Health = h.Health - Damage
  344. 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)
  345. else
  346. h.Health = h.Health - (Damage / 2)
  347. 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)
  348. end
  349. if Type == "Knockdown" then
  350. local hum = hit.Parent.Humanoid
  351. hum.PlatformStand = true
  352. coroutine.resume(coroutine.create(function(HHumanoid)
  353. swait(1)
  354. HHumanoid.PlatformStand = false
  355. end), hum)
  356. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  357. local bodvol = Create("BodyVelocity"){
  358. velocity = angle * knockback,
  359. P = 5000,
  360. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  361. Parent = hit,
  362. }
  363. local rl = Create("BodyAngularVelocity"){
  364. P = 3000,
  365. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  366. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  367. Parent = hit,
  368. }
  369. game:GetService("Debris"):AddItem(bodvol, .5)
  370. game:GetService("Debris"):AddItem(rl, .5)
  371. elseif Type == "Normal" then
  372. local vp = Create("BodyVelocity"){
  373. P = 500,
  374. maxForce = Vector3.new(math.huge, 0, math.huge),
  375. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  376. }
  377. if knockback > 0 then
  378. vp.Parent = hit.Parent.Torso
  379. end
  380. game:GetService("Debris"):AddItem(vp, .5)
  381. elseif Type == "Up" then
  382. local bodyVelocity = Create("BodyVelocity"){
  383. velocity = Vector3.new(0, 20, 0),
  384. P = 5000,
  385. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  386. Parent = hit,
  387. }
  388. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  389. elseif Type == "DarkUp" then
  390. coroutine.resume(coroutine.create(function()
  391. for i = 0, 1, 0.1 do
  392. swait()
  393. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  394. end
  395. end))
  396. local bodyVelocity = Create("BodyVelocity"){
  397. velocity = Vector3.new(0, 20, 0),
  398. P = 5000,
  399. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  400. Parent = hit,
  401. }
  402. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  403. elseif Type == "Snare" then
  404. local bp = Create("BodyPosition"){
  405. P = 2000,
  406. D = 100,
  407. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  408. position = hit.Parent.Torso.Position,
  409. Parent = hit.Parent.Torso,
  410. }
  411. game:GetService("Debris"):AddItem(bp, 1)
  412. elseif Type == "Freeze" then
  413. local BodPos = Create("BodyPosition"){
  414. P = 50000,
  415. D = 1000,
  416. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  417. position = hit.Parent.Torso.Position,
  418. Parent = hit.Parent.Torso,
  419. }
  420. local BodGy = Create("BodyGyro") {
  421. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  422. P = 20e+003,
  423. Parent = hit.Parent.Torso,
  424. cframe = hit.Parent.Torso.CFrame,
  425. }
  426. hit.Parent.Torso.Anchored = true
  427. coroutine.resume(coroutine.create(function(Part)
  428. swait(1.5)
  429. Part.Anchored = false
  430. end), hit.Parent.Torso)
  431. game:GetService("Debris"):AddItem(BodPos, 3)
  432. game:GetService("Debris"):AddItem(BodGy, 3)
  433. end
  434. local debounce = Create("BoolValue"){
  435. Name = "DebounceHit",
  436. Parent = hit.Parent,
  437. Value = true,
  438. }
  439. game:GetService("Debris"):AddItem(debounce, Delay)
  440. c = Create("ObjectValue"){
  441. Name = "creator",
  442. Value = Player,
  443. Parent = h,
  444. }
  445. game:GetService("Debris"):AddItem(c, .5)
  446. end
  447. end
  448.  
  449. function ShowDamage(Pos, Text, Time, Color)
  450. local Rate = (1 / 30)
  451. local Pos = (Pos or Vector3.new(0, 0, 0))
  452. local Text = (Text or "")
  453. local Time = (Time or 2)
  454. local Color = (Color or Color3.new(1, 0, 1))
  455. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  456. EffectPart.Anchored = true
  457. local BillboardGui = Create("BillboardGui"){
  458. Size = UDim2.new(3, 0, 3, 0),
  459. Adornee = EffectPart,
  460. Parent = EffectPart,
  461. }
  462. local TextLabel = Create("TextLabel"){
  463. BackgroundTransparency = 1,
  464. Size = UDim2.new(1, 0, 1, 0),
  465. Text = Text,
  466. Font = "SciFi",
  467. TextColor3 = Color,
  468. TextScaled = true,
  469. Parent = BillboardGui,
  470. }
  471. game.Debris:AddItem(EffectPart, (Time))
  472. EffectPart.Parent = game:GetService("Workspace")
  473. delay(0, function()
  474. local Frames = (Time / Rate)
  475. for Frame = 1, Frames do
  476. wait(Rate)
  477. local Percent = (Frame / Frames)
  478. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  479. TextLabel.TextTransparency = Percent
  480. end
  481. if EffectPart and EffectPart.Parent then
  482. EffectPart:Destroy()
  483. end
  484. end)
  485. end
  486.  
  487. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  488. for _, c in pairs(workspace:children()) do
  489. local hum = c:findFirstChild("Humanoid")
  490. if hum ~= nil then
  491. local head = c:findFirstChild("Torso")
  492. if head ~= nil then
  493. local targ = head.Position - Part.Position
  494. local mag = targ.magnitude
  495. if mag <= Magnitude and c.Name ~= Player.Name then
  496. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  497. end
  498. end
  499. end
  500. end
  501. end
  502. function UltraMagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) -- kek
  503. for _, c in pairs(workspace:children()) do
  504. local hum = c:findFirstChild("Humanoid")
  505. if hum ~= nil then
  506. local head = c:findFirstChild("Torso")
  507. if head ~= nil then
  508. local targ = head.Position - Part.Position
  509. local mag = targ.magnitude
  510. if mag <= Magnitude and c.Name ~= Player.Name then
  511. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  512. head.Size = head.Size + Vector3.new(0.01, 0.01, 0.01)
  513. end
  514. end
  515. end
  516. end
  517. end
  518. EffectModel = Create("Model"){
  519. Parent = Character,
  520. Name = "Effects",
  521. }
  522.  
  523. Effects = {
  524. Block = {
  525. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  526. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  527. prt.Anchored = true
  528. prt.CFrame = cframe
  529. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  530. game:GetService("Debris"):AddItem(prt, 10)
  531. if Type == 1 or Type == nil then
  532. table.insert(Effects, {
  533. prt,
  534. "Block1",
  535. delay,
  536. x3,
  537. y3,
  538. z3,
  539. msh
  540. })
  541. elseif Type == 2 then
  542. table.insert(Effects, {
  543. prt,
  544. "Block2",
  545. delay,
  546. x3,
  547. y3,
  548. z3,
  549. msh
  550. })
  551. end
  552. end;
  553. };
  554.  
  555. Cylinder = {
  556. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  557. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  558. prt.Anchored = true
  559. prt.CFrame = cframe
  560. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  561. game:GetService("Debris"):AddItem(prt, 10)
  562. table.insert(Effects, {
  563. prt,
  564. "Cylinder",
  565. delay,
  566. x3,
  567. y3,
  568. z3,
  569. msh
  570. })
  571. end;
  572. };
  573. Head = {
  574. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  575. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  576. prt.Anchored = true
  577. prt.CFrame = cframe
  578. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  579. game:GetService("Debris"):AddItem(prt, 10)
  580. table.insert(Effects, {
  581. prt,
  582. "Cylinder",
  583. delay,
  584. x3,
  585. y3,
  586. z3,
  587. msh
  588. })
  589. end;
  590. };
  591.  
  592. Sphere = {
  593. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  594. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  595. prt.Anchored = true
  596. prt.CFrame = cframe
  597. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  598. game:GetService("Debris"):AddItem(prt, 10)
  599. table.insert(Effects, {
  600. prt,
  601. "Cylinder",
  602. delay,
  603. x3,
  604. y3,
  605. z3,
  606. msh
  607. })
  608. end;
  609. };
  610.  
  611. Elect = {
  612. Create = function(cff, x, y, z)
  613. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  614. prt.Anchored = true
  615. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  616. prt.CFrame = CFrame.new(prt.Position)
  617. game:GetService("Debris"):AddItem(prt, 2)
  618. local xval = math.random() / 2
  619. local yval = math.random() / 2
  620. local zval = math.random() / 2
  621. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  622. table.insert(Effects, {
  623. prt,
  624. "Elec",
  625. 0.1,
  626. x,
  627. y,
  628. z,
  629. xval,
  630. yval,
  631. zval
  632. })
  633. end;
  634.  
  635. };
  636.  
  637. Ring = {
  638. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  639. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  640. prt.Anchored = true
  641. prt.CFrame = cframe
  642. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  643. game:GetService("Debris"):AddItem(prt, 10)
  644. table.insert(Effects, {
  645. prt,
  646. "Cylinder",
  647. delay,
  648. x3,
  649. y3,
  650. z3,
  651. msh
  652. })
  653. end;
  654. };
  655.  
  656.  
  657. Wave = {
  658. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  659. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  660. prt.Anchored = true
  661. prt.CFrame = cframe
  662. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  663. game:GetService("Debris"):AddItem(prt, 10)
  664. table.insert(Effects, {
  665. prt,
  666. "Cylinder",
  667. delay,
  668. x3,
  669. y3,
  670. z3,
  671. msh
  672. })
  673. end;
  674. };
  675.  
  676. Break = {
  677. Create = function(brickcolor, cframe, x1, y1, z1)
  678. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  679. prt.Anchored = true
  680. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  681. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  682. local num = math.random(10, 50) / 1000
  683. game:GetService("Debris"):AddItem(prt, 10)
  684. table.insert(Effects, {
  685. prt,
  686. "Shatter",
  687. num,
  688. prt.CFrame,
  689. math.random() - math.random(),
  690. 0,
  691. math.random(50, 100) / 100
  692. })
  693. end;
  694. };
  695.  
  696. Fire = {
  697. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  698. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  699. prt.Anchored = true
  700. prt.CFrame = cframe
  701. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  702. game:GetService("Debris"):AddItem(prt, 10)
  703. table.insert(Effects, {
  704. prt,
  705. "Fire",
  706. delay,
  707. 1,
  708. 1,
  709. 1,
  710. msh
  711. })
  712. end;
  713. };
  714.  
  715. FireWave = {
  716. Create = function(brickcolor, cframe, x1, y1, z1)
  717. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  718. prt.Anchored = true
  719. prt.CFrame = cframe
  720. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  721. local d = Create("Decal"){
  722. Parent = prt,
  723. Texture = "rbxassetid://26356434",
  724. Face = "Top",
  725. }
  726. local d = Create("Decal"){
  727. Parent = prt,
  728. Texture = "rbxassetid://26356434",
  729. Face = "Bottom",
  730. }
  731. game:GetService("Debris"):AddItem(prt, 10)
  732. table.insert(Effects, {
  733. prt,
  734. "FireWave",
  735. 1,
  736. 30,
  737. math.random(400, 600) / 100,
  738. msh
  739. })
  740. end;
  741. };
  742.  
  743. Lightning = {
  744. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  745. local magz = (p0 - p1).magnitude
  746. local curpos = p0
  747. local trz = {
  748. -ofs,
  749. ofs
  750. }
  751. for i = 1, tym do
  752. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  753. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  754. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  755. li.Material = "Neon"
  756. if tym == i then
  757. local magz2 = (curpos - p1).magnitude
  758. li.Size = Vector3.new(th, th, magz2)
  759. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  760. table.insert(Effects, {
  761. li,
  762. "Disappear",
  763. last
  764. })
  765. else
  766. do
  767. do
  768. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  769. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  770. game.Debris:AddItem(li, 10)
  771. table.insert(Effects, {
  772. li,
  773. "Disappear",
  774. last
  775. })
  776. end
  777. end
  778. end
  779. end
  780. end
  781. };
  782.  
  783. EffectTemplate = {
  784.  
  785. };
  786. }
  787. function hahahohoho(Part, Dmg)
  788. sp = Part.Position
  789. dirr = Part.CFrame * CFrame.fromEulerAnglesXYZ(-1.57, 0, 0)
  790. local hit, pos = rayCast(sp, dirr.lookVector, 500, Character)
  791. local las = Instance.new("Part", Character)
  792. las.Anchored = true
  793. las.Locked = true
  794. las.CanCollide = false
  795. las.TopSurface = 0
  796. las.BottomSurface = 0
  797. las.BrickColor = BrickColor.new("Really black")
  798. las.Size = Vector3.new(1, 1, 1)
  799. las.CFrame = CFrame.new((Part.Position + pos) / 2, pos) * CFrame.Angles(math.rad(90), 0, 0)
  800. local msh = Instance.new("SpecialMesh", las)
  801. mag = (Part.Position - pos).magnitude
  802. msh.Scale = Vector3.new(0.1, mag, 0.1)
  803. coroutine.resume(coroutine.create(function(Part, Mesh)
  804. for i = 0, 3, 0.1 do
  805. wait()
  806. Part.Transparency = Part.Transparency + 0.03
  807. Mesh.Scale = Mesh.Scale + Vector3.new(0.5, 0.7, 0.5)
  808. end
  809. Part.Parent = nil
  810. end), las, msh)
  811. if pos ~= nil then
  812. local las2 = Instance.new("Part", Character)
  813. las2.Anchored = true
  814. las2.Locked = true
  815. las2.CanCollide = false
  816. las2.TopSurface = 0
  817. las2.BottomSurface = 0
  818. las2.Transparency = 1
  819. las2.BrickColor = BrickColor.new("Really black")
  820. las2.Size = Vector3.new(1, 1, 1)
  821. las2.CFrame = CFrame.new(pos) * CFrame.Angles(math.rad(90), 0, 0)
  822. local msh = Instance.new("SpecialMesh", las2)
  823. msh.MeshType = "Sphere"
  824. mag = (Part.Position - pos).magnitude
  825. msh.Scale = Vector3.new(0.1, 0.1, 0.1)
  826. 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)
  827. Effects.Sphere.Create(BrickColor.new("Really black"), las2.CFrame, 6, 6, 6, 9, 9, 9, 0.04)
  828. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=228343252", las2, 1.2, 0.9)
  829. UltraMagnitudeDamage(las2, 20, 100, 100, math.random(1, 5), "Normal", "http://www.roblox.com/asset/?id=228343252", 1)
  830. coroutine.resume(coroutine.create(function(Part, Mesh)
  831. for i = 0, 3, 0.1 do
  832. wait()
  833. Part.Transparency = Part.Transparency + 1
  834. Mesh.Scale = Mesh.Scale + Vector3.new(0, 0, 0)
  835. end
  836. Part.Parent = nil
  837. end), las2, msh)
  838. end
  839. if hit ~= nil and pos ~= nil then
  840. if hit.Parent.className == "Hat" then
  841. hit:BreakJoints()
  842. hit.Velocity = Vector3.new(math.random(-5, 5), 20, math.random(-5, 5))
  843. end
  844. if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then
  845. hit.Parent.Humanoid:TakeDamage(Dmg)
  846. end
  847. end
  848. end
  849. function attackone()
  850. attack = true
  851. 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),})
  852. 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),})
  853.  
  854. for i = 0, 1, 0.1 do
  855. swait()
  856. PlayAnimationFromTable({
  857. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  858. CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  859. CFrame.new(1.5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  860. CFrame.new(-1.5, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  861. CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  862. CFrame.new(-0.5, -2, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  863. }, .3, false)
  864. end
  865. hahahohoho(ref, 100)
  866. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=156572165", Character, 1, .6)
  867. attack = false
  868. wait(1)
  869. ref:Remove()
  870. end
  871. function spamrein()
  872. attack = true
  873. 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),})
  874. 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),})
  875. for i = 0, 1, 0.1 do
  876. swait()
  877. PlayAnimationFromTable({
  878. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  879. CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  880. CFrame.new(1.5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  881. CFrame.new(-1.5, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  882. CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  883. CFrame.new(-0.5, -2, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  884. }, .3, false)
  885. end
  886. for i = 0, 8 do
  887. swait(3)
  888. 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)))
  889. hahahohoho(ref1, 100)
  890. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=156572165", ref1, 1, .6)
  891. wait(.05)
  892. 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)))
  893. hahahohoho(ref2, 100)
  894. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=156572165", ref2, 1, .6)
  895. wait(.05)
  896. end
  897. attack = false
  898. end
  899. function spamspin()
  900. attack = true
  901. 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),})
  902. 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),})
  903. moter1 = New("Motor",ref3,"mot",{Part0 = LeftArm,Part1 = ref3,})
  904. moter2 = New("Motor",ref4,"mot",{Part0 = RightArm,Part1 = ref4,})
  905. for i = 0, 1, 0.1 do
  906. swait()
  907. PlayAnimationFromTable({
  908. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  909. 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),
  910. 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),
  911. 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),
  912. 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),
  913. 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),
  914. }, .3, false)
  915. end
  916. coroutine.wrap(function()
  917. for i = 0, 18 do
  918. swait(2)
  919. hahahohoho(ref3, 100)
  920. hahahohoho(ref4, 100)
  921. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=156572165", RootPart, 1, .6)
  922. end
  923. end)()
  924. for i = 0, 7, 0.1 do
  925. swait()
  926. PlayAnimationFromTable({
  927. 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),
  928. 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),
  929. 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),
  930. 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),
  931. 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),
  932. 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),
  933. }, .3, false)
  934. 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)
  935. 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)
  936. end
  937. attack = false
  938. end
  939. function criufkinbastard()
  940. Humanoid.WalkSpeed = 0
  941. Humanoid.JumpPower = 0
  942. coroutine.wrap(function()
  943. attack = true
  944. local txt = Instance.new("BillboardGui", Character)
  945. txt.Adornee = game.Players.LocalPlayer.Character.Head
  946. txt.Name = "_status"
  947. txt.Size = UDim2.new(2, 0, 1.2, 0)
  948. txt.StudsOffset = Vector3.new(-9, 8, 0)
  949. local text = Instance.new("TextLabel", txt)
  950. text.Size = UDim2.new(10, 0, 7, 0)
  951. text.FontSize = "Size24"
  952. text.TextScaled = true
  953. text.TextTransparency = 1
  954. text.BackgroundTransparency = 1
  955. text.TextStrokeTransparency = 1
  956. text.Font = "Garamond"
  957. text.TextStrokeColor3 = Color3.new(1,1,1)
  958. text.TextColor3 = Color3.new(0, 0, 0)
  959. text.Text = "I'm scared..."
  960.  
  961. local text2 = Instance.new("TextLabel", txt)
  962. text2.Size = UDim2.new(10, 0, 7, 0)
  963. text2.FontSize = "Size24"
  964. text2.TextScaled = true
  965. text2.TextTransparency = 1
  966. text2.BackgroundTransparency = 1
  967. text2.TextStrokeTransparency = 1
  968. text2.Font = "Garamond"
  969. text2.TextStrokeColor3 = Color3.new(1,1,1)
  970. text2.TextColor3 = Color3.new(0, 0, 0)
  971. text2.Text = "Why is this.. Happening to me?..."
  972.  
  973. local text3 = Instance.new("TextLabel", txt)
  974. text3.Size = UDim2.new(10, 0, 7, 0)
  975. text3.FontSize = "Size24"
  976. text3.TextScaled = true
  977. text3.TextTransparency = 1
  978. text3.BackgroundTransparency = 1
  979. text3.TextStrokeTransparency = 1
  980. text3.Font = "Garamond"
  981. text3.TextStrokeColor3 = Color3.new(1,1,1)
  982. text3.TextColor3 = Color3.new(0, 0, 0)
  983. text3.Text = "Should i be afraid...?"
  984.  
  985. local text4 = Instance.new("TextLabel", txt)
  986. text4.Size = UDim2.new(10, 0, 7, 0)
  987. text4.FontSize = "Size24"
  988. text4.TextScaled = true
  989. text4.TextTransparency = 1
  990. text4.BackgroundTransparency = 1
  991. text4.TextStrokeTransparency = 1
  992. text4.Font = "Garamond"
  993. text4.TextStrokeColor3 = Color3.new(1,1,1)
  994. text4.TextColor3 = Color3.new(0, 0, 0)
  995. text4.Text = "No..."
  996.  
  997. local text5 = Instance.new("TextLabel", txt)
  998. text5.Size = UDim2.new(10, 0, 7, 0)
  999. text5.FontSize = "Size24"
  1000. text5.TextScaled = true
  1001. text5.TextTransparency = 1
  1002. text5.BackgroundTransparency = 1
  1003. text5.TextStrokeTransparency = 1
  1004. text5.Font = "Garamond"
  1005. text5.TextStrokeColor3 = Color3.new(1,0,0)
  1006. text5.TextColor3 = Color3.new(0, 0, 0)
  1007. text5.Text = "It's just who i am.."
  1008.  
  1009.  
  1010. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=191006402", RootPart, 3, 1)
  1011. while wait() and text and text.TextTransparency >= 0 do
  1012. text.TextStrokeTransparency = text.TextStrokeTransparency - .05
  1013. text.TextTransparency = text.TextTransparency - .05
  1014.  
  1015. end
  1016. wait(3)
  1017. while wait() and text and text.TextTransparency <= 1 do
  1018. text.TextStrokeTransparency = text.TextStrokeTransparency + .05
  1019. text.TextTransparency = text.TextTransparency + .05
  1020. text.Position = text.Position - UDim2.new(0,0,0,1)
  1021. text.Rotation = text.Rotation - 1
  1022. text2.TextStrokeTransparency = text2.TextStrokeTransparency - .05
  1023. text2.TextTransparency = text2.TextTransparency - .05
  1024. end
  1025. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=191006402", RootPart, 3, 1)
  1026. wait(3)
  1027. while wait() and text2 and text2.TextTransparency <= 1 do
  1028. text2.TextStrokeTransparency = text2.TextStrokeTransparency + .05
  1029. text2.TextTransparency = text2.TextTransparency + .05
  1030. text2.Position = text2.Position - UDim2.new(0,0,0,1)
  1031. text2.Rotation = text2.Rotation - 1
  1032. text3.TextStrokeTransparency = text3.TextStrokeTransparency - .05
  1033. text3.TextTransparency = text3.TextTransparency - .05
  1034. end
  1035. wait(3)
  1036. while wait() and text3 and text3.TextTransparency <= 1 do
  1037. text3.TextStrokeTransparency = text3.TextStrokeTransparency + .05
  1038. text3.TextTransparency = text3.TextTransparency + .05
  1039. text3.Position = text3.Position - UDim2.new(0,0,0,1)
  1040. text3.Rotation = text3.Rotation - 1
  1041. text4.TextStrokeTransparency = text4.TextStrokeTransparency - .05
  1042. text4.TextTransparency = text4.TextTransparency - .05
  1043. end
  1044. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=191006402", RootPart, 3, 1)
  1045. wait(1)
  1046. while wait() and text4 and text4.TextTransparency <= 1 do
  1047. text4.TextStrokeTransparency = text4.TextStrokeTransparency + .05
  1048. text4.TextTransparency = text4.TextTransparency + .05
  1049. text4.Position = text4.Position - UDim2.new(0,0,0,1)
  1050. text4.Rotation = text4.Rotation - 1
  1051. text5.TextStrokeTransparency = text5.TextStrokeTransparency - .05
  1052. text5.TextTransparency = text5.TextTransparency - .05
  1053. end
  1054. wait(3)
  1055. while wait() and text5 and text5.TextTransparency <= 1 do
  1056. text5.TextStrokeTransparency = text5.TextStrokeTransparency + .05
  1057. text5.TextTransparency = text5.TextTransparency + .05
  1058. 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))
  1059. text5.Rotation = text5.Rotation - 1
  1060. spooky2.Volume = spooky2.Volume - 0.05
  1061. end
  1062. spooky:Play()
  1063. text:Remove()
  1064. text2:Remove()
  1065. text3:Remove()
  1066. text4:Remove()
  1067. text5:Remove()
  1068. end)()
  1069. for i = 0, 51, 0.1 do
  1070. swait()
  1071. PlayAnimationFromTable({
  1072. 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),
  1073. 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),
  1074. 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),
  1075. 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),
  1076. 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),
  1077. 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),
  1078. }, .1, false)
  1079. end
  1080. for i = 0, 5, 0.1 do
  1081. swait()
  1082. PlayAnimationFromTable({
  1083. 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),
  1084. 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),
  1085. 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),
  1086. 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),
  1087. 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),
  1088. 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),
  1089. }, .05, false)
  1090. end
  1091. for i = 0, 5, 0.1 do
  1092. swait()
  1093. PlayAnimationFromTable({
  1094. 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),
  1095. 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),
  1096. 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),
  1097. 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),
  1098. 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),
  1099. 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),
  1100. }, .05, false)
  1101. end
  1102. for i = 0, 2 do
  1103. for i = 0, 1, 0.1 do
  1104. swait()
  1105. PlayAnimationFromTable({
  1106. 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),
  1107. 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),
  1108. 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),
  1109. 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),
  1110. 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),
  1111. 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),
  1112. }, .3, false)
  1113. end
  1114. for i = 0, 1, 0.1 do
  1115. swait()
  1116. PlayAnimationFromTable({
  1117. 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),
  1118. 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),
  1119. 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),
  1120. 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),
  1121. 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),
  1122. 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),
  1123. }, .3, false)
  1124. end
  1125. end
  1126. Humanoid.WalkSpeed = 16
  1127. Humanoid.JumpPower = 50
  1128. attack = false
  1129. end
  1130. criufkinbastard()
  1131. Mouse.Button1Down:connect(function()
  1132. if attack == false and attacktype == 1 then
  1133. attackone()
  1134. end
  1135. end)
  1136.  
  1137. Mouse.KeyDown:connect(function(k)
  1138. k = k:lower()
  1139. if attack == false and k == 'z' then
  1140. spamrein()
  1141. elseif attack == false and k == 'x' then
  1142. spamspin()
  1143. end
  1144. end)
  1145.  
  1146. while true do
  1147. swait()
  1148. for i, v in pairs(Character:GetChildren()) do
  1149. if v:IsA("Part") then
  1150. v.Material = "SmoothPlastic"
  1151. elseif v:IsA("Accessory") then
  1152. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1153. end
  1154. end
  1155. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1156. velocity = RootPart.Velocity.y
  1157. sine = sine + change
  1158. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1159. if RootPart.Velocity.y > 1 and hit == nil then
  1160. Anim = "Jump"
  1161. if attack == false then
  1162. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1163. 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)
  1164. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1165. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1166. RH.C0 = clerp(RH.C0, CFrame.new(.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1167. LH.C0 = clerp(LH.C0, CFrame.new(-.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1168. end
  1169. elseif RootPart.Velocity.y < -1 and hit == nil then
  1170. Anim = "Fall"
  1171. if attack == false then
  1172. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1173. 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)
  1174. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1175. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1176. RH.C0 = clerp(RH.C0, CFrame.new(.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1177. LH.C0 = clerp(LH.C0, CFrame.new(-.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1178. end
  1179. elseif Torsovelocity < 1 and hit ~= nil then
  1180. Anim = "Idle"
  1181. if attack == false then
  1182. change = 1
  1183. PlayAnimationFromTable({
  1184. 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),
  1185. 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)),
  1186. 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),
  1187. 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),
  1188. 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),
  1189. 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),
  1190. }, .3, false)
  1191.  
  1192. end
  1193. elseif Torsovelocity > 2 and hit ~= nil then
  1194. Anim = "Walk"
  1195. if attack == false then
  1196. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1197. 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)
  1198. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1199. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1200. RH.C0 = clerp(RH.C0, CFrame.new(.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1201. LH.C0 = clerp(LH.C0, CFrame.new(-.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1202. end
  1203. end
  1204. if 0 < #Effects then
  1205. for e = 1, #Effects do
  1206. if Effects[e] ~= nil then
  1207. local Thing = Effects[e]
  1208. if Thing ~= nil then
  1209. local Part = Thing[1]
  1210. local Mode = Thing[2]
  1211. local Delay = Thing[3]
  1212. local IncX = Thing[4]
  1213. local IncY = Thing[5]
  1214. local IncZ = Thing[6]
  1215. if Thing[2] == "Shoot" then
  1216. local Look = Thing[1]
  1217. local move = 30
  1218. if Thing[8] == 3 then
  1219. move = 10
  1220. end
  1221. local hit, pos = rayCast(Thing[4], Thing[1], move, m)
  1222. if Thing[10] ~= nil then
  1223. da = pos
  1224. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  1225. cfa = CFrame.new(Thing[4], pos)
  1226. tehCF = cfa:lerp(cf2, 0.2)
  1227. Thing[1] = tehCF.lookVector
  1228. end
  1229. local mag = (Thing[4] - pos).magnitude
  1230. 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)
  1231. if Thing[8] == 2 then
  1232. 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)
  1233. end
  1234. Thing[4] = Thing[4] + Look * move
  1235. Thing[3] = Thing[3] - 1
  1236. if 2 < Thing[5] then
  1237. Thing[5] = Thing[5] - 0.3
  1238. Thing[6] = Thing[6] - 0.3
  1239. end
  1240. if hit ~= nil then
  1241. Thing[3] = 0
  1242. if Thing[8] == 1 or Thing[8] == 3 then
  1243. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1244. else
  1245. if Thing[8] == 2 then
  1246. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1247. if (hit.Parent:findFirstChild("Humanoid")) ~= nil or (hit.Parent.Parent:findFirstChild("Humanoid")) ~= nil then
  1248. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1249. ref.Anchored = true
  1250. ref.CFrame = CFrame.new(pos)
  1251. CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
  1252. game:GetService("Debris"):AddItem(ref, 0.2)
  1253. 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)
  1254. 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)
  1255. MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
  1256. end
  1257. end
  1258. end
  1259. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1260. ref.Anchored = true
  1261. ref.CFrame = CFrame.new(pos)
  1262. Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  1263. game:GetService("Debris"):AddItem(ref, 1)
  1264. end
  1265. if Thing[3] <= 0 then
  1266. table.remove(Effects, e)
  1267. end
  1268. end
  1269. do
  1270. do
  1271. if Thing[2] == "FireWave" then
  1272. if Thing[3] <= Thing[4] then
  1273. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1274. Thing[3] = Thing[3] + 1
  1275. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1276. else
  1277. Part.Parent = nil
  1278. table.remove(Effects, e)
  1279. end
  1280. end
  1281. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1282. if Thing[1].Transparency <= 1 then
  1283. if Thing[2] == "Block1" then
  1284. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1285. Mesh = Thing[7]
  1286. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1287. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1288. else
  1289. if Thing[2] == "Block2" then
  1290. Thing[1].CFrame = Thing[1].CFrame
  1291. Mesh = Thing[7]
  1292. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1293. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1294. else
  1295. if Thing[2] == "Fire" then
  1296. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1297. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1298. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1299. else
  1300. if Thing[2] == "Cylinder" then
  1301. Mesh = Thing[7]
  1302. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1303. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1304. else
  1305. if Thing[2] == "Blood" then
  1306. Mesh = Thing[7]
  1307. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1308. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1309. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1310. else
  1311. if Thing[2] == "Elec" then
  1312. Mesh = Thing[10]
  1313. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1314. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1315. else
  1316. if Thing[2] == "Disappear" then
  1317. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1318. end
  1319. end
  1320. end
  1321. end
  1322. end
  1323. end
  1324. end
  1325. else
  1326. Part.Parent = nil
  1327. table.remove(Effects, e)
  1328. end
  1329. end
  1330. end
  1331. end
  1332. end
  1333. end
  1334. end
  1335. end
  1336. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement