masterofdesires1

Untitled

Aug 26th, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 143.13 KB | None | 0 0
  1. --//=================================================================\\--
  2. --|| By Absyltrax,Frosty V2,You will never have it skid.
  3. --\\=================================================================//--
  4.  
  5. wait(0.2)
  6.  
  7. Player = game:GetService("Players").LocalPlayer
  8. PlayerGui = Player.PlayerGui
  9. Cam = workspace.CurrentCamera
  10. Backpack = Player.Backpack
  11. Character = Player.Character
  12. Humanoid = Character.Humanoid
  13. Mouse = Player:GetMouse()
  14. RootPart = Character["HumanoidRootPart"]
  15. Torso = Character["Torso"]
  16. Head = Character["Head"]
  17. RightArm = Character["Right Arm"]
  18. LeftArm = Character["Left Arm"]
  19. RightLeg = Character["Right Leg"]
  20. LeftLeg = Character["Left Leg"]
  21. RootJoint = RootPart["RootJoint"]
  22. Neck = Torso["Neck"]
  23. RightShoulder = Torso["Right Shoulder"]
  24. LeftShoulder = Torso["Left Shoulder"]
  25. RightHip = Torso["Right Hip"]
  26. LeftHip = Torso["Left Hip"]
  27. SIZE = 1
  28.  
  29. Player_Size = 1
  30. Animation_Speed = 3
  31. Frame_Speed = 0.016666666666666666
  32. local Speed = 16
  33. local Effects2 = {}
  34. local weldBetween = function(a, b)
  35. local weldd = Instance.new("ManualWeld")
  36. weldd.Part0 = a
  37. weldd.Part1 = b
  38. weldd.C0 = CFrame.new()
  39. weldd.C1 = b.CFrame:inverse() * a.CFrame
  40. weldd.Parent = a
  41. return weldd
  42. end
  43.  
  44. IT = Instance.new
  45. CF = CFrame.new
  46. VT = Vector3.new
  47. RAD = math.rad
  48. C3 = Color3.new
  49. UD2 = UDim2.new
  50. BRICKC = BrickColor.new
  51. ANGLES = CFrame.Angles
  52. EULER = CFrame.fromEulerAnglesXYZ
  53. COS = math.cos
  54. ACOS = math.acos
  55. SIN = math.sin
  56. ASIN = math.asin
  57. ABS = math.abs
  58. MRANDOM = math.random
  59. FLOOR = math.floor
  60.  
  61. --//=================================\\
  62. --|| USEFUL VALUES
  63. --\\=================================//
  64.  
  65. Animation_Speed = 3
  66. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  67. local Speed = 35
  68. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  69. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  70. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  71. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  72. local DAMAGEMULTIPLIER = 1
  73. local ANIM = "Idle"
  74. local ATTACK = false
  75. local EQUIPPED = false
  76. local HOLD = false
  77. local COMBO = 1
  78. local Rooted = false
  79. local SINE = 0
  80. local KEYHOLD = false
  81. local CHANGE = 2 / Animation_Speed
  82. local WALKINGANIM = false
  83. local VALUE1 = false
  84. local VALUE2 = false
  85. local ROBLOXIDLEANIMATION = IT("Animation")
  86. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  87. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  88. --ROBLOXIDLEANIMATION.Parent = Humanoid
  89. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  90. WEAPONGUI.Name = "Weapon GUI"
  91. local Effects = IT("Folder", Character)
  92. Effects.Name = "Effects"
  93. local ANIMATOR = Humanoid.Animator
  94. local ANIMATE = Character.Animate
  95. local UNANCHOR = true
  96. local GHOSTS = {}
  97. ANIMATE:remove()
  98. local LAUGHS = {834001699,834001752,834001797,834001828}
  99. Character.Archivable = true
  100. script.Parent = WEAPONGUI
  101. local GHOSTBASE = Character:Clone()
  102. GHOSTBASE.Parent = nil
  103. GHOSTBASE.Name = "Shingo"
  104. for _, c in pairs(GHOSTBASE:GetChildren()) do
  105. if c.ClassName == "Part" and c.Transparency < 1 then
  106. c.Color = C3(0,0,0)
  107. if c.ClassName == "Accessory" or c.ClassName == "Hat" or c.ClassName == "CharacterMesh" or c.ClassName == "Shirt" or c.ClassName == "Pants" then
  108. c:remove()
  109. end
  110. end
  111. end
  112. local sick = Instance.new("Sound",Torso)
  113. sick.SoundId = "rbxassetid://427649630"
  114. sick.Looped = true
  115. sick.Pitch = 1.2
  116. sick.Volume = 5
  117. sick:Play()
  118. local Effects = IT("Folder", Character)
  119. Effects.Name = "Effects"
  120. Character.Archivable = false
  121.  
  122. --//=================================\\
  123. --\\=================================//
  124.  
  125. local Player = game:service'Players'.LocalPlayer
  126. repeat wait() until Player.Character
  127. local Character = Player.Character
  128. local Char, Plr = Character, Player
  129. local Mouse = Player:GetMouse()
  130.  
  131.  
  132.  
  133. local Char = Plr.Character
  134. local Hum = Char:FindFirstChildOfClass'Humanoid'
  135. local RArm = Char["Right Arm"]
  136. local LArm = Char["Left Arm"]
  137. local RLeg = Char["Right Leg"]
  138. local LLeg = Char["Left Leg"]
  139. local Root = Char:FindFirstChild'HumanoidRootPart'
  140. local Torso = Char.Torso
  141. local Head = Char.Head
  142.  
  143. Player = game.Players.LocalPlayer
  144. Character = Player.Character
  145. local txt = Instance.new("BillboardGui", Character)
  146. txt.Adornee = Character.Head
  147. txt.Name = "_status"
  148. txt.Size = UDim2.new(2, 0, 1.2, 0)
  149. txt.StudsOffset = Vector3.new(-9, 8, 0)
  150. local text = Instance.new("TextLabel", txt)
  151. text.Size = UDim2.new(10, 0, 7, 0)
  152. text.FontSize = "Size24"
  153. text.TextScaled = true
  154. text.TextTransparency = 0
  155. text.BackgroundTransparency = 1
  156. text.TextTransparency = 0
  157. text.TextStrokeTransparency = 0
  158. text.Font = "SciFi"
  159. text.TextStrokeColor3 = Color3.new(170,0,0)
  160. text.Text = ""
  161.  
  162.  
  163.  
  164. local face = Head:FindFirstChild'face'
  165. if(not face)then
  166. NewInstance("Decal",Head,{Name='face',Face=Enum.NormalId.Front,Texture="rbxassetid://1281412824"})
  167. else
  168. face.Texture = "rbxassetid://1281412824"
  169. end
  170.  
  171. --//=================================\\
  172. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  173. --\\=================================//
  174.  
  175. ArtificialHB = Instance.new("BindableEvent", script)
  176. ArtificialHB.Name = "ArtificialHB"
  177.  
  178. script:WaitForChild("ArtificialHB")
  179.  
  180. frame = Frame_Speed
  181. tf = 0
  182. allowframeloss = false
  183. tossremainder = false
  184. lastframe = tick()
  185. script.ArtificialHB:Fire()
  186.  
  187. game:GetService("RunService").Heartbeat:connect(function(s, p)
  188. tf = tf + s
  189. if tf >= frame then
  190. if allowframeloss then
  191. script.ArtificialHB:Fire()
  192. lastframe = tick()
  193. else
  194. for i = 1, math.floor(tf / frame) do
  195. script.ArtificialHB:Fire()
  196. end
  197. lastframe = tick()
  198. end
  199. if tossremainder then
  200. tf = 0
  201. else
  202. tf = tf - frame * math.floor(tf / frame)
  203. end
  204. end
  205. end)
  206.  
  207. --//=================================\\
  208. --\\=================================//
  209. Player_Name = game.Players.LocalPlayer.Name
  210. Player = game.Players.LocalPlayer
  211. Character = Player.Character
  212. local txt = Instance.new("BillboardGui", Character)
  213. txt.Adornee = Character.Head
  214. txt.Name = "_status"
  215. txt.Size = UDim2.new(2, 0, 1.2, 0)
  216. txt.StudsOffset = Vector3.new(-9, 8, 0)
  217. local text = Instance.new("TextLabel", txt)
  218. text.Size = UDim2.new(10, 0, 7, 0)
  219. text.FontSize = "Size24"
  220. text.TextScaled = true
  221. text.TextTransparency = 0
  222. text.BackgroundTransparency = 1
  223. text.TextTransparency = 0
  224. text.TextStrokeTransparency = 0
  225. text.Font = "Antique"
  226. text.TextStrokeColor3 = BrickColor.new("Magenta").Color
  227. text.Text = Player_Name.. " The True Frosty"
  228.  
  229. Player.Chatted:connect(chat)
  230. --//=================================\\
  231. --|| SOME FUNCTIONS
  232. --\\=================================//
  233.  
  234. function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW)
  235. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
  236. wave.Color = COLOR
  237. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0, 0, 0))
  238. wave.CFrame = CFRAME
  239. coroutine.resume(coroutine.create(function(PART)
  240. for i = 1, WAIT do
  241. Swait()
  242. mesh.Scale = mesh.Scale + GROW
  243. wave.Transparency = wave.Transparency + 1 / WAIT
  244. if wave.Transparency > 0.99 then
  245. wave:remove()
  246. end
  247. end
  248. end))
  249. end
  250. function Slice(KIND, SIZE, WAIT, CFRAME, COLOR, GROW)
  251. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
  252. local mesh
  253. if KIND == "Base" then
  254. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0, SIZE / 10, SIZE / 10), VT(0, 0, 0))
  255. elseif KIND == "Thin" then
  256. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
  257. elseif KIND == "Round" then
  258. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
  259. end
  260. wave.CFrame = CFRAME
  261. coroutine.resume(coroutine.create(function(PART)
  262. for i = 1, WAIT do
  263. Swait()
  264. mesh.Scale = mesh.Scale + GROW / 10
  265. wave.Transparency = wave.Transparency + 0.5 / WAIT
  266. if wave.Transparency > 0.99 then
  267. wave:remove()
  268. end
  269. end
  270. end))
  271. end
  272.  
  273. function FireArc(Part, ToLocation, AmountOfTime, Height, DoesCourontine)
  274. if DoesCourontine == false then
  275. local Direction = CF(Part.Position, ToLocation)
  276. local Distance = (Part.Position - ToLocation).magnitude
  277. for i = 1, AmountOfTime do
  278. Swait()
  279. Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime)
  280. Direction = Part.CFrame
  281. end
  282. Part:remove()
  283. elseif DoesCourontine == true then
  284. coroutine.resume(coroutine.create(function()
  285. local Direction = CF(Part.Position, ToLocation)
  286. local Distance = (Part.Position - ToLocation).magnitude
  287. for i = 1, AmountOfTime do
  288. Swait()
  289. Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime)
  290. Direction = Part.CFrame
  291. end
  292. Part:remove()
  293. end))
  294. end
  295. end
  296.  
  297.  
  298. function Blizzard()
  299. local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character)
  300. if HITFLOOR ~= nil then
  301. ATTACK = true
  302. Rooted = true
  303. local GYRO = IT("BodyGyro", RootPart)
  304. GYRO.D = 100
  305. GYRO.P = 2000
  306. GYRO.MaxTorque = VT(0, 4000000, 0)
  307. GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p)
  308. for i = 0, 3.5, 0.1 / Animation_Speed do
  309. Swait()
  310. MagicSphere(VT(0, 0, 0), 15, CF(RightArm.CFrame * CF(0, -1.2, 0).p, RightArm.CFrame * CF(MRANDOM(-5, 5), -1.2 + MRANDOM(-25, 25), MRANDOM(-5, 5)).p), BrickColor.new("Magenta").Color, VT(1, 0.1, 0.1) / 2)
  311. GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p)
  312. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  313. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  314. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-45), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(32 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  315. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  316. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  317. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  318. end
  319. CreateSound("160772554", RightArm, 10, 0.7)
  320. for i = 0, 0.15, 0.1 / Animation_Speed do
  321. Swait()
  322. MagicSphere(VT(0, 0, 0), 15, CF(RightArm.CFrame * CF(0, -1.2, 0).p, RightArm.CFrame * CF(MRANDOM(-5, 5), -1.2 + MRANDOM(-25, 25), MRANDOM(-5, 5)).p), C3(0.5, 0.5, 1), VT(1, 0.1, 0.1) / 2)
  323. GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p)
  324. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  325. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  326. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  327. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  328. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  329. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  330. end
  331. coroutine.resume(coroutine.create(function()
  332. local CENTER = CreatePart(3, Effects, "SmoothPlastic", 0, 1, SKILLTEXTCOLOR, "CenterPart", VT(0, 0, 0))
  333. CENTER.CFrame = RootPart.CFrame
  334. for i = 1, 200 do
  335. Swait()
  336. CENTER.CFrame = CENTER.CFrame * CF(0, 0, -0.7)
  337. for i = 1, 2 do
  338. Slice("Round", 0, 45, CF(CENTER.Position + VT(0, MRANDOM(-15, 15), 0)) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Magenta", VT(0.1, 0, 0.1) * MRANDOM(5, 15) / 10)
  339. end
  340. freezenearest(CENTER.Position, 25)
  341. end
  342. CENTER:remove()
  343. end))
  344. for i = 0, 1, 0.1 / Animation_Speed do
  345. Swait()
  346. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  347. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  348. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(145), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-15 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  349. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  350. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  351. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  352. end
  353. Rooted = true
  354. GYRO:remove()
  355. ATTACK = false
  356. Rooted = false
  357. end
  358. end
  359. function Sheer_Cold()
  360. local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character)
  361. if HITFLOOR ~= nil then
  362. local HITBODIES = {}
  363. ATTACK = true
  364. Rooted = true
  365. CreateSound("1225684085", RightArm, 10, 3)
  366. for i = 1, 120 do
  367. Swait()
  368. Slice("Round", 0, 45, CF(RightArm.CFrame * CF(0, MRANDOM(-3, -2), 0).p) * ANGLES(RAD(0), RAD(MRANDOM(-180, 180)), RAD(0)), "Magenta", VT(0.01, 0, 0.01) * MRANDOM(2, 3))
  369. MagicSphere(VT(0, 0, 0), 15, CF(RightArm.CFrame * CF(0, -1.2, 0).p, RightArm.CFrame * CF(MRANDOM(-5, 5), -1.2 + MRANDOM(-25, 25), MRANDOM(-5, 5)).p), C3(0.5, 0.5, 1), VT(1, 0.1, 0.1))
  370. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  371. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  372. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  373. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  374. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  375. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  376. end
  377. CreateSound("160772554", RightArm, 10, 0.7)
  378. for i = 1, 25 do
  379. Swait()
  380. freezenearest(RootPart.Position, 80)
  381. Slice("Round", 0, 45, CF(RootPart.Position + VT(0, MRANDOM(-5, 15), 0)) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Magenta", VT(0.1, 0, 0.1) * MRANDOM(2, 3))
  382. Slice("Thin", 0, 65, CF(RootPart.Position + VT(0, MRANDOM(-5, 15), 0)) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Magenta", VT(0.1, 0, 0.1) * MRANDOM(2, 3))
  383. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  384. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  385. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  386. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  387. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  388. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  389. end
  390. ATTACK = false
  391. Rooted = false
  392. end
  393. end
  394. local Decal = IT("Decal")
  395.  
  396.  
  397. function Roar()
  398. ATTACK = true
  399. Rooted = true
  400. local ROAR = CreateSound("785301837", Head, 5, 1.5)
  401. Swait()
  402. repeat
  403. Swait()
  404. ROAR.Parent = Head
  405. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  406. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  407. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-45), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(15 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  408. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-45), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  409. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  410. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-15 - 7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  411. until ROAR.Playing == false
  412. ATTACK = false
  413. Rooted = false
  414. end
  415.  
  416. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  417. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  418. end
  419.  
  420. function PositiveAngle(NUMBER)
  421. if NUMBER >= 0 then
  422. NUMBER = 0
  423. end
  424. return NUMBER
  425. end
  426.  
  427. function NegativeAngle(NUMBER)
  428. if NUMBER <= 0 then
  429. NUMBER = 0
  430. end
  431. return NUMBER
  432. end
  433.  
  434. function Swait(NUMBER)
  435. if NUMBER == 0 or NUMBER == nil then
  436. ArtificialHB.Event:wait()
  437. else
  438. for i = 1, NUMBER do
  439. ArtificialHB.Event:wait()
  440. end
  441. end
  442. end
  443.  
  444. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  445. local NEWMESH = IT(MESH)
  446. if MESH == "SpecialMesh" then
  447. NEWMESH.MeshType = MESHTYPE
  448. if MESHID ~= "nil" and MESHID ~= "" then
  449. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  450. end
  451. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  452. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  453. end
  454. end
  455. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  456. NEWMESH.Scale = SCALE
  457. NEWMESH.Parent = PARENT
  458. return NEWMESH
  459. end
  460.  
  461. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  462. local NEWPART = IT("Part")
  463. NEWPART.formFactor = FORMFACTOR
  464. NEWPART.Reflectance = REFLECTANCE
  465. NEWPART.Transparency = TRANSPARENCY
  466. NEWPART.CanCollide = false
  467. NEWPART.Locked = true
  468. NEWPART.Anchored = true
  469. if ANCHOR == false then
  470. NEWPART.Anchored = false
  471. end
  472. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  473. NEWPART.Name = NAME
  474. NEWPART.Size = SIZE
  475. NEWPART.Position = Torso.Position
  476. NEWPART.Material = MATERIAL
  477. NEWPART:BreakJoints()
  478. NEWPART.Parent = PARENT
  479. return NEWPART
  480. end
  481.  
  482. local function weldBetween(a, b)
  483. local weldd = Instance.new("ManualWeld")
  484. weldd.Part0 = a
  485. weldd.Part1 = b
  486. weldd.C0 = CFrame.new()
  487. weldd.C1 = b.CFrame:inverse() * a.CFrame
  488. weldd.Parent = a
  489. return weldd
  490. end
  491.  
  492.  
  493. local Character = game.Players.LocalPlayer.Character --game.Workspace.fefio92142
  494.  
  495.  
  496. -------------------------------------------------------------------------------------
  497. -------------------------------------------------------------------------------------
  498.  
  499. local Color = BrickColor.new("Magenta").Color
  500.  
  501. local Num = 0.5
  502.  
  503. local Num2 = 4 -------------Mods:1,4,8,10,15,20-------------------------------------
  504. local Size = 0.8
  505. local Rate = 300
  506. -------------------------------------------------------------------------------------
  507. local Player = game:service'Players'.LocalPlayer
  508. local Character = Player.Character
  509. Torso = Character:WaitForChild'Torso'
  510.  
  511. local Wing1 = Instance.new("Part",Character)
  512. Wing1.FormFactor = Enum.FormFactor.Custom
  513. Wing1.Size = Vector3.new(.2, .2, .2)
  514. Wing1.Name = "WIng_1"
  515.  
  516. local fire = Instance.new("ParticleEmitter", Wing1)
  517. fire.VelocitySpread = 0
  518. fire.Lifetime = NumberRange.new(2)
  519. fire.Acceleration = Vector3.new(0, 2, 2)
  520. fire.RotSpeed = NumberRange.new(10)
  521. fire.Rate = Rate
  522. fire.Rotation = NumberRange.new(151515)
  523. fire.Name = "Fire"
  524. fire.LightEmission = 0.78
  525. fire.LockedToPart = true
  526. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  527. fire.Color = ColorSequence.new(BrickColor.new("Mangenta").Color, BrickColor.new("Mangenta").Color)
  528. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  529.  
  530. local Wing2 = Wing1:Clone()
  531. Wing2.Parent = Torso
  532. local x,y,z = 0,-1,-6
  533.  
  534. Wld = function(a,b,cf)
  535. local Weld = Instance.new('Weld',a)
  536. Weld.Part0 = a
  537. Weld.Part1 = b
  538. Weld.C1 = cf
  539. return Weld
  540. end
  541.  
  542. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
  543. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
  544.  
  545.  
  546. game:service'RunService'.Stepped:connect(function()
  547. --z = 6+math.sin(tick()*2)
  548. y = -1+math.sin(tick()*Num)*Num2
  549. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  550. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  551. end)
  552. ------------------------------------------------------------------------------------------------
  553. local Player = game:service'Players'.LocalPlayer
  554. local Character = Player.Character
  555. Torso = Character:WaitForChild'Torso'
  556.  
  557. local Wing1 = Instance.new("Part",Character)
  558. Wing1.FormFactor = Enum.FormFactor.Custom
  559. Wing1.Size = Vector3.new(.2, .2, .2)
  560. Wing1.Name = "WIng_1"
  561.  
  562. local fire = Instance.new("ParticleEmitter", Wing1)
  563. fire.VelocitySpread = 0
  564. fire.Lifetime = NumberRange.new(2.5)
  565. fire.Acceleration = Vector3.new(0, 4, 4)
  566. fire.RotSpeed = NumberRange.new(10)
  567. fire.Rate = Rate
  568. fire.Rotation = NumberRange.new(151515)
  569. fire.Name = "Fire"
  570. fire.LightEmission = 0.78
  571. fire.LockedToPart = true
  572. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  573. fire.Color = ColorSequence.new(BrickColor.new("Magenta").Color, BrickColor.new("Magenta").Color)
  574. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  575.  
  576. local Wing2 = Wing1:Clone()
  577. Wing2.Parent = Torso
  578. local x,y,z = 0,-1,-6
  579.  
  580. Wld = function(a,b,cf)
  581. local Weld = Instance.new('Weld',a)
  582. Weld.Part0 = a
  583. Weld.Part1 = b
  584. Weld.C1 = cf
  585. return Weld
  586. end
  587.  
  588. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90)))
  589. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90)))
  590.  
  591. print'Loaded'
  592.  
  593. game:service'RunService'.Stepped:connect(function()
  594. --z = 6+math.sin(tick()*2)
  595. y = -1+math.sin(tick()*Num)*Num2
  596. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  597. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  598. end)
  599.  
  600. ------------------------------------------------------------------------------------------------
  601. local Player = game:service'Players'.LocalPlayer
  602. local Character = Player.Character
  603. Torso = Character:WaitForChild'Torso'
  604.  
  605. local Wing1 = Instance.new("Part",Character)
  606. Wing1.FormFactor = Enum.FormFactor.Custom
  607. Wing1.Size = Vector3.new(.2, .2, .2)
  608. Wing1.Name = "WIng_1"
  609.  
  610. local fire = Instance.new("ParticleEmitter", Wing1)
  611. fire.VelocitySpread = 0
  612. fire.Lifetime = NumberRange.new(2.8)
  613. fire.Acceleration = Vector3.new(0, 4, 4)
  614. fire.RotSpeed = NumberRange.new(10)
  615. fire.Rate = Rate
  616. fire.Rotation = NumberRange.new(151515)
  617. fire.Name = "Fire"
  618. fire.LightEmission = 0.78
  619. fire.LockedToPart = true
  620. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  621. fire.Color = ColorSequence.new(BrickColor.new("Magenta").Color, BrickColor.new("Magenta").Color)
  622. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  623.  
  624. local Wing2 = Wing1:Clone()
  625. Wing2.Parent = Torso
  626. local x,y,z = 0,-1,-6
  627.  
  628. Wld = function(a,b,cf)
  629. local Weld = Instance.new('Weld',a)
  630. Weld.Part0 = a
  631. Weld.Part1 = b
  632. Weld.C1 = cf
  633. return Weld
  634. end
  635.  
  636. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90)))
  637. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90)))
  638.  
  639. print'Loaded'
  640.  
  641. game:service'RunService'.Stepped:connect(function()
  642. --z = 6+math.sin(tick()*2)
  643. y = -1+math.sin(tick()*Num)*Num2
  644. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  645. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  646. end)
  647.  
  648. ------------------------------------------------------------------------------------------------
  649. local Player = game:service'Players'.LocalPlayer
  650. local Character = Player.Character
  651. Torso = Character:WaitForChild'Torso'
  652.  
  653. local Wing1 = Instance.new("Part",Character)
  654. Wing1.FormFactor = Enum.FormFactor.Custom
  655. Wing1.Size = Vector3.new(.2, .2, .2)
  656. Wing1.Name = "WIng_1"
  657.  
  658. local fire = Instance.new("ParticleEmitter", Wing1)
  659. fire.VelocitySpread = 0
  660. fire.Lifetime = NumberRange.new(3)
  661. fire.Acceleration = Vector3.new(0, 4, 4)
  662. fire.RotSpeed = NumberRange.new(10)
  663. fire.Rate = Rate
  664. fire.Rotation = NumberRange.new(151515)
  665. fire.Name = "Fire"
  666. fire.LightEmission = 0.78
  667. fire.LockedToPart = true
  668. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  669. fire.Color = ColorSequence.new(Color3.new(Color), Color3.new(Color))
  670. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  671.  
  672. local Wing2 = Wing1:Clone()
  673. Wing2.Parent = Torso
  674. local x,y,z = 0,-1,-6
  675.  
  676. Wld = function(a,b,cf)
  677. local Weld = Instance.new('Weld',a)
  678. Weld.Part0 = a
  679. Weld.Part1 = b
  680. Weld.C1 = cf
  681. return Weld
  682. end
  683.  
  684. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90)))
  685. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90)))
  686.  
  687. print'Loaded'
  688.  
  689. game:service'RunService'.Stepped:connect(function()
  690. --z = 6+math.sin(tick()*2)
  691. y = -1+math.sin(tick()*Num)*Num2
  692. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  693. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  694. end)
  695.  
  696. ------------------------------------------------------------------------------------------------
  697. local Player = game:service'Players'.LocalPlayer
  698. local Character = Player.Character
  699. Torso = Character:WaitForChild'Torso'
  700.  
  701. local Wing1 = Instance.new("Part",Character)
  702. Wing1.FormFactor = Enum.FormFactor.Custom
  703. Wing1.Size = Vector3.new(.2, .2, .2)
  704. Wing1.Name = "WIng_1"
  705.  
  706. local fire = Instance.new("ParticleEmitter", Wing1)
  707. fire.VelocitySpread = 0
  708. fire.Lifetime = NumberRange.new(3.1)
  709. fire.Acceleration = Vector3.new(0, 4, 4)
  710. fire.RotSpeed = NumberRange.new(10)
  711. fire.Rate = Rate
  712. fire.Rotation = NumberRange.new(151515)
  713. fire.Name = "Fire"
  714. fire.LightEmission = 0.78
  715. fire.LockedToPart = true
  716. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  717. fire.Color = ColorSequence.new(Color3.new(Color), Color3.new(Color))
  718. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  719.  
  720. local Wing2 = Wing1:Clone()
  721. Wing2.Parent = Torso
  722. local x,y,z = 0,-1,-6
  723.  
  724. Wld = function(a,b,cf)
  725. local Weld = Instance.new('Weld',a)
  726. Weld.Part0 = a
  727. Weld.Part1 = b
  728. Weld.C1 = cf
  729. return Weld
  730. end
  731.  
  732. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90)))
  733. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90)))
  734.  
  735. print'Loaded'
  736.  
  737. game:service'RunService'.Stepped:connect(function()
  738. --z = 6+math.sin(tick()*2)
  739. y = -1+math.sin(tick()*Num)*Num2
  740. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  741. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  742. end)
  743.  
  744. function QuaternionFromCFrame(cf)
  745. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  746. local trace = m00 + m11 + m22
  747. if trace > 0 then
  748. local s = math.sqrt(1 + trace)
  749. local recip = 0.5 / s
  750. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  751. else
  752. local i = 0
  753. if m11 > m00 then
  754. i = 1
  755. end
  756. if m22 > (i == 0 and m00 or m11) then
  757. i = 2
  758. end
  759. if i == 0 then
  760. local s = math.sqrt(m00 - m11 - m22 + 1)
  761. local recip = 0.5 / s
  762. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  763. elseif i == 1 then
  764. local s = math.sqrt(m11 - m22 - m00 + 1)
  765. local recip = 0.5 / s
  766. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  767. elseif i == 2 then
  768. local s = math.sqrt(m22 - m00 - m11 + 1)
  769. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  770. end
  771. end
  772. end
  773.  
  774. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  775. local xs, ys, zs = x + x, y + y, z + z
  776. local wx, wy, wz = w * xs, w * ys, w * zs
  777. local xx = x * xs
  778. local xy = x * ys
  779. local xz = x * zs
  780. local yy = y * ys
  781. local yz = y * zs
  782. local zz = z * zs
  783. 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))
  784. end
  785.  
  786. function QuaternionSlerp(a, b, t)
  787. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  788. local startInterp, finishInterp;
  789. if cosTheta >= 0.0001 then
  790. if (1 - cosTheta) > 0.0001 then
  791. local theta = ACOS(cosTheta)
  792. local invSinTheta = 1 / SIN(theta)
  793. startInterp = SIN((1 - t) * theta) * invSinTheta
  794. finishInterp = SIN(t * theta) * invSinTheta
  795. else
  796. startInterp = 1 - t
  797. finishInterp = t
  798. end
  799. else
  800. if (1 + cosTheta) > 0.0001 then
  801. local theta = ACOS(-cosTheta)
  802. local invSinTheta = 1 / SIN(theta)
  803. startInterp = SIN((t - 1) * theta) * invSinTheta
  804. finishInterp = SIN(t * theta) * invSinTheta
  805. else
  806. startInterp = t - 1
  807. finishInterp = t
  808. end
  809. end
  810. 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
  811. end
  812.  
  813. function Clerp(a, b, t)
  814. local qa = {QuaternionFromCFrame(a)}
  815. local qb = {QuaternionFromCFrame(b)}
  816. local ax, ay, az = a.x, a.y, a.z
  817. local bx, by, bz = b.x, b.y, b.z
  818. local _t = 1 - t
  819. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  820. end
  821.  
  822. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  823. local frame = IT("Frame")
  824. frame.BackgroundTransparency = TRANSPARENCY
  825. frame.BorderSizePixel = BORDERSIZEPIXEL
  826. frame.Position = POSITION
  827. frame.Size = SIZE
  828. frame.BackgroundColor3 = COLOR
  829. frame.BorderColor3 = BORDERCOLOR
  830. frame.Name = NAME
  831. frame.Parent = PARENT
  832. return frame
  833. end
  834.  
  835. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  836. local label = IT("TextLabel")
  837. label.BackgroundTransparency = 1
  838. label.Size = UD2(1, 0, 1, 0)
  839. label.Position = UD2(0, 0, 0, 0)
  840. label.TextColor3 = TEXTCOLOR
  841. label.TextStrokeTransparency = STROKETRANSPARENCY
  842. label.TextTransparency = TRANSPARENCY
  843. label.FontSize = TEXTFONTSIZE
  844. label.Font = TEXTFONT
  845. label.BorderSizePixel = BORDERSIZEPIXEL
  846. label.TextScaled = false
  847. label.Text = TEXT
  848. label.Name = NAME
  849. label.Parent = PARENT
  850. return label
  851. end
  852.  
  853. function NoOutlines(PART)
  854. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  855. end
  856.  
  857. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  858. local NEWWELD = IT(TYPE)
  859. NEWWELD.Part0 = PART0
  860. NEWWELD.Part1 = PART1
  861. NEWWELD.C0 = C0
  862. NEWWELD.C1 = C1
  863. NEWWELD.Parent = PARENT
  864. return NEWWELD
  865. end
  866.  
  867. local S = IT("Sound")
  868. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  869. local NEWSOUND = nil
  870. coroutine.resume(coroutine.create(function()
  871. NEWSOUND = S:Clone()
  872. NEWSOUND.Parent = PARENT
  873. NEWSOUND.Volume = VOLUME
  874. NEWSOUND.Pitch = PITCH
  875. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  876. NEWSOUND:play()
  877. if DOESLOOP == true then
  878. NEWSOUND.Looped = true
  879. else
  880. repeat wait(1) until NEWSOUND.Playing == false
  881. NEWSOUND:remove()
  882. end
  883. end))
  884. return NEWSOUND
  885. end
  886.  
  887. function CFrameFromTopBack(at, top, back)
  888. local right = top:Cross(back)
  889. 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)
  890. end
  891.  
  892. --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(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  893. function WACKYEFFECT(Table)
  894. local TYPE = (Table.EffectType or "Sphere")
  895. local SIZE = (Table.Size or VT(1,1,1))
  896. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  897. local TRANSPARENCY = (Table.Transparency or 0)
  898. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  899. local CFRAME = (Table.CFrame or Torso.CFrame)
  900. local MOVEDIRECTION = (Table.MoveToPos or nil)
  901. local ROTATION1 = (Table.RotationX or 0)
  902. local ROTATION2 = (Table.RotationY or 0)
  903. local ROTATION3 = (Table.RotationZ or 0)
  904. local MATERIAL = (Table.Material or "Neon")
  905. local COLOR = (Table.Color or C3(0,0,0))
  906. local TIME = (Table.Time or 45)
  907. local SOUNDID = (Table.SoundID or nil)
  908. local SOUNDPITCH = (Table.SoundPitch or nil)
  909. local SOUNDVOLUME = (Table.SoundVolume or nil)
  910. coroutine.resume(coroutine.create(function()
  911. local PLAYSSOUND = false
  912. local SOUND = nil
  913. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  914. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  915. PLAYSSOUND = true
  916. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  917. end
  918. EFFECT.Color = COLOR
  919. local MSH = nil
  920. if TYPE == "Sphere" then
  921. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  922. elseif TYPE == "Block" then
  923. MSH = IT("BlockMesh",EFFECT)
  924. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  925. elseif TYPE == "Wave" then
  926. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  927. elseif TYPE == "Ring" then
  928. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  929. elseif TYPE == "Slash" then
  930. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  931. elseif TYPE == "Round Slash" then
  932. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  933. elseif TYPE == "Swirl" then
  934. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  935. elseif TYPE == "Skull" then
  936. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  937. elseif TYPE == "Crystal" then
  938. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  939. end
  940. if MSH ~= nil then
  941. local MOVESPEED = nil
  942. if MOVEDIRECTION ~= nil then
  943. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  944. end
  945. local GROWTH = SIZE - ENDSIZE
  946. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  947. if TYPE == "Block" then
  948. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  949. else
  950. EFFECT.CFrame = CFRAME
  951. end
  952. for LOOP = 1, TIME+1 do
  953. Swait()
  954. MSH.Scale = MSH.Scale - GROWTH/TIME
  955. if TYPE == "Wave" then
  956. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  957. end
  958. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  959. if TYPE == "Block" then
  960. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  961. else
  962. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  963. end
  964. if MOVEDIRECTION ~= nil then
  965. local ORI = EFFECT.Orientation
  966. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  967. EFFECT.Orientation = ORI
  968. end
  969. end
  970. if PLAYSSOUND == false then
  971. EFFECT:remove()
  972. else
  973. SOUND.Stopped:Connect(function()
  974. EFFECT:remove()
  975. end)
  976. end
  977. else
  978. if PLAYSSOUND == false then
  979. EFFECT:remove()
  980. else
  981. repeat Swait() until SOUND.Playing == false
  982. EFFECT:remove()
  983. end
  984. end
  985. end))
  986. end
  987.  
  988. function MakeForm(PART,TYPE)
  989. if TYPE == "Cyl" then
  990. local MSH = IT("CylinderMesh",PART)
  991. elseif TYPE == "Ball" then
  992. local MSH = IT("SpecialMesh",PART)
  993. MSH.MeshType = "Sphere"
  994. elseif TYPE == "Wedge" then
  995. local MSH = IT("SpecialMesh",PART)
  996. MSH.MeshType = "Wedge"
  997. end
  998. end
  999.  
  1000. Debris = game:GetService("Debris")
  1001.  
  1002. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1003. local DIRECTION = CF(StartPos,EndPos).lookVector
  1004. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  1005. end
  1006.  
  1007. function Kill(Char)
  1008. local NewCharacter = IT("Model",Effects)
  1009. NewCharacter.Name = "rekt player"
  1010. for _, c in pairs(Char:GetDescendants()) do
  1011. if c:IsA("BasePart") and c.Transparency == 0 then
  1012. if c.Parent == Char then
  1013. getbloody(c,5)
  1014. end
  1015. c:BreakJoints()
  1016. c.Material = "Glass"
  1017. c.Color = C3(0,0,0)
  1018. c.CanCollide = false
  1019. c.Transparency = 0.005
  1020. if c:FindFirstChildOfClass("SpecialMesh") then
  1021. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1022. end
  1023. if c.Name == "Head" then
  1024. c:ClearAllChildren()
  1025. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1026. end
  1027. if c.ClassName == "MeshPart" then
  1028. c.TextureID = ""
  1029. end
  1030. if c:FindFirstChildOfClass("BodyPosition") then
  1031. c:FindFirstChildOfClass("BodyPosition"):remove()
  1032. end
  1033. if c:FindFirstChildOfClass("ParticleEmitter") then
  1034. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1035. end
  1036. c.Parent = NewCharacter
  1037. c.Name = "DeadPart"
  1038. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1039. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1040. end
  1041. end
  1042. Char:remove()
  1043. Debris:AddItem(NewCharacter,5)
  1044. end
  1045.  
  1046. function ApplyAoE(POSITION,RANGE,BRUTAL)
  1047. local CHILDREN = workspace:GetDescendants()
  1048. for index, CHILD in pairs(CHILDREN) do
  1049. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1050. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1051. if HUM then
  1052. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1053. if TORSO then
  1054. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1055. if BRUTAL == true then
  1056. Kill(CHILD)
  1057. else
  1058. CHILD:BreakJoints()
  1059. end
  1060. end
  1061. end
  1062. end
  1063. end
  1064. end
  1065. end
  1066.  
  1067. function Morning_Star()
  1068. ATTACK = true
  1069. Rooted = true
  1070. CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 7, 1, false)
  1071. for i=0, 0.5, 0.1 / Animation_Speed do
  1072. Swait()
  1073. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1074. 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)
  1075. end
  1076. coroutine.resume(coroutine.create(function()
  1077. local POS = Mouse.Hit.p
  1078. local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Magenta", "Strike", VT(0,2000,0))
  1079. MakeForm(RAY,"Cyl")
  1080. local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Magenta", "Strike", VT(0,0,0))
  1081. MakeForm(SPHERE,"Ball")
  1082. local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Magenta", "Strike", VT(0,0,0))
  1083. MakeForm(SHIELD,"Ball")
  1084. SHIELD.CFrame = CF(POS)
  1085. RAY.CFrame = CF(POS)
  1086. SPHERE.CFrame = CF(POS)
  1087. CreateSound(144699494, SPHERE, 10, 0.8, false)
  1088. CreateSound(1146688617, SPHERE, 10, 0.8, false)
  1089. for i = 1, 200 do
  1090. Swait()
  1091. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1092. RAY.Size = RAY.Size + VT(0.05,0,0.05)
  1093. SPHERE.Size = SPHERE.Size + VT(2,2,2)
  1094. SHIELD.Size = SPHERE.Size + VT(3,3,3)
  1095. ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true)
  1096. end
  1097. for i = 1, 45 do
  1098. Swait()
  1099. RAY.Transparency = RAY.Transparency + 1/45
  1100. SPHERE.Transparency = RAY.Transparency
  1101. SHIELD.Transparency = SPHERE.Transparency + 1/45
  1102. end
  1103. RAY:remove()
  1104. SHIELD:remove()
  1105. SPHERE:remove()
  1106. end))
  1107. for i=0, 0.1, 0.1 / Animation_Speed do
  1108. Swait()
  1109. 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)
  1110. end
  1111. ATTACK = false
  1112. Rooted = false
  1113. end
  1114.  
  1115. function Prison_Key()
  1116. if Mouse.Target ~= nil then
  1117. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1118. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1119. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1120. local GYRO = IT("BodyGyro",RootPart)
  1121. GYRO.D = 750
  1122. GYRO.P = 20000
  1123. GYRO.MaxTorque = VT(0,40000000,0)
  1124. local grav = Instance.new("BodyPosition",TORSO)
  1125. grav.D = 15
  1126. grav.P = 20000
  1127. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1128. grav.position = TORSO.Position
  1129. local GYRO2 = IT("BodyGyro",TORSO)
  1130. GYRO2.D = 750
  1131. GYRO2.P = 20000
  1132. GYRO2.MaxTorque = VT(0,40000000,0)
  1133. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1134. grav.Name = "Jail"
  1135. local LOCKPARTS = {}
  1136. ATTACK = true
  1137. Rooted = false
  1138. local LOCK = IT("Model",Effects)
  1139. LOCK.Name = "Lock"
  1140. local LOCK2 = IT("Model",LOCK)
  1141. LOCK2.Name = "Metal"
  1142. --CREATE LOCK--
  1143. local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gray", "Keylock", VT(3, 2.5, 1))
  1144. LOCK.PrimaryPart = BASE
  1145. BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)
  1146. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gray", "Keylock", VT(3, 1, 3))
  1147. PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0))
  1148. MakeForm(PRT,"Cyl")
  1149. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1))
  1150. PRT.Color = C3(0,0,0)
  1151. PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0))
  1152. MakeForm(PRT,"Cyl")
  1153. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1))
  1154. PRT.Color = C3(0,0,0)
  1155. PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01)
  1156. for i = 1, 45 do
  1157. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  1158. PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0)
  1159. end
  1160. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  1161. PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)
  1162. LOCK2.PrimaryPart = PRT
  1163. ---------------
  1164. local CHILDREN = LOCK:GetDescendants()
  1165. for index, CHILD in pairs(CHILDREN) do
  1166. if CHILD:IsA("BasePart") then
  1167. CHILD.Transparency = 1
  1168. end
  1169. end
  1170. for i = 1, 75 do
  1171. LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4))
  1172. Swait()
  1173. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1174. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  1175. local CHILDREN = LOCK:GetDescendants()
  1176. for index, CHILD in pairs(CHILDREN) do
  1177. if CHILD:IsA("BasePart") then
  1178. CHILD.Transparency = CHILD.Transparency - 1/75
  1179. end
  1180. end
  1181. end
  1182. HUM.DisplayDistanceType = "None"
  1183. local KEY = IT("Model",Effects)
  1184. KEY.Name = "Key"
  1185. --CREATE KEY--
  1186. local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "KeyBase", VT(0.1, 1, 0.1),false)
  1187. KEY.PrimaryPart = KBASE
  1188. KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0))
  1189. local WLD = weldBetween(RightArm,KBASE)
  1190. for i = 1, 45 do
  1191. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.1, 0.1, 0.1),false)
  1192. PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0)
  1193. weldBetween(KBASE,PRT)
  1194. end
  1195. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.3, 0.1, 0.1),false)
  1196. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0)
  1197. weldBetween(KBASE,PRT)
  1198. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.3, 0.1, 0.1),false)
  1199. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0)
  1200. weldBetween(KBASE,PRT)
  1201. --------------
  1202. Rooted = true
  1203. Pose("Prepare key",1.5,1.2,false,GYRO,TORSO)
  1204. coroutine.resume(coroutine.create(function()
  1205. for i = 1, 10 do
  1206. Swait()
  1207. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1208. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  1209. end
  1210. CreateSound(1149318312,BASE,5,1,false)
  1211. CreateSound(160772554,BASE,3,1,false)
  1212. LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0))
  1213. for i = 1, 4 do
  1214. 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"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1215. end
  1216. 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"Lavender".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  1217. wait(1)
  1218. TORSO.Parent.Parent = LOCK
  1219. for i = 1, 75 do
  1220. Swait()
  1221. local CHILDREN = KEY:GetDescendants()
  1222. for index, CHILD in pairs(CHILDREN) do
  1223. if CHILD:IsA("BasePart") then
  1224. CHILD.Transparency = i/25
  1225. end
  1226. end
  1227. local CHILDREN = LOCK:GetDescendants()
  1228. for index, CHILD in pairs(CHILDREN) do
  1229. if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
  1230. CHILD.Transparency = CHILD.Transparency + 1/75
  1231. elseif CHILD.ClassName == "Decal" then
  1232. CHILD.Transparency = CHILD.Transparency + 1/75
  1233. end
  1234. end
  1235. end
  1236. TORSO.Parent:ClearAllChildren()
  1237. KEY:remove()
  1238. LOCK:remove()
  1239. end))
  1240. Pose("Turn key",0.8,1.2,false,GYRO,TORSO)
  1241. GYRO:remove()
  1242. ATTACK = false
  1243. Rooted = false
  1244. end
  1245. end
  1246. end
  1247.  
  1248. Humanoid.HealthChanged:connect(function()
  1249. Humanoid.Parent = nil
  1250. Humanoid.MaxHealth = "inf"
  1251. Humanoid.Health = "inf"
  1252. refit()
  1253. Humanoid.Parent = Character
  1254. end)
  1255.  
  1256. Humanoid.Died:connect(function()
  1257. Humanoid.Parent = nil
  1258. Humanoid.MaxHealth = "inf"
  1259. Humanoid.Health = "inf"
  1260. refit()
  1261. Humanoid.Parent = Character
  1262. end)
  1263.  
  1264. local HATWELD = nil
  1265. function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
  1266. PLAYMAINANIMINANIM = false
  1267. if WhichPose == "Cast1" then
  1268. for i=0, Time, 0.1 / Animation_Speed do
  1269. Swait()
  1270. if Magic == true then
  1271. 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"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1272. end
  1273. if Gyro ~= nil and Gyro ~= false then
  1274. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1275. end
  1276. 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)
  1277. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed)
  1278. 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)
  1279. 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)
  1280. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1281. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1282. end
  1283. elseif WhichPose == "Cast2" then
  1284. for i=0, Time, 0.1 / Animation_Speed do
  1285. Swait()
  1286. if Magic == true then
  1287. 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"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1288. 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"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1289. end
  1290. if Gyro ~= nil and Gyro ~= false then
  1291. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1292. end
  1293. 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)
  1294. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  1295. 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)
  1296. 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)
  1297. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1298. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1299. end
  1300. elseif WhichPose == "RightArmUp" then
  1301. for i=0, Time, 0.1 / Animation_Speed do
  1302. Swait()
  1303. if Magic == true then
  1304. 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"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1305. end
  1306. if Gyro ~= nil and Gyro ~= false then
  1307. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1308. end
  1309. 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)
  1310. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1311. 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)
  1312. 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)
  1313. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1314. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1315. end
  1316. elseif WhichPose == "Taunt" then
  1317. for i=0, Time, 0.1 / Animation_Speed do
  1318. Swait()
  1319. 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)
  1320. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  1321. 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)
  1322. 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)
  1323. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1324. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1325. end
  1326. HATWELD.Part0 = RightArm
  1327. HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  1328. CreateSound(221057812,Torso,10,1,false)
  1329. for i=0, Time*2, 0.1 / Animation_Speed do
  1330. Swait()
  1331. 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)
  1332. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  1333. 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)
  1334. 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)
  1335. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1336. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1337. end
  1338. for i=0, Time, 0.1 / Animation_Speed do
  1339. Swait()
  1340. 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)
  1341. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  1342. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1343. 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)
  1344. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1345. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1346. 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)
  1347. end
  1348. HATWELD.Part0 = Head
  1349. HATWELD.C0 = CF(0,0.35,0)
  1350. elseif WhichPose == "Prepare key" then
  1351. for i=0, Time, 0.1 / Animation_Speed do
  1352. Swait()
  1353. if Gyro ~= nil and Gyro ~= false then
  1354. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  1355. end
  1356. 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)
  1357. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed)
  1358. 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)
  1359. 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)
  1360. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1361. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1362. end
  1363. elseif WhichPose == "Turn key" then
  1364. for i=0, Time, 0.1 / Animation_Speed do
  1365. Swait()
  1366. if Gyro ~= nil and Gyro ~= false then
  1367. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  1368. end
  1369. 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)
  1370. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed)
  1371. 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)
  1372. 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)
  1373. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1374. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1375. end
  1376. end
  1377. PLAYMAINANIM = true
  1378. end
  1379.  
  1380. function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH,DOES360)
  1381. if FLOOR ~= nil then
  1382. for i = 1, AMOUNT do
  1383. local DEBREE = CreatePart(3, Effects, "Neon", 0, 0, "Peal", "Debree", BLOCKSIZE, false)
  1384. DEBREE.Material = FLOOR.Material
  1385. DEBREE.Color = FLOOR.Color
  1386. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  1387. if DOES360 == true then
  1388. DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH))
  1389. else
  1390. DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),STRENGTH,MRANDOM(-STRENGTH,STRENGTH))
  1391. end
  1392. coroutine.resume(coroutine.create(function()
  1393. Swait(15)
  1394. DEBREE.Parent = workspace
  1395. DEBREE.CanCollide = true
  1396. Debris:AddItem(DEBREE,SWAIT)
  1397. end))
  1398. end
  1399. end
  1400. end
  1401.  
  1402. function SpawnTrail(FROM,TO)
  1403. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Pearl", "Arrow", VT(0,0,0))
  1404. MakeForm(TRAIL,"Cyl")
  1405. local DIST = (FROM - TO).Magnitude
  1406. TRAIL.Size = VT(0.1,DIST,0.1)
  1407. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  1408. coroutine.resume(coroutine.create(function()
  1409. for i = 1, 5 do
  1410. Swait()
  1411. TRAIL.Transparency = TRAIL.Transparency + 0.1
  1412. end
  1413. TRAIL:remove()
  1414. end))
  1415. end
  1416.  
  1417. local Decal = IT("Decal")
  1418. function SpawnBulletHole(POSITION)
  1419. local O1 = CreatePart(3, Effects, "Neon", 0, 1, "Magenta", "Bullet hole", VT(0.2,0,0.2))
  1420. local decal = Decal:Clone()
  1421. decal.Parent = O1
  1422. decal.Face = "Top"
  1423. decal.Texture = "http://www.roblox.com/asset/?id=130624105"
  1424. local decal2 = Decal:Clone()
  1425. decal2.Parent = O1
  1426. decal2.Face = "Bottom"
  1427. decal2.Texture = "http://www.roblox.com/asset/?id=130624105"
  1428. O1.CFrame = POSITION*ANGLES(RAD(0),RAD(MRANDOM(-180,180)),RAD(0))
  1429. Debris:AddItem(O1,5)
  1430. end
  1431.  
  1432. local asd = Instance.new("ParticleEmitter")
  1433. asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
  1434. asd.LightEmission = .1
  1435. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  1436. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 2)})
  1437. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1438. asd.Transparency = bbb
  1439. asd.Size = aaa
  1440. asd.ZOffset = .9
  1441. asd.Acceleration = Vector3.new(0, -15, 0)
  1442. asd.LockedToPart = false
  1443. asd.EmissionDirection = "Back"
  1444. asd.Lifetime = NumberRange.new(1, 2)
  1445. asd.Rotation = NumberRange.new(-100, 100)
  1446. asd.RotSpeed = NumberRange.new(-100, 100)
  1447. asd.Speed = NumberRange.new(10)
  1448. asd.Enabled = false
  1449. asd.VelocitySpread = 999
  1450.  
  1451. function getbloody(victim,amount)
  1452. local PART = IT("Part",Effects)
  1453. PART.Transparency = 1
  1454. PART.Size = victim.Size
  1455. PART.Anchored = true
  1456. PART.CanCollide = false
  1457. PART.CFrame = CF(victim.Position)
  1458. local HITPLAYERSOUNDS = {"356551938","264486467"}
  1459. Debris:AddItem(PART,5)
  1460. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1461. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1462. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1463. local prtcl = asd:Clone()
  1464. prtcl.Parent = PART
  1465. prtcl:Emit(amount*10)
  1466. end
  1467.  
  1468. function BulletDetection(FROM,TO)
  1469. local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character)
  1470. coroutine.resume(coroutine.create(function()
  1471. if AIMHIT ~= nil then
  1472. if AIMHIT.Parent ~= Character then
  1473. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1474. if AIMHIT.Name ~= "Head" and AIMHIT.Parent.ClassName ~= "Accessory" then
  1475. ApplyDamage(AIMHIT.Parent:FindFirstChildOfClass("Humanoid"),MRANDOM(15,25),AIMHIT)
  1476. elseif AIMHIT.Name == "Head" or AIMHIT.Parent.ClassName == "Accessory" then
  1477. if AIMHIT.Parent.ClassName == "Accessory" then
  1478. if AIMHIT:FindFirstChild("HatAttachment") or AIMHIT:FindFirstChild("FaceFrontAttachment") or AIMHIT:FindFirstChild("HairAttachment") then
  1479. AIMHIT.Parent.Parent:BreakJoints()
  1480. if AIMHIT.Parent.Parent:FindFirstChild("Head") then
  1481. getbloody(AIMHIT.Parent.Parent.Head,15)
  1482. AIMHIT.Parent.Parent.Head:remove()
  1483. StatLabel(AIMHIT.CFrame * CF(0, 0 + (AIMHIT.Size.z - 1), 0), "Headshot!", C3(0,0,0))
  1484. end
  1485. else
  1486. ApplyDamage(AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid"),MRANDOM(25,65),AIMHIT)
  1487. end
  1488. elseif AIMHIT.Name == "Head" then
  1489. getbloody(AIMHIT,15)
  1490. AIMHIT.Parent:BreakJoints()
  1491. AIMHIT:remove()
  1492. StatLabel(AIMHIT.CFrame * CF(0, 0 + (AIMHIT.Size.z - 1), 0), "Headshot!", C3(0,0,0))
  1493. end
  1494. end
  1495. else
  1496. CreateFlyingDebree(AIMHIT,CF(AIMPOS),7,VT(0.1,0.1,0.1),5,35,true)
  1497. SpawnBulletHole(CF(AIMPOS,AIMPOS+NORMAL)*ANGLES(RAD(90),RAD(0),RAD(0)))
  1498. end
  1499. end
  1500. end
  1501. end))
  1502. return AIMHIT,AIMPOS,NORMAL
  1503. end
  1504.  
  1505.  
  1506. function Shatter(Part)
  1507. if Part.Transparency == 0 then
  1508. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, Part.BrickColor, "OOF", VT(0,0,0))
  1509. Debris:AddItem(SOUNDPART,5)
  1510. CreateSound("84005018", SOUNDPART, 3, MRANDOM(8,12)/10, false)
  1511. local SIZE = Part.Size.X + Part.Size.Y + Part.Size.Z
  1512. local SIZESET = SIZE/4
  1513. local XOffset = Part.Size.X*1.5/SIZESET
  1514. local YOffset = Part.Size.Y*1.5/SIZESET
  1515. local ZOffset = Part.Size.Z*1.5/SIZESET
  1516. for x = 1, math.ceil(XOffset) do
  1517. for y = 1, math.ceil(YOffset) do
  1518. for z = 1, math.ceil(ZOffset) do
  1519. local SHARD = CreatePart(3, Effects, "Neon", 0, 0, Part.BrickColor, "Shard", VT(SIZE,SIZE,SIZE)/10, false)
  1520. SHARD.CanCollide = true
  1521. SHARD.CFrame = Part.CFrame*CF((Part.Size.X/2-x/4),(Part.Size.Y/2-y/4),(Part.Size.Z/2-z/4))
  1522. SHARD.Velocity = VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))*3
  1523. Debris:AddItem(SHARD,MRANDOM(10,25)/3)
  1524. end
  1525. end
  1526. end
  1527. end
  1528. Part:remove()
  1529. end
  1530.  
  1531. function MakeForm(PART,TYPE)
  1532. if TYPE == "Cyl" then
  1533. local MSH = IT("CylinderMesh",PART)
  1534. elseif TYPE == "Ball" then
  1535. local MSH = IT("SpecialMesh",PART)
  1536. MSH.MeshType = "Sphere"
  1537. elseif TYPE == "Wedge" then
  1538. local MSH = IT("SpecialMesh",PART)
  1539. MSH.MeshType = "Wedge"
  1540. end
  1541. end
  1542.  
  1543. Debris = game:GetService("Debris")
  1544.  
  1545. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1546. local DIRECTION = CF(StartPos,EndPos).lookVector
  1547. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  1548. end
  1549.  
  1550. function turnto(position)
  1551. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1552. end
  1553.  
  1554.  
  1555. function MakeForm(PART,TYPE)
  1556. if TYPE == "Cyl" then
  1557. local MSH = IT("CylinderMesh",PART)
  1558. elseif TYPE == "Ball" then
  1559. local MSH = IT("SpecialMesh",PART)
  1560. MSH.MeshType = "Sphere"
  1561. elseif TYPE == "Wedge" then
  1562. local MSH = IT("SpecialMesh",PART)
  1563. MSH.MeshType = "Wedge"
  1564. end
  1565. end
  1566.  
  1567. Debris = game:GetService("Debris")
  1568.  
  1569. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1570. local DIRECTION = CF(StartPos,EndPos).lookVector
  1571. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  1572. end
  1573.  
  1574. function turnto(position)
  1575. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1576. end
  1577.  
  1578.  
  1579. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  1580. if FLOOR ~= nil then
  1581. coroutine.resume(coroutine.create(function()
  1582. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  1583. PART.CFrame = CF(POSITION)
  1584. for i = 1, 45 do
  1585. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  1586. RingPiece.Material = FLOOR.Material
  1587. RingPiece.Color = FLOOR.Color
  1588. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  1589. Debris:AddItem(RingPiece,SWAIT)
  1590. end
  1591. PART:remove()
  1592. end))
  1593. end
  1594. end
  1595.  
  1596. function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
  1597. if FLOOR ~= nil then
  1598. for i = 1, AMOUNT do
  1599. local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
  1600. DEBREE.Material = FLOOR.Material
  1601. DEBREE.Color = FLOOR.Color
  1602. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  1603. DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH))
  1604. coroutine.resume(coroutine.create(function()
  1605. Swait(15)
  1606. DEBREE.Parent = workspace
  1607. DEBREE.CanCollide = true
  1608. Debris:AddItem(DEBREE,SWAIT)
  1609. end))
  1610. end
  1611. end
  1612. end
  1613.  
  1614.  
  1615.  
  1616. --//=================================\\
  1617. --|| WEAPON CREATION
  1618. --\\=================================//
  1619.  
  1620. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1621. local NEWWELD = IT(TYPE)
  1622. NEWWELD.Part0 = PART0
  1623. NEWWELD.Part1 = PART1
  1624. NEWWELD.C0 = C0
  1625. NEWWELD.C1 = C1
  1626. NEWWELD.Parent = PARENT
  1627. return NEWWELD
  1628. end
  1629.  
  1630. local BODY = {}
  1631.  
  1632. for _, c in pairs(Character:GetDescendants()) do
  1633. if c:IsA("BasePart") and c.Name ~= "Handle" then
  1634. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  1635. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1636. end
  1637. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  1638. elseif c:IsA("JointInstance") then
  1639. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  1640. end
  1641. end
  1642.  
  1643. for e = 1, #BODY do
  1644. if BODY[e] ~= nil then
  1645. local STUFF = BODY[e]
  1646. local PART = STUFF[1]
  1647. local PARENT = STUFF[2]
  1648. local MATERIAL = STUFF[3]
  1649. local COLOR = STUFF[4]
  1650. local TRANSPARENCY = STUFF[5]
  1651. if PART.ClassName == "Part" and PART ~= RootPart then
  1652. PART.Material = MATERIAL
  1653. PART.Color = COLOR
  1654. PART.Transparency = TRANSPARENCY
  1655. end
  1656. PART.AncestryChanged:Connect(function()
  1657. PART.Parent = PARENT
  1658. end)
  1659. end
  1660. end
  1661.  
  1662. local LEFTWINGS = {}
  1663. local BODY = {}
  1664.  
  1665. local Back = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Wing", VT(1,1,0.35),false)
  1666. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Back, CF(0, 0.5, 1.2) * ANGLES(RAD(0),RAD(0),RAD(45)), CF(0, 0, 0))
  1667.  
  1668. local ANGLE = 35
  1669. for i = 1, 5 do
  1670. local Wing = CreatePart(3, Character, "Neon", 0, 0, "White", "Wing", VT(0.15,2+(i/2),0.15),false)
  1671. local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0))
  1672. local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "Wing", VT(0.25,1,0.25),false)
  1673. CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0))
  1674. ANGLE = ANGLE - 15
  1675. table.insert(LEFTWINGS,WingWeld)
  1676. end
  1677.  
  1678.  
  1679.  
  1680. local BODY = {}
  1681.  
  1682. for _, c in pairs(Character:GetDescendants()) do
  1683. if c and c.Parent then
  1684. if c.Name == "Handle" and c.Parent.ClassName == "Accessory" then
  1685. local ACCESSORY = c.Parent
  1686. c.Parent = Character
  1687. if c then
  1688. if c:FindFirstChild("HatAttachment") or c:FindFirstChild("FaceFrontAttachment") or c:FindFirstChild("HairAttachment") then
  1689. weldBetween(Head,c)
  1690. else
  1691. weldBetween(Torso,c)
  1692. end
  1693. end
  1694. ACCESSORY:remove()
  1695. elseif c.Parent.ClassName ~= "Accessory" and c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1696. c.Material = "Neon"
  1697. c.Color = BrickColor.new("Magenta").Color
  1698. if c:FindFirstChildOfClass("SpecialMesh") then
  1699. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1700. end
  1701. if c == Head then
  1702. if c:FindFirstChild("face") then
  1703. c.face:remove()
  1704. end
  1705. end
  1706. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1707. c.Color = C3(58,125,21)
  1708. c.Material = "Neon"
  1709. elseif c.ClassName == "CharacterMesh" or c.Name == "Body Colors" then
  1710. c:remove()
  1711. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1712. c:remove()
  1713. end
  1714. end
  1715. end
  1716.  
  1717.  
  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.  
  1761. local SKILLTEXTCOLOR = BrickColor.new("Magenta").Color
  1762. local SKILLFONT = "SciFi"
  1763. local SKILLTEXTSIZE = 7
  1764.  
  1765. Humanoid.Died:connect(function()
  1766. refit()
  1767. end)
  1768.  
  1769. function Blink()
  1770. coroutine.resume(coroutine.create(function()
  1771. if EYE ~= nil then
  1772. for i = 1, 5 do
  1773. Swait()
  1774. EYE.Mesh.Scale = EYE.Mesh.Scale - VT(0,0.2,0)
  1775. EYE2.Mesh.Scale = EYE.Mesh.Scale
  1776. end
  1777. for i = 1, 7 do
  1778. Swait()
  1779. EYE.Mesh.Scale = EYE.Mesh.Scale + VT(0,0.2,0)
  1780. EYE2.Mesh.Scale = EYE.Mesh.Scale
  1781. end
  1782. EYE.Mesh.Scale = VT(1,1,1)
  1783. EYE2.Mesh.Scale = EYE.Mesh.Scale
  1784. end
  1785. end))
  1786. end
  1787.  
  1788. local AMMO1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.80, 0), UD2(0.07, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Ammo 1 Frame")
  1789. local AMMO2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.80, 0), UD2(0.07, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Ammo 2 Frame")
  1790. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  1791. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  1792.  
  1793. local SKILL3TEXT = CreateLabel(SKILL1FRAME, "press [Z] to troll people", C3(0,0,0), 7, SKILLFONT, 0, 2, 1, "Text 3")
  1794. local SKILL4TEXT = CreateLabel(SKILL2FRAME, "press [X] to pay jason respect", C3(0,0,0), 7, "SciFi", 0, 2, 1, "Text 4")
  1795.  
  1796. local AMMOIMAGE2 = IT("ImageLabel",AMMO2FRAME)
  1797. AMMOIMAGE2.Size = UD2(1,0,1,0)
  1798. AMMOIMAGE2.BackgroundTransparency = 1
  1799. AMMOIMAGE2.BorderSizePixel = 0
  1800. AMMOIMAGE2.Image = "http://www.roblox.com/asset/?id=923773583"
  1801.  
  1802. for i = 1, 35 do
  1803. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/35.2, "Magenta", "FaceGradient", VT(1.01,0.5,1.01),false)
  1804. FACE.Color = BrickColor.new("Magenta").Color
  1805. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  1806. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
  1807. end
  1808.  
  1809. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "Eye", VT(0.6,0.1,1)/2,false)
  1810. MakeForm(Eye,"Ball")
  1811. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
  1812. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "Eye", VT(0.6,0.1,1)/2,false)
  1813. MakeForm(Eye,"Ball")
  1814. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
  1815. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "Eye", VT(0.1,1,1)/2,false)
  1816. MakeForm(Eye,"Ball")
  1817. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  1818. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "Eye", VT(0.1,1,1)/2,false)
  1819. MakeForm(Eye,"Ball")
  1820. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
  1821.  
  1822. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Magenta", "BraceletPart", VT(1.01,0.3,1.01),false)
  1823. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0, -0.2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1824. for i = 1, 3 do
  1825. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Magenta", "BraceletPart", VT(0.2,1.02,0.2),false)
  1826. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0, 0, 0.6-0.3*i) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  1827. MakeForm(Part,"Cyl")
  1828. end
  1829. for i = 1, 3 do
  1830. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Magenta", "BraceletPart", VT(0.2,1.02,0.2),false)
  1831. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.6-0.3*i, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(90)), CF(0, 0, 0))
  1832. MakeForm(Part,"Cyl")
  1833. end
  1834. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Magenta", "BraceletPart", VT(0.51,0.6,0.25),false)
  1835. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(-0.125, -0.4, -0.25) * ANGLES(RAD(0), RAD(90), RAD(180)), CF(0, 0, 0))
  1836. MakeForm(Part,"Wedge")
  1837. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Magenta", "BraceletPart", VT(0.51,0.6,0.25),false)
  1838. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.125, -0.4, -0.25) * ANGLES(RAD(0), RAD(-90), RAD(180)), CF(0, 0, 0))
  1839. MakeForm(Part,"Wedge")
  1840. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Magenta", "BraceletPart", VT(0.52,0.5,0.25/2.3),false)
  1841. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(-0.125/2.3, -0.25, -0.25) * ANGLES(RAD(0), RAD(90), RAD(180)), CF(0, 0, 0))
  1842. MakeForm(Part,"Wedge")
  1843. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Magenta", "BraceletPart", VT(0.52,0.5,0.25/2.3),false)
  1844. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.125/2.3, -0.25, -0.25) * ANGLES(RAD(0), RAD(-90), RAD(180)), CF(0, 0, 0))
  1845. MakeForm(Part,"Wedge")
  1846.  
  1847.  
  1848.  
  1849.  
  1850.  
  1851. local particleemitter = Instance.new('ParticleEmitter', LeftArm)
  1852. particleemitter.VelocitySpread = 350
  1853. particleemitter.Lifetime = NumberRange.new(1)
  1854. particleemitter.Speed = NumberRange.new(0)
  1855. cringememe= {}
  1856. for i=0, 19 do
  1857. cringememe[#cringememe + 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  1858. end
  1859. particleemitter.Size = NumberSequence.new(cringememe)
  1860. particleemitter.Rate = 20
  1861. particleemitter.LockedToPart = true
  1862. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  1863. particleemitter.LightEmission = 1
  1864. particleemitter.Texture = "rbxassetid://256799049"
  1865. particleemitter.Color = ColorSequence.new(BrickColor.new("Magenta").Color)
  1866.  
  1867. local particleemitter = Instance.new('ParticleEmitter', Torso)
  1868. particleemitter.VelocitySpread = 250
  1869. particleemitter.Lifetime = NumberRange.new(3)
  1870. particleemitter.Speed = NumberRange.new(1.5)
  1871. youAreATHOT = {}
  1872. for i=0, 19 do
  1873. youAreATHOT[#youAreATHOT + 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  1874. end
  1875. particleemitter.Size = NumberSequence.new(youAreATHOT)
  1876. particleemitter.Rate = 10
  1877. particleemitter.LockedToPart = false
  1878. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  1879. particleemitter.LightEmission = 1
  1880. particleemitter.Texture = "rbxassetid://256799049"
  1881. particleemitter.Color = ColorSequence.new(BrickColor.new("Magenta").Color)
  1882.  
  1883. local particleemitter = Instance.new('ParticleEmitter', RightArm)
  1884. particleemitter.VelocitySpread = 350
  1885. particleemitter.Lifetime = NumberRange.new(1)
  1886. particleemitter.Speed = NumberRange.new(0)
  1887. cringememe2= {}
  1888. for i=0, 19 do
  1889. cringememe2[#cringememe2 + 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  1890. end
  1891. particleemitter.Size = NumberSequence.new(cringememe2)
  1892. particleemitter.Rate = 20
  1893. particleemitter.LockedToPart = true
  1894. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  1895. particleemitter.LightEmission = 1
  1896. particleemitter.Texture = "rbxassetid://256799049"
  1897. particleemitter.Color = ColorSequence.new(BrickColor.new("Magenta").Color)
  1898.  
  1899. local particleemitter = Instance.new('ParticleEmitter', RightLeg)
  1900. particleemitter.VelocitySpread = 350
  1901. particleemitter.Lifetime = NumberRange.new(1)
  1902. particleemitter.Speed = NumberRange.new(0)
  1903. cringememe3= {}
  1904. for i=0, 19 do
  1905. cringememe3[#cringememe3 + 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  1906. end
  1907. particleemitter.Size = NumberSequence.new(cringememe3)
  1908. particleemitter.Rate = 30
  1909. particleemitter.LockedToPart = true
  1910. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  1911. particleemitter.LightEmission = 1
  1912. particleemitter.Texture = "rbxassetid://256799049"
  1913. particleemitter.Color = ColorSequence.new(BrickColor.new("Magenta").Color)
  1914.  
  1915. local particleemitter = Instance.new('ParticleEmitter', LeftLeg)
  1916. particleemitter.VelocitySpread = 350
  1917. particleemitter.Lifetime = NumberRange.new(1)
  1918. particleemitter.Speed = NumberRange.new(0)
  1919. cringememe4= {}
  1920. for i=0, 19 do
  1921. cringememe4[#cringememe4 + 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  1922. end
  1923. particleemitter.Size = NumberSequence.new(cringememe4)
  1924. particleemitter.Rate = 30
  1925. particleemitter.LockedToPart = true
  1926. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  1927. particleemitter.LightEmission = 1
  1928. particleemitter.Texture = "rbxassetid://256799049"
  1929. particleemitter.Color = ColorSequence.new(BrickColor.new("Magenta").Color)
  1930.  
  1931.  
  1932.  
  1933. --//=================================\\
  1934. --|| DAMAGE FUNCTIONS
  1935. --\\=================================//
  1936.  
  1937. function StatLabel(CFRAME, TEXT, COLOR)
  1938. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1939. STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  1940. local BODYGYRO = IT("BodyGyro", STATPART)
  1941. game:GetService("Debris"):AddItem(STATPART ,5)
  1942. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1943. BILLBOARDGUI.Adornee = STATPART
  1944. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1945. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1946. BILLBOARDGUI.AlwaysOnTop = false
  1947. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1948. TEXTLABEL.BackgroundTransparency = 1
  1949. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1950. TEXTLABEL.Text = TEXT
  1951. TEXTLABEL.Font = SKILLFONT
  1952. TEXTLABEL.FontSize="Size42"
  1953. TEXTLABEL.TextColor3 = COLOR
  1954. TEXTLABEL.TextStrokeTransparency = 0
  1955. TEXTLABEL.TextScaled = true
  1956. TEXTLABEL.TextWrapped = true
  1957. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1958. for i = 1, 10 do
  1959. Swait()
  1960. STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  1961. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/10)
  1962. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  1963. end
  1964. THEPART.Parent = nil
  1965. end),STATPART, TEXTLABEL)
  1966. end
  1967.  
  1968. --//=================================\\
  1969. --|| DAMAGING
  1970. --\\=================================//
  1971.  
  1972. function ApplyDamage(Humanoid,Damage,TorsoPart)
  1973. local defence = Instance.new("BoolValue",Humanoid.Parent)
  1974. defence.Name = ("HitBy"..Player.Name)
  1975. game:GetService("Debris"):AddItem(defence, 0.001)
  1976. Damage = Damage * DAMAGEMULTIPLIER
  1977. if Humanoid.Health ~= 0 then
  1978. local CritChance = MRANDOM(1,100)
  1979. if Damage > Humanoid.Health then
  1980. Damage = math.ceil(Humanoid.Health)
  1981. if Damage == 0 then
  1982. Damage = 0.1
  1983. end
  1984. end
  1985. Humanoid.Health = Humanoid.Health - Damage
  1986. StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(0, 0, 0))
  1987. end
  1988. end
  1989.  
  1990. function Ghostify(POSITION,RANGE)
  1991. local CHILDREN = workspace:GetDescendants()
  1992. for index, CHILD in pairs(CHILDREN) do
  1993. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1994. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1995. if HUM then
  1996. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1997. if TORSO then
  1998. if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then
  1999. local GHOST = GHOSTBASE:Clone()
  2000. GHOST.Parent = Effects
  2001. GHOST.Torso.CFrame = TORSO.CFrame
  2002. table.insert(GHOSTS,GHOST)
  2003. CHILD:remove()
  2004. end
  2005. end
  2006. end
  2007. end
  2008. end
  2009. end
  2010.  
  2011.  
  2012. function BulletDetection(FROM,TO,BRUTAL)
  2013. local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character)
  2014. coroutine.resume(coroutine.create(function()
  2015. if AIMHIT ~= nil then
  2016. if AIMHIT.Parent ~= Character then
  2017. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  2018. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") then
  2019. if BRUTAL == true then
  2020. Kill(AIMHIT.Parent)
  2021. else
  2022. getbloody(AIMHIT,15)
  2023. AIMHIT.Parent:BreakJoints()
  2024. if AIMHIT.Name == "Head" then
  2025. AIMHIT.Name = "HEADSHOT"
  2026. AIMHIT:remove()
  2027. end
  2028. end
  2029. else
  2030. if BRUTAL == true then
  2031. Kill(AIMHIT.Parent.Parent)
  2032. else
  2033. AIMHIT.Parent.Parent:BreakJoints()
  2034. end
  2035. end
  2036. end
  2037. end
  2038. end
  2039. end))
  2040. SpawnTrail(FROM,AIMPOS)
  2041. return AIMHIT,AIMPOS,NORMAL
  2042. end
  2043.  
  2044.  
  2045. --//=================================\\
  2046. --|| ATTACK FUNCTIONS AND STUFF
  2047. --\\=================================//
  2048.  
  2049. function PandorasBox()
  2050. 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)
  2051. if HITFLOOR ~= nil then
  2052. ATTACK = false
  2053. Rooted = false
  2054. local RINGSPIN = true
  2055. local CONSTRUCTING = true
  2056. local RING = CreatePart(3, Effects, "Neon", 0, 1, "Alder", "Ring", VT(0,0,0))
  2057. RING.Color = C3(0,0,0)
  2058. MakeForm(RING,"Cyl")
  2059. RING.CFrame = CF(HITPOS)
  2060. CreateSound(402981977, RING, 5, 1.2, false)
  2061. coroutine.resume(coroutine.create(function()
  2062. repeat
  2063. Swait()
  2064. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  2065. 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)
  2066. 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)
  2067. 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)
  2068. 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)
  2069. 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)
  2070. 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)
  2071. until CONSTRUCTING == false
  2072. repeat
  2073. Swait()
  2074. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  2075. until RINGSPIN == false
  2076. for i = 1, 25 do
  2077. Swait()
  2078. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  2079. RING.Size = RING.Size - VT(0.15,0,0.15)
  2080. --DECAL.Transparency = DECAL.Transparency + 1/25
  2081. RING.Transparency = RING.Transparency + 1/25
  2082. end
  2083. RING:remove()
  2084. end))
  2085. for i = 1, 15 do
  2086. Swait()
  2087. RING.Size = RING.Size + VT(0.75,0,0.75)
  2088. RING.Transparency = RING.Transparency - 1/15
  2089. end
  2090. local BOXSPIN = true
  2091. local PANDORASBOX = IT("Model",Effects)
  2092. PANDORASBOX.Name = "Pandora's Box"
  2093. local BOX = IT("Model",PANDORASBOX)
  2094. BOX.Name = "Body"
  2095. local LID = IT("Model",PANDORASBOX)
  2096. LID.Name = "Lid"
  2097. --BUILDING THE BOX--
  2098. local BASE = CreatePart(3, BOX, "Neon", 0, 0, "Alder", "Black", VT(2,1.8,2))
  2099. BASE.Color = C3(0,0,0)
  2100. PANDORASBOX.PrimaryPart = BASE
  2101. BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z))
  2102. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2))
  2103. WOOD.CFrame = BASE.CFrame*CF(1,0,1)
  2104. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2))
  2105. WOOD.CFrame = BASE.CFrame*CF(1,0,-1)
  2106. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2))
  2107. WOOD.CFrame = BASE.CFrame*CF(-1,0,1)
  2108. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2))
  2109. WOOD.CFrame = BASE.CFrame*CF(-1,0,-1)
  2110. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
  2111. WOOD.CFrame = BASE.CFrame*CF(0,0.9,1)
  2112. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
  2113. WOOD.CFrame = BASE.CFrame*CF(0,0.9,-1)
  2114. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
  2115. WOOD.CFrame = BASE.CFrame*CF(1,0.9,0)
  2116. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
  2117. WOOD.CFrame = BASE.CFrame*CF(-1,0.9,0)
  2118. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
  2119. WOOD.CFrame = BASE.CFrame*CF(0,-0.9,1)
  2120. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
  2121. WOOD.CFrame = BASE.CFrame*CF(0,-0.9,-1)
  2122. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
  2123. WOOD.CFrame = BASE.CFrame*CF(1,-0.9,0)
  2124. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
  2125. WOOD.CFrame = BASE.CFrame*CF(-1,-0.9,0)
  2126. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,1.9,0.1))
  2127. WOOD.CFrame = BASE.CFrame*CF(0,0,1)
  2128. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,1.9,0.1))
  2129. WOOD.CFrame = BASE.CFrame*CF(0,0,-1)
  2130. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(0.1,1.9,2.1))
  2131. WOOD.CFrame = BASE.CFrame*CF(1,0,0)
  2132. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(0.1,1.9,2.1))
  2133. WOOD.CFrame = BASE.CFrame*CF(-1,0,0)
  2134. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,0.1,2.1))
  2135. WOOD.CFrame = BASE.CFrame*CF(0,-0.9,0)
  2136. -------------
  2137. local LIDPART = CreatePart(3, LID, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,0.1,2.1))
  2138. LIDPART.CFrame = BASE.CFrame*CF(0,1,0)
  2139. LID.PrimaryPart = LIDPART
  2140. local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
  2141. WOOD.CFrame = LIDPART.CFrame*CF(0,0,-1)
  2142. local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
  2143. WOOD.CFrame = LIDPART.CFrame*CF(0,0,1)
  2144. local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
  2145. WOOD.CFrame = LIDPART.CFrame*CF(1,0,0)
  2146. local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
  2147. WOOD.CFrame = LIDPART.CFrame*CF(-1,0,0)
  2148. local DECAL = IT("Decal",LIDPART)
  2149. DECAL.Face = "Top"
  2150. DECAL.Texture = "http://www.roblox.com/asset/?id=1501226061"
  2151. DECAL.Color3 = C3(0,0,0)
  2152. --BUILDING THE BOX--
  2153. coroutine.resume(coroutine.create(function()
  2154. repeat
  2155. Swait()
  2156. PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * ANGLES(RAD(0), RAD(2.45), RAD(0)))
  2157. until BOXSPIN == false
  2158. end))
  2159. for i = 1, 25 do
  2160. Swait()
  2161. PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,1.5-(i/12.5),0))
  2162. end
  2163. wait(0.5)
  2164. BOXSPIN = false
  2165. CONSTRUCTING = false
  2166. coroutine.resume(coroutine.create(function()
  2167. 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})
  2168. --[[for i = 1, 45 do
  2169. Swait()
  2170. LID:SetPrimaryPartCFrame(LIDPART.CFrame * CF(0,1.5-(i/12.5),0.5) * ANGLES(RAD(0.7), RAD(0), RAD(0)))
  2171. end-
  2172. LID:remove()]]--
  2173. for _, c in pairs(LID:GetChildren()) do
  2174. if c.ClassName == "Part" then
  2175. c.Anchored = false
  2176. c.CanCollide = true
  2177. if c ~= LIDPART then
  2178. weldBetween(LIDPART,c)
  2179. end
  2180. end
  2181. end
  2182. LIDPART.Velocity = CF(LIDPART.Position,LIDPART.CFrame*CF(15,25,0).p).lookVector*65
  2183. Debris:AddItem(LID,15)
  2184. wait(0.5)
  2185. local RANDOMEFFECT = MRANDOM(1,4)
  2186. if RANDOMEFFECT == 1 then
  2187. for i = 1, 45 do
  2188. wait((2-(i/15))/15)
  2189. 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})
  2190. end
  2191. wait(1)
  2192. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(35,35,35)*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})
  2193. WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(45,3,45)*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})
  2194. WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(45,3,45)*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})
  2195. for i = 1, 5 do
  2196. WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35)*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})
  2197. end
  2198. ApplyAoE(BASE.Position,50,1,200,375,false)
  2199. ApplyAoE(BASE.Position,250,35,75,175,false)
  2200. elseif RANDOMEFFECT == 2 then
  2201. local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Alder", "Field", VT(0.3,0.3,0.3))
  2202. FIELD.CFrame = BASE.CFrame
  2203. MakeForm(FIELD,"Ball")
  2204. for i = 1, 50 do
  2205. Swait()
  2206. FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01)
  2207. FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
  2208. end
  2209. wait(0.2)
  2210. local LOOP = CreateSound(1393698948, FIELD, 0, 1.2, true)
  2211. coroutine.resume(coroutine.create(function()
  2212. for i = 1, 75 do
  2213. Swait()
  2214. LOOP.Volume = LOOP.Volume + 10/75
  2215. LOOP.Parent = FIELD
  2216. local CHILDREN = workspace:GetDescendants()
  2217. for index, CHILD in pairs(CHILDREN) do
  2218. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  2219. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2220. if HUM then
  2221. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2222. if TORSO then
  2223. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
  2224. HUM.Health = HUM.Health - 0.1
  2225. TORSO.Velocity = VT(0,5,0)
  2226. HUM.PlatformStand = true
  2227. if TORSO.RotVelocity.Magnitude < 15 then
  2228. TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
  2229. end
  2230. end
  2231. end
  2232. end
  2233. end
  2234. end
  2235. FIELD.Size = FIELD.Size + VT(3,3,3)
  2236. FIELD.Transparency = FIELD.Transparency + 0.8/75
  2237. end
  2238. for i = 1, 500 do
  2239. Swait()
  2240. LOOP.Parent = FIELD
  2241. local CHILDREN = workspace:GetDescendants()
  2242. for index, CHILD in pairs(CHILDREN) do
  2243. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  2244. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2245. if HUM then
  2246. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2247. if TORSO then
  2248. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
  2249. TORSO.Velocity = VT(0,5,0)
  2250. HUM.Health = HUM.Health - 0.1
  2251. HUM.PlatformStand = true
  2252. if TORSO.RotVelocity.Magnitude < 15 then
  2253. TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
  2254. end
  2255. end
  2256. end
  2257. end
  2258. end
  2259. end
  2260. end
  2261. for i = 1, 25 do
  2262. Swait()
  2263. LOOP.Volume = LOOP.Volume + 10/25
  2264. LOOP.Parent = FIELD
  2265. local CHILDREN = workspace:GetDescendants()
  2266. for index, CHILD in pairs(CHILDREN) do
  2267. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  2268. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2269. if HUM then
  2270. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2271. if TORSO then
  2272. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then
  2273. TORSO.Velocity = VT(0,5,0)
  2274. HUM.Health = HUM.Health - 0.1
  2275. HUM.PlatformStand = false
  2276. if TORSO.RotVelocity.Magnitude < 15 then
  2277. TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
  2278. end
  2279. end
  2280. end
  2281. end
  2282. end
  2283. end
  2284. FIELD.Size = FIELD.Size - VT(3,3,3)
  2285. FIELD.Transparency = FIELD.Transparency + 0.2/25
  2286. end
  2287. FIELD:remove()
  2288. end))
  2289. elseif RANDOMEFFECT == 3 then
  2290. for i = 1, 10 do
  2291. wait(0.15)
  2292. 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})
  2293. coroutine.resume(coroutine.create(function()
  2294. local MINION = CLONE:Clone()
  2295. MINION.Parent = Effects
  2296. MINION.Name = "Shadow"
  2297. MINION.HumanoidRootPart.CFrame = BASE.CFrame*CF(0,5,0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))
  2298. MINION.HumanoidRootPart.Velocity = CF(MINION.HumanoidRootPart.Position,MINION.HumanoidRootPart.CFrame*CF(0,8,-15).p).lookVector*MRANDOM(55,100)
  2299. for _, c in pairs(MINION:GetChildren()) do
  2300. if c.ClassName == "Part" then
  2301. c.Material = "Neon"
  2302. c.Color = C3(0,0,0)
  2303. c.Transparency = 0.25
  2304. if c.Name == "Head" then
  2305. c:ClearAllChildren()
  2306. local MSH = IT("BlockMesh",c)
  2307. MSH.Scale = VT(0.5,1,1)
  2308. end
  2309. end
  2310. end
  2311. local TORSO = MINION.Torso
  2312. local HUMAN = MINION.Humanoid
  2313. HUMAN.WalkSpeed = 100
  2314. HUMAN.MaxHealth = math.huge
  2315. HUMAN.Health = math.huge
  2316. HUMAN.DisplayDistanceType = "None"
  2317. HUMAN.Died:connect(function()
  2318. MINION:remove()
  2319. --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 3, 0.5, false)
  2320. end)
  2321. wait(1)
  2322. local findNearestTorso = function(POS)
  2323. local list = game.Workspace:GetDescendants()
  2324. local torso = nil
  2325. local dist = 9999
  2326. local temp = nil
  2327. local human = nil
  2328. local temp2 = nil
  2329. for x = 1, #list do
  2330. temp2 = list[x]
  2331. if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Parent ~= Effects) then
  2332. temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
  2333. human = temp2:findFirstChildOfClass("Humanoid")
  2334. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  2335. if (temp.Position - POS).magnitude < dist then
  2336. torso = temp
  2337. dist = (temp.Position - POS).magnitude
  2338. end
  2339. end
  2340. end
  2341. end
  2342. return torso, dist
  2343. end
  2344. for i = 1, 40 do
  2345. if HUMAN.Health == 0 then
  2346. break
  2347. end
  2348. wait(0.3)
  2349. local target,dist= findNearestTorso(TORSO.Position)
  2350. if target then
  2351. HUMAN:MoveTo(target.Position)
  2352. if dist < 999 then
  2353. CreateSound(348663022, TORSO, 10, 1, true)
  2354. wait(0.5)
  2355. --local ANIM = HUMAN:LoadAnimation(ATANIM)
  2356. --ANIM:Play()
  2357. --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 1, 1, false)
  2358. ApplyAoE(TORSO.Position,10,0,0,85,false)
  2359. 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})
  2360. for i = 1, 5 do
  2361. 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})
  2362. end
  2363. break
  2364. end
  2365. end
  2366. end
  2367. MINION:remove()
  2368. end))
  2369. end
  2370. elseif RANDOMEFFECT == 4 then
  2371. local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Alder", "Field", VT(0.3,0.3,0.3))
  2372. FIELD.Color = C3(0,0,0)
  2373. FIELD.CFrame = BASE.CFrame
  2374. MakeForm(FIELD,"Ball")
  2375. FIELD.CanCollide = true
  2376. for i = 1, 50 do
  2377. Swait()
  2378. FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01)
  2379. FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
  2380. end
  2381. wait(0.2)
  2382. local LOOP = CreateSound(487214658, FIELD, 0, 1, true)
  2383. coroutine.resume(coroutine.create(function()
  2384. local E = 0
  2385. for i = 1, 75 do
  2386. E = E + 1
  2387. Swait()
  2388. if E >= 35 then
  2389. E = 0
  2390. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*30, 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})
  2391. end
  2392. LOOP.Volume = LOOP.Volume + 10/75
  2393. LOOP.Parent = FIELD
  2394. local CHILDREN = workspace:GetDescendants()
  2395. for index, CHILD in pairs(CHILDREN) do
  2396. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  2397. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2398. if HUM then
  2399. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2400. if TORSO then
  2401. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then
  2402. for _, c in pairs(CHILD:GetChildren()) do
  2403. if c:IsA("BasePart") then
  2404. local bv = Instance.new("BodyVelocity")
  2405. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2406. bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50
  2407. bv.Parent = c
  2408. Debris:AddItem(bv,0.05)
  2409. end
  2410. end
  2411. HUM.Health = HUM.Health - 0.3
  2412. end
  2413. end
  2414. end
  2415. end
  2416. end
  2417. FIELD.Size = FIELD.Size + VT(0.3,0.3,0.3)/5
  2418. end
  2419. for i = 1, 180 do
  2420. E = E + 1
  2421. Swait()
  2422. if E >= 35 then
  2423. E = 0
  2424. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*30, 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})
  2425. end
  2426. LOOP.Parent = FIELD
  2427. local CHILDREN = workspace:GetDescendants()
  2428. for index, CHILD in pairs(CHILDREN) do
  2429. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  2430. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2431. if HUM then
  2432. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2433. if TORSO then
  2434. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then
  2435. for _, c in pairs(CHILD:GetChildren()) do
  2436. if c:IsA("BasePart") then
  2437. local bv = Instance.new("BodyVelocity")
  2438. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2439. bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50
  2440. bv.Parent = c
  2441. Debris:AddItem(bv,0.05)
  2442. end
  2443. end
  2444. HUM.Health = HUM.Health - 0.3
  2445. end
  2446. end
  2447. end
  2448. end
  2449. end
  2450. end
  2451. ApplyAoE(FIELD.Position,40,15,20,375,false)
  2452. 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})
  2453. for i = 1, 5 do
  2454. 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})
  2455. end
  2456. FIELD:remove()
  2457. end))
  2458. elseif RANDOMEFFECT == 5 then
  2459. end
  2460. wait(0.5)
  2461. for i = 1, 25 do
  2462. Swait()
  2463. PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,-0.3,0))
  2464. end
  2465. PANDORASBOX:remove()
  2466. RINGSPIN = false
  2467. end))
  2468. ATTACK = false
  2469. Rooted = false
  2470. end
  2471. end
  2472.  
  2473.  
  2474. function Taunt()
  2475. ATTACK = true
  2476. Rooted = false
  2477. TAUNT = true
  2478. for i=0, 0.1, 0.1 / Animation_Speed do
  2479. Swait()
  2480. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2481. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2482. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2483. end
  2484. for i=0, 3, 0.1 / Animation_Speed do
  2485. Swait()
  2486. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2487. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2488. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(15)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2489. end
  2490. CreateSound(363808674, Torso, 10, 1.3)
  2491. for i=0, 1, 0.1 / Animation_Speed do
  2492. Swait()
  2493. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(120)), 3 / Animation_Speed)
  2494. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 3/ Animation_Speed)
  2495. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(230), RAD(0), RAD(35)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  2496. end
  2497. WACKYEFFECT({EffectType = "Block", Size = VT(6,6,6), Size2 = VT(15,15,15), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Magenta").Color, SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  2498. CreateSound(649634100, Torso, 10, 0.8)
  2499. for i=0, 0.01, 0.1 / Animation_Speed do
  2500. Swait()
  2501. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed)
  2502. 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, 3 / Animation_Speed)
  2503. LeftShoulder.C0 = Clerp(LeftShoulder.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)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  2504. end
  2505. ATTACK = false
  2506. Rooted = false
  2507. TAUNT = false
  2508. end
  2509.  
  2510.  
  2511.  
  2512.  
  2513.  
  2514. function Teleport()
  2515. ATTACK = true
  2516. Rooted = false
  2517. for i=0, 0.5, 0.1 / Animation_Speed do
  2518. Swait()
  2519. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2520. 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)
  2521. end
  2522. for e = 1, #BODY do
  2523. if BODY[e] ~= nil then
  2524. local STUFF = BODY[e]
  2525. local PART = STUFF[1]
  2526. if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then
  2527. local PRT = PART:Clone()
  2528. PRT.Anchored = true
  2529. PRT.CanCollide = false
  2530. PRT.Material = "Neon"
  2531. PRT.Color = BrickColor.new("Magenta").Color
  2532. PRT.Name = "WarpEffect"
  2533. PRT.Parent = Effects
  2534. PRT.CFrame = PART.CFrame
  2535. PRT:BreakJoints()
  2536. if PRT:FindFirstChildOfClass("Sound") then
  2537. PRT:FindFirstChildOfClass("Sound"):remove()
  2538. end
  2539. if PRT:FindFirstChildOfClass("Decal") then
  2540. PRT:FindFirstChildOfClass("Decal"):remove()
  2541. end
  2542. coroutine.resume(coroutine.create(function()
  2543. for i = 1, 100 do
  2544. Swait()
  2545. PRT.Transparency = PRT.Transparency + 1/100
  2546. end
  2547. PRT:remove()
  2548. end))
  2549. end
  2550. end
  2551. end
  2552. CreateSound(217767125, Torso, 10, 1)
  2553. local POS = RootPart.Orientation
  2554. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0))
  2555. RootPart.Orientation = POS
  2556. RootJoint.Parent = RootPart
  2557. for i=0, 0.5, 0.1 / Animation_Speed do
  2558. Swait()
  2559. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2560. 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)
  2561. end
  2562. for i=0, 0.1, 0.1 / Animation_Speed do
  2563. Swait()
  2564. 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)
  2565. end
  2566. ATTACK = false
  2567. Rooted = false
  2568. end
  2569.  
  2570. function Technobeam()
  2571. ATTACK = true
  2572. Rooted = false
  2573. local GYRO = IT("BodyGyro",RootPart)
  2574. GYRO.D = 100
  2575. GYRO.P = 2000
  2576. GYRO.MaxTorque = VT(0,4000000,0)
  2577. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  2578. CreateSound("93724183", RightArm, 5, 1, false)
  2579. for i=1, 35 do
  2580. Swait()
  2581. WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-5,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6})
  2582. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  2583. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed)
  2584. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
  2585. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(90), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2586. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2587. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2588. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2589. end
  2590. local BEAM = CreatePart(3, Effects, "Neon", 0, 1, "Magenta", "Lazer", VT(0,0,0))
  2591. local LOOP = CreateSound("415700134", RightArm, 5, 1, false)
  2592. local TOCH = BEAM.Touched:Connect(function(hit)
  2593. if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then
  2594. Shatter(hit)
  2595. end
  2596. end)
  2597. local I = 0
  2598. repeat
  2599. Swait()
  2600. I = I + 1
  2601. if I <= 10 then
  2602. BEAM.Transparency = BEAM.Transparency - 0.1
  2603. end
  2604. local STARTPOS = RightArm.CFrame*CF(0,-4,0).p
  2605. local ENDHIT,ENDPOS = CastProperRay(STARTPOS,Mouse.Hit.p,650,Character)
  2606. local DISTANCE = (STARTPOS - ENDPOS).Magnitude
  2607. BEAM.CFrame = CF(STARTPOS,ENDPOS)*CF(0,0,-DISTANCE/2)*ANGLES(RAD(0),RAD(0),RAD(I*5))
  2608. BEAM.Size = VT(2,2,DISTANCE)
  2609. WACKYEFFECT({Time = 5, EffectType = "Box", Size = VT(1,1,1), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = CF(ENDPOS), MoveToPos = CF(ENDPOS)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,15,0).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color = BrickColor.new("Magenta").Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2610. WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-4,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Magenta").Color, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6})
  2611. WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.25, CFrame = CF(ENDPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Magenta").Color, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6})
  2612. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  2613. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed)
  2614. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
  2615. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(90), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2616. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2617. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2618. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2619. if ENDHIT ~= nil then
  2620. if ENDHIT.Anchored == false and ENDHIT.Parent ~= Effects then
  2621. Shatter(ENDHIT)
  2622. end
  2623. end
  2624. until LOOP.Playing == false
  2625. GYRO:remove()
  2626. BEAM:remove()
  2627. ATTACK = false
  2628. Rooted = false
  2629. end
  2630.  
  2631. function SpawnSmite(POS)
  2632. local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, Character)
  2633. local EMITPOS = HITPOS
  2634. if HITFLOOR ~= nil then
  2635. if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
  2636. HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent)
  2637. EMITPOS = HITPOS
  2638. elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  2639. HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent)
  2640. EMITPOS = HITPOS
  2641. end
  2642. end
  2643. if HITFLOOR ~= nil then
  2644. ApplyAoE(EMITPOS,10)
  2645. WACKYEFFECT({EffectType = "Sphere", Size = VT(0,100000,0), Size2 = VT(10,100000,10), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Magenta").Color, SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
  2646. WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Magenta").Color, SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  2647. WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*1.5, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Magenta").Color, SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  2648. for i = 1, 5 do
  2649. local TOPOS = CF(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,12)
  2650. WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0,0.2), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS,TOPOS.p) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = TOPOS.p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Magenta").Color, SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
  2651. end
  2652. end
  2653. end
  2654.  
  2655. function SpawnMeteor(POS,SIZE,ISDEBREE,ORIPOS)
  2656. coroutine.resume(coroutine.create(function()
  2657. local METEOR = IT("Model",Effects)
  2658. METEOR.Name = "Meteorite"
  2659. local CENTER = CreatePart(3, METEOR, "Granite", 0, 0, "Magenta", "MeteorCenter", VT(5,5,5)*SIZE)
  2660. METEOR.PrimaryPart = CENTER
  2661. local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Magenta", "MeteorCenter", VT(5,5,5)*SIZE)
  2662. PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  2663. for i = 1, 15 do
  2664. local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "Magenta", "Fire", VT(5.1,1,5.1)*SIZE)
  2665. FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  2666. end
  2667. if ISDEBREE ~= true then
  2668. METEOR:SetPrimaryPartCFrame(CF(POS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15)))*CF(0,500,0) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
  2669. else
  2670. METEOR:SetPrimaryPartCFrame(CF(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
  2671. end
  2672. local IMPACT = false
  2673. CreateSound(463593339, CENTER, 10, 0.6)
  2674. if SIZE >= 3.5 then
  2675. for i = 1, MRANDOM(3,7) do
  2676. SpawnMeteor(CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,SIZE*12).p,SIZE/MRANDOM(4,5),true,CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SIZE*15).p)
  2677. end
  2678. end
  2679. for i = 1, 200 do
  2680. Swait()
  2681. local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF(CENTER.Position,POS).lookVector, 3, Character)
  2682. if HITFLOOR == nil then
  2683. local ORI = CENTER.Orientation
  2684. METEOR:SetPrimaryPartCFrame(CF(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
  2685. else
  2686. if HITFLOOR.Anchored == true then
  2687. CreateDebreeRing(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5)
  2688. CreateFlyingDebree(HITFLOOR,CF(HITPOS),8,VT(6,6,6)*SIZE,5,175)
  2689. end
  2690. IMPACT = true
  2691. break
  2692. end
  2693. end
  2694. if IMPACT == true then
  2695. WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
  2696. WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5})
  2697. WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
  2698. ApplyAoE(CENTER.Position,30*SIZE)
  2699. end
  2700. METEOR:remove()
  2701. end))
  2702. end
  2703.  
  2704. function Smite()
  2705. ATTACK = true
  2706. Rooted = false
  2707. CreateSound(1368573150, RightArm, 3, 1.5)
  2708. for i=0, 0.6, 0.1 / Animation_Speed do
  2709. Swait()
  2710. WACKYEFFECT({TIME = 15, EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Magenta").Color, SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  2711. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2712. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed)
  2713. end
  2714. local POWER = 0
  2715. repeat
  2716. Swait()
  2717. WACKYEFFECT({EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Magenta").Color, SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  2718. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2719. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed)
  2720. POWER = POWER + 0.5
  2721. if POWER >= 85 then
  2722. POWER = 85
  2723. end
  2724. until KEYHOLD == false
  2725. if POWER < 0.6 then
  2726. SpawnSmite(Mouse.Hit.p)
  2727. else
  2728. if POWER < 15 then
  2729. POWER = 15
  2730. end
  2731. SpawnMeteor(Mouse.Hit.p,POWER/15)
  2732. end
  2733. ATTACK = false
  2734. Rooted = false
  2735. end
  2736.  
  2737.  
  2738.  
  2739. function Corrupted_Explosion()
  2740. ATTACK = true
  2741. Rooted = true
  2742. for i=0, 1, 0.1 / Animation_Speed do
  2743. Swait()
  2744. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.6 / Animation_Speed)
  2745. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.6 / Animation_Speed)
  2746. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2747. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.1 / Animation_Speed)
  2748. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2749. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2750. end
  2751. for i=0, 0.4, 0.1 / Animation_Speed do
  2752. Swait()
  2753. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -1, -0.3) * ANGLES(RAD(75), RAD(0), RAD(75)), 1 / Animation_Speed)
  2754. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 1/ Animation_Speed)
  2755. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2756. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2757. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.01) * ANGLES(RAD(75), RAD(25), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  2758. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  2759. end
  2760. local BEAM = CreatePart(3, Effects, "Neon", 0, 0, "Magenta", "Beam", VT(0,0,0))
  2761. local BEAM2 = CreatePart(3, Effects, "Neon", 0, 0, "Magenta", "Beam", VT(0,0,0))
  2762. MakeForm(BEAM,"Ball")
  2763. MakeForm(BEAM2,"Ball")
  2764. BEAM.CFrame = CF(RootPart.Position)
  2765. BEAM2.CFrame = CF(RootPart.Position)
  2766. CreateSound(EXPLOSIONSOUND,RootPart,10,1,false)
  2767. for i=1, 100 do
  2768. Swait()
  2769. BEAM.Size = BEAM.Size + VT(0.7,8,0.7)
  2770. BEAM2.Size = BEAM2.Size + VT(2,2,2)
  2771. ApplyAoE(BEAM2.Position,BEAM2.Size.Z/2,5,5,15,true)
  2772. BEAM.CFrame = CF(RootPart.Position)
  2773. BEAM2.CFrame = CF(RootPart.Position)
  2774. WACKYEFFECT({TIME = 5+i, EffectType = "Swirl", Size = BEAM2.Size*1.15, Size2 = VT(0,BEAM.Size.Y,0), Transparency = 0.8, Transparency2 = 1, CFrame = BEAM.CFrame * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Magenta").Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2775. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -1, -0.3) * ANGLES(RAD(75), RAD(0), RAD(75)), 1 / Animation_Speed)
  2776. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 1/ Animation_Speed)
  2777. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2778. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2779. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.01) * ANGLES(RAD(75), RAD(25), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  2780. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  2781. end
  2782. WACKYEFFECT({TIME = 75, EffectType = "Sphere", Size = BEAM.Size, Size2 = VT(0,BEAM.Size.Y,0), Transparency = 0, Transparency2 = 0, CFrame = BEAM.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Magenta").Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2783. WACKYEFFECT({TIME = 75, EffectType = "Sphere", Size = BEAM2.Size, Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.6, CFrame = BEAM2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Magenta").Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2784. BEAM2:remove()
  2785. BEAM:remove()
  2786. ATTACK = false
  2787. Rooted = false
  2788. end
  2789.  
  2790. function freezenearest(position, range)
  2791. for i, v in ipairs(workspace:GetChildren()) do
  2792. local body = v:GetChildren()
  2793. for part = 1, #body do
  2794. if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character and range > (body[part].Position - position).Magnitude and v.ClassName == "Model" and v:FindFirstChildOfClass("Humanoid") then
  2795. v:BreakJoints()
  2796. body[part].Material = "Ice"
  2797. body[part].BrickColor = BRICKC("Magenta")
  2798. body[part].Anchored = true
  2799. end
  2800. end
  2801. end
  2802. end
  2803.  
  2804.  
  2805. --//=================================\\
  2806. --|| ASSIGN THINGS TO KEYS
  2807. --\\=================================//
  2808.  
  2809. function MouseDown(Mouse)
  2810. if ATTACK == false then
  2811. end
  2812. end
  2813.  
  2814. function MouseUp(Mouse)
  2815. HOLD = false
  2816. end
  2817.  
  2818. function KeyDown(Key)
  2819. KEYHOLD = true
  2820.  
  2821.  
  2822. if Key == "z" and ATTACK == false then
  2823. PandorasBox()
  2824. end
  2825. if Key == "q" and ATTACK == false then
  2826. Teleport()
  2827. end
  2828.  
  2829. if Key == "e" and ATTACK == false then
  2830. Corrupted_Explosion()
  2831. end
  2832.  
  2833.  
  2834.  
  2835. if Key == "b" and ATTACK == false then
  2836. Technobeam()
  2837. end
  2838.  
  2839. if Key == "t" and ATTACK == false then
  2840. Roar()
  2841. end
  2842.  
  2843.  
  2844.  
  2845. if Key == "c" and ATTACK == false then
  2846. Smite()
  2847. end
  2848.  
  2849.  
  2850.  
  2851. if Key == "v" and ATTACK == false then
  2852. Blizzard()
  2853. end
  2854. if Key == "r" and ATTACK == false then
  2855. Sheer_Cold()
  2856. end
  2857.  
  2858. if Key == "f" and ATTACK == false then
  2859. Prison_Key()
  2860. end
  2861.  
  2862. if Key == "g" and ATTACK == false then
  2863. Morning_Star()
  2864. end
  2865. end
  2866.  
  2867. function KeyUp(Key)
  2868. KEYHOLD = false
  2869. end
  2870.  
  2871. Mouse.Button1Down:connect(function(NEWKEY)
  2872. MouseDown(NEWKEY)
  2873. end)
  2874. Mouse.Button1Up:connect(function(NEWKEY)
  2875. MouseUp(NEWKEY)
  2876. end)
  2877. Mouse.KeyDown:connect(function(NEWKEY)
  2878. KeyDown(NEWKEY)
  2879. end)
  2880. Mouse.KeyUp:connect(function(NEWKEY)
  2881. KeyUp(NEWKEY)
  2882. end)
  2883.  
  2884. --//=================================\\
  2885. --\\=================================//
  2886.  
  2887.  
  2888. function unanchor()
  2889. if UNANCHOR == true then
  2890. g = Character:GetChildren()
  2891. for i = 1, #g do
  2892. if g[i].ClassName == "Part" then
  2893. g[i].Anchored = false
  2894. end
  2895. end
  2896. end
  2897. end
  2898.  
  2899.  
  2900. --//=================================\\
  2901. --|| WRAP THE WHOLE SCRIPT UP
  2902. --\\=================================//
  2903.  
  2904. Humanoid.Changed:connect(function(Jump)
  2905. if Jump == "Jump" and (Disable_Jump == true) then
  2906. Humanoid.Jump = false
  2907. end
  2908. end)
  2909.  
  2910. local BLINKLOOP = 0
  2911.  
  2912. while true do
  2913. Swait()
  2914. script.Parent = WEAPONGUI
  2915. ANIMATE.Parent = nil
  2916. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  2917. v:Stop();
  2918. end
  2919. SINE = SINE + CHANGE
  2920. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2921. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2922. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  2923. local WALKSPEEDVALUE = 8 / (Humanoid.WalkSpeed / 16)
  2924. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  2925. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0.1 * COS(SINE / (WALKSPEEDVALUE/2))) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2926. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2927. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.25 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10+50 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed)
  2928. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.25 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-10+50 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed)
  2929. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  2930. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2931. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2932. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.7 / Animation_Speed)
  2933. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.7 / Animation_Speed)
  2934. end
  2935. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2936. ANIM = "Jump"
  2937. if ATTACK == false then
  2938. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  2939. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
  2940. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(25 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2941. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(-25 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2942. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.6) * ANGLES(RAD(1), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2943. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2944. end
  2945. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2946. ANIM = "Fall"
  2947. if ATTACK == false then
  2948. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  2949. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  2950. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(45 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2951. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(-45 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2952. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.7) * ANGLES(RAD(-25 + 5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2953. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.3) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2954. end
  2955. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2956. ANIM = "Idle"
  2957. DOUBLED = false
  2958. READYTODOUBLE = false
  2959. if ATTACK == false then
  2960. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1 + 0.05 * SIN(SINE / 12)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed)
  2961. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(7 * COS(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  2962. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(0), RAD(-100)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2963. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.3 + 0.05 * SIN(SINE / 12), -0.35) * ANGLES(RAD(0), RAD(0), RAD(70)) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2964. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2965. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2966. end
  2967. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2968. ANIM = "Walk"
  2969. DOUBLED = false
  2970. READYTODOUBLE = false
  2971. if ATTACK == false then
  2972. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.05) * ANGLES(RAD(15), RAD(0), RAD(-7 * COS(SINE / (WALKSPEEDVALUE)))), 1 / Animation_Speed)
  2973. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(7 * COS(SINE / (WALKSPEEDVALUE)))), 1 / Animation_Speed)
  2974. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(-5), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2975. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(5), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2976. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  2977. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  2978. end
  2979. end
  2980. unanchor()
  2981. Humanoid.MaxHealth = "inf"
  2982. Humanoid.Health = "inf"
  2983. if Rooted == false then
  2984. Disable_Jump = false
  2985. Humanoid.WalkSpeed = Speed
  2986. elseif Rooted == true then
  2987. Disable_Jump = true
  2988. Humanoid.WalkSpeed = 0
  2989. end
  2990. sick.SoundId = "rbxassetid://929330882"
  2991. sick.Looped = true
  2992. sick.Pitch = 1
  2993. sick.Volume = 10
  2994. sick.Playing = true
  2995. sick.Parent = Torso
  2996. if Head:FindFirstChild("face") then
  2997. Head.face.Texture = "rbxassetid://145716750"
  2998. end
  2999. BLINKLOOP = BLINKLOOP + 1
  3000. if BLINKLOOP >=650 then
  3001. BLINKLOOP = 0
  3002. Blink()
  3003. end
  3004. if #GHOSTS>0 then
  3005. for e=1,#GHOSTS do
  3006. if GHOSTS[e]~=nil then
  3007. local Thing=GHOSTS[e]
  3008. if Thing~=nil then
  3009. if Thing:FindFirstChild("Head") then
  3010. if Thing:FindFirstChild("Head"):FindFirstChild("face") then
  3011. Thing:FindFirstChild("Head").face.Texture = "rbxassetid://127959433"
  3012. end
  3013. if Thing:FindFirstChild("Head"):FindFirstChildOfClass("Sound") then
  3014. Thing:FindFirstChild("Head"):FindFirstChildOfClass("Sound"):remove()
  3015. end
  3016. end
  3017. local TORSO = Thing:FindFirstChild("Torso")
  3018. if TORSO then
  3019. TORSO.Anchored = false
  3020. local ROOT = Thing.HumanoidRootPart
  3021. local RootJoint1 = ROOT:FindFirstChild("RootJoint")
  3022. local Neck1 = TORSO:FindFirstChild("Neck")
  3023. local RightShoulder1 = TORSO:FindFirstChild("Right Shoulder")
  3024. local LeftShoulder1 = TORSO:FindFirstChild("Left Shoulder")
  3025. local RightHip1 = TORSO:FindFirstChild("Right Hip")
  3026. local LeftHip1 = TORSO:FindFirstChild("Left Hip")
  3027. if ROOT and RootJoint1 then
  3028. local VELOCITY = (ROOT.Velocity * VT(1, 0, 1)).magnitude
  3029. if VELOCITY < 1 then
  3030. RootJoint1.C0 = ROOTC0 * CF(0, 0, 0 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(2.5 * SIN(SINE / 12)))
  3031. Neck1.C0 = NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD( - 2.5 * SIN(SINE / 12)))
  3032. RightShoulder1.C0 = CF(1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 1.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0
  3033. LeftShoulder1.C0 = CF(-1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 1.5 * SIN(SINE / 12))) * LEFTSHOULDERC0
  3034. RightHip1.C0 = CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0))
  3035. LeftHip1.C0 = CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0))
  3036. elseif VELOCITY > 1 then
  3037. RootJoint1.C0 = ROOTC0 * CF(0, 0, 0 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(2.5 * SIN(SINE / 12)))
  3038. Neck1.C0 = NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD( - 2.5 * SIN(SINE / 12)))
  3039. RightShoulder1.C0 = CF(1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(15 + 1.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0
  3040. LeftShoulder1.C0 = CF(-1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 1.5 * SIN(SINE / 12))) * LEFTSHOULDERC0
  3041. RightHip1.C0 = CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0))
  3042. LeftHip1.C0 = CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0))
  3043. end
  3044. end
  3045. local Human = Thing.Humanoid
  3046. if Human then
  3047. Human.HipHeight = 0.3
  3048. for _, c in pairs(Thing:GetChildren()) do
  3049. if c.ClassName == "Part" and c.Transparency < 1 then
  3050. c.Color = C3(0,0,0)
  3051. c.Transparency = 0.65 + 0.15 * COS(SINE / 25)
  3052. elseif c.ClassName == "Accessory" or c.ClassName == "Hat" or c.ClassName == "CharacterMesh" or c.ClassName == "Shirt" or c.ClassName == "Pants" then
  3053. c:remove()
  3054. end
  3055. end
  3056. if Human then
  3057. local IDLEANIMATION = Human:LoadAnimation(ROBLOXIDLEANIMATION)
  3058. IDLEANIMATION:Play()
  3059. end
  3060. local list = game.Workspace:children()
  3061. local torso = nil
  3062. local dist = 50
  3063. local temp = nil
  3064. local human = nil
  3065. local temp2 = nil
  3066. local OwnerInDanger = false
  3067. for x = 1, #list do
  3068. temp2 = list[x]
  3069. if (temp2.className == "Model") and (temp2 ~= Character) and (temp2 ~= Thing) then
  3070. temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
  3071. human = temp2:findFirstChildOfClass("Humanoid")
  3072. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  3073. if (temp.Position - Torso.Position).magnitude < 15 then
  3074. OwnerInDanger = true
  3075. newdist = (temp.Position - TORSO.Position).magnitude
  3076. dist = (Torso.Position - temp.Position).magnitude
  3077. Human:MoveTo(temp.Position)
  3078. torso = temp
  3079. if newdist < 7 then
  3080. torso.CFrame = CF(torso.Position,TORSO.Position)*CF(0,0,5)
  3081. CreateSound(814168787, temp, 1, 2, false)
  3082. ApplyDamage(human,MRANDOM(15,35),temp)
  3083. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(1,1,1), Size2 = VT(3,1,3), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position,torso.Position)*CF(0,0,-2) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  3084. WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(1,1,1), Size2 = VT(3,1,3), Transparency = 0, Transparency2 = 1, CFrame = torso.CFrame*CF(0,-4*torso.Size.Y/2,0), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  3085. end
  3086. end
  3087. end
  3088. end
  3089. end
  3090. if OwnerInDanger == false then
  3091. for x = 1, #list do
  3092. temp2 = list[x]
  3093. if (temp2.className == "Model") and (temp2 ~= Character) and (temp2 ~= Thing) then
  3094. temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
  3095. human = temp2:findFirstChildOfClass("Humanoid")
  3096. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  3097. if (temp.Position - Torso.Position).magnitude < dist then
  3098. newdist = (temp.Position - TORSO.Position).magnitude
  3099. Human:MoveTo(temp.Position)
  3100. torso = temp
  3101. if newdist < 15 then
  3102. if MRANDOM(1,35) == 1 then
  3103. CreateSound(438665935, temp, 1, 3, false)
  3104. ApplyDamage(human,MRANDOM(2,20),temp)
  3105. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(1,1,1), Size2 = VT(3,1,3), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position,torso.Position)*CF(0,0,-2) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  3106. end
  3107. end
  3108. end
  3109. end
  3110. end
  3111. end
  3112. end
  3113. if torso == nil then
  3114. Human.WalkSpeed = Speed -0.2
  3115. if (Torso.Position - TORSO.Position).magnitude < 12 and (Torso.Position - TORSO.Position).magnitude >= 11 then
  3116. Human:MoveTo(TORSO.Position)
  3117. elseif (Torso.Position - TORSO.Position).magnitude > 15 then
  3118. Human:MoveTo(Torso.Position)
  3119. elseif (Torso.Position - TORSO.Position).magnitude < 11 then
  3120. Human:MoveTo(CF(Torso.Position,TORSO.Position)*CF(0,0,-5).p)
  3121. end
  3122. else
  3123. if OwnerInDanger == false then
  3124. Human.WalkSpeed = Speed*1.2
  3125. else
  3126. Human.WalkSpeed = Speed*5
  3127. end
  3128. end
  3129. if Human.Health == 0 then
  3130. Thing:remove()
  3131. table.remove(GHOSTS,e)
  3132. else
  3133. Human.Health = Human.Health + 0.5
  3134. end
  3135. else
  3136. Thing:remove()
  3137. table.remove(GHOSTS,e)
  3138. end
  3139. else
  3140. Thing:remove()
  3141. table.remove(GHOSTS,e)
  3142. end
  3143. end
  3144. end
  3145. end
  3146. end
  3147. refit()
  3148. end
  3149.  
  3150. local asd = Instance.new("ParticleEmitter")
  3151. asd.Color = ColorSequence.new(BrickColor.new("Magenta").Color, BrickColor.new("Magenta").Color)
  3152. asd.LightEmission = .1
  3153. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  3154. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  3155. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  3156. asd.Transparency = bbb
  3157. asd.Size = aaa
  3158. asd.ZOffset = .9
  3159. asd.Acceleration = Vector3.new(0, -15, 0)
  3160. asd.LockedToPart = false
  3161. asd.EmissionDirection = "Back"
  3162. asd.Lifetime = NumberRange.new(1, 2)
  3163. asd.Rotation = NumberRange.new(-100, 100)
  3164. asd.RotSpeed = NumberRange.new(-100, 100)
  3165. asd.Speed = NumberRange.new(10)
  3166. asd.Enabled = false
  3167. asd.VelocitySpread = 999
  3168.  
  3169.  
  3170. --//=================================\\
  3171. --\\=================================//
  3172.  
  3173.  
  3174.  
  3175.  
  3176.  
  3177. --//====================================================\\--
  3178. --|| END OF THE SCRIPT
  3179. --\\====================================================//--
Add Comment
Please, Sign In to add comment