Advertisement
cubanmixed2

test3

Oct 30th, 2018
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 152.33 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use r/ and not rl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126.  
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144.  
  145. local Player = game:GetService("Players").LocalPlayer
  146. repeat
  147. wait()
  148. until Player.Character
  149. local Character = Player.Character
  150. TrailSettings = {
  151. Lifetime = 1,
  152. Texture = "http://www.roblox.com/asset/?id=1097260739",
  153. Color1 = ColorSequence.new(BrickColor.new("Really red").Color),
  154. Color2 = ColorSequence.new(BrickColor.new("Really red").Color),
  155. AllBody = true,
  156. UpperBodyOnly = false,
  157. LowerBodyOnly = false,
  158. Accessories = false,
  159. Extras = true,
  160. R15 = false,
  161. R15Parts = {"UpperTorso", "LowerTorso"}
  162. }
  163. local Trail
  164. function UpperBody()
  165. if TrailSettings.R15 == false then
  166. A0 = Instance.new("Attachment", Character.Torso)
  167. A1 = Instance.new("Attachment", Character.Head)
  168. A2 = Instance.new("Attachment", Character["Right Arm"])
  169. A3 = Instance.new("Attachment", Character["Left Arm"])
  170. Trail = Instance.new("Trail", Character)
  171. Trail.Attachment0 = A0
  172. Trail.Attachment1 = A1
  173. Trail.Texture = TrailSettings.Texture
  174. Trail.Color = TrailSettings.Color1
  175. Trail.Lifetime = TrailSettings.Lifetime
  176. local Trail2 = Trail:Clone()
  177. Trail2.Parent = Character
  178. Trail2.Attachment1 = A2
  179. local Trail3 = Trail:Clone()
  180. Trail3.Parent = Character
  181. Trail3.Attachment1 = A3
  182. local Trail6 = Trail:Clone()
  183. Trail6.Parent = Character
  184. Trail6.Attachment0 = A1
  185. Trail6.Attachment1 = A2
  186. local Trail7 = Trail:Clone()
  187. Trail7.Parent = Character
  188. Trail7.Attachment0 = A1
  189. Trail7.Attachment1 = A3
  190. else
  191. A0 = Instance.new("Attachment", Character[TrailSettings.R15Parts[1]])
  192. A0R = Instance.new("Attachment", Character[TrailSettings.R15Parts[2]])
  193. A1 = Instance.new("Attachment", Character.Head)
  194. A2 = Instance.new("Attachment", Character.RightUpperArm)
  195. A2R = Instance.new("Attachment", Character.RightLowerArm)
  196. A3 = Instance.new("Attachment", Character.LeftUpperArm)
  197. A3R = Instance.new("Attachment", Character.LeftLowerArm)
  198. Trail = Instance.new("Trail", Character)
  199. Trail.Attachment0 = A0
  200. Trail.Attachment1 = A1
  201. Trail.Texture = TrailSettings.Texture
  202. Trail.Color = TrailSettings.Color1
  203. Trail.Lifetime = TrailSettings.Lifetime
  204. local Trail2 = Trail:Clone()
  205. Trail2.Parent = Character
  206. Trail2.Attachment1 = A2
  207. local Trail3 = Trail:Clone()
  208. Trail3.Parent = Character
  209. Trail3.Attachment1 = A3
  210. local Trail6 = Trail:Clone()
  211. Trail6.Parent = Character
  212. Trail6.Attachment0 = A1
  213. Trail6.Attachment1 = A2
  214. local Trail7 = Trail:Clone()
  215. Trail7.Parent = Character
  216. Trail7.Attachment0 = A1
  217. Trail7.Attachment1 = A3
  218. local Trail1R = Trail:Clone()
  219. Trail1R.Parent = Character
  220. Trail1R.Attachment1 = A2R
  221. local Trail2R = Trail:Clone()
  222. Trail2R.Parent = Character
  223. Trail2R.Attachment1 = A3R
  224. local Trail6R = Trail:Clone()
  225. Trail6.Parent = Character
  226. Trail6.Attachment0 = A1
  227. Trail6.Attachment1 = A2R
  228. local Trail7R = Trail:Clone()
  229. Trail7.Parent = Character
  230. Trail7.Attachment0 = A1
  231. Trail7.Attachment1 = A3R
  232. end
  233. end
  234. function LowerBody()
  235. if TrailSettings.R15 == false then
  236. A4 = Instance.new("Attachment", Character["Right Leg"])
  237. A5 = Instance.new("Attachment", Character["Left Leg"])
  238. local Trail4 = Trail:Clone()
  239. Trail4.Parent = Character
  240. Trail4.Attachment1 = A4
  241. local Trail5 = Trail:Clone()
  242. Trail5.Parent = Character
  243. Trail5.Attachment1 = A5
  244. local Trail8 = Trail:Clone()
  245. Trail8.Parent = Character
  246. Trail8.Attachment0 = A2
  247. Trail8.Attachment1 = A4
  248. Trail8.Color = TrailSettings.Color2
  249. local Trail9 = Trail:Clone()
  250. Trail9.Parent = Character
  251. Trail9.Attachment0 = A3
  252. Trail9.Attachment1 = A5
  253. Trail9.Color = TrailSettings.Color2
  254. local FT = Trail:Clone()
  255. FT.Parent = Character
  256. FT.Attachment0 = A4
  257. FT.Attachment1 = A5
  258. FT.Color = TrailSettings.Color2
  259. else
  260. A4 = Instance.new("Attachment", Character.RightLowerLeg)
  261. A4R = Instance.new("Attachment", Character.RightUpperLeg)
  262. A5 = Instance.new("Attachment", Character.LeftLowerLeg)
  263. A5R = Instance.new("Attachment", Character.LeftUpperLeg)
  264. local Trail4 = Trail:Clone()
  265. Trail4.Parent = Character
  266. Trail4.Attachment1 = A4
  267. local Trail5 = Trail:Clone()
  268. Trail5.Parent = Character
  269. Trail5.Attachment1 = A5
  270. local Trail8 = Trail:Clone()
  271. Trail8.Parent = Character
  272. Trail8.Attachment0 = A2
  273. Trail8.Attachment1 = A4
  274. Trail8.Color = TrailSettings.Color2
  275. local Trail9 = Trail:Clone()
  276. Trail9.Parent = Character
  277. Trail9.Attachment0 = A3
  278. Trail9.Attachment1 = A5
  279. Trail9.Color = TrailSettings.Color2
  280. local FT = Trail:Clone()
  281. FT.Parent = Character
  282. FT.Attachment0 = A4
  283. FT.Attachment1 = A5
  284. FT.Color = TrailSettings.Color2
  285. local Trail3R = Trail:Clone()
  286. Trail3R.Parent = Character
  287. Trail3R.Attachment1 = A4R
  288. local Trail4R = Trail:Clone()
  289. Trail4R.Parent = Character
  290. Trail4R.Attachment1 = A5R
  291. local Trail8 = Trail:Clone()
  292. Trail8.Parent = Character
  293. Trail8.Attachment0 = A2R
  294. Trail8.Attachment1 = A4R
  295. Trail8.Color = TrailSettings.Color2
  296. local Trail9 = Trail:Clone()
  297. Trail9.Parent = Character
  298. Trail9.Attachment0 = A3R
  299. Trail9.Attachment1 = A5R
  300. Trail9.Color = TrailSettings.Color2
  301. local FT2R = Trail:Clone()
  302. FT2R.Parent = Character
  303. FT2R.Attachment0 = A4R
  304. FT2R.Attachment1 = A5R
  305. FT2R.Color = TrailSettings.Color2
  306. end
  307. end
  308. function AllBody()
  309. UpperBody()
  310. LowerBody()
  311. end
  312. if TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
  313. TrailSettings.UpperBodyOnly = false
  314. TrailSettings.LowerBodyOnly = false
  315. elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == false and TrailSettings.LowerBodyOnly == true then
  316. TrailSettings.UpperBodyOnly = false
  317. TrailSettings.LowerBodyOnly = false
  318. elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == false then
  319. TrailSettings.UpperBodyOnly = false
  320. TrailSettings.LowerBodyOnly = false
  321. elseif TrailSettings.AllBody == false and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
  322. TrailSettings.AllBody = true
  323. TrailSettings.UpperBodyOnly = false
  324. TrailSettings.LowerBodyOnly = false
  325. end
  326. if TrailSettings.UpperBodyOnly == true then
  327. UpperBody()
  328. print("Called Upper Body Trail")
  329. elseif TrailSettings.LowerBodyOnly == true then
  330. LowerBody()
  331. print("Called Lower Body Trail")
  332. elseif TrailSettings.AllBody == true then
  333. AllBody()
  334. print("Called Full Body Trail")
  335. end
  336. if TrailSettings.Accessories == true then
  337. for Index, Item in pairs(Character:GetChildren()) do
  338. if Item:IsA("Accessory") then
  339. local AA = Instance.new("Attachment", Item.Handle)
  340. local ATrail = Trail:Clone()
  341. ATrail.Parent = Character
  342. ATrail.Attachment1 = AA
  343. end
  344. end
  345. end
  346. if TrailSettings.Extras == true then
  347. spawn(function()
  348. repeat
  349. wait()
  350. until Trail
  351. local AB = Instance.new("Attachment", a)
  352. local ABT = Trail:Clone()
  353. ABT.Parent = Character
  354. ABT.Attachment0 = A4
  355. ABT.Attachment1 = AB
  356. ABT.Color = TrailSettings.Color2
  357. local ABT2 = Trail:Clone()
  358. ABT2.Parent = Character
  359. ABT2.Attachment0 = A5
  360. ABT2.Attachment1 = AB
  361. ABT2.Color = TrailSettings.Color2
  362. end)
  363. end
  364. wait(0.1)
  365.  
  366. --//====================================================\\--
  367. --|| Edited by wanTH092
  368. --\\====================================================//--
  369.  
  370.  
  371. local Player = game.Players.localPlayer
  372. local Character = Player.Character
  373. local Humanoid = Character.Humanoid
  374. local Mouse = Player:GetMouse()
  375. local LeftArm = Character["Left Arm"]
  376. local RightArm = Character["Right Arm"]
  377. local LeftLeg = Character["Left Leg"]
  378. local RightLeg = Character["Right Leg"]
  379. local Head = Character.Head
  380. local Torso = Character.Torso
  381. local Camera = game.Workspace.CurrentCamera
  382. local RootPart = Character.HumanoidRootPart
  383. local RootJoint = RootPart.RootJoint
  384. local attack = false
  385. local Anim = 'Idle'
  386. local Lighty = game:GetService"Lighting"
  387. local attacktype = 1
  388. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  389. local velocity = RootPart.Velocity.y
  390. local sine = 0
  391. local change = 1
  392. local Create = LoadLibrary("RbxUtility").Create
  393.  
  394. local chara = Character
  395. local m = Create("Model"){
  396. Parent = Character,
  397. Name = "WeaponModel",
  398. }
  399.  
  400.  
  401. wait(0.2)
  402.  
  403. Player = game:GetService("Players").LocalPlayer
  404. PlayerGui = Player.PlayerGui
  405. Cam = workspace.CurrentCamera
  406. Backpack = Player.Backpack
  407. Character = Player.Character
  408. Humanoid = Character.Humanoid
  409. Mouse = Player:GetMouse()
  410. RootPart = Character["HumanoidRootPart"]
  411. Torso = Character["Torso"]
  412. Head = Character["Head"]
  413. RightArm = Character["Right Arm"]
  414. LeftArm = Character["Left Arm"]
  415. RightLeg = Character["Right Leg"]
  416. LeftLeg = Character["Left Leg"]
  417. RootJoint = RootPart["RootJoint"]
  418. Neck = Torso["Neck"]
  419. RightShoulder = Torso["Right Shoulder"]
  420. LeftShoulder = Torso["Left Shoulder"]
  421. RightHip = Torso["Right Hip"]
  422. LeftHip = Torso["Left Hip"]
  423. Character.Archivable = true
  424. Player:ClearCharacterAppearance()
  425.  
  426. IT = Instance.new
  427. CF = CFrame.new
  428. VT = Vector3.new
  429. RAD = math.rad
  430. C3 = Color3.new
  431. UD2 = UDim2.new
  432. BRICKC = BrickColor.new
  433. ANGLES = CFrame.Angles
  434. EULER = CFrame.fromEulerAnglesXYZ
  435. COS = math.cos
  436. ACOS = math.acos
  437. SIN = math.sin
  438. ASIN = math.asin
  439. ABS = math.abs
  440. MRANDOM = math.random
  441. FLOOR = math.floor
  442.  
  443. --//=================================\\
  444. --|| USEFUL VALUES
  445. --\\=================================//
  446.  
  447. Animation_Speed = 2.5
  448. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  449. local Speed = 28
  450. local SIZE = 1.4
  451. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  452. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  453. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  454. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  455. local DAMAGEMULTIPLIER = 5
  456. local ANIM = "Idle"
  457. local ATTACK = false
  458. local EQUIPPED = false
  459. local HOLD = false
  460. local COMBO = 1
  461. local Rooted = false
  462. local SINE = 0
  463. local KEYHOLD = false
  464. local CHANGE = 2 / Animation_Speed
  465. local WALKINGANIM = false
  466. local VALUE1 = false
  467. local VALUE2 = false
  468. local ROBLOXIDLEANIMATION = IT("Animation")
  469. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  470. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  471. local ATANIM = IT("Animation")
  472. ATANIM.Name = "Attack Animation"
  473. ATANIM.AnimationId = "http://www.roblox.com/asset/?id=74894663"
  474. --ROBLOXIDLEANIMATION.Parent = Humanoid
  475. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  476. WEAPONGUI.Name = "Weapon GUI"
  477. local Weapon = IT("Model")
  478. Weapon.Name = "Adds"
  479. local Effects = IT("Folder", Weapon)
  480. Effects.Name = "Effects"
  481. local ANIMATOR = Humanoid.Animator
  482. local ANIMATE = Character.Animate
  483. local UNANCHOR = true
  484. local CLOCKLOOP = 0
  485. local SONG = 1382488262
  486. local CLOCKTARGET = nil
  487. local CLOCKSPEED = 0.25
  488. script.Parent = WEAPONGUI
  489. local CLONE = Character:Clone()
  490. CLONE.Parent = nil
  491. Character.Archivable = false
  492. local sick = Instance.new("Sound",Torso)
  493. sick.Volume = 1
  494.  
  495. --//=================================\\
  496. --\\=================================//
  497.  
  498.  
  499. --//=================================\\
  500. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  501. --\\=================================//
  502.  
  503. ArtificialHB = Instance.new("BindableEvent", script)
  504. ArtificialHB.Name = "ArtificialHB"
  505.  
  506. script:WaitForChild("ArtificialHB")
  507.  
  508. frame = Frame_Speed
  509. tf = 0
  510. allowframeloss = false
  511. tossremainder = false
  512. lastframe = tick()
  513. script.ArtificialHB:Fire()
  514.  
  515. game:GetService("RunService").Heartbeat:connect(function(s, p)
  516. tf = tf + s
  517. if tf >= frame then
  518. if allowframeloss then
  519. script.ArtificialHB:Fire()
  520. lastframe = tick()
  521. else
  522. for i = 1, math.floor(tf / frame) do
  523. script.ArtificialHB:Fire()
  524. end
  525. lastframe = tick()
  526. end
  527. if tossremainder then
  528. tf = 0
  529. else
  530. tf = tf - frame * math.floor(tf / frame)
  531. end
  532. end
  533. end)
  534.  
  535. --//=================================\\
  536. --\\=================================//
  537.  
  538. --//=================================\\
  539. --|| SOME FUNCTIONS
  540. --\\=================================//
  541.  
  542. function Reappear()
  543. for _, c in pairs(Character:GetChildren()) do
  544. if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then
  545. c.Transparency = 0
  546. if c:FindFirstChildOfClass("Decal") then
  547. c:FindFirstChildOfClass("Decal").Transparency = 0
  548. end
  549. if c:FindFirstChildOfClass("ParticleEmitter") then
  550. c:FindFirstChildOfClass("ParticleEmitter").Enabled = true
  551. end
  552. elseif c.ClassName == "Accessory" then
  553. c.Handle.Transparency = 0
  554. if c.Handle:FindFirstChildOfClass("ParticleEmitter") then
  555. c.Handle:FindFirstChildOfClass("ParticleEmitter").Enabled = true
  556. end
  557. end
  558. end
  559. end
  560.  
  561. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  562. if FLOOR ~= nil then
  563. coroutine.resume(coroutine.create(function()
  564. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Really red", "DebreeCenter", VT(0,0,0))
  565. PART.CFrame = CF(POSITION)
  566. for i = 1, 45 do
  567. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Really red", "DebreePart", BLOCKSIZE)
  568. RingPiece.Material = FLOOR.Material
  569. RingPiece.Color = FLOOR.Color
  570. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  571. Debris:AddItem(RingPiece,SWAIT)
  572. end
  573. PART:remove()
  574. end))
  575. end
  576. end
  577.  
  578. function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  579. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  580. local mesh = IT("SpecialMesh",wave)
  581. mesh.MeshType = "FileMesh"
  582. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  583. mesh.Scale = SIZE
  584. mesh.Offset = VT(0,0,0)
  585. wave.CFrame = CFRAME
  586. coroutine.resume(coroutine.create(function(PART)
  587. for i = 1, WAIT do
  588. Swait()
  589. mesh.Scale = mesh.Scale + GROW
  590. if DOESROT == true then
  591. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  592. end
  593. wave.Transparency = wave.Transparency + (0.5/WAIT)
  594. if wave.Transparency > 0.99 then
  595. wave:remove()
  596. end
  597. end
  598. end))
  599. end
  600.  
  601. function VanishPlayer()
  602. for _, c in pairs(Character:GetChildren()) do
  603. if c.ClassName == "Part" then
  604. c.Transparency = 1
  605. if c:FindFirstChildOfClass("Decal") then
  606. c:FindFirstChildOfClass("Decal").Transparency = 1
  607. end
  608. if c:FindFirstChildOfClass("ParticleEmitter") then
  609. c:FindFirstChildOfClass("ParticleEmitter").Enabled = false
  610. end
  611. elseif c.ClassName == "Accessory" then
  612. c.Handle.Transparency = 1
  613. if c.Handle:FindFirstChildOfClass("ParticleEmitter") then
  614. c.Handle:FindFirstChildOfClass("ParticleEmitter").Enabled = false
  615. end
  616. end
  617. end
  618. end
  619.  
  620. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  621. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  622. end
  623.  
  624. function PositiveAngle(NUMBER)
  625. if NUMBER >= 0 then
  626. NUMBER = 0
  627. end
  628. return NUMBER
  629. end
  630.  
  631. function NegativeAngle(NUMBER)
  632. if NUMBER <= 0 then
  633. NUMBER = 0
  634. end
  635. return NUMBER
  636. end
  637.  
  638. function Swait(NUMBER)
  639. if NUMBER == 0 or NUMBER == nil then
  640. ArtificialHB.Event:wait()
  641. else
  642. for i = 1, NUMBER do
  643. ArtificialHB.Event:wait()
  644. end
  645. end
  646. end
  647.  
  648. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  649. local NEWMESH = IT(MESH)
  650. if MESH == "SpecialMesh" then
  651. NEWMESH.MeshType = MESHTYPE
  652. if MESHID ~= "nil" and MESHID ~= "" then
  653. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  654. end
  655. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  656. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  657. end
  658. end
  659. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  660. NEWMESH.Scale = SCALE
  661. NEWMESH.Parent = PARENT
  662. return NEWMESH
  663. end
  664.  
  665. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  666. local NEWPART = IT("Part")
  667. NEWPART.formFactor = FORMFACTOR
  668. NEWPART.Reflectance = REFLECTANCE
  669. NEWPART.Transparency = TRANSPARENCY
  670. NEWPART.CanCollide = false
  671. NEWPART.Locked = true
  672. NEWPART.Anchored = true
  673. if ANCHOR == false then
  674. NEWPART.Anchored = false
  675. end
  676. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  677. NEWPART.Name = NAME
  678. NEWPART.Size = SIZE
  679. NEWPART.Position = Torso.Position
  680. NEWPART.Material = MATERIAL
  681. NEWPART:BreakJoints()
  682. NEWPART.Parent = PARENT
  683. return NEWPART
  684. end
  685.  
  686. local function weldBetween(a, b)
  687. local weldd = Instance.new("ManualWeld")
  688. weldd.Part0 = a
  689. weldd.Part1 = b
  690. weldd.C0 = CFrame.new()
  691. weldd.C1 = b.CFrame:inverse() * a.CFrame
  692. weldd.Parent = a
  693. return weldd
  694. end
  695.  
  696.  
  697. function QuaternionFromCFrame(cf)
  698. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  699. local trace = m00 + m11 + m22
  700. if trace > 0 then
  701. local s = math.sqrt(1 + trace)
  702. local recip = 0.5 / s
  703. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  704. else
  705. local i = 0
  706. if m11 > m00 then
  707. i = 1
  708. end
  709. if m22 > (i == 0 and m00 or m11) then
  710. i = 2
  711. end
  712. if i == 0 then
  713. local s = math.sqrt(m00 - m11 - m22 + 1)
  714. local recip = 0.5 / s
  715. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  716. elseif i == 1 then
  717. local s = math.sqrt(m11 - m22 - m00 + 1)
  718. local recip = 0.5 / s
  719. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  720. elseif i == 2 then
  721. local s = math.sqrt(m22 - m00 - m11 + 1)
  722. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  723. end
  724. end
  725. end
  726.  
  727. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  728. local xs, ys, zs = x + x, y + y, z + z
  729. local wx, wy, wz = w * xs, w * ys, w * zs
  730. local xx = x * xs
  731. local xy = x * ys
  732. local xz = x * zs
  733. local yy = y * ys
  734. local yz = y * zs
  735. local zz = z * zs
  736. 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))
  737. end
  738.  
  739. function QuaternionSlerp(a, b, t)
  740. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  741. local startInterp, finishInterp;
  742. if cosTheta >= 0.0001 then
  743. if (1 - cosTheta) > 0.0001 then
  744. local theta = ACOS(cosTheta)
  745. local invSinTheta = 1 / SIN(theta)
  746. startInterp = SIN((1 - t) * theta) * invSinTheta
  747. finishInterp = SIN(t * theta) * invSinTheta
  748. else
  749. startInterp = 1 - t
  750. finishInterp = t
  751. end
  752. else
  753. if (1 + cosTheta) > 0.0001 then
  754. local theta = ACOS(-cosTheta)
  755. local invSinTheta = 1 / SIN(theta)
  756. startInterp = SIN((t - 1) * theta) * invSinTheta
  757. finishInterp = SIN(t * theta) * invSinTheta
  758. else
  759. startInterp = t - 1
  760. finishInterp = t
  761. end
  762. end
  763. 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
  764. end
  765.  
  766. function Clerp(a, b, t)
  767. local qa = {QuaternionFromCFrame(a)}
  768. local qb = {QuaternionFromCFrame(b)}
  769. local ax, ay, az = a.x, a.y, a.z
  770. local bx, by, bz = b.x, b.y, b.z
  771. local _t = 1 - t
  772. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  773. end
  774.  
  775. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  776. local frame = IT("Frame")
  777. frame.BackgroundTransparency = TRANSPARENCY
  778. frame.BorderSizePixel = BORDERSIZEPIXEL
  779. frame.Position = POSITION
  780. frame.Size = SIZE
  781. frame.BackgroundColor3 = COLOR
  782. frame.BorderColor3 = BORDERCOLOR
  783. frame.Name = NAME
  784. frame.Parent = PARENT
  785. return frame
  786. end
  787.  
  788. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  789. local label = IT("TextLabel")
  790. label.BackgroundTransparency = 1
  791. label.Size = UD2(1, 0, 1, 0)
  792. label.Position = UD2(0, 0, 0, 0)
  793. label.TextColor3 = TEXTCOLOR
  794. label.TextStrokeTransparency = STROKETRANSPARENCY
  795. label.TextTransparency = TRANSPARENCY
  796. label.FontSize = TEXTFONTSIZE
  797. label.Font = TEXTFONT
  798. label.BorderSizePixel = BORDERSIZEPIXEL
  799. label.TextStrokeColor3 = C3(1,1,1)
  800. label.TextScaled = false
  801. label.Text = TEXT
  802. label.Name = NAME
  803. label.Parent = PARENT
  804. return label
  805. end
  806.  
  807. function NoOutlines(PART)
  808. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  809. end
  810.  
  811. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  812. local NEWWELD = IT(TYPE)
  813. NEWWELD.Part0 = PART0
  814. NEWWELD.Part1 = PART1
  815. NEWWELD.C0 = C0
  816. NEWWELD.C1 = C1
  817. NEWWELD.Parent = PARENT
  818. return NEWWELD
  819. end
  820.  
  821. local S = IT("Sound")
  822. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  823. local NEWSOUND = nil
  824. coroutine.resume(coroutine.create(function()
  825. NEWSOUND = S:Clone()
  826. NEWSOUND.Parent = PARENT
  827. NEWSOUND.Volume = VOLUME
  828. NEWSOUND.Pitch = PITCH
  829. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  830. NEWSOUND:play()
  831. if DOESLOOP == true then
  832. NEWSOUND.Looped = true
  833. else
  834. repeat wait(1) until NEWSOUND.Playing == false
  835. NEWSOUND:remove()
  836. end
  837. end))
  838. return NEWSOUND
  839. end
  840.  
  841. function CFrameFromTopBack(at, top, back)
  842. local right = top:Cross(back)
  843. 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)
  844. end
  845.  
  846. --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})
  847. function WACKYEFFECT(Table)
  848. local TYPE = (Table.EffectType or "Sphere")
  849. local SIZE = (Table.Size or VT(1,1,1))
  850. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  851. local TRANSPARENCY = (Table.Transparency or 0)
  852. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  853. local CFRAME = (Table.CFrame or Torso.CFrame)
  854. local MOVEDIRECTION = (Table.MoveToPos or nil)
  855. local ROTATION1 = (Table.RotationX or 0)
  856. local ROTATION2 = (Table.RotationY or 0)
  857. local ROTATION3 = (Table.RotationZ or 0)
  858. local MATERIAL = (Table.Material or "Neon")
  859. local COLOR = (Table.Color or C3(1,1,1))
  860. local TIME = (Table.Time or 45)
  861. local SOUNDID = (Table.SoundID or nil)
  862. local SOUNDPITCH = (Table.SoundPitch or nil)
  863. local SOUNDVOLUME = (Table.SoundVolume or nil)
  864. coroutine.resume(coroutine.create(function()
  865. local PLAYSSOUND = false
  866. local SOUND = nil
  867. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  868. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  869. PLAYSSOUND = true
  870. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  871. end
  872. EFFECT.Color = COLOR
  873. local MSH = nil
  874. if TYPE == "Sphere" then
  875. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  876. elseif TYPE == "Block" then
  877. MSH = IT("BlockMesh",EFFECT)
  878. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  879. elseif TYPE == "Wave" then
  880. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  881. elseif TYPE == "Ring" then
  882. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  883. elseif TYPE == "Slash" then
  884. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  885. elseif TYPE == "Round Slash" then
  886. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  887. elseif TYPE == "Swirl" then
  888. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  889. elseif TYPE == "Skull" then
  890. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  891. elseif TYPE == "Crystal" then
  892. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  893. end
  894. if MSH ~= nil then
  895. local MOVESPEED = nil
  896. if MOVEDIRECTION ~= nil then
  897. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  898. end
  899. local GROWTH = SIZE - ENDSIZE
  900. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  901. if TYPE == "Block" then
  902. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  903. else
  904. EFFECT.CFrame = CFRAME
  905. end
  906. for LOOP = 1, TIME+1 do
  907. Swait()
  908. MSH.Scale = MSH.Scale - GROWTH/TIME
  909. if TYPE == "Wave" then
  910. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  911. end
  912. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  913. if TYPE == "Block" then
  914. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  915. else
  916. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  917. end
  918. if MOVEDIRECTION ~= nil then
  919. local ORI = EFFECT.Orientation
  920. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  921. EFFECT.Orientation = ORI
  922. end
  923. end
  924. if PLAYSSOUND == false then
  925. EFFECT:remove()
  926. else
  927. repeat Swait() until SOUND.Playing == false
  928. EFFECT:remove()
  929. end
  930. else
  931. if PLAYSSOUND == false then
  932. EFFECT:remove()
  933. else
  934. repeat Swait() until SOUND.Playing == false
  935. EFFECT:remove()
  936. end
  937. end
  938. end))
  939. end
  940. function killnearest(position,range,maxstrength)
  941. for i,v in ipairs(workspace:GetChildren()) do
  942. local body = v:GetChildren()
  943. for part = 1, #body do
  944. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  945. if(body[part].Position - position).Magnitude < range then
  946. if v.ClassName == "Model" then
  947. v:BreakJoints()
  948. end
  949. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  950. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  951. end
  952. end
  953. end
  954. if v.ClassName == "Part" then
  955. if v.Anchored == false and (v.Position - position).Magnitude < range then
  956. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  957. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  958. end
  959. end
  960. end
  961. end
  962.  
  963. function CheckTableForString(Table, String)
  964. for i, v in pairs(Table) do
  965. if string.find(string.lower(String), string.lower(v)) then
  966. return true
  967. end
  968. end
  969. return false
  970. end
  971.  
  972. function CheckIntangible(Hit)
  973. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  974. if Hit and Hit.Parent then
  975. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  976. return true
  977. end
  978. end
  979. return false
  980. end
  981.  
  982. function MakeForm(PART,TYPE)
  983. if TYPE == "Cyl" then
  984. local MSH = IT("CylinderMesh",PART)
  985. elseif TYPE == "Ball" then
  986. local MSH = IT("SpecialMesh",PART)
  987. MSH.MeshType = "Sphere"
  988. elseif TYPE == "Wedge" then
  989. local MSH = IT("SpecialMesh",PART)
  990. MSH.MeshType = "Wedge"
  991. end
  992. end
  993.  
  994. Debris = game:GetService("Debris")
  995.  
  996. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  997. local DIRECTION = CF(StartPos,EndPos).lookVector
  998. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  999. end
  1000.  
  1001. function turnto(position)
  1002. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1003. end
  1004.  
  1005. function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
  1006. PLAYMAINANIM = false
  1007. if WhichPose == "Cast1" then
  1008. for i=0, Time, 0.1 / Animation_Speed do
  1009. Swait()
  1010. if Magic == true then
  1011. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1012. end
  1013. if Gyro ~= nil and Gyro ~= false then
  1014. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1015. end
  1016. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed)
  1017. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((0.7) - 0)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed)
  1018. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1019. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1020. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, 1.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1021. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -1.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1022. end
  1023. elseif WhichPose == "Cast2" then
  1024. for i=0, Time, 0.1 / Animation_Speed do
  1025. Swait()
  1026. if Magic == true then
  1027. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1028. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1029. end
  1030. if Gyro ~= nil and Gyro ~= false then
  1031. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1032. end
  1033. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  1034. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((0.7) - 0)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  1035. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1036. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1037. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, 1.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1038. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -1.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1039. end
  1040. elseif WhichPose == "RightArmUp" then
  1041. for i=0, Time, 0.1 / Animation_Speed do
  1042. Swait()
  1043. if Magic == true then
  1044. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1045. end
  1046. if Gyro ~= nil and Gyro ~= false then
  1047. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1048. end
  1049. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed)
  1050. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((0.7) - 0)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1051. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1052. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1053. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, 1.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1054. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -1.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1055. end
  1056. elseif WhichPose == "Taunt" then
  1057. for i=0, Time, 0.1 / Animation_Speed do
  1058. Swait()
  1059. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  1060. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((0.7) - 0)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  1061. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1062. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1063. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, 1.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1064. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -1.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1065. end
  1066. HATWELD.Part0 = RightArm
  1067. HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  1068. CreateSound(221057812,Torso,10,1,false)
  1069. for i=0, Time*2, 0.1 / Animation_Speed do
  1070. Swait()
  1071. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  1072. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((0.7) - 0)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  1073. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1074. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1075. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, 1.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1076. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -1.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1077. end
  1078. for i=0, Time, 0.1 / Animation_Speed do
  1079. Swait()
  1080. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  1081. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((0.7) - 0)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  1082. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1083. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1084. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -1.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1085. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -1.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1086. HATWELD.C0 = Clerp(HATWELD.C0, CF(-0.5,-1.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(35), RAD(0), RAD(35)), Speed / Animation_Speed)
  1087. end
  1088. HATWELD.Part0 = Head
  1089. HATWELD.C0 = CF(0,0.35,0)
  1090. elseif WhichPose == "Prepare key" then
  1091. for i=0, Time, 0.1 / Animation_Speed do
  1092. Swait()
  1093. if Gyro ~= nil and Gyro ~= false then
  1094. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  1095. end
  1096. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed)
  1097. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((0.7) - 0)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed)
  1098. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1099. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1100. RightHip.C0 = Clerp(RightHip.C0, CF(1.6, -0.5, -0.4) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1101. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.6, -1, -0.61) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1102. end
  1103. elseif WhichPose == "Turn key" then
  1104. for i=0, Time, 0.1 / Animation_Speed do
  1105. Swait()
  1106. if Gyro ~= nil and Gyro ~= false then
  1107. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  1108. end
  1109. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed)
  1110. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((0.7) - 0)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed)
  1111. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1112. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1113. RightHip.C0 = Clerp(RightHip.C0, CF(1.6, -0.5, -0.4) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1114. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.6, -1, -0.61) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1115. end
  1116. end
  1117. PLAYMAINANIM = true
  1118. end
  1119.  
  1120. --Lightning({Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false})
  1121. function Lightning(Table)
  1122. local Color = Table.Color or C3(1,1,1)
  1123. local StartPos = Table.Start or Torso.Position
  1124. local EndPos = Table.End or Mouse.Hit.p
  1125. local SegmentLength = Table.SegmentL or 2
  1126. local Thickness = Table.Thickness or 0.1
  1127. local Dissapear = Table.DoesFade or false
  1128. local Parent = Table.Ignore or Character
  1129. local MaxDist = Table.MaxDist or 400
  1130. local Branches = Table.Branches or false
  1131. local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  1132. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength)
  1133. local LIGHTNINGMODEL = IT("Model",Effects)
  1134. LIGHTNINGMODEL.Name = "Lightning"
  1135. local LastBolt = nil
  1136. for E = 1, DISTANCE do
  1137. local ExtraSize = (DISTANCE-E)/15
  1138. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
  1139. PART.Color = Color
  1140. MakeForm(PART,"Cyl")
  1141. if LastBolt == nil then
  1142. PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  1143. else
  1144. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SegmentLength/3+(DISTANCE-E)).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  1145. end
  1146. LastBolt = PART
  1147. if Branches == true then
  1148. local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
  1149. if CHOICE == 1 then
  1150. local LASTBRANCH = nil
  1151. for i = 1, MRANDOM(2,5) do
  1152. local ExtraSize2 = ((DISTANCE-E)/25)/i
  1153. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
  1154. PART.Color = Color
  1155. MakeForm(PART,"Cyl")
  1156. if LASTBRANCH == nil then
  1157. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  1158. else
  1159. PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  1160. end
  1161. LASTBRANCH = PART
  1162. end
  1163. end
  1164. end
  1165. end
  1166. if Dissapear == true then
  1167. coroutine.resume(coroutine.create(function()
  1168. for i = 1, 10 do
  1169. Swait()
  1170. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  1171. if c.ClassName == "Part" then
  1172. c.Transparency = i/10
  1173. end
  1174. end
  1175. end
  1176. LIGHTNINGMODEL:remove()
  1177. end))
  1178. elseif Dissapear == false then
  1179. Debris:AddItem(LIGHTNINGMODEL,0.1)
  1180. end
  1181. return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
  1182. end
  1183.  
  1184. --//=================================\\
  1185. --|| RAGDOLL STUFF
  1186. --\\=================================//
  1187.  
  1188. function recurse(root,callback,i)
  1189. i= i or 0
  1190. for _,v in pairs(root:GetChildren()) do
  1191. i = i + 1
  1192. callback(i,v)
  1193.  
  1194. if #v:GetChildren() > 0 then
  1195. i = recurse(v,callback,i)
  1196. end
  1197. end
  1198.  
  1199. return i
  1200. end
  1201.  
  1202. function ragdollJoint(character, part0, part1, attachmentName, className, properties)
  1203. attachmentName = attachmentName.."RigAttachment"
  1204. local constraint = Instance.new(className.."Constraint")
  1205. constraint.Attachment0 = part0:FindFirstChild(attachmentName)
  1206. constraint.Attachment1 = part1:FindFirstChild(attachmentName)
  1207. constraint.Name = "RagdollConstraint"..part1.Name
  1208.  
  1209. for _,propertyData in next,properties or {} do
  1210. constraint[propertyData[1]] = propertyData[2]
  1211. end
  1212.  
  1213. constraint.Parent = character
  1214. end
  1215.  
  1216. function getAttachment0(character, attachmentName)
  1217. for _,child in next,character:GetChildren() do
  1218. local attachment = child:FindFirstChild(attachmentName)
  1219. if attachment then
  1220. return attachment
  1221. end
  1222. end
  1223. end
  1224.  
  1225. function ArtificialHitbox(Part)
  1226. local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false)
  1227. HITBOX.CanCollide = true
  1228. HITBOX.CFrame = Part.CFrame
  1229. weldBetween(Part,HITBOX)
  1230. end
  1231.  
  1232. function R15Ragdoll(character,KeepArms)
  1233. character:BreakJoints()
  1234. coroutine.resume(coroutine.create(function()
  1235. recurse(character, function(_,v)
  1236. if v:IsA("Attachment") then
  1237. v.Axis = Vector3.new(0, 1, 0)
  1238. v.SecondaryAxis = Vector3.new(0, 0, 1)
  1239. v.Rotation = Vector3.new(0, 0, 0)
  1240. end
  1241. end)
  1242. for _,child in next,character:GetChildren() do
  1243. if child:IsA("Accoutrement") then
  1244. for _,part in next,child:GetChildren() do
  1245. if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
  1246. local attachment1 = part:FindFirstChildOfClass("Attachment")
  1247. local attachment0 = getAttachment0(character,attachment1.Name)
  1248. if attachment0 and attachment1 then
  1249. local constraint = Instance.new("HingeConstraint")
  1250. constraint.Attachment0 = attachment0
  1251. constraint.Attachment1 = attachment1
  1252. constraint.LimitsEnabled = true
  1253. constraint.UpperAngle = 0
  1254. constraint.LowerAngle = 0
  1255. constraint.Parent = character
  1256. end
  1257. ArtificialHitbox(part)
  1258. elseif part.Name == "HumanoidRootPart" then
  1259. part:remove()
  1260. end
  1261. end
  1262. end
  1263. end
  1264.  
  1265. ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
  1266. {"LimitsEnabled",true};
  1267. {"UpperAngle",5};
  1268. })
  1269. if character:FindFirstChild("Head") then
  1270. ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
  1271. {"LimitsEnabled",true};
  1272. {"UpperAngle",15};
  1273. })
  1274. end
  1275.  
  1276. local handProperties = {
  1277. {"LimitsEnabled", true};
  1278. {"UpperAngle",0};
  1279. {"LowerAngle",0};
  1280. }
  1281. ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
  1282. ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
  1283.  
  1284. local shinProperties = {
  1285. {"LimitsEnabled", true};
  1286. {"UpperAngle", 0};
  1287. {"LowerAngle", -75};
  1288. }
  1289. ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
  1290. ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
  1291.  
  1292. local footProperties = {
  1293. {"LimitsEnabled", true};
  1294. {"UpperAngle", 15};
  1295. {"LowerAngle", -45};
  1296. }
  1297. ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
  1298. ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
  1299. if KeepArms == true then
  1300. ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
  1301. ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
  1302. ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
  1303. ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
  1304. end
  1305. ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
  1306. ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
  1307. Debris:AddItem(character,5)
  1308. end))
  1309. end
  1310.  
  1311. function Ragdoll(Character2,CharTorso,KeepArms)
  1312. coroutine.resume(coroutine.create(function()
  1313. Character2:BreakJoints()
  1314. local hum = Character2:findFirstChild("Humanoid")
  1315. hum:remove()
  1316. local function Scan(ch)
  1317. local e
  1318. for e = 1,#ch do
  1319. Scan(ch[e]:GetChildren())
  1320. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  1321. ch[e]:remove()
  1322. end
  1323. end
  1324. end
  1325. local NEWHUM = IT("Humanoid")
  1326. NEWHUM.Name = "Corpse"
  1327. NEWHUM.Health = 0
  1328. NEWHUM.MaxHealth = 0
  1329. NEWHUM.PlatformStand = true
  1330. NEWHUM.Parent = Character2
  1331. NEWHUM.DisplayDistanceType = "None"
  1332.  
  1333. local ch = Character2:GetChildren()
  1334. local i
  1335. for i = 1,#ch do
  1336. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  1337. ch[i]:remove()
  1338. end
  1339. end
  1340.  
  1341. local Torso2 = Character2.Torso
  1342. local movevector = Vector3.new()
  1343.  
  1344. if Torso2 then
  1345. movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
  1346. local Head = Character2:FindFirstChild("Head")
  1347. if Head then
  1348. local Neck = Instance.new("Weld")
  1349. Neck.Name = "Neck"
  1350. Neck.Part0 = Torso2
  1351. Neck.Part1 = Head
  1352. Neck.C0 = CFrame.new(0, 1.5, 0)
  1353. Neck.C1 = CFrame.new()
  1354. Neck.Parent = Torso2
  1355.  
  1356. end
  1357. local Limb = Character2:FindFirstChild("Right Arm")
  1358. if Limb and KeepArms == true then
  1359.  
  1360. Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  1361. local Joint = Instance.new("Glue")
  1362. Joint.Name = "RightShoulder"
  1363. Joint.Part0 = Torso2
  1364. Joint.Part1 = Limb
  1365. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1366. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1367. Joint.Parent = Torso2
  1368.  
  1369. local B = Instance.new("Part")
  1370. B.TopSurface = 0
  1371. B.BottomSurface = 0
  1372. B.formFactor = "Symmetric"
  1373. B.Size = Vector3.new(1, 1, 1)
  1374. B.Transparency = 1
  1375. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1376. B.Parent = Character2
  1377. local W = Instance.new("Weld")
  1378. W.Part0 = Limb
  1379. W.Part1 = B
  1380. W.C0 = CFrame.new(0, -0.5, 0)
  1381. W.Parent = Limb
  1382.  
  1383. end
  1384. local Limb = Character2:FindFirstChild("Left Arm")
  1385. if Limb and KeepArms == true then
  1386.  
  1387. Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  1388. local Joint = Instance.new("Glue")
  1389. Joint.Name = "LeftShoulder"
  1390. Joint.Part0 = Torso2
  1391. Joint.Part1 = Limb
  1392. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1393. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1394. Joint.Parent = Torso2
  1395.  
  1396. local B = Instance.new("Part")
  1397. B.TopSurface = 0
  1398. B.BottomSurface = 0
  1399. B.formFactor = "Symmetric"
  1400. B.Size = Vector3.new(1, 1, 1)
  1401. B.Transparency = 1
  1402. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1403. B.Parent = Character2
  1404. local W = Instance.new("Weld")
  1405. W.Part0 = Limb
  1406. W.Part1 = B
  1407. W.C0 = CFrame.new(0, -0.5, 0)
  1408. W.Parent = Limb
  1409.  
  1410. end
  1411. local Limb = Character2:FindFirstChild("Right Leg")
  1412. if Limb then
  1413.  
  1414. Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  1415. local Joint = Instance.new("Glue")
  1416. Joint.Name = "RightHip"
  1417. Joint.Part0 = Torso2
  1418. Joint.Part1 = Limb
  1419. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1420. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1421. Joint.Parent = Torso2
  1422.  
  1423. local B = Instance.new("Part")
  1424. B.TopSurface = 0
  1425. B.BottomSurface = 0
  1426. B.formFactor = "Symmetric"
  1427. B.Size = Vector3.new(1, 1, 1)
  1428. B.Transparency = 1
  1429. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1430. B.Parent = Character2
  1431. local W = Instance.new("Weld")
  1432. W.Part0 = Limb
  1433. W.Part1 = B
  1434. W.C0 = CFrame.new(0, -0.5, 0)
  1435. W.Parent = Limb
  1436.  
  1437. end
  1438. local Limb = Character2:FindFirstChild("Left Leg")
  1439. if Limb then
  1440.  
  1441. Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  1442. local Joint = Instance.new("Glue")
  1443. Joint.Name = "LeftHip"
  1444. Joint.Part0 = Torso2
  1445. Joint.Part1 = Limb
  1446. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1447. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1448. Joint.Parent = Torso2
  1449.  
  1450. local B = Instance.new("Part")
  1451. B.TopSurface = 0
  1452. B.BottomSurface = 0
  1453. B.formFactor = "Symmetric"
  1454. B.Size = Vector3.new(1, 1, 1)
  1455. B.Transparency = 1
  1456. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1457. B.Parent = Character2
  1458. local W = Instance.new("Weld")
  1459. W.Part0 = Limb
  1460. W.Part1 = B
  1461. W.C0 = CFrame.new(0, -0.5, 0)
  1462. W.Parent = Limb
  1463.  
  1464. end
  1465. --[
  1466. local Bar = Instance.new("Part")
  1467. Bar.TopSurface = 0
  1468. Bar.BottomSurface = 0
  1469. Bar.formFactor = "Symmetric"
  1470. Bar.Size = Vector3.new(1, 1, 1)
  1471. Bar.Transparency = 1
  1472. Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  1473. Bar.Parent = Character2
  1474. local Weld = Instance.new("Weld")
  1475. Weld.Part0 = Torso2
  1476. Weld.Part1 = Bar
  1477. Weld.C0 = CFrame.new(0, 0.5, 0)
  1478. Weld.Parent = Torso2
  1479. --]]
  1480. end
  1481. Character2.Parent = workspace
  1482. Debris:AddItem(Character2,5)
  1483.  
  1484. return Character2,Torso2
  1485. end))
  1486. end
  1487.  
  1488. --//=================================\\
  1489. --|| WEAPON CREATION
  1490. --\\=================================//
  1491.  
  1492. function swait(num)
  1493. if num == 0 or num == nil then
  1494. ArtificialHB.Event:wait()
  1495. else
  1496. for i = 0, num do
  1497. ArtificialHB.Event:wait()
  1498. end
  1499. end
  1500. end
  1501.  
  1502.  
  1503. function chatfunc(text)
  1504. local chat = coroutine.wrap(function()
  1505. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  1506. Character:FindFirstChild("TalkingBillBoard"):destroy()
  1507. end
  1508. local Bill = Instance.new("BillboardGui",Character)
  1509. Bill.Size = UDim2.new(0,100,0,40)
  1510. Bill.StudsOffset = Vector3.new(0,3,0)
  1511. Bill.Adornee = Character.Head
  1512. Bill.Name = "TalkingBillBoard"
  1513. local Hehe = Instance.new("TextLabel",Bill)
  1514. Hehe.BackgroundTransparency = 1
  1515. Hehe.BorderSizePixel = 0
  1516. Hehe.Text = ""
  1517. Hehe.Font = "Antique"
  1518. Hehe.TextSize = 40
  1519. Hehe.TextStrokeTransparency = 0
  1520. Hehe.Size = UDim2.new(1,0,0.5,0)
  1521. coroutine.resume(coroutine.create(function()
  1522. while Hehe ~= nil do
  1523. swait()
  1524. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  1525. Hehe.Rotation = math.random(-5,5)
  1526. Hehe.TextColor3 = Color3.new(255,0,0)
  1527. Hehe.TextStrokeColor3 = Color3.new(0,0,0)
  1528. end
  1529. end))
  1530. for i = 1,string.len(text),1 do
  1531. swait()
  1532. Hehe.Text = string.sub(text,1,i)
  1533. end
  1534. swait(90)--Re[math.random(1, 93)]
  1535. for i = 0, 1, .025 do
  1536. swait()
  1537. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  1538. Hehe.TextStrokeTransparency = i
  1539. Hehe.TextTransparency = i
  1540. end
  1541. Bill:Destroy()
  1542. end)
  1543. chat()
  1544. end
  1545.  
  1546. function onChatted(msg)
  1547. chatfunc(msg)
  1548. end
  1549.  
  1550. Player.Chatted:connect(onChatted)
  1551.  
  1552. chatfunc("I Am Not A Fortune Of That..")
  1553.  
  1554.  
  1555. Humanoid.Parent = nil
  1556. RootPart.Size = RootPart.Size*SIZE
  1557. Torso.Size = Torso.Size*SIZE
  1558. RightArm.Size = RightArm.Size*SIZE
  1559. RightLeg.Size = RightLeg.Size*SIZE
  1560. LeftArm.Size = LeftArm.Size*SIZE
  1561. LeftLeg.Size = LeftLeg.Size*SIZE
  1562. RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
  1563. RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
  1564. Neck.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1565. Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180))
  1566. RightShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
  1567. LeftShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
  1568. RightHip.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1569. LeftHip.C0 = CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1570. RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1571. LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  1572. Head.Size = Head.Size*SIZE
  1573. RootJoint.Parent = RootPart
  1574. Neck.Parent = Torso
  1575. RightShoulder.Parent = Torso
  1576. LeftShoulder.Parent = Torso
  1577. RightHip.Parent = Torso
  1578. LeftHip.Parent = Torso
  1579.  
  1580. Humanoid.DisplayDistanceType = "None"
  1581. local naeeym2 = IT("BillboardGui",Character)
  1582. naeeym2.AlwaysOnTop = true
  1583. naeeym2.Size = UDim2.new(5,35,2,15)
  1584. naeeym2.StudsOffset = Vector3.new(0,2,0)
  1585. naeeym2.MaxDistance = 99999
  1586. naeeym2.Adornee = Character.Head
  1587. naeeym2.Name = "Name"
  1588. local tecks2 = IT("TextLabel",naeeym2)
  1589. tecks2.BackgroundTransparency = 1
  1590. tecks2.TextScaled = true
  1591. tecks2.BorderSizePixel = 0
  1592. tecks2.Text = "Pandora Half Superior"
  1593. tecks2.Font = "Antique"
  1594. tecks2.TextSize = 30
  1595. tecks2.TextStrokeTransparency = 0
  1596. tecks2.TextColor3 = C3(255,0,0)
  1597. tecks2.TextStrokeColor3 = C3(0/78, 0/25, 0/23)
  1598. tecks2.Size = UDim2.new(1,0,0.5,0)
  1599. tecks2.Parent = naeeym2
  1600. local top = Instance.new("Shirt")
  1601. top.ShirtTemplate = "rbxassetid://"
  1602. top.Parent = Character
  1603. top.Name = "Cloth"
  1604. local bottom = Instance.new("Pants")
  1605. bottom.PantsTemplate = "rbxassetid://45696190"
  1606. bottom.Parent = Character
  1607. bottom.Name = "Cloth"
  1608.  
  1609.  
  1610. local PRT = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Hat", VT(1,1,1),false)
  1611. PRT.Color = C3(0,0,0)
  1612. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.72*SIZE,0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), CF(0, 0, 0))
  1613. CreateMesh("SpecialMesh", PRT, "FileMesh", "26768040", "", VT(1,1,1)*SIZE, VT(0,0,0))
  1614. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Royal purple", "Detail", VT(1,1,1),false)
  1615. PRT.Color = C3(0,0,0)
  1616. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
  1617. CreateMesh("SpecialMesh", PRT, "FileMesh", "13520257", "", VT(1,1,1)*SIZE, VT(0,0,0))
  1618. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(1,1.2,0.2),false)
  1619. PRT.Color = C3(0,0,0)
  1620. MakeForm(PRT,"Ball")
  1621. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
  1622. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Royal purple", "Detail", VT(0.5,0.4,0.5),false)
  1623. PRT.Color = C3(255/100, 195/0, 175/0)
  1624. MakeForm(PRT,"Ball")
  1625. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,-0.3,-.5*SIZE), CF(0, 0, 0))
  1626. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(0.5,0.3,0.3),false)
  1627. PRT.Color = C3(0,0,0)
  1628. MakeForm(PRT,"Ball")
  1629. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.25,0.25,-.5*SIZE), CF(0, 0, 0))
  1630. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Royal purple", "Detail", VT(0.5,0.3,0.3),false)
  1631. PRT.Color = C3(255/100, 195/0, 175/0)
  1632. MakeForm(PRT,"Ball")
  1633. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.25,0.25,-.5*SIZE), CF(0, 0, 0))
  1634. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(0.4,0.4,0.3),false)
  1635. PRT.Color = C3(255/100, 195/0, 175/0)
  1636. MakeForm(PRT,"Ball")
  1637. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(15), RAD(0)), CF(0, 0, 0))
  1638. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(0.4,0.4,0.3),false)
  1639. PRT.Color = C3(255/100, 195/0, 175/0)
  1640. MakeForm(PRT,"Ball")
  1641. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(-15), RAD(0)), CF(0, 0, 0))
  1642. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(1.05,0.06,1.05)*SIZE,false)
  1643. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1644. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0.5,0.1,0.5)*SIZE,false)
  1645. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
  1646. MakeForm(PRT,"Cyl")
  1647. local PRT = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Watch", VT(0.45,0.11,0.45)*SIZE,false)
  1648. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
  1649. MakeForm(PRT,"Cyl")
  1650. PRT.Color = C3(255/100, 195/0, 175/0)
  1651. local RING = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0.055,0.15,0.055)*SIZE,false)
  1652. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RING, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
  1653. MakeForm(RING,"Cyl")
  1654. RING.Color = C3(0,0,0)
  1655. for i = 1, 12 do
  1656. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0)*SIZE,false)
  1657. PRT.Color = C3(0,0,0)
  1658. local MSH = IT("BlockMesh",PRT)
  1659. MSH.Scale = VT(0.6,1,1)
  1660. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD((360/12)*i), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.2*SIZE))
  1661. end
  1662. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15)*SIZE,false)
  1663. PRT.Color = C3(0,0,0)
  1664. local MSH = IT("BlockMesh",PRT)
  1665. MSH.Scale = VT(0.4,1,1)
  1666. local WATCH1 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.075*SIZE))
  1667. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15/1.5)*SIZE,false)
  1668. PRT.Color = C3(0,0,0)
  1669. local MSH = IT("BlockMesh",PRT)
  1670. MSH.Scale = VT(0.4,1,1)
  1671. local WATCH2 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -(0.075/1.5)*SIZE))
  1672. coroutine.resume(coroutine.create(function()
  1673. while true do
  1674. Swait()
  1675. CLOCKLOOP = CLOCKLOOP - 1*CLOCKSPEED
  1676. WATCH1.C0 = Clerp(WATCH1.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5), RAD(0)), 1 / Animation_Speed)
  1677. WATCH2.C0 = Clerp(WATCH2.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5/2), RAD(0)), 1 / Animation_Speed)
  1678. if CLOCKLOOP <= -150 then
  1679. if VALUE1 == false then
  1680. CLOCKLOOP = 0
  1681. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = RING.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1004,1004,1004), SoundID = 743521450, SoundPitch = 1.2, SoundVolume = 4})
  1682. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
  1683. ApplyAoE(HITPOS,10,15,45,75,false)
  1684. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(15,2,15), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(192,192,192), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1685. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(12,3,12), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(192,192,192), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1686. if CLOCKTARGET ~= nil then
  1687. CLOCKTARGET.Health = CLOCKTARGET.Health - 20
  1688. if CLOCKTARGET.Torso ~= nil then
  1689. CLOCKTARGET.Torso.CFrame = CLOCKTARGET.Torso.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))
  1690. end
  1691. if CLOCKTARGET.Health == 0 then
  1692. CLOCKTARGET = nil
  1693. end
  1694. end
  1695. end
  1696. end
  1697. end
  1698. end))
  1699.  
  1700. Neck.Name = "Weld"
  1701. RootJoint.Name = "Weld"
  1702. RightShoulder.Name = "Weld"
  1703. LeftShoulder.Name = "Weld"
  1704. RightHip.Name = "Weld"
  1705. LeftHip.Name = "Weld"
  1706.  
  1707. local BODY = {}
  1708. for _, c in pairs(Character:GetDescendants()) do
  1709. if c:IsA("BasePart") and c.Name ~= "Handle" then
  1710. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  1711. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1712. end
  1713. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  1714. elseif c:IsA("JointInstance") then
  1715. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  1716. end
  1717. end
  1718. for e = 1, #BODY do
  1719. if BODY[e] ~= nil then
  1720. local STUFF = BODY[e]
  1721. local PART = STUFF[1]
  1722. local PARENT = STUFF[2]
  1723. local MATERIAL = STUFF[3]
  1724. local COLOR = STUFF[4]
  1725. local TRANSPARENCY = STUFF[5]
  1726. if PART.ClassName == "Part" and PART ~= RootPart then
  1727. PART.Material = MATERIAL
  1728. PART.Color = COLOR
  1729. PART.Transparency = TRANSPARENCY
  1730. end
  1731. PART.AncestryChanged:Connect(function()
  1732. PART.Parent = PARENT
  1733. end)
  1734. end
  1735. end
  1736.  
  1737. function refit()
  1738. Character.Parent = workspace
  1739. for e = 1, #BODY do
  1740. if BODY[e] ~= nil then
  1741. local STUFF = BODY[e]
  1742. local PART = STUFF[1]
  1743. local PARENT = STUFF[2]
  1744. local MATERIAL = STUFF[3]
  1745. local COLOR = STUFF[4]
  1746. local TRANSPARENCY = STUFF[5]
  1747. if PART.ClassName == "Part" and PART ~= RootPart then
  1748. PART.Material = MATERIAL
  1749. PART.Color = COLOR
  1750. PART.Transparency = TRANSPARENCY
  1751. end
  1752. if PART.Parent ~= PARENT then
  1753. Humanoid:remove()
  1754. PART.Parent = PARENT
  1755. Humanoid = IT("Humanoid",Character)
  1756. end
  1757. end
  1758. end
  1759. end
  1760. local SKILLTEXTCOLOR = C3(255/255, 0/255, 0/255)
  1761. local SKILLFONT = "Antique"
  1762. local SKILLTEXTSIZE = 7
  1763.  
  1764. Weapon.Parent = Character
  1765. Humanoid.Parent = Character
  1766.  
  1767. Humanoid.Died:connect(function()
  1768. refit()
  1769. end)
  1770.  
  1771. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23-.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  1772. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50+.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  1773. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  1774. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  1775. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  1776.  
  1777. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Magic Missiles", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1")
  1778. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Superior Taunt", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
  1779. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Superior Punch", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
  1780. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Pandora's Box", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4")
  1781. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Drop", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5")
  1782.  
  1783. --//=================================\\
  1784. --|| DAMAGING
  1785. --\\=================================//
  1786.  
  1787. function ApplyDamage(Humanoid,Damage,TorsoPart)
  1788. local defence = Instance.new("BoolValue",Humanoid.Parent)
  1789. defence.Name = ("HitBy"..Player.Name)
  1790. game:GetService("Debris"):AddItem(defence, 0.001)
  1791. Damage = Damage * DAMAGEMULTIPLIER
  1792. if Humanoid.Health ~= 0 then
  1793. local CritChance = MRANDOM(1,100)
  1794. if Damage > Humanoid.Health then
  1795. Damage = math.ceil(Humanoid.Health)
  1796. if Damage == 0 then
  1797. Damage = 0.1
  1798. end
  1799. end
  1800. Humanoid.Health = Humanoid.Health - Damage
  1801. end
  1802. end
  1803.  
  1804. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  1805. local CHILDREN = workspace:GetDescendants()
  1806. for index, CHILD in pairs(CHILDREN) do
  1807. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1808. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1809. if HUM then
  1810. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1811. if TORSO then
  1812. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1813. if INSTAKILL == false then
  1814. CHILD:BreakJoints()
  1815. else
  1816. local DMG = MRANDOM(MINDMG,MAXDMG)
  1817. ApplyDamage(HUM,DMG,TORSO)
  1818. end
  1819. if FLING > 0 then
  1820. for _, c in pairs(CHILD:GetChildren()) do
  1821. if c:IsA("BasePart") then
  1822. local bv = Instance.new("BodyVelocity")
  1823. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1824. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1825. bv.Parent = c
  1826. Debris:AddItem(bv,0.05)
  1827. end
  1828. end
  1829. end
  1830. end
  1831. end
  1832. end
  1833. end
  1834. end
  1835. end
  1836.  
  1837. function MagicSphere2(size,waitt,cframe,color)
  1838. local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(1,1,1))
  1839. local mesh = IT("SpecialMesh",wave)
  1840. mesh.MeshType = "Sphere"
  1841. mesh.Scale = VT(size,size,size)
  1842. mesh.Offset = VT(0,0,0)
  1843. wave.CFrame = cframe
  1844. coroutine.resume(coroutine.create(function(PART)
  1845. for i = 1, waitt do
  1846. Swait()
  1847. mesh.Scale = mesh.Scale - VT(size/waitt,size/waitt,size/waitt)
  1848. wave.Transparency = wave.Transparency - (1/waitt)
  1849. end
  1850. wave:remove()
  1851. end))
  1852. end
  1853.  
  1854. function MagicSphere(size,waitt,cframe,color)
  1855. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1))
  1856. local mesh = IT("SpecialMesh",wave)
  1857. mesh.MeshType = "Sphere"
  1858. mesh.Scale = VT(size,size,size)
  1859. mesh.Offset = VT(0,0,0)
  1860. wave.CFrame = cframe
  1861. coroutine.resume(coroutine.create(function(PART)
  1862. for i = 1, waitt do
  1863. Swait()
  1864. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  1865. wave.Transparency = wave.Transparency + (1/waitt)
  1866. if wave.Transparency > 0.99 then
  1867. wave:remove()
  1868. end
  1869. end
  1870. end))
  1871. end
  1872.  
  1873. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  1874. local Direction = CFrame.new(StartPos, Vec).lookVector
  1875. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  1876. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  1877. if RayHit and CheckIntangible(RayHit) then
  1878. if DelayIfHit then
  1879. wait()
  1880. end
  1881. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  1882. end
  1883. return RayHit, RayPos, RayNormal
  1884. end
  1885.  
  1886. function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,cframe,color)
  1887. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  1888. local mesh = IT("SpecialMesh",wave)
  1889. mesh.MeshType = "FileMesh"
  1890. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  1891. mesh.Scale = VT(size,size,size)
  1892. wave.CFrame = cframe
  1893. coroutine.resume(coroutine.create(function(PART)
  1894. for i = 1, waitt do
  1895. Swait()
  1896. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  1897. if doesrotate == true then
  1898. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  1899. end
  1900. wave.Transparency = wave.Transparency + (0.5/waitt)
  1901. if wave.Transparency > 0.99 then
  1902. wave:remove()
  1903. end
  1904. end
  1905. end))
  1906. end
  1907.  
  1908. --//=================================\\
  1909. --|| ATTACK FUNCTIONS AND STUFF
  1910. --\\=================================//
  1911.  
  1912. function MagicMissiles()
  1913. ATTACK = true
  1914. Rooted = false
  1915. local SELECTING = true
  1916. local SPOTS = {}
  1917. coroutine.resume(coroutine.create(function()
  1918. local LOOP = 0
  1919. repeat
  1920. LOOP = LOOP + 1
  1921. Swait()
  1922. if LOOP >= 15 then
  1923. LOOP = 0
  1924. for i = 1, #SPOTS do
  1925. if SPOTS[i] ~= nil then
  1926. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(8,2,8), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0, 0, 0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1927. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,3,6), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(0, 0, 0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1928. end
  1929. end
  1930. end
  1931. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1932. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1933. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(115), RAD(45), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1934. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1935. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1936. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1937. until SELECTING == false
  1938. Rooted = false
  1939. repeat
  1940. LOOP = LOOP + 1
  1941. Swait()
  1942. if LOOP >= 15 then
  1943. LOOP = 0
  1944. for i = 1, #SPOTS do
  1945. if SPOTS[i] ~= nil then
  1946. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(8,2,8), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 0/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1947. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,3,6), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 0/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1948. end
  1949. end
  1950. end
  1951. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1952. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 4 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed)
  1953. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1954. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1955. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 1.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 1.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1956. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 1.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 1.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1957. until ATTACK == false
  1958. end))
  1959. repeat
  1960. repeat Swait() until HOLD == true
  1961. local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude
  1962. if DIST > 9999 then
  1963. DIST = 9999
  1964. end
  1965. local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace)
  1966. local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
  1967. if HITFLOOR ~= nil then
  1968. table.insert(SPOTS,CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0)))
  1969. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,2,6), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 0/255, 0/255), SoundID = 90655239, SoundPitch = 1, SoundVolume = 6})
  1970. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(4,3,4), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 0/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1971. end
  1972. repeat Swait() until HOLD == false
  1973. until #SPOTS == 10
  1974. SELECTING = false
  1975. for i = 1, #SPOTS do
  1976. if SPOTS[i] ~= nil then
  1977. local POS = SPOTS[i]
  1978. coroutine.resume(coroutine.create(function()
  1979. local MISSILE = IT("Model",Effects)
  1980. MISSILE.Name = "Missile"
  1981. local BASEPART = CreatePart(3, MISSILE, "Neon", 0, 1, "Really red", "Part", VT(2,2,2))
  1982. MakeForm(BASEPART,"Cyl")
  1983. MISSILE.PrimaryPart = BASEPART
  1984. BASEPART.CFrame = POS*CF(0,-30*3,0)
  1985. local HEAD = CreatePart(3, MISSILE, "Neon", 0, 1, "Really red", "Part", VT(2,4,2))
  1986. MakeForm(HEAD,"Ball")
  1987. HEAD.CFrame = BASEPART.CFrame*CF(0,1,0)
  1988. local TAIL = CreatePart(3, MISSILE, "Neon", 0, 1, "Really red", "Part", VT(2.5,0.1,2.5))
  1989. MakeForm(TAIL,"Cyl")
  1990. TAIL.CFrame = BASEPART.CFrame*CF(0,-1,0)
  1991. chatfunc("Missiles")
  1992. for i = 1, 15 do
  1993. Swait()
  1994. for _, c in pairs(MISSILE:GetChildren()) do
  1995. if c.ClassName == "Part" then
  1996. c.Transparency = c.Transparency - 1/10
  1997. end
  1998. end
  1999. end
  2000. for i = 1, 15*1.5 do
  2001. Swait()
  2002. MISSILE:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,1.35*3,0))
  2003. end
  2004. ApplyAoE(BASEPART.CFrame.p,200,350,450,750,true)
  2005. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(750,350,750), Transparency = 0.5, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(255/255, 0/255, 0/255), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  2006. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(350,350,350), Transparency = 0, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(255/255, 0/255, 0/255), SoundID = 165970126, SoundPitch = MRANDOM(13,15)/10, SoundVolume = 4})
  2007. WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(220,2,220), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 0/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  2008. WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(200,3,200), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 0/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  2009. MISSILE:remove()
  2010. end))
  2011. end
  2012. end
  2013. wait(0.6)
  2014. ATTACK = false
  2015. Rooted = false
  2016. end
  2017.  
  2018.  
  2019. function Time()
  2020. chatfunc("Pandora Half Me Ehh..")
  2021. ATTACK = true
  2022. Rooted = false
  2023. for i=0, 0.5, 0.1 / Animation_Speed do
  2024. Swait()
  2025. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((0.7) - 0)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2026. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
  2027. end
  2028. for e = 1, #BODY do
  2029. if BODY[e] ~= nil then
  2030. local STUFF = BODY[e]
  2031. local PART = STUFF[1]
  2032. if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then
  2033. local PRT = PART:Clone()
  2034. PRT.Anchored = true
  2035. PRT.CanCollide = false
  2036. PRT.Material = "Neon"
  2037. PRT.Color = C3(1,0,0)
  2038. PRT.Name = "WarpEffect"
  2039. PRT.Parent = Effects
  2040. PRT.CFrame = PART.CFrame
  2041. PRT:BreakJoints()
  2042. if PRT:FindFirstChildOfClass("Sound") then
  2043. PRT:FindFirstChildOfClass("Sound"):remove()
  2044. end
  2045. if PRT:FindFirstChildOfClass("Decal") then
  2046. PRT:FindFirstChildOfClass("Decal"):remove()
  2047. end
  2048. coroutine.resume(coroutine.create(function()
  2049. for i = 1, 100 do
  2050. Swait()
  2051. PRT.Transparency = PRT.Transparency + 1/100
  2052. end
  2053. PRT:remove()
  2054. end))
  2055. end
  2056. end
  2057. end
  2058. CreateSound(217767125, Torso, 10, 1)
  2059. local POS = RootPart.Orientation
  2060. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0))
  2061. RootPart.Orientation = POS
  2062. RootJoint.Parent = RootPart
  2063. for i=0, 0.5, 0.1 / Animation_Speed do
  2064. Swait()
  2065. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((0.7) - 0)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2066. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-15), RAD(12)) * ANGLES(RAD(175 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed)
  2067. end
  2068. for i=0, 0.1, 0.1 / Animation_Speed do
  2069. Swait()
  2070. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  2071. end
  2072. ATTACK = false
  2073. Rooted = false
  2074. end
  2075.  
  2076. function TimesUp()
  2077. chatfunc("Hehehehe")
  2078. CLOCKTARGET = nil
  2079. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2080. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  2081. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  2082. if TORSO then
  2083. ATTACK = true
  2084. Rooted = false
  2085. coroutine.resume(coroutine.create(function()
  2086. repeat
  2087. Swait()
  2088. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  2089. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.6 + ((0.6*SIZE) - 0.6)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2090. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.5*SIZE, -0.2*SIZE) * ANGLES(RAD(75), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2091. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2092. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2093. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2094. until ATTACK == false
  2095. end))
  2096. if Effects:FindFirstChild("NeonDoll") then
  2097. repeat Swait() until Effects:FindFirstChild("NeonDoll") == nil
  2098. end
  2099. wait(0.5)
  2100. local FAKECHARACTER = IT("Model",Effects)
  2101. FAKECHARACTER.Name = "NeonDoll"
  2102. local TORS = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Mid grey", "Part", VT(0.3,0.3,0.15),false)
  2103. CreateWeldOrSnapOrMotor("Weld", RING, RING, TORS, CF(0,0.6,0), CF(0,0,0))
  2104. local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Mid grey", "Part", VT(0.15,0.3,0.15),false)
  2105. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0,0.15,0))
  2106. local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Mid grey", "Part", VT(0.15,0.3,0.15),false)
  2107. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(-0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0,0.15,0))
  2108. local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Mid grey", "Part", VT(0.15,0.3,0.15),false)
  2109. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0,0.15,0))
  2110. local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Mid grey", "Part", VT(0.15,0.3,0.15),false)
  2111. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(-0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(-90)), CF(0,0.15,0))
  2112. local HEAD = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Mid grey", "Part", VT(0.15,0.15,0.15),false)
  2113. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, HEAD, CF(0,0.225,0), CF(0,0,0))
  2114. CreateSound(201858045, TORS, 5, 0.4, false)
  2115. for i = 1, 50 do
  2116. Swait()
  2117. CLOCKSPEED = 0.25
  2118. for _, c in pairs(FAKECHARACTER:GetChildren()) do
  2119. if c.ClassName == "Part" then
  2120. c.Transparency = c.Transparency - 0.5/150
  2121. end
  2122. end
  2123. end
  2124. CLOCKTARGET = HUM
  2125. coroutine.resume(coroutine.create(function()
  2126. repeat Swait() CLOCKSPEED = 5 until CLOCKTARGET == nil
  2127. for i = 1, 25 do
  2128. Swait()
  2129. for _, c in pairs(FAKECHARACTER:GetChildren()) do
  2130. if c.ClassName == "Part" then
  2131. c.Transparency = c.Transparency + 0.5/25
  2132. end
  2133. end
  2134. end
  2135. CLOCKSPEED = 0.25
  2136. FAKECHARACTER:remove()
  2137. end))
  2138. wait(0.5)
  2139. ATTACK = false
  2140. Rooted = false
  2141. end
  2142. end
  2143. end
  2144.  
  2145. function ChainPunch()
  2146. chatfunc("I Hope You Like This Thing..")
  2147. ATTACK = true
  2148. Rooted = false
  2149. local GYRO = IT("BodyGyro",RootPart)
  2150. GYRO.D = 25
  2151. GYRO.P = 2000
  2152. GYRO.MaxTorque = VT(0,40000,0)
  2153. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  2154. repeat
  2155. Swait()
  2156. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  2157. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  2158. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 4 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed)
  2159. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2160. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2161. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2162. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2163. until HOLD == true
  2164. local POS = Mouse.Hit.p
  2165. local CHAINS = false
  2166. local CHAINLINKS = {}
  2167. local A = IT("Attachment",RightArm)
  2168. A.Position = VT(1,-1,0)*SIZE
  2169. A.Orientation = VT(-90, -89.982, 0)
  2170. local B = IT("Attachment",RightArm)
  2171. B.Position = VT(-1,-1,0)*SIZE
  2172. B.Orientation = VT(-90, 89.988, 0)
  2173. local C = IT("Attachment",RightArm)
  2174. C.Position = VT(0.5,-1.3,0)*SIZE
  2175. C.Orientation = VT(-90, -89.982, 0)
  2176. local D = IT("Attachment",RightArm)
  2177. D.Position = VT(-0.5,-1.3,0)*SIZE
  2178. D.Orientation = VT(-90, 89.988, 0)
  2179. local LIGHT = IT("Attachment",RightArm)
  2180. LIGHT.Position = VT(0,-1,0)*SIZE
  2181. local LIGHT2 = IT("PointLight",LIGHT)
  2182. LIGHT2.Range = 7
  2183. LIGHT2.Brightness = 5
  2184. LIGHT2.Color = SKILLTEXTCOLOR
  2185. for i = 1, 2 do
  2186. local TWIST = -2
  2187. local START = A
  2188. local END = B
  2189. if i == 1 then
  2190. START = B
  2191. END = A
  2192. end
  2193. local ChainLink = IT("Beam",Torso)
  2194. ChainLink.Texture = "rbxassetid://73042633"
  2195. ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR)
  2196. ChainLink.TextureSpeed = 1
  2197. ChainLink.Width0 = 1
  2198. ChainLink.Width1 = 1
  2199. ChainLink.TextureLength = 2.5
  2200. ChainLink.Attachment0 = START
  2201. ChainLink.Attachment1 = END
  2202. ChainLink.CurveSize0 = TWIST
  2203. ChainLink.CurveSize1 = TWIST
  2204. --ChainLink.FaceCamera = true
  2205. ChainLink.Segments = 45
  2206. ChainLink.Transparency = NumberSequence.new(1)
  2207. table.insert(CHAINLINKS,ChainLink)
  2208. end
  2209. for i = 1, 2 do
  2210. local TWIST = -1
  2211. local START = C
  2212. local END = D
  2213. if i == 1 then
  2214. START = D
  2215. END = C
  2216. end
  2217. local ChainLink = IT("Beam",Torso)
  2218. ChainLink.Texture = "rbxassetid://73042633"
  2219. ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR)
  2220. ChainLink.TextureSpeed = 1
  2221. ChainLink.Width0 = 1
  2222. ChainLink.Width1 = 1
  2223. ChainLink.TextureLength = 5
  2224. ChainLink.Attachment0 = START
  2225. ChainLink.Attachment1 = END
  2226. ChainLink.CurveSize0 = TWIST
  2227. ChainLink.CurveSize1 = TWIST
  2228. --ChainLink.FaceCamera = true
  2229. ChainLink.Segments = 25
  2230. ChainLink.LightEmission = 0.5
  2231. ChainLink.Transparency = NumberSequence.new(1)
  2232. table.insert(CHAINLINKS,ChainLink)
  2233. end
  2234. coroutine.resume(coroutine.create(function()
  2235. repeat
  2236. Swait()
  2237. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
  2238. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed)
  2239. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0.2*SIZE) * ANGLES(RAD(60), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2240. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2241. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  2242. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  2243. until CHAINS == true
  2244. repeat
  2245. Swait()
  2246. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  2247. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 1 / Animation_Speed)
  2248. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, -0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2249. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2250. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  2251. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  2252. until ATTACK == false
  2253. for e = 1, 15 do
  2254. Swait()
  2255. for i = 1, #CHAINLINKS do
  2256. CHAINLINKS[i].Transparency = NumberSequence.new((e/15))
  2257. end
  2258. end
  2259. A:remove()
  2260. B:remove()
  2261. C:remove()
  2262. D:remove()
  2263. end))
  2264. CreateSound(233856115, RightArm, 5, 1.2, false)
  2265. for e = 1, 15 do
  2266. Swait()
  2267. for i = 1, #CHAINLINKS do
  2268. CHAINLINKS[i].Transparency = NumberSequence.new(1-(e/15))
  2269. end
  2270. end
  2271. CHAINS = true
  2272. Rooted = false
  2273. wait(0.25)
  2274. local FIST = CreatePart(3, Effects, "Neon", 0, 0.5, "Mid grey", "Part", VT(2,2,2))
  2275. FIST.Color = C3(255/135, 100/0, 175/0)
  2276. FIST.CFrame = CF(RightArm.CFrame*CF(0,-1.3*SIZE,0).p,POS) * ANGLES(RAD(90), RAD(0), RAD(0))
  2277. local LIGHT3 = IT("PointLight",FIST)
  2278. LIGHT3.Range = 7
  2279. LIGHT3.Brightness = 5
  2280. LIGHT3.Color = SKILLTEXTCOLOR
  2281. CreateMesh("SpecialMesh", FIST, "FileMesh", "90718752", "", VT(10,10,10), VT(0,0,0))
  2282. local FISTA = IT("Attachment",FIST)
  2283. FISTA.Position = VT(0.062, 0.977, 0)
  2284. local ChainLink = IT("Beam",Torso)
  2285. ChainLink.Texture = "rbxassetid://73042633"
  2286. ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR)
  2287. ChainLink.TextureSpeed = 0
  2288. ChainLink.Width0 = 3
  2289. ChainLink.Width1 = 3
  2290. ChainLink.TextureLength = 12
  2291. ChainLink.Attachment0 = LIGHT
  2292. ChainLink.Attachment1 = FISTA
  2293. ChainLink.FaceCamera = true
  2294. ChainLink.Segments = 45
  2295. ChainLink.LightEmission = 0.5
  2296. ChainLink.Transparency = NumberSequence.new(0.25)
  2297. local FISTSOUND = CreateSound(288641686, FIST, 5, 1.2, false)
  2298. for i = 1, 85 do
  2299. Swait()
  2300. FIST.CFrame = FIST.CFrame*CF(0,-2,0)
  2301. ChainLink.TextureLength = 12+(i*2)
  2302. ApplyAoE(FIST.Position,10,15,25,100,false)
  2303. WACKYEFFECT({Time = 5, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(15,1,15), Transparency = 0.5, Transparency2 = 1, CFrame = FIST.CFrame*CF(0,-1,0) * ANGLES(RAD(0), RAD(i*15), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(255/100, 195/0, 175/0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  2304. local HITFLOOR = Raycast(FIST.Position, (CF(FIST.Position, FIST.CFrame*CF(0,-1,0).p)).lookVector, 2.1, Character)
  2305. if HITFLOOR ~= nil then
  2306. HITFLOOR:BreakJoints()
  2307. coroutine.resume(coroutine.create(function()
  2308. for i = 1, 15 do
  2309. Swait()
  2310. FISTSOUND.Volume = FISTSOUND.Volume - 0.15
  2311. ApplyAoE(FIST.Position,10+(i*2),5,15,5,false)
  2312. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35), Transparency = 0.5, Transparency2 = 1, CFrame = FIST.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(255/100, 195/0, 175/0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  2313. end
  2314. end))
  2315. break
  2316. end
  2317. end
  2318. coroutine.resume(coroutine.create(function()
  2319. for i = 1, 50 do
  2320. Swait()
  2321. FIST.Transparency = FIST.Transparency + 0.5/50
  2322. LIGHT3.Range = LIGHT3.Range - 7/50
  2323. end
  2324. FIST:remove()
  2325. end))
  2326. LIGHT:remove()
  2327. GYRO:remove()
  2328. ATTACK = false
  2329. Rooted = false
  2330. end
  2331.  
  2332. function WarpMeteor()
  2333. chatfunc("AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
  2334. local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude
  2335. if DIST > 180 then
  2336. DIST = 180
  2337. end
  2338. local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace)
  2339. local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,45,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 75*SIZE, Character)
  2340. if HITFLOOR then
  2341. local POS = HITPOS
  2342. ATTACK = true
  2343. Rooted = true
  2344. local WARPED = false
  2345. local SMASHED = false
  2346. local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
  2347. coroutine.resume(coroutine.create(function()
  2348. repeat
  2349. Swait()
  2350. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  2351. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2352. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(-55 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2353. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2354. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2355. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2356. until WARPED == true
  2357. repeat
  2358. Swait()
  2359. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  2360. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2361. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(-55 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2362. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2363. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.5*SIZE + 0.06 * SIN(SINE / 24) - 0.1*SIZE * COS(SINE / 12), -0.5*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2364. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.1*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2365. until SMASHED == true
  2366. repeat
  2367. Swait()
  2368. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)), 1 / Animation_Speed)
  2369. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-40), RAD(0), RAD(0)), 1 / Animation_Speed)
  2370. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(170), RAD(-15), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2371. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(170), RAD(15), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2372. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed)
  2373. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  2374. until ATTACK == false
  2375. end))
  2376. VALUE1 = true
  2377. CreateSound(233856115, Torso, 5, 1.6, false)
  2378. for i = 1, 25 do
  2379. Swait()
  2380. for _, c in pairs(Character:GetChildren()) do
  2381. if c.ClassName == "Part" then
  2382. c.Transparency = c.Transparency + 1/25
  2383. end
  2384. end
  2385. for _, c in pairs(Weapon:GetChildren()) do
  2386. if c.ClassName == "Part" then
  2387. c.Transparency = c.Transparency + 1/25
  2388. end
  2389. end
  2390. end
  2391. UNANCHOR = false
  2392. RootPart.Anchored = true
  2393. RootPart.Velocity = VT(0,0,0)
  2394. local ROOTPOS = RootPart.Position
  2395. RootPart.CFrame = CF(POS+VT(0,300,0),VT(ROOTPOS.X,POS.Y+300,ROOTPOS.Z))
  2396. WARPED = true
  2397. for i = 1, 25 do
  2398. Swait()
  2399. for _, c in pairs(Character:GetChildren()) do
  2400. if c.ClassName == "Part" then
  2401. c.Transparency = c.Transparency - 1/25
  2402. end
  2403. end
  2404. for _, c in pairs(Weapon:GetChildren()) do
  2405. if c.ClassName == "Part" then
  2406. c.Transparency = c.Transparency - 1/25
  2407. end
  2408. end
  2409. end
  2410. local SHELL = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Part", VT(0,0,0))
  2411. SHELL.CFrame = RootPart.CFrame
  2412. MakeForm(SHELL,"Ball")
  2413. CreateSound(402981977, SHELL, 5, 1.6, false)
  2414. for i = 1, 10 do
  2415. Swait()
  2416. SHELL.Transparency = SHELL.Transparency - 1/10
  2417. SHELL.Size = SHELL.Size + VT(2,2,2)*1.8
  2418. end
  2419. for i = 1, math.ceil(75/2) do
  2420. Swait()
  2421. RootPart.CFrame = RootPart.CFrame*CF(0,-3.5*2,0)
  2422. SHELL.CFrame = CF(RootPart.Position)
  2423. WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(10,6,10), Transparency = 0.5, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = SHELL.Position+VT(0,15,0), RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
  2424. end
  2425. RootPart.CFrame = CF(POS+VT(0,1,0),VT(ROOTPOS.X,HITPOS.Y+1,ROOTPOS.Z))
  2426. SHELL.CFrame = CF(RootPart.Position)
  2427. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(100,100,100)*4, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = 165970126, SoundPitch = 0.75, SoundVolume = 6})
  2428. WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(60,6,60)*3.8, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
  2429. WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(60,6,60)*4, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
  2430. for i = 1, 5 do
  2431. WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(50,5,50)*4, Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  2432. end
  2433. SHELL:remove()
  2434. ApplyAoE(RootPart.Position,75,35,75,300,false)
  2435. SMASHED = true
  2436. wait(1)
  2437. VALUE1 = false
  2438. UNANCHOR = true
  2439. ATTACK = false
  2440. Rooted = false
  2441. end
  2442. end
  2443.  
  2444. function PandorasBox()
  2445. chatfunc("Hehheh..")
  2446. local HITFLOOR,HITPOS = Raycast(RootPart.CFrame*CF(0,0,-6.5).p, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
  2447. if HITFLOOR ~= nil then
  2448. ATTACK = true
  2449. Rooted = true
  2450. local RINGSPIN = true
  2451. local CONSTRUCTING = true
  2452. local RING = CreatePart(3, Effects, "Neon", 0, 1, "Alder", "Ring", VT(0,0,0))
  2453. RING.Color = C3(0,0,0)
  2454. MakeForm(RING,"Cyl")
  2455. RING.CFrame = CF(HITPOS)
  2456. CreateSound(402981977, RING, 5, 1.2, false)
  2457. coroutine.resume(coroutine.create(function()
  2458. repeat
  2459. Swait()
  2460. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  2461. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  2462. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2463. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(115), RAD(45), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2464. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2465. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2466. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2467. until CONSTRUCTING == false
  2468. repeat
  2469. Swait()
  2470. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  2471. until RINGSPIN == false
  2472. for i = 1, 25 do
  2473. Swait()
  2474. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  2475. RING.Size = RING.Size - VT(0.15,0,0.15)
  2476. --DECAL.Transparency = DECAL.Transparency + 1/25
  2477. RING.Transparency = RING.Transparency + 1/25
  2478. end
  2479. RING:remove()
  2480. end))
  2481. for i = 1, 15 do
  2482. Swait()
  2483. RING.Size = RING.Size + VT(0.75,0,0.75)
  2484. RING.Transparency = RING.Transparency - 1/15
  2485. end
  2486. local BOXSPIN = true
  2487. local PANDORASBOX = IT("Model",Effects)
  2488. PANDORASBOX.Name = "Pandora's Box"
  2489. local BOX = IT("Model",PANDORASBOX)
  2490. BOX.Name = "Body"
  2491. local LID = IT("Model",PANDORASBOX)
  2492. LID.Name = "Lid"
  2493. --BUILDING THE BOX--
  2494. local BASE = CreatePart(3, BOX, "Neon", 0, 0, "Alder", "Black", VT(2,1.8,2))
  2495. BASE.Color = C3(0,0,0)
  2496. PANDORASBOX.PrimaryPart = BASE
  2497. BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z))
  2498. local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Dark red", "Marble", VT(0.2,1.9,0.2))
  2499. WOOD.CFrame = BASE.CFrame*CF(1,0,1)
  2500. local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Dark red", "Marble", VT(0.2,1.9,0.2))
  2501. WOOD.CFrame = BASE.CFrame*CF(1,0,-1)
  2502. local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Dark red", "Marble", VT(0.2,1.9,0.2))
  2503. WOOD.CFrame = BASE.CFrame*CF(-1,0,1)
  2504. local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Dark red", "Marble", VT(0.2,1.9,0.2))
  2505. WOOD.CFrame = BASE.CFrame*CF(-1,0,-1)
  2506. local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Dark red", "Marble", VT(2.1,0.2,0.2))
  2507. WOOD.CFrame = BASE.CFrame*CF(0,0.9,1)
  2508. local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Dark red", "Marble", VT(2.1,0.2,0.2))
  2509. WOOD.CFrame = BASE.CFrame*CF(0,0.9,-1)
  2510. local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Dark red", "Marble", VT(0.2,0.2,2.1))
  2511. WOOD.CFrame = BASE.CFrame*CF(1,0.9,0)
  2512. local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Dark red", "Marble", VT(0.2,0.2,2.1))
  2513. WOOD.CFrame = BASE.CFrame*CF(-1,0.9,0)
  2514. local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Dark red", "Marble", VT(2.1,0.2,0.2))
  2515. WOOD.CFrame = BASE.CFrame*CF(0,-0.9,1)
  2516. local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Dark red", "Marble", VT(2.1,0.2,0.2))
  2517. WOOD.CFrame = BASE.CFrame*CF(0,-0.9,-1)
  2518. local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Dark red", "Marble", VT(0.2,0.2,2.1))
  2519. WOOD.CFrame = BASE.CFrame*CF(1,-0.9,0)
  2520. local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Dark red", "Marble", VT(0.2,0.2,2.1))
  2521. WOOD.CFrame = BASE.CFrame*CF(-1,-0.9,0)
  2522. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(2.1,1.9,0.1))
  2523. WOOD.CFrame = BASE.CFrame*CF(0,0,1)
  2524. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(2.1,1.9,0.1))
  2525. WOOD.CFrame = BASE.CFrame*CF(0,0,-1)
  2526. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(0.1,1.9,2.1))
  2527. WOOD.CFrame = BASE.CFrame*CF(1,0,0)
  2528. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(0.1,1.9,2.1))
  2529. WOOD.CFrame = BASE.CFrame*CF(-1,0,0)
  2530. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(2.1,0.1,2.1))
  2531. WOOD.CFrame = BASE.CFrame*CF(0,-0.9,0)
  2532. -------------
  2533. local LIDPART = CreatePart(3, LID, "Marble", 0, 0, "Really black", "Marble", VT(2.1,0.1,2.1))
  2534. LIDPART.CFrame = BASE.CFrame*CF(0,1,0)
  2535. LID.PrimaryPart = LIDPART
  2536. local WOOD = CreatePart(3, LID, "Neon", 0, 0, "Dark red", "Marble", VT(2.1,0.2,0.2))
  2537. WOOD.CFrame = LIDPART.CFrame*CF(0,0,-1)
  2538. local WOOD = CreatePart(3, LID, "Neon", 0, 0, "Dark red", "Marble", VT(2.1,0.2,0.2))
  2539. WOOD.CFrame = LIDPART.CFrame*CF(0,0,1)
  2540. local WOOD = CreatePart(3, LID, "Neon", 0, 0, "Dark red", "Marble", VT(0.2,0.2,2.1))
  2541. WOOD.CFrame = LIDPART.CFrame*CF(1,0,0)
  2542. local WOOD = CreatePart(3, LID, "Neon", 0, 0, "Dark red", "Marble", VT(0.2,0.2,2.1))
  2543. WOOD.CFrame = LIDPART.CFrame*CF(-1,0,0)
  2544. local DECAL = IT("Decal",LIDPART)
  2545. DECAL.Face = "Top"
  2546. DECAL.Texture = "http://www.roblox.com/asset/?id=1501226061"
  2547. DECAL.Color3 = C3(0,0,0)
  2548. --BUILDING THE BOX--
  2549. coroutine.resume(coroutine.create(function()
  2550. repeat
  2551. Swait()
  2552. PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * ANGLES(RAD(0), RAD(2.45), RAD(0)))
  2553. until BOXSPIN == false
  2554. end))
  2555. for i = 1, 25 do
  2556. Swait()
  2557. PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,1.5-(i/12.5),0))
  2558. end
  2559. wait(0.5)
  2560. BOXSPIN = false
  2561. CONSTRUCTING = false
  2562. coroutine.resume(coroutine.create(function()
  2563. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = LIDPART.Size, Size2 = VT(3,0,3)*4, Transparency = 0, Transparency2 = 1, CFrame = LIDPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 168586586, SoundPitch = 1.3, SoundVolume = 6})
  2564. --[[for i = 1, 45 do
  2565. Swait()
  2566. LID:SetPrimaryPartCFrame(LIDPART.CFrame * CF(0,1.5-(i/12.5),0.5) * ANGLES(RAD(0.7), RAD(0), RAD(0)))
  2567. end-
  2568. LID:remove()]]--
  2569. for _, c in pairs(LID:GetChildren()) do
  2570. if c.ClassName == "Part" then
  2571. c.Anchored = false
  2572. c.CanCollide = true
  2573. if c ~= LIDPART then
  2574. weldBetween(LIDPART,c)
  2575. end
  2576. end
  2577. end
  2578. LIDPART.Velocity = CF(LIDPART.Position,LIDPART.CFrame*CF(15,25,0).p).lookVector*65
  2579. Debris:AddItem(LID,15)
  2580. wait(0.5)
  2581. local RANDOMEFFECT = MRANDOM(1,4)
  2582. if RANDOMEFFECT == 1 then
  2583. for i = 1, 45 do
  2584. wait((2-(i/15))/15)
  2585. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(0,MRANDOM(12,15),0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,MRANDOM(1,5)), MoveToPos = BASE.Position, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.8, SoundVolume = 6})
  2586. end
  2587. wait(1)
  2588. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(70,70,70)*12, Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 165970126, SoundPitch = 0.75, SoundVolume = 6})
  2589. WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(60,6,60)*10, Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 469345336, SoundPitch = 0.75, SoundVolume = 6})
  2590. WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(60,6,60)*9, Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
  2591. for i = 1, 5 do
  2592. WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(60,6,60)*12, Transparency = 0.5, Transparency2 = 1, CFrame = BASE.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  2593. end
  2594. ApplyAoE(BASE.Position,50,1,200,375,false)
  2595. ApplyAoE(BASE.Position,250,35,75,475,false)
  2596. elseif RANDOMEFFECT == 2 then
  2597. local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Really blue", "Field", VT(0.3,0.3,0.3))
  2598. FIELD.CFrame = BASE.CFrame
  2599. MakeForm(FIELD,"Ball")
  2600. for i = 1, 50 do
  2601. Swait()
  2602. FIELD.Size = FIELD.Size + VT(1,1,1)
  2603. FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
  2604. end
  2605. wait(0.2)
  2606. local LOOP = CreateSound(1393698948, FIELD, 0, 1.2, true)
  2607. coroutine.resume(coroutine.create(function()
  2608. for i = 1, 75 do
  2609. Swait()
  2610. LOOP.Volume = LOOP.Volume + 10/75
  2611. LOOP.Parent = FIELD
  2612. local CHILDREN = workspace:GetDescendants()
  2613. for index, CHILD in pairs(CHILDREN) do
  2614. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  2615. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2616. if HUM then
  2617. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2618. if TORSO then
  2619. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
  2620. HUM.Health = HUM.Health - 0.1
  2621. TORSO.Velocity = VT(0,5,0)
  2622. HUM.PlatformStand = true
  2623. if TORSO.RotVelocity.Magnitude < 15 then
  2624. TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
  2625. end
  2626. end
  2627. end
  2628. end
  2629. end
  2630. end
  2631. FIELD.Size = FIELD.Size + VT(6,6,6)
  2632. FIELD.Transparency = FIELD.Transparency + 0.8/75
  2633. end
  2634. for i = 1, 500 do
  2635. Swait()
  2636. LOOP.Parent = FIELD
  2637. local CHILDREN = workspace:GetDescendants()
  2638. for index, CHILD in pairs(CHILDREN) do
  2639. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  2640. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2641. if HUM then
  2642. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2643. if TORSO then
  2644. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
  2645. TORSO.Velocity = VT(0,5,0)
  2646. HUM.Health = HUM.Health - 0.1
  2647. HUM.PlatformStand = true
  2648. if TORSO.RotVelocity.Magnitude < 15 then
  2649. TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
  2650. end
  2651. end
  2652. end
  2653. end
  2654. end
  2655. end
  2656. end
  2657. for i = 1, 25 do
  2658. Swait()
  2659. LOOP.Volume = LOOP.Volume + 10/25
  2660. LOOP.Parent = FIELD
  2661. local CHILDREN = workspace:GetDescendants()
  2662. for index, CHILD in pairs(CHILDREN) do
  2663. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  2664. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2665. if HUM then
  2666. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2667. if TORSO then
  2668. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then
  2669. TORSO.Velocity = VT(0,5,0)
  2670. HUM.Health = HUM.Health - 0.1
  2671. HUM.PlatformStand = false
  2672. if TORSO.RotVelocity.Magnitude < 15 then
  2673. TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
  2674. end
  2675. end
  2676. end
  2677. end
  2678. end
  2679. end
  2680. FIELD.Size = FIELD.Size - VT(9,9,9)
  2681. FIELD.Transparency = FIELD.Transparency + 0.2/25
  2682. end
  2683. FIELD:remove()
  2684. end))
  2685. elseif RANDOMEFFECT == 3 then
  2686. for i = 1, 20 do
  2687. wait(0.15)
  2688. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(3,8,3), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(0,0.3,0), MoveToPos = BASE.Position+VT(0,6,0), RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 90655239, SoundPitch = 0.8, SoundVolume = 6})
  2689. coroutine.resume(coroutine.create(function()
  2690. local MINION = CLONE:Clone()
  2691. MINION.Parent = Effects
  2692. MINION.Name = "Shadow"
  2693. MINION.HumanoidRootPart.CFrame = BASE.CFrame*CF(0,5,0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))
  2694. MINION.HumanoidRootPart.Velocity = CF(MINION.HumanoidRootPart.Position,MINION.HumanoidRootPart.CFrame*CF(0,8,-15).p).lookVector*MRANDOM(55,100)
  2695. for _, c in pairs(MINION:GetChildren()) do
  2696. if c.ClassName == "Part" then
  2697. c.Material = "Neon"
  2698. c.Color = C3(0,0,0)
  2699. c.Transparency = 0.25
  2700. if c.Name == "Head" then
  2701. c:ClearAllChildren()
  2702. local MSH = IT("BlockMesh",c)
  2703. MSH.Scale = VT(0.5,1,1)
  2704. end
  2705. end
  2706. end
  2707. local TORSO = MINION.Torso
  2708. local HUMAN = MINION.Humanoid
  2709. HUMAN.WalkSpeed = 75
  2710. HUMAN.MaxHealth = math.huge
  2711. HUMAN.Health = math.huge
  2712. HUMAN.DisplayDistanceType = "None"
  2713. HUMAN.Died:connect(function()
  2714. MINION:remove()
  2715. --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 3, 0.5, false)
  2716. end)
  2717. wait(1)
  2718. local findNearestTorso = function(POS)
  2719. local list = game.Workspace:GetDescendants()
  2720. local torso = nil
  2721. local dist = 500
  2722. local temp = nil
  2723. local human = nil
  2724. local temp2 = nil
  2725. for x = 1, #list do
  2726. temp2 = list[x]
  2727. if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Parent ~= Effects) then
  2728. temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
  2729. human = temp2:findFirstChildOfClass("Humanoid")
  2730. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  2731. if (temp.Position - POS).magnitude < dist then
  2732. torso = temp
  2733. dist = (temp.Position - POS).magnitude
  2734. end
  2735. end
  2736. end
  2737. end
  2738. return torso, dist
  2739. end
  2740. for i = 1, 40 do
  2741. if HUMAN.Health == 0 then
  2742. break
  2743. end
  2744. wait(0.3)
  2745. local target,dist= findNearestTorso(TORSO.Position)
  2746. if target then
  2747. HUMAN:MoveTo(target.Position)
  2748. if dist < 25 then
  2749. CreateSound(348663022, TORSO, 10, 1, true)
  2750. wait(2)
  2751. --local ANIM = HUMAN:LoadAnimation(ATANIM)
  2752. --ANIM:Play()
  2753. --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 1, 1, false)
  2754. ApplyAoE(TORSO.Position,10,0,0,85,true)
  2755. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(25,25,25), Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 201858087, SoundPitch = 0.8, SoundVolume = 10})
  2756. for i = 1, 5 do
  2757. WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(15,1,15), Transparency = 0.5, Transparency2 = 1, CFrame = TORSO.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-15,15)/7.5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  2758. end
  2759. break
  2760. end
  2761. end
  2762. end
  2763. MINION:remove()
  2764. end))
  2765. end
  2766. elseif RANDOMEFFECT == 4 then
  2767. local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Field", VT(0.3,0.3,0.3))
  2768. FIELD.Color = C3(0,0,0)
  2769. FIELD.CFrame = BASE.CFrame
  2770. MakeForm(FIELD,"Ball")
  2771. FIELD.CanCollide = true
  2772. for i = 1, 50 do
  2773. Swait()
  2774. FIELD.Size = FIELD.Size + VT(1,1,1)
  2775. FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
  2776. end
  2777. wait(0.2)
  2778. local LOOP = CreateSound(487214658, FIELD, 0, 1, true)
  2779. coroutine.resume(coroutine.create(function()
  2780. local E = 0
  2781. for i = 1, 75 do
  2782. E = E + 1
  2783. Swait()
  2784. if E >= 60 then
  2785. E = 0
  2786. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*80, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6})
  2787. end
  2788. LOOP.Volume = LOOP.Volume + 10/75
  2789. LOOP.Parent = FIELD
  2790. local CHILDREN = workspace:GetDescendants()
  2791. for index, CHILD in pairs(CHILDREN) do
  2792. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  2793. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2794. if HUM then
  2795. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2796. if TORSO then
  2797. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then
  2798. for _, c in pairs(CHILD:GetChildren()) do
  2799. if c:IsA("BasePart") then
  2800. local bv = Instance.new("BodyVelocity")
  2801. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2802. bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50
  2803. bv.Parent = c
  2804. Debris:AddItem(bv,0.05)
  2805. end
  2806. end
  2807. HUM.Health = HUM.Health - 0.3
  2808. end
  2809. end
  2810. end
  2811. end
  2812. end
  2813. FIELD.Size = FIELD.Size + VT(10,10,10)/5
  2814. end
  2815. for i = 1, 180 do
  2816. E = E + 1
  2817. Swait()
  2818. if E >= 60 then
  2819. E = 0
  2820. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*60, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6})
  2821. end
  2822. LOOP.Parent = FIELD
  2823. local CHILDREN = workspace:GetDescendants()
  2824. for index, CHILD in pairs(CHILDREN) do
  2825. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  2826. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2827. if HUM then
  2828. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2829. if TORSO then
  2830. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then
  2831. for _, c in pairs(CHILD:GetChildren()) do
  2832. if c:IsA("BasePart") then
  2833. local bv = Instance.new("BodyVelocity")
  2834. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2835. bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50
  2836. bv.Parent = c
  2837. Debris:AddItem(bv,0.05)
  2838. end
  2839. end
  2840. HUM.Health = HUM.Health - 0.3
  2841. end
  2842. end
  2843. end
  2844. end
  2845. end
  2846. end
  2847. ApplyAoE(FIELD.Position,40,100,20,400,false)
  2848. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = FIELD.Size, Size2 = VT(35,35,35), Transparency = 0, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 231917744, SoundPitch = 1, SoundVolume = 6})
  2849. for i = 1, 5 do
  2850. WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35), Transparency = 0.5, Transparency2 = 1, CFrame = FIELD.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  2851. end
  2852. FIELD:remove()
  2853. end))
  2854. elseif RANDOMEFFECT == 5 then
  2855. end
  2856. wait(0.5)
  2857. for i = 1, 25 do
  2858. Swait()
  2859. PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,-0.3,0))
  2860. end
  2861. PANDORASBOX:remove()
  2862. RINGSPIN = false
  2863. end))
  2864. ATTACK = false
  2865. Rooted = false
  2866. end
  2867. end
  2868.  
  2869. function Taunt()
  2870. ATTACK = true
  2871. local LAUGH = nil
  2872. coroutine.resume(coroutine.create(function()
  2873. repeat
  2874. Swait()
  2875. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  2876. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 1 / Animation_Speed)
  2877. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE, -0.5*SIZE) * ANGLES(RAD(170), RAD(-25), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2878. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2879. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2880. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2881. until LAUGH ~= nil
  2882. repeat
  2883. Swait()
  2884. LAUGH.Parent = Head
  2885. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0+(0.1*LAUGH.PlaybackLoudness/75) + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  2886. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE+(0.1*LAUGH.PlaybackLoudness/75)) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 1 / Animation_Speed)
  2887. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE+(0.1*LAUGH.PlaybackLoudness/75), -0.5*SIZE) * ANGLES(RAD(170), RAD(-25), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2888. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE+(0.1*LAUGH.PlaybackLoudness/75), 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2889. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2890. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2891. until LAUGH.Playing == false
  2892. ATTACK = false
  2893. end))
  2894. wait(0.1)
  2895. sick:Pause()
  2896. LAUGH = CreateSound(333446256, Head, 10, 1, false)
  2897. wait(1.5)
  2898. sick:Resume()
  2899. end
  2900.  
  2901. function Prison_Key()
  2902. if Mouse.Target ~= nil then
  2903. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2904. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  2905. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  2906. local GYRO = IT("BodyGyro",RootPart)
  2907. GYRO.D = 750
  2908. GYRO.P = 20000
  2909. GYRO.MaxTorque = VT(0,40000000,0)
  2910. local grav = Instance.new("BodyPosition",TORSO)
  2911. grav.D = 15
  2912. grav.P = 20000
  2913. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2914. grav.position = TORSO.Position
  2915. local GYRO2 = IT("BodyGyro",TORSO)
  2916. GYRO2.D = 750
  2917. GYRO2.P = 20000
  2918. GYRO2.MaxTorque = VT(0,40000000,0)
  2919. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  2920. grav.Name = "Jail"
  2921. local LOCKPARTS = {}
  2922. ATTACK = true
  2923. Rooted = false
  2924. local LOCK = IT("Model",Effects)
  2925. LOCK.Name = "Lock"
  2926. local LOCK2 = IT("Model",LOCK)
  2927. LOCK2.Name = "Metal"
  2928. --CREATE LOCK--
  2929. local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Really red", "Keylock", VT(3, 2.5, 1))
  2930. LOCK.PrimaryPart = BASE
  2931. BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)
  2932. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Really red", "Keylock", VT(3, 1, 3))
  2933. PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0))
  2934. MakeForm(PRT,"Cyl")
  2935. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Really black", "Hole", VT(1, 1, 1))
  2936. PRT.Color = C3(0,0,0)
  2937. PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0))
  2938. MakeForm(PRT,"Cyl")
  2939. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Really black", "Hole", VT(0.5, 1, 1))
  2940. PRT.Color = C3(0,0,0)
  2941. PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01)
  2942. for i = 1, 45 do
  2943. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Really black", "Keylock", VT(0.5, 0.5, 0.5))
  2944. PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0)
  2945. end
  2946. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Really black", "Keylock", VT(0.5, 0.5, 0.5))
  2947. PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)
  2948. LOCK2.PrimaryPart = PRT
  2949. ---------------
  2950. local CHILDREN = LOCK:GetDescendants()
  2951. for index, CHILD in pairs(CHILDREN) do
  2952. if CHILD:IsA("BasePart") then
  2953. CHILD.Transparency = 1
  2954. end
  2955. end
  2956. for i = 1, 75 do
  2957. LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4))
  2958. Swait()
  2959. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  2960. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  2961. local CHILDREN = LOCK:GetDescendants()
  2962. for index, CHILD in pairs(CHILDREN) do
  2963. if CHILD:IsA("BasePart") then
  2964. CHILD.Transparency = CHILD.Transparency - 1/75
  2965. end
  2966. end
  2967. end
  2968. HUM.DisplayDistanceType = "None"
  2969. local KEY = IT("Model",Effects)
  2970. KEY.Name = "Key"
  2971. --CREATE KEY--
  2972. local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Really red", "KeyBase", VT(0.1, 1, 0.1),false)
  2973. KEY.PrimaryPart = KBASE
  2974. KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0))
  2975. local WLD = weldBetween(RightArm,KBASE)
  2976. for i = 1, 45 do
  2977. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really red", "Key", VT(0.1, 0.1, 0.1),false)
  2978. PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0)
  2979. weldBetween(KBASE,PRT)
  2980. end
  2981. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really red", "Key", VT(0.3, 0.1, 0.1),false)
  2982. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0)
  2983. weldBetween(KBASE,PRT)
  2984. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really red", "Key", VT(0.3, 0.1, 0.1),false)
  2985. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0)
  2986. weldBetween(KBASE,PRT)
  2987. --------------
  2988. Rooted = true
  2989. Pose("Prepare key",1.5,1.2,false,GYRO,TORSO)
  2990. coroutine.resume(coroutine.create(function()
  2991. for i = 1, 10 do
  2992. Swait()
  2993. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  2994. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  2995. end
  2996. CreateSound(1149318312,BASE,5,1,false)
  2997. CreateSound(160772554,BASE,3,1,false)
  2998. LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0))
  2999. for i = 1, 4 do
  3000. WACKYEFFECT({Time = 35, EffectType = "Crystal", Size = VT(1,1,1), Size2 = VT(0,15,0), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(1,1.45,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3001. end
  3002. WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1)*25, Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  3003. wait(1)
  3004. TORSO.Parent.Parent = LOCK
  3005. for i = 1, 75 do
  3006. Swait()
  3007. local CHILDREN = KEY:GetDescendants()
  3008. for index, CHILD in pairs(CHILDREN) do
  3009. if CHILD:IsA("BasePart") then
  3010. CHILD.Transparency = i/25
  3011. end
  3012. end
  3013. local CHILDREN = LOCK:GetDescendants()
  3014. for index, CHILD in pairs(CHILDREN) do
  3015. if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
  3016. CHILD.Transparency = CHILD.Transparency + 1/75
  3017. elseif CHILD.ClassName == "Decal" then
  3018. CHILD.Transparency = CHILD.Transparency + 1/75
  3019. end
  3020. end
  3021. end
  3022. TORSO.Parent:ClearAllChildren()
  3023. KEY:remove()
  3024. LOCK:remove()
  3025. end))
  3026. Pose("Turn key",0.8,1.2,false,GYRO,TORSO)
  3027. GYRO:remove()
  3028. ATTACK = false
  3029. Rooted = false
  3030. end
  3031. end
  3032. end
  3033.  
  3034. function RavagingOverthrower()
  3035. chatfunc("Ima show u what is like to burn..")
  3036. ATTACK = true
  3037. Rooted = true
  3038. for i=0, 1, 0.1 / Animation_Speed do
  3039. Swait()
  3040. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE + 0.05 * COS(SINE / 12) * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3041. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1.3 * SIZE) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3042. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(100), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  3043. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(30), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  3044. RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE, -0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3045. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE, -0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3046. end
  3047. CreateSound("348663022", Torso, 5, 1)
  3048. local StartPos = RootPart.CFrame * CF(0,15,0).p
  3049. for i = 1, 5 do
  3050. MagicSphere2(25,25,CF(StartPos),"Bright red")
  3051. Swait(15)
  3052. end
  3053. local soundeffect = IT("Sound",Torso)
  3054. soundeffect.SoundId = "rbxassetid://487186990"
  3055. soundeffect.Looped = true
  3056. soundeffect.Volume = 3
  3057. soundeffect.Playing = true
  3058. repeat
  3059. turnto(Mouse.Hit.p)
  3060. MagicSphere2(25,25,CF(StartPos),"Bright red")
  3061. MagicSphere(25/10,25,CF(StartPos),"Bright red")
  3062. local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Mouse.Hit.p, 750, Character, false)
  3063. local distance = (StartPos - RayPos).magnitude
  3064. local RayBeam = IT("Part",Effects)
  3065. RayBeam.Material = "Neon"
  3066. RayBeam.Anchored = true
  3067. RayBeam.BrickColor = BRICKC"Bright red"
  3068. local mesh = IT("SpecialMesh",RayBeam)
  3069. mesh.MeshType = "Cylinder"
  3070. RayBeam.Size = Vector3.new(distance+10, 5, 5)
  3071. RayBeam.CFrame = CFrame.new(StartPos, RayPos) * CFrame.new(0, 0, -distance/2) * ANGLES(RAD(0),RAD(90),RAD(0))
  3072. MagicSphere(15,5,CF(RayPos),"Bright red")
  3073. killnearest(RayPos,15,100)
  3074. for i = 1, 3 do
  3075. CreateSwirl(0,25,true,-0.2,5,CF(RayPos) * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),"Really black")
  3076. end
  3077. Swait()
  3078. if KEYHOLD == false then
  3079. coroutine.resume(coroutine.create(function()
  3080. for i = 1, 5 do
  3081. RayBeam.Transparency = RayBeam.Transparency + 1/5
  3082. Swait()
  3083. end
  3084. RayBeam:remove()
  3085. end))
  3086. else
  3087. RayBeam:remove()
  3088. end
  3089. until KEYHOLD == false
  3090. soundeffect:remove()
  3091. ATTACK = false
  3092. Rooted = false
  3093. end
  3094.  
  3095. function Buzzsaw()
  3096. ATTACK = true
  3097. Rooted = false
  3098. local ARMSPEED = 0.1
  3099. local TARGET = nil
  3100. local ROOT = nil
  3101. local HUMAN = nil
  3102. local DIST = 4
  3103. local SAWBLADE = CreatePart(3, Weapon, "Glass", 0, 0.5, "Really red", "Part", VT(0,0,0),false)
  3104. local WELD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, SAWBLADE, CF(0,-1,0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
  3105. local BLADE = true
  3106. CreateMesh("SpecialMesh", SAWBLADE, "FileMesh", "74322089", "", VT(2,2,1), VT(0,0,0))
  3107. coroutine.resume(coroutine.create(function()
  3108. repeat
  3109. Swait()
  3110. WELD.C1 = WELD.C1 * ANGLES(RAD(0), RAD(0), RAD(25))
  3111. until BLADE == false
  3112. SAWBLADE:remove()
  3113. end))
  3114. CreateSound(1165167936, SAWBLADE, 2, 1, true)
  3115. for i=0, 1, 0.1 / Animation_Speed do
  3116. Swait()
  3117. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  3118. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.6 + ((0) - 0)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
  3119. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.9, -0.5) * ANGLES(RAD(175), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3120. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.9, 0.7, 0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3121. RightHip.C0 = Clerp(RightHip.C0, CF(1.5, -1.4, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  3122. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.5, -1.4, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  3123. end
  3124. for i=0, 2, 0.1 / Animation_Speed do
  3125. Swait()
  3126. local CHILDREN = workspace:GetDescendants()
  3127. for index, CHILD in pairs(CHILDREN) do
  3128. if CHILD.ClassName == "Model" and CHILD ~= Character then
  3129. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  3130. if HUM then
  3131. local TORSO = CHILD:FindFirstChild("HumanoidRootPart") or CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  3132. if TORSO and HUM.Health > 0 then
  3133. if (TORSO.Position - RightArm.Position).Magnitude <= DIST then
  3134. DIST = (TORSO.Position - RightArm.Position).Magnitude
  3135. ROOT = TORSO
  3136. HUMAN = HUM
  3137. TARGET = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  3138. end
  3139. end
  3140. end
  3141. end
  3142. end
  3143. if ROOT then
  3144. break
  3145. end
  3146. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  3147. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.6 + ((0) - 0)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
  3148. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.9, -0.5) * ANGLES(RAD(15), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(-45), RAD(0)) * RIGHTSHOULDERC0, ARMSPEED / Animation_Speed)
  3149. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.9, 0.7, 0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3150. RightHip.C0 = Clerp(RightHip.C0, CF(1.5, -1.4, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  3151. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.5, -1.4, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  3152. end
  3153. if ROOT then
  3154. ARMSPEED = 0.01
  3155. Rooted = true
  3156. RootPart.CFrame = ROOT.CFrame*CF(0,0,2.5)
  3157. repeat
  3158. HUMAN.Health = HUMAN.Health - 1.2
  3159. HUMAN.RootPart.CFrame = ROOT.CFrame*CF(0,0.02,0)
  3160. Swait()
  3161. ROOT.Anchored = true
  3162. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(1, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  3163. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.6 + ((0) - 0)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
  3164. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, -0.4, 0) * ANGLES(RAD(15), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(-45), RAD(0)) * RIGHTSHOULDERC0, ARMSPEED / Animation_Speed)
  3165. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.9, 0.7, 0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3166. RightHip.C0 = Clerp(RightHip.C0, CF(1.5, -1.4, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  3167. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.5, -1.4, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  3168. until RightArm.Position.Y < Torso.Position.Y-0.15 or HUMAN.Health == 0
  3169. ROOT.Anchored = false
  3170. if HUMAN.Health == 0 then
  3171. if ROOT.Name ~= "Torso" then
  3172. ROOT:remove()
  3173. end
  3174. if TARGET.Name == "Torso" then
  3175. Ragdoll(HUMAN.Parent,Torso,true)
  3176. elseif TARGET.Name == "UpperTorso" then
  3177. R15Ragdoll(HUMAN.Parent,true)
  3178. end
  3179. end
  3180. end
  3181. BLADE = false
  3182. ATTACK = false
  3183. Rooted = false
  3184. end
  3185.  
  3186. --//=================================\\
  3187. --|| ASSIGN THINGS TO KEYS
  3188. --\\=================================//
  3189.  
  3190. function MouseDown(Mouse)
  3191. HOLD = true
  3192. if ATTACK == false then
  3193. end
  3194. end
  3195.  
  3196. function MouseUp(Mouse)
  3197. HOLD = false
  3198. end
  3199.  
  3200. function KeyDown(Key)
  3201. KEYHOLD = true
  3202. if Key == "z" and ATTACK == false then
  3203. MagicMissiles()
  3204. end
  3205.  
  3206. if Key == "b" and ATTACK == false then
  3207. TimesUp()
  3208. end
  3209.  
  3210. if Key == "c" and ATTACK == false then
  3211. ChainPunch()
  3212. end
  3213.  
  3214. if Key == "x" and ATTACK == false then
  3215. WarpMeteor()
  3216. end
  3217.  
  3218. if Key == "v" and ATTACK == false then
  3219. PandorasBox()
  3220. end
  3221.  
  3222. if Key == "t" and ATTACK == false then
  3223. Taunt()
  3224. end
  3225.  
  3226. if Key == "q" and ATTACK == false then
  3227. Time()
  3228. end
  3229.  
  3230. if Key == "e" and ATTACK == false then
  3231. RavagingOverthrower()
  3232. end
  3233.  
  3234. if Key == "r" and ATTACK == false then
  3235. Prison_Key()
  3236. end
  3237.  
  3238. if Key == "f" and ATTACK == false then
  3239. Buzzsaw()
  3240. end
  3241. end
  3242.  
  3243. function KeyUp(Key)
  3244. KEYHOLD = false
  3245. end
  3246.  
  3247. Mouse.Button1Down:connect(function(NEWKEY)
  3248. MouseDown(NEWKEY)
  3249. end)
  3250. Mouse.Button1Up:connect(function(NEWKEY)
  3251. MouseUp(NEWKEY)
  3252. end)
  3253. Mouse.KeyDown:connect(function(NEWKEY)
  3254. KeyDown(NEWKEY)
  3255. end)
  3256. Mouse.KeyUp:connect(function(NEWKEY)
  3257. KeyUp(NEWKEY)
  3258. end)
  3259.  
  3260. --//=================================\\
  3261. --\\=================================//
  3262.  
  3263.  
  3264. function unanchor()
  3265. if UNANCHOR == true then
  3266. RootPart.Anchored = false
  3267. end
  3268. g = Character:GetChildren()
  3269. for i = 1, #g do
  3270. if g[i].ClassName == "Part" and g[i] ~= RootPart then
  3271. g[i].Anchored = false
  3272. end
  3273. end
  3274. g = Weapon:GetChildren()
  3275. for i = 1, #g do
  3276. if g[i].ClassName == "Part" then
  3277. g[i].Anchored = false
  3278. end
  3279. end
  3280. end
  3281.  
  3282.  
  3283. --//=================================\\
  3284. --|| WRAP THE WHOLE SCRIPT UP
  3285. --\\=================================//
  3286.  
  3287. Humanoid.Changed:connect(function(Jump)
  3288. if Jump == "Jump" and (Disable_Jump == true) then
  3289. Humanoid.Jump = false
  3290. end
  3291. end)
  3292.  
  3293. while true do
  3294. Swait()
  3295. refit()
  3296. script.Parent = WEAPONGUI
  3297. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  3298. v:Stop();
  3299. end
  3300. ANIMATE.Parent = nil
  3301. SINE = SINE + CHANGE*1.5
  3302. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  3303. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  3304. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
  3305. local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16)
  3306. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  3307. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3308. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3309. RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 0.875*SIZE - 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3310. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 0.875*SIZE + 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(-25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3311. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  3312. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3313. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  3314. RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  3315. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  3316. end
  3317. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  3318. ANIM = "Jump"
  3319. if ATTACK == false then
  3320. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  3321. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.3*SIZE) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  3322. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3323. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3324. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed)
  3325. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 1 / Animation_Speed)
  3326. end
  3327. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  3328. ANIM = "Fall"
  3329. if ATTACK == false then
  3330. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  3331. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.3*SIZE) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  3332. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3333. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3334. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed)
  3335. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 1 / Animation_Speed)
  3336. end
  3337. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  3338. ANIM = "Idle"
  3339. if ATTACK == false then
  3340. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(-17.58)), 1 / Animation_Speed)
  3341. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.2*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(15 - 3)), 1 / Animation_Speed)
  3342. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.7*SIZE, -0.5*SIZE) * ANGLES(RAD(0.98), RAD(-119.59 + 2.5 * SIN(SINE / 25)), RAD(-175.39 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3343. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.3*SIZE) * ANGLES(RAD(9.71), RAD(3.14 - -2.5 * SIN(SINE / 12)), RAD(0.2 - -2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3344. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3345. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3346. end
  3347. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  3348. ANIM = "Walk"
  3349. if ATTACK == false then
  3350. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
  3351. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.3*SIZE) - 1)) * ANGLES(RAD(15 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 1/ Animation_Speed)
  3352. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*SIZE, 0.5*SIZE, -0.67*SIZE) * ANGLES(RAD(13.19), RAD(-20.15 + 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(-94.18 + 2.5 * SIN(SINE / WALKSPEEDVALUE))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3353. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1*SIZE, 0.5*SIZE, -0.5*SIZE) * ANGLES(RAD(-1.92), RAD(5.57 - 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(84.15 - 2.5 * SIN(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3354. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE , -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  3355. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  3356. end
  3357. end
  3358. unanchor()
  3359. Humanoid.MaxHealth = "inf"
  3360. Humanoid.Health = "inf"
  3361. if Rooted == false then
  3362. Disable_Jump = false
  3363. Humanoid.WalkSpeed = Speed
  3364. elseif Rooted == true then
  3365. Disable_Jump = true
  3366. Humanoid.WalkSpeed = 0
  3367. end
  3368. for _, c in pairs(Character:GetChildren()) do
  3369. if c.ClassName == "Part" and c.Name ~= "Detail" then
  3370. c.Material = "Fabric"
  3371. if c:FindFirstChildOfClass("ParticleEmitter") then
  3372. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  3373. end
  3374. if c ~= Head then
  3375. c.Color = C3(0,0,0)
  3376. else
  3377. c.Color = C3(0,0,0)
  3378. end
  3379. if c == Head then
  3380. if c:FindFirstChild("face") then
  3381. c.face:remove()
  3382. end
  3383. end
  3384. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  3385. c:remove()
  3386. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  3387. c:remove()
  3388. end
  3389. end
  3390. sick.SoundId = "rbxassetid://"..SONG
  3391. sick.Looped = true
  3392. sick.Pitch = 1
  3393. sick.Volume = 2
  3394. sick.Parent = Torso
  3395. sick:Resume()
  3396. --sick.Playing = false
  3397. Humanoid.Name = "Humanoid = "..Player.Name
  3398. end
  3399.  
  3400. --//=================================\\
  3401. --\\=================================//
  3402.  
  3403.  
  3404.  
  3405.  
  3406.  
  3407. --//====================================================\\--
  3408. --|| END OF SCRIPT
  3409. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement