Advertisement
Oscar55555

Untitled

Mar 6th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 47.91 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,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code V2 by Mokiros")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. }}
  25. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26. local function fakeEvent()
  27. return setmetatable({Functions={}},FakeEvent_Metatable)
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. FakeMouse.keyUp = FakeMouse.KeyUp
  33. FakeMouse.keyDown = FakeMouse.KeyDown
  34. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37. end}
  38. --Merged 2 functions into one by checking amount of arguments
  39. CAS.UnbindAction = CAS.BindAction
  40.  
  41. --This function will trigger the events that have been :Connect()'ed
  42. local function TriggerEvent(self,ev,...)
  43. for _,f in pairs(self[ev].Functions) do
  44. f(...)
  45. end
  46. end
  47. FakeMouse.TriggerEvent = TriggerEvent
  48. UIS.TriggerEvent = TriggerEvent
  49.  
  50. --Client communication
  51. local Event = Instance.new("RemoteEvent")
  52. Event.Name = "UserInput_Event"
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=RealPlayer then return end
  55. FakeMouse.Target = io.Target
  56. FakeMouse.Hit = io.Hit
  57. if not io.isMouse then
  58. local b = io.UserInputState == Enum.UserInputState.Begin
  59. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61. end
  62. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = owner:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,RobloxHandled)
  80. if RobloxHandled then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86.  
  87. local h,t
  88. --Give the server mouse data every second frame, but only if the values changed
  89. --If player is not moving their mouse, client won't fire events
  90. local HB = game:GetService("RunService").Heartbeat
  91. while true do
  92. if h~=Mouse.Hit or t~=Mouse.Target then
  93. h,t=Mouse.Hit,Mouse.Target
  94. Event:FireServer({isMouse=true,Target=t,Hit=h})
  95. end
  96. --Wait 2 frames
  97. for i=1,2 do
  98. HB:Wait()
  99. end
  100. end]==],script)
  101.  
  102. ----Sandboxed game object that allows the usage of client-side methods and services
  103. --Real game object
  104. local RealGame = game
  105.  
  106. --Metatable for fake service
  107. local FakeService_Metatable = {
  108. __index = function(self,k)
  109. local s = rawget(self,"_RealService")
  110. if s then
  111. return typeof(s[k])=="function"
  112. and function(_,...)return s[k](s,...)end or s[k]
  113. end
  114. end,
  115. __newindex = function(self,k,v)
  116. local s = rawget(self,"_RealService")
  117. if s then s[k]=v end
  118. end
  119. }
  120. local function FakeService(t,RealService)
  121. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  122. return setmetatable(t,FakeService_Metatable)
  123. end
  124.  
  125. --Fake game object
  126. local FakeGame = {
  127. GetService = function(self,s)
  128. return rawget(self,s) or RealGame:GetService(s)
  129. end,
  130. Players = FakeService({
  131. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  132. },"Players"),
  133. UserInputService = FakeService(UIS,"UserInputService"),
  134. ContextActionService = FakeService(CAS,"ContextActionService"),
  135. RunService = FakeService({
  136. _btrs = {},
  137. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  138. BindToRenderStep = function(self,name,_,fun)
  139. self._btrs[name] = self.Heartbeat:Connect(fun)
  140. end,
  141. UnbindFromRenderStep = function(self,name)
  142. self._btrs[name]:Disconnect()
  143. end,
  144. },"RunService")
  145. }
  146. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  147. FakeGame.service = FakeGame.GetService
  148. FakeService(FakeGame,game)
  149. --Changing owner to fake player object to support owner:GetMouse()
  150. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  151. end
  152. --//====================================================\\--
  153. --|| CREATED BY SHACKLUSTER
  154. --\\====================================================//--
  155.  
  156. wait(0.2)
  157.  
  158. Player = game:GetService("Players").LocalPlayer
  159. PlayerGui = Player.PlayerGui
  160. Cam = workspace.CurrentCamera
  161. Backpack = Player.Backpack
  162. Character = Player.Character
  163. Humanoid = Character.Humanoid
  164. Mouse = Player:GetMouse()
  165. RootPart = Character["HumanoidRootPart"]
  166. Torso = Character["Torso"]
  167. Head = Character["Head"]
  168. RightArm = Character["Right Arm"]
  169. LeftArm = Character["Left Arm"]
  170. RightLeg = Character["Right Leg"]
  171. LeftLeg = Character["Left Leg"]
  172. RootJoint = RootPart["RootJoint"]
  173. Neck = Torso["Neck"]
  174. RightShoulder = Torso["Right Shoulder"]
  175. LeftShoulder = Torso["Left Shoulder"]
  176. RightHip = Torso["Right Hip"]
  177. LeftHip = Torso["Left Hip"]
  178. local sick = Instance.new("Sound",Character)
  179. sick.SoundId = "rbxassetid://425521107"
  180. sick.Looped = true
  181. sick.Pitch = 1
  182. sick.Volume = 1
  183. sick:Play()
  184.  
  185. IT = Instance.new
  186. CF = CFrame.new
  187. VT = Vector3.new
  188. RAD = math.rad
  189. C3 = Color3.new
  190. UD2 = UDim2.new
  191. BRICKC = BrickColor.new
  192. ANGLES = CFrame.Angles
  193. EULER = CFrame.fromEulerAnglesXYZ
  194. COS = math.cos
  195. ACOS = math.acos
  196. SIN = math.sin
  197. ASIN = math.asin
  198. ABS = math.abs
  199. MRANDOM = math.random
  200. FLOOR = math.floor
  201.  
  202. --//=================================\\
  203. --|| USEFUL VALUES
  204. --\\=================================//
  205.  
  206. Animation_Speed = 3
  207. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  208. local Speed = 23
  209. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  210. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  211. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  212. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  213. local DAMAGEMULTIPLIER = 1
  214. local ANIM = "Idle"
  215. local ATTACK = false
  216. local EQUIPPED = false
  217. local HOLD = false
  218. local COMBO = 1
  219. local Rooted = false
  220. local SINE = 0
  221. local KEYHOLD = false
  222. local CHANGE = 2 / Animation_Speed
  223. local WALKINGANIM = false
  224. local VALUE1 = false
  225. local VALUE2 = false
  226. local ROBLOXIDLEANIMATION = IT("Animation")
  227. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  228. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  229. --ROBLOXIDLEANIMATION.Parent = Humanoid
  230. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  231. WEAPONGUI.Name = "Weapon GUI"
  232. local Effects = IT("Folder", Character)
  233. Effects.Name = "Effects"
  234. local ANIMATOR = Humanoid.Animator
  235. local ANIMATE = Character.Animate
  236. local UNANCHOR = true
  237.  
  238. --//=================================\\
  239. --\\=================================//
  240.  
  241.  
  242. --//=================================\\
  243. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  244. --\\=================================//
  245.  
  246. ArtificialHB = Instance.new("BindableEvent", script)
  247. ArtificialHB.Name = "ArtificialHB"
  248.  
  249. script:WaitForChild("ArtificialHB")
  250.  
  251. frame = Frame_Speed
  252. tf = 0
  253. allowframeloss = false
  254. tossremainder = false
  255. lastframe = tick()
  256. script.ArtificialHB:Fire()
  257.  
  258. game:GetService("RunService").Heartbeat:connect(function(s, p)
  259. tf = tf + s
  260. if tf >= frame then
  261. if allowframeloss then
  262. script.ArtificialHB:Fire()
  263. lastframe = tick()
  264. else
  265. for i = 1, math.floor(tf / frame) do
  266. script.ArtificialHB:Fire()
  267. end
  268. lastframe = tick()
  269. end
  270. if tossremainder then
  271. tf = 0
  272. else
  273. tf = tf - frame * math.floor(tf / frame)
  274. end
  275. end
  276. end)
  277.  
  278. --//=================================\\
  279. --\\=================================//
  280.  
  281. --//=================================\\
  282. --|| SOME FUNCTIONS
  283. --\\=================================//
  284.  
  285. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  286. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  287. end
  288.  
  289. function PositiveAngle(NUMBER)
  290. if NUMBER >= 0 then
  291. NUMBER = 0
  292. end
  293. return NUMBER
  294. end
  295.  
  296. function NegativeAngle(NUMBER)
  297. if NUMBER <= 0 then
  298. NUMBER = 0
  299. end
  300. return NUMBER
  301. end
  302.  
  303. function Swait(NUMBER)
  304. if NUMBER == 0 or NUMBER == nil then
  305. ArtificialHB.Event:wait()
  306. else
  307. for i = 1, NUMBER do
  308. ArtificialHB.Event:wait()
  309. end
  310. end
  311. end
  312.  
  313. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  314. local NEWMESH = IT(MESH)
  315. if MESH == "SpecialMesh" then
  316. NEWMESH.MeshType = MESHTYPE
  317. if MESHID ~= "nil" and MESHID ~= "" then
  318. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  319. end
  320. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  321. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  322. end
  323. end
  324. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  325. NEWMESH.Scale = SCALE
  326. NEWMESH.Parent = PARENT
  327. return NEWMESH
  328. end
  329.  
  330. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  331. local NEWPART = IT("Part")
  332. NEWPART.formFactor = FORMFACTOR
  333. NEWPART.Reflectance = REFLECTANCE
  334. NEWPART.Transparency = TRANSPARENCY
  335. NEWPART.CanCollide = false
  336. NEWPART.Locked = true
  337. NEWPART.Anchored = true
  338. if ANCHOR == false then
  339. NEWPART.Anchored = false
  340. end
  341. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  342. NEWPART.Name = NAME
  343. NEWPART.Size = SIZE
  344. NEWPART.Position = Torso.Position
  345. NEWPART.Material = MATERIAL
  346. NEWPART:BreakJoints()
  347. NEWPART.Parent = PARENT
  348. return NEWPART
  349. end
  350.  
  351. local function weldBetween(a, b)
  352. local weldd = Instance.new("ManualWeld")
  353. weldd.Part0 = a
  354. weldd.Part1 = b
  355. weldd.C0 = CFrame.new()
  356. weldd.C1 = b.CFrame:inverse() * a.CFrame
  357. weldd.Parent = a
  358. return weldd
  359. end
  360.  
  361.  
  362. function QuaternionFromCFrame(cf)
  363. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  364. local trace = m00 + m11 + m22
  365. if trace > 0 then
  366. local s = math.sqrt(1 + trace)
  367. local recip = 0.5 / s
  368. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  369. else
  370. local i = 0
  371. if m11 > m00 then
  372. i = 1
  373. end
  374. if m22 > (i == 0 and m00 or m11) then
  375. i = 2
  376. end
  377. if i == 0 then
  378. local s = math.sqrt(m00 - m11 - m22 + 1)
  379. local recip = 0.5 / s
  380. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  381. elseif i == 1 then
  382. local s = math.sqrt(m11 - m22 - m00 + 1)
  383. local recip = 0.5 / s
  384. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  385. elseif i == 2 then
  386. local s = math.sqrt(m22 - m00 - m11 + 1)
  387. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  388. end
  389. end
  390. end
  391.  
  392. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  393. local xs, ys, zs = x + x, y + y, z + z
  394. local wx, wy, wz = w * xs, w * ys, w * zs
  395. local xx = x * xs
  396. local xy = x * ys
  397. local xz = x * zs
  398. local yy = y * ys
  399. local yz = y * zs
  400. local zz = z * zs
  401. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  402. end
  403.  
  404. function QuaternionSlerp(a, b, t)
  405. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  406. local startInterp, finishInterp;
  407. if cosTheta >= 0.0001 then
  408. if (1 - cosTheta) > 0.0001 then
  409. local theta = ACOS(cosTheta)
  410. local invSinTheta = 1 / SIN(theta)
  411. startInterp = SIN((1 - t) * theta) * invSinTheta
  412. finishInterp = SIN(t * theta) * invSinTheta
  413. else
  414. startInterp = 1 - t
  415. finishInterp = t
  416. end
  417. else
  418. if (1 + cosTheta) > 0.0001 then
  419. local theta = ACOS(-cosTheta)
  420. local invSinTheta = 1 / SIN(theta)
  421. startInterp = SIN((t - 1) * theta) * invSinTheta
  422. finishInterp = SIN(t * theta) * invSinTheta
  423. else
  424. startInterp = t - 1
  425. finishInterp = t
  426. end
  427. end
  428. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  429. end
  430.  
  431. function Clerp(a, b, t)
  432. local qa = {QuaternionFromCFrame(a)}
  433. local qb = {QuaternionFromCFrame(b)}
  434. local ax, ay, az = a.x, a.y, a.z
  435. local bx, by, bz = b.x, b.y, b.z
  436. local _t = 1 - t
  437. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  438. end
  439.  
  440. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  441. local frame = IT("Frame")
  442. frame.BackgroundTransparency = TRANSPARENCY
  443. frame.BorderSizePixel = BORDERSIZEPIXEL
  444. frame.Position = POSITION
  445. frame.Size = SIZE
  446. frame.BackgroundColor3 = COLOR
  447. frame.BorderColor3 = BORDERCOLOR
  448. frame.Name = NAME
  449. frame.Parent = PARENT
  450. return frame
  451. end
  452.  
  453. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  454. local label = IT("TextLabel")
  455. label.BackgroundTransparency = 1
  456. label.Size = UD2(1, 0, 1, 0)
  457. label.Position = UD2(0, 0, 0, 0)
  458. label.TextColor3 = TEXTCOLOR
  459. label.TextStrokeTransparency = STROKETRANSPARENCY
  460. label.TextTransparency = TRANSPARENCY
  461. label.FontSize = TEXTFONTSIZE
  462. label.Font = TEXTFONT
  463. label.BorderSizePixel = BORDERSIZEPIXEL
  464. label.TextScaled = false
  465. label.Text = TEXT
  466. label.Name = NAME
  467. label.Parent = PARENT
  468. return label
  469. end
  470.  
  471. function NoOutlines(PART)
  472. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  473. end
  474.  
  475. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  476. local NEWWELD = IT(TYPE)
  477. NEWWELD.Part0 = PART0
  478. NEWWELD.Part1 = PART1
  479. NEWWELD.C0 = C0
  480. NEWWELD.C1 = C1
  481. NEWWELD.Parent = PARENT
  482. return NEWWELD
  483. end
  484.  
  485. local S = IT("Sound")
  486. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  487. local NEWSOUND = nil
  488. coroutine.resume(coroutine.create(function()
  489. NEWSOUND = S:Clone()
  490. NEWSOUND.Parent = PARENT
  491. NEWSOUND.Volume = VOLUME
  492. NEWSOUND.Pitch = PITCH
  493. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  494. NEWSOUND:play()
  495. if DOESLOOP == true then
  496. NEWSOUND.Looped = true
  497. else
  498. repeat Swait() until NEWSOUND.Playing == false
  499. NEWSOUND:remove()
  500. end
  501. end))
  502. return NEWSOUND
  503. end
  504.  
  505. function CFrameFromTopBack(at, top, back)
  506. local right = top:Cross(back)
  507. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  508. end
  509.  
  510. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  511. function WACKYEFFECT(Table)
  512. local TYPE = (Table.EffectType or "Sphere")
  513. local SIZE = (Table.Size or VT(1,1,1))
  514. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  515. local TRANSPARENCY = (Table.Transparency or 0)
  516. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  517. local CFRAME = (Table.CFrame or Torso.CFrame)
  518. local MOVEDIRECTION = (Table.MoveToPos or nil)
  519. local ROTATION1 = (Table.RotationX or 0)
  520. local ROTATION2 = (Table.RotationY or 0)
  521. local ROTATION3 = (Table.RotationZ or 0)
  522. local MATERIAL = (Table.Material or "Neon")
  523. local COLOR = (Table.Color or C3(1,1,1))
  524. local TIME = (Table.Time or 45)
  525. local SOUNDID = (Table.SoundID or nil)
  526. local SOUNDPITCH = (Table.SoundPitch or nil)
  527. local SOUNDVOLUME = (Table.SoundVolume or nil)
  528. coroutine.resume(coroutine.create(function()
  529. local PLAYSSOUND = false
  530. local SOUND = nil
  531. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  532. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  533. PLAYSSOUND = true
  534. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  535. end
  536. EFFECT.Color = COLOR
  537. local MSH = nil
  538. if TYPE == "Sphere" then
  539. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  540. elseif TYPE == "Block" then
  541. MSH = IT("BlockMesh",EFFECT)
  542. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  543. elseif TYPE == "Wave" then
  544. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  545. elseif TYPE == "Ring" then
  546. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  547. elseif TYPE == "Slash" then
  548. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  549. elseif TYPE == "Round Slash" then
  550. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  551. elseif TYPE == "Swirl" then
  552. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  553. elseif TYPE == "Skull" then
  554. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  555. elseif TYPE == "Crystal" then
  556. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  557. end
  558. if MSH ~= nil then
  559. local MOVESPEED = nil
  560. if MOVEDIRECTION ~= nil then
  561. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  562. end
  563. local GROWTH = SIZE - ENDSIZE
  564. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  565. if TYPE == "Block" then
  566. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  567. else
  568. EFFECT.CFrame = CFRAME
  569. end
  570. for LOOP = 1, TIME do
  571. Swait()
  572. MSH.Scale = MSH.Scale - GROWTH/TIME
  573. if TYPE == "Wave" then
  574. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  575. end
  576. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  577. if TYPE == "Block" then
  578. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  579. else
  580. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  581. end
  582. if MOVEDIRECTION ~= nil then
  583. local ORI = EFFECT.Orientation
  584. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  585. EFFECT.Orientation = ORI
  586. end
  587. end
  588. if PLAYSSOUND == false then
  589. EFFECT:remove()
  590. else
  591. repeat Swait() until SOUND.Playing == false
  592. EFFECT:remove()
  593. end
  594. else
  595. if PLAYSSOUND == false then
  596. EFFECT:remove()
  597. else
  598. repeat Swait() until SOUND.Playing == false
  599. EFFECT:remove()
  600. end
  601. end
  602. end))
  603. end
  604.  
  605. function MakeForm(PART,TYPE)
  606. if TYPE == "Cyl" then
  607. local MSH = IT("CylinderMesh",PART)
  608. elseif TYPE == "Ball" then
  609. local MSH = IT("SpecialMesh",PART)
  610. MSH.MeshType = "Sphere"
  611. elseif TYPE == "Wedge" then
  612. local MSH = IT("SpecialMesh",PART)
  613. MSH.MeshType = "Wedge"
  614. end
  615. end
  616.  
  617. Debris = game:GetService("Debris")
  618.  
  619. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  620. local DIRECTION = CF(StartPos,EndPos).lookVector
  621. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  622. end
  623.  
  624. function turnto(position)
  625. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  626. end
  627.  
  628. --//=================================\\
  629. --|| WEAPON CREATION
  630. --\\=================================//
  631.  
  632. local SKILLTEXTCOLOR = BRICKC"Mulberry".Color
  633. local SKILLFONT = "Bodoni"
  634. local SKILLTEXTSIZE = 7
  635.  
  636. local naeeym2 = Instance.new("BillboardGui",Character)
  637. naeeym2.AlwaysOnTop = true
  638. naeeym2.Size = UDim2.new(5,35,2,15)
  639. naeeym2.StudsOffset = Vector3.new(0,1.2,4)
  640. naeeym2.Adornee = Character.Head
  641. naeeym2.Name = "Name"
  642. naeeym2.PlayerToHideFrom = Player
  643. local tecks2 = Instance.new("TextLabel",naeeym2)
  644. tecks2.BackgroundTransparency = 1
  645. tecks2.TextScaled = true
  646. tecks2.BorderSizePixel = 0
  647. tecks2.Text = "Darkseed"
  648. tecks2.Font = SKILLFONT
  649. tecks2.TextSize = 30
  650. tecks2.TextStrokeTransparency = 0
  651. tecks2.TextColor3 = C3(0,0,0)
  652. tecks2.TextStrokeColor3 = BRICKC"Mulberry".Color
  653. tecks2.Size = UDim2.new(1,0,0.5,0)
  654. tecks2.Parent = naeeym2
  655.  
  656. Humanoid.Died:connect(function()
  657. ATTACK = true
  658. KillChildren(Character)
  659. end)
  660.  
  661. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  662. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  663. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  664.  
  665. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Darkheart Spire", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1")
  666. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Darkheart Toss", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
  667. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Darkseed Barrage", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
  668.  
  669. --//=================================\\
  670. --|| DAMAGE FUNCTIONS
  671. --\\=================================//
  672.  
  673. function StatLabel(CFRAME, TEXT, COLOR)
  674. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  675. STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  676. local BODYGYRO = IT("BodyGyro", STATPART)
  677. game:GetService("Debris"):AddItem(STATPART ,5)
  678. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  679. BILLBOARDGUI.Adornee = STATPART
  680. BILLBOARDGUI.Size = UD2(1.5, 0, 1.5 ,0)
  681. BILLBOARDGUI.StudsOffset = VT(-1, 2, 0)
  682. BILLBOARDGUI.AlwaysOnTop = false
  683. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  684. TEXTLABEL.BackgroundTransparency = 1
  685. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  686. TEXTLABEL.Text = TEXT
  687. TEXTLABEL.Font = SKILLFONT
  688. TEXTLABEL.FontSize="Size42"
  689. TEXTLABEL.TextColor3 = COLOR
  690. TEXTLABEL.TextStrokeTransparency = 0
  691. TEXTLABEL.TextScaled = true
  692. TEXTLABEL.TextWrapped = true
  693. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  694. for i = 1, 50 do
  695. Swait()
  696. STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  697. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
  698. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  699. end
  700. THEPART.Parent = nil
  701. end),STATPART, TEXTLABEL)
  702. end
  703.  
  704. --//=================================\\
  705. --|| DAMAGING
  706. --\\=================================//
  707.  
  708. function ApplyDamage(Humanoid,Damage,CritRate,CritMultiplier)
  709. local LOWDMG = false
  710. local defence = Instance.new("BoolValue",Humanoid.Parent)
  711. defence.Name = ("HitBy"..Player.Name)
  712. game:GetService("Debris"):AddItem(defence, 0.001)
  713. Damage = Damage * DAMAGEMULTIPLIER
  714. if Damage < 1 then
  715. LOWDMG = true
  716. end
  717. if Humanoid.Health ~= 0 then
  718. local CritChance = MRANDOM(1,100)
  719. if CritChance < CritRate + 1 then
  720. Damage = Damage*CritMultiplier
  721. end
  722. if Damage > Humanoid.Health then
  723. Damage = math.ceil(Humanoid.Health)
  724. if Damage == 0 then
  725. Damage = 0.1
  726. end
  727. end
  728. Humanoid.Health = Humanoid.Health - Damage
  729. if Humanoid.Parent:FindFirstChild("Head") then
  730. if LOWDMG == false then
  731. if CritChance < CritRate + 1 then
  732. StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "CRIT//"..Damage, C3(1, 0, 0))
  733. else
  734. StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), Damage, C3(0, 0, 0))
  735. end
  736. elseif LOWDMG == true then
  737. if CritChance < CritRate + 1 then
  738. StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "CRIT//".."."..Damage*10, C3(1, 0, 0))
  739. else
  740. StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "."..Damage*10, C3(0, 0, 0))
  741. end
  742. end
  743. end
  744. if Humanoid.Health == 0 then
  745. KillChildren(Humanoid.Parent)
  746. end
  747. end
  748. end
  749.  
  750. function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier,CanBeDodgedByJumping)
  751. local dmg = math.random(min,max)
  752. for i,v in ipairs(workspace:GetChildren()) do
  753. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  754. local body = v:GetChildren()
  755. for part = 1, #body do
  756. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  757. if(body[part].Position - position).Magnitude < radius then
  758. if v.ClassName == "Model" then
  759. if v:FindFirstChildOfClass("Humanoid") then
  760. if CanBeDodgedByJumping == true then
  761. if body[part].Position.Y < position.Y+5 then
  762. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  763. end
  764. else
  765. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  766. end
  767. if maxstrength ~= 0 then
  768. local bv = Instance.new("BodyVelocity")
  769. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  770. bv.velocity = CF(position,body[part].Position).lookVector*maxstrength
  771. bv.Parent = body[part]
  772. Debris:AddItem(bv,0.2)
  773. end
  774. end
  775. end
  776. end
  777. end
  778. end
  779. end
  780. if v:FindFirstChild("HitBy"..Player.Name) then
  781. v:FindFirstChild("HitBy"..Player.Name):remove()
  782. end
  783. end
  784. end
  785.  
  786. function KillChildren(v)
  787. local PARTS = {}
  788. coroutine.resume(coroutine.create(function()
  789. v:BreakJoints()
  790. for _, c in pairs(v:GetChildren()) do
  791. if c.ClassName == "Part" or c.ClassName == "MesPart" then
  792. if c.Transparency < 1 then
  793. if c:FindFirstChildOfClass("Decal") then
  794. c:FindFirstChildOfClass("Decal"):remove()
  795. end
  796. c.Parent = Effects
  797. c.Material = "Neon"
  798. c.Color = C3(0,0,0)
  799. c.Transparency = 0
  800. c.CanCollide = true
  801. c.Anchored = true
  802. if c:FindFirstChildOfClass("SpecialMesh") then
  803. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  804. end
  805. if c:FindFirstChildOfClass("Part") then
  806. c:FindFirstChildOfClass("Part").Anchored = true
  807. c:FindFirstChildOfClass("Part").Color = C3(0,0,0)
  808. c:FindFirstChildOfClass("Part").Material = "Neon"
  809. c:FindFirstChildOfClass("Part").Parent = Effects
  810. table.insert(PARTS,c:FindFirstChildOfClass("Part"))
  811. end
  812. table.insert(PARTS,c)
  813. end
  814. end
  815. end
  816. wait(0.25)
  817. for e = 1, #PARTS do
  818. if PARTS[e] ~= nil then
  819. local c = PARTS[e]
  820. local bv = IT("BodyVelocity")
  821. bv.maxForce = VT(1,1,1)*1e5
  822. bv.velocity = VT(math.random()-.5, 0, math.random()-.5).unit*2*40
  823. bv.Parent = c
  824. c.Anchored = false
  825. Debris:AddItem(c,5)
  826. end
  827. end
  828. end))
  829. end
  830.  
  831. --//=================================\\
  832. --|| ATTACK FUNCTIONS AND STUFF
  833. --\\=================================//
  834.  
  835. function DarkheartSpire()
  836. local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 7, Character)
  837. if HITFLOOR ~= nil then
  838. ATTACK = true
  839. Rooted = false
  840. local GYRO = IT("BodyGyro",RootPart)
  841. GYRO.D = 100
  842. GYRO.P = 2000
  843. GYRO.MaxTorque = VT(0,40000000,0)
  844. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  845. for i=0, 1, 0.1 / Animation_Speed do
  846. Swait()
  847. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  848. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  849. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  850. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-45), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(32 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  851. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  852. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  853. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  854. end
  855. local AIMPOS = Mouse.Hit.p
  856. coroutine.resume(coroutine.create(function()
  857. local FRAME = RootPart.CFrame*CF(0,-8,-2)
  858. local SPIRE = CreatePart(3, Effects, "Neon", 0,0, "Really black", "SPIRE", VT(2,45,2))
  859. CreateSound("93724183", SPIRE, 5, 1, false)
  860. MakeForm(SPIRE,"Ball")
  861. SPIRE.Color = C3(0,0,0)
  862. for i = 1, 145 do
  863. Swait()
  864. local HITFLOOR,HITPOS,NORMAL = Raycast(SPIRE.Position+VT(0,5,0), (CF(SPIRE.Position, SPIRE.Position + VT(0, -1, 0))).lookVector, 100, Character)
  865. if HITFLOOR then
  866. SPIRE.CFrame = FRAME*CF(0,0,-i)
  867. local POS = HITPOS.Y
  868. if POS then
  869. SPIRE.CFrame = CF(VT(SPIRE.Position.X,POS-3,SPIRE.Position.Z))
  870. WACKYEFFECT({EffectType = "Block", Size = VT(3,3,3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = CF(SPIRE.Position+VT(0,3,0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = HITFLOOR.Material, Color = HITFLOOR.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  871. end
  872. AoEDamage(SPIRE.Position,7,2,3,6,2,4,false)
  873. else
  874. --break
  875. end
  876. end
  877. for i = 1, 25 do
  878. Swait()
  879. SPIRE.CFrame = SPIRE.CFrame*CF(0,-0.75,0)
  880. end
  881. SPIRE:remove()
  882. end))
  883. for i=0, 0.15, 0.1 / Animation_Speed do
  884. Swait()
  885. GYRO.cframe = CF(RootPart.Position,AIMPOS)
  886. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  887. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  888. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  889. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  890. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  891. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  892. end
  893. for i=0, 1, 0.1 / Animation_Speed do
  894. Swait()
  895. GYRO.cframe = CF(RootPart.Position,AIMPOS)
  896. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  897. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  898. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(145), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-15 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  899. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  900. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  901. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  902. end
  903. GYRO:remove()
  904. ATTACK = false
  905. Rooted = false
  906. end
  907. end
  908.  
  909. function DarkheartToss()
  910. ATTACK = true
  911. Rooted = false
  912. local GYRO = IT("BodyGyro",RootPart)
  913. GYRO.D = 100
  914. GYRO.P = 2000
  915. GYRO.MaxTorque = VT(0,40000000,0)
  916. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  917. local Darkheart = CreatePart(3, Effects, "SmoothPlastic", 0, 0, "Really black", "Darkheart", VT(1,1,1),false)
  918. local SwordWeld = CreateWeldOrSnapOrMotor("Weld", Darkheart, RightArm, Darkheart, CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, -1.8))
  919. local MSH = IT("SpecialMesh",Darkheart)
  920. MSH.MeshId = "rbxasset://fonts/sword.mesh"
  921. Darkheart.Color = C3(0,0,0)
  922. repeat
  923. Swait()
  924. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  925. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  926. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  927. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 1 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(160), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  928. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-25 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  929. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  930. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  931. until HOLD == true
  932. Rooted = true
  933. CreateSound("1112042117", RightArm, 5, 1.2, false)
  934. SwordWeld:remove()
  935. coroutine.resume(coroutine.create(function()
  936. local DISTANCE = (RootPart.Position - Mouse.Hit.p).Magnitude
  937. local NoHit,HitPos,NORMAL = Raycast(RootPart.Position, RootPart.CFrame.lookVector, DISTANCE, workspace)
  938. local ThrowHit,HitPos2,NORMAL2 = Raycast(RootPart.Position, CF(RootPart.Position,VT(HitPos.X,Mouse.Hit.p.Y,HitPos.Z)).lookVector, 1000, Character)
  939. if ThrowHit then
  940. Darkheart.CFrame = CF(HitPos2,RootPart.Position)*ANGLES(RAD(0),RAD(0),RAD(180))
  941. weldBetween(ThrowHit,Darkheart)
  942. if ThrowHit.Parent:FindFirstChildOfClass("Humanoid") then
  943. CreateSound("1306077413", ThrowHit, 5, 1, false)
  944. local HUM = ThrowHit.Parent:FindFirstChildOfClass("Humanoid")
  945. if ThrowHit.Name ~= "Head" and ThrowHit.Name ~= "Torso" and ThrowHit.Name ~= "UpperTorso" then
  946. for i = 1, 15 do
  947. ApplyDamage(HUM,1,2,2)
  948. wait()
  949. end
  950. elseif ThrowHit.Name == "Head" then
  951. for i = 1, 15 do
  952. ApplyDamage(HUM,3,2,2)
  953. wait()
  954. end
  955. elseif ThrowHit.Name == "Torso" or ThrowHit.Name == "UpperTorso" then
  956. for i = 1, 15 do
  957. ApplyDamage(HUM,2,2,2)
  958. wait()
  959. end
  960. end
  961. wait(2)
  962. for i = 1, 10 do
  963. Swait()
  964. Darkheart.Transparency = i/10
  965. end
  966. Darkheart:remove()
  967. else
  968. wait(2)
  969. for i = 1, 10 do
  970. Swait()
  971. Darkheart.Transparency = i/10
  972. end
  973. Darkheart:remove()
  974. end
  975. else
  976. Darkheart:remove()
  977. end
  978. end))
  979. for i=0, 1, 0.1 / Animation_Speed do
  980. Swait()
  981. GYRO.cframe = CF(RootPart.Position,Darkheart.Position)
  982. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(55 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  983. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-55 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  984. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.25 * COS(SINE / 12), -0.4) * ANGLES(RAD(90), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(55 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  985. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  986. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  987. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  988. end
  989. GYRO:remove()
  990. ATTACK = false
  991. Rooted = false
  992. end
  993.  
  994. function DarkseedBarrage()
  995. ATTACK = true
  996. Rooted = true
  997. local GYRO = IT("BodyGyro",RootPart)
  998. GYRO.D = 100
  999. GYRO.P = 2000
  1000. GYRO.MaxTorque = VT(0,4000000,0)
  1001. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1002. for i=1, 35 do
  1003. Swait()
  1004. WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-2,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6})
  1005. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1006. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed)
  1007. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
  1008. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(90), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1009. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1010. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1011. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1012. end
  1013. local BEAM = CreatePart(3, Effects, "Neon", 0, 1, "Mulberry", "Lazer", VT(0,0,0))
  1014. local LOOP = CreateSound("289315275", RightArm, 5, 1.2, false)
  1015. local MSH = IT("CylinderMesh",BEAM)
  1016. local TOCH = BEAM.Touched:Connect(function(hit)
  1017. if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then
  1018. if hit.Parent:FindFirstChildOfClass("Humanoid") then
  1019. ApplyDamage(hit.Parent:FindFirstChildOfClass("Humanoid"),0.2,2,2)
  1020. end
  1021. end
  1022. end)
  1023. local I = 0
  1024. repeat
  1025. Swait()
  1026. I = I + 1
  1027. if I <= 10 then
  1028. BEAM.Transparency = BEAM.Transparency - 0.1
  1029. end
  1030. local STARTPOS = RightArm.CFrame*CF(0,-2,0).p
  1031. local ENDHIT,ENDPOS = CastProperRay(STARTPOS,Mouse.Hit.p,650,Character)
  1032. local DISTANCE = (STARTPOS - ENDPOS).Magnitude
  1033. BEAM.CFrame = CF(STARTPOS,ENDPOS)*CF(0,0,-DISTANCE/2)*ANGLES(RAD(90),RAD(0),RAD(0))
  1034. BEAM.Size = VT(1,DISTANCE,1)
  1035. WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = VT(3,3,3), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-2,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6})
  1036. WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = VT(3,3,3), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.25, CFrame = CF(ENDPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6})
  1037. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1038. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed)
  1039. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
  1040. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(90), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1041. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1042. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1043. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1044. if ENDHIT ~= nil then
  1045. if ENDHIT.Anchored == false and ENDHIT.Parent ~= Effects then
  1046. if ENDHIT.Parent:FindFirstChildOfClass("Humanoid") then
  1047. ApplyDamage(ENDHIT.Parent:FindFirstChildOfClass("Humanoid"),0.1,2,2)
  1048. end
  1049. end
  1050. end
  1051. until LOOP.Playing == false
  1052. BEAM:remove()
  1053. GYRO:remove()
  1054. ATTACK = false
  1055. Rooted = false
  1056. end
  1057.  
  1058. --//=================================\\
  1059. --|| ASSIGN THINGS TO KEYS
  1060. --\\=================================//
  1061.  
  1062. function MouseDown(Mouse)
  1063. HOLD = true
  1064. if ATTACK == false then
  1065. end
  1066. end
  1067.  
  1068. function MouseUp(Mouse)
  1069. HOLD = false
  1070. end
  1071.  
  1072. function KeyDown(Key)
  1073. KEYHOLD = true
  1074. if Key == "z" and ATTACK == false then
  1075. DarkheartSpire()
  1076. end
  1077.  
  1078. if Key == "b" and ATTACK == false then
  1079. DarkheartToss()
  1080. end
  1081.  
  1082. if Key == "c" and ATTACK == false then
  1083. DarkseedBarrage()
  1084. end
  1085. end
  1086.  
  1087. function KeyUp(Key)
  1088. KEYHOLD = false
  1089. end
  1090.  
  1091. Mouse.Button1Down:connect(function(NEWKEY)
  1092. MouseDown(NEWKEY)
  1093. end)
  1094. Mouse.Button1Up:connect(function(NEWKEY)
  1095. MouseUp(NEWKEY)
  1096. end)
  1097. Mouse.KeyDown:connect(function(NEWKEY)
  1098. KeyDown(NEWKEY)
  1099. end)
  1100. Mouse.KeyUp:connect(function(NEWKEY)
  1101. KeyUp(NEWKEY)
  1102. end)
  1103.  
  1104. --//=================================\\
  1105. --\\=================================//
  1106.  
  1107.  
  1108. function unanchor()
  1109. if UNANCHOR == true then
  1110. g = Character:GetChildren()
  1111. for i = 1, #g do
  1112. if g[i].ClassName == "Part" then
  1113. g[i].Anchored = false
  1114. end
  1115. end
  1116. end
  1117. end
  1118.  
  1119.  
  1120. --//=================================\\
  1121. --|| WRAP THE WHOLE SCRIPT UP
  1122. --\\=================================//
  1123.  
  1124. Humanoid.Changed:connect(function(Jump)
  1125. if Jump == "Jump" and (Disable_Jump == true) then
  1126. Humanoid.Jump = false
  1127. end
  1128. end)
  1129.  
  1130. local top = Instance.new("Shirt")
  1131. top.ShirtTemplate = "rbxassetid://131708604"
  1132. top.Parent = Character
  1133. top.Name = "DarkseedClothes"
  1134. local bottom = Instance.new("Pants")
  1135. bottom.PantsTemplate = "rbxassetid://131708657"
  1136. bottom.Parent = Character
  1137. bottom.Name = "DarkseedClothes"
  1138.  
  1139. Humanoid.HipHeight = 1
  1140.  
  1141. while true do
  1142. Swait()
  1143. Character.Parent = workspace
  1144. Humanoid.Parent = Character
  1145. script.Parent = WEAPONGUI
  1146. ANIMATE.Parent = nil
  1147. if Humanoid then
  1148. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1149. IDLEANIMATION:Play()
  1150. end
  1151. SINE = SINE + CHANGE
  1152. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1153. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1154. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 6, Character)
  1155. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1156. if ATTACK == false then
  1157. if TORSOVELOCITY < 1 then
  1158. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 0.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1159. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1160. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1161. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1162. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1163. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1164. elseif TORSOVELOCITY > 1 then
  1165. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(Speed/3 + 0.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1166. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-Speed/3 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1167. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(15 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1168. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1169. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1170. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1171. end
  1172. end
  1173. unanchor()
  1174. Humanoid.MaxHealth = "inf"
  1175. Humanoid.Health = "inf"
  1176. if Rooted == false then
  1177. Disable_Jump = false
  1178. Humanoid.WalkSpeed = Speed
  1179. elseif Rooted == true then
  1180. Disable_Jump = true
  1181. Humanoid.WalkSpeed = 0
  1182. end
  1183. Humanoid.DisplayDistanceType = "None"
  1184. for _, c in pairs(Character:GetChildren()) do
  1185. if c.ClassName == "Part" and c.Name ~= "Eye" then
  1186. c.Material = "Neon"
  1187. if c:FindFirstChildOfClass("ParticleEmitter") then
  1188. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1189. end
  1190. c.Color = C3(0,0,0)
  1191. if c == Head then
  1192. if c:FindFirstChild("Pumpkin") == nil then
  1193. local M = CreateMesh("SpecialMesh", c, "FileMesh", "1158007", "5162958", VT(1,1,1)*0.45, VT(0,0.25,0))
  1194. M.Name = "Pumpkin"
  1195. local FIRE = CreatePart(3, Head, "Neon", 0, 0, "Mulberry", "Fire", VT(1,1,1)*1.7,false)
  1196. MakeForm(FIRE,"Ball")
  1197. FIRE.CFrame = Head.CFrame*CF(0,0.1,0)
  1198. weldBetween(Head,FIRE)
  1199. end
  1200. if c:FindFirstChild("face") then
  1201. c.face:remove()
  1202. end
  1203. end
  1204. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  1205. c:remove()
  1206. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "DarkseedClothes" then
  1207. c:remove()
  1208. end
  1209. end
  1210. sick.Parent = Character
  1211. sick.Playing = true
  1212. AoEDamage(Torso.Position,5,1,1,0,0,2,false)
  1213. if Head:FindFirstChildOfClass("Sound") then
  1214. Head:FindFirstChildOfClass("Sound"):remove()
  1215. end
  1216. end
  1217.  
  1218. --//=================================\\
  1219. --\\=================================//
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225. --//====================================================\\--
  1226. --|| END OF SCRIPT
  1227. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement