Advertisement
Void_scripter0

pandoraaaa edit

Mar 3rd, 2019
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 85.73 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  2. do
  3. script.Parent = owner.Character
  4. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  5. local function NewFakeEvent()
  6. local Bind = Instance.new("BindableEvent")
  7. local Fake;Fake = {Connections = {},
  8. fakeEvent=true;
  9. Connect=function(self,Func)
  10. Bind.Event:connect(Func)
  11. self.Connections[Bind] = true
  12. return setmetatable({Connected = true},{
  13. __index = function (self,Index)
  14. if Index:lower() == "disconnect" then
  15. return function() Fake.Connections[Bind] = false;self.Connected = false end
  16. end
  17. return Fake[Index]
  18. end;
  19. __tostring = function() return "Connection" end;
  20. })
  21. end}
  22. Fake.connect = Fake.Connect;return Fake;
  23. end
  24. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  25. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  26. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  27. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  28. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  29. local function TriggerEvent(self,Event,...)
  30. local Trigger = Mouse[Event]
  31. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  32. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  33. end
  34. end
  35. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  36. Event.OnServerEvent:Connect(function(FiredBy,Input)
  37. if FiredBy.Name ~= owner.Name then return end
  38. if Input.MouseEvent then
  39. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  40. else
  41. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  42. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  43. for _,Action in pairs(ContextActionService.Actions) do
  44. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  45. end
  46. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  47. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  48. end
  49. end)
  50. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  51. Event.Parent = NLS([[
  52. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  53. local Input = function(Input,gameProcessedEvent)
  54. if gameProcessedEvent then return end
  55. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  56. end
  57. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  58. local Hit,Target
  59. while wait(1/30) do
  60. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  61. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  62. end
  63. end
  64. ]],owner.Character)
  65. end
  66. RealGame = game;game = setmetatable({},{
  67. __index = function (self,Index)
  68. local Sandbox = function (Thing)
  69. if Thing:IsA("Player") then
  70. local RealPlayer = Thing
  71. return setmetatable({},{
  72. __index = function (self,Index)
  73. local Type = type(RealPlayer[Index])
  74. if Type == "function" then
  75. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  76. return function (self)return InternalData["Mouse"] end
  77. end
  78. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  79. end
  80. return RealPlayer[Index]
  81. end;
  82. __tostring = function(self) return RealPlayer.Name end
  83. })
  84. end
  85. end
  86. if RealGame[Index] then
  87. local Type = type(RealGame[Index])
  88. if Type == "function" then
  89. if Index:lower() == "getservice" or Index:lower() == "service" then
  90. return function (self,Service)
  91. local FakeServices = {
  92. ["players"] = function()
  93. return setmetatable({},{
  94. __index = function (self2,Index2)
  95. local RealService = RealGame:GetService(Service)
  96. local Type2 = type(Index2)
  97. if Type2 == "function" then
  98. return function (self,...) return RealService[Index2](RealService,...)end
  99. else
  100. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  101. return RealService[Index2]
  102. end
  103. end;
  104. __tostring = function(self) return RealGame:GetService(Service).Name end
  105. })
  106. end;
  107. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  108. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  109. ["runservice"] = function()
  110. return setmetatable({},{
  111. __index = function(self2,Index2)
  112. local RealService = RealGame:GetService(Service)
  113. local Type2 = type(Index2)
  114. if Type2 == "function" then
  115. return function (self,...) return RealService[Index2](RealService,...) end
  116. else
  117. local RunServices = {
  118. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  119. ["renderstepped"] = function() return RealService["Stepped"] end
  120. }
  121. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  122. return RealService[Index2]
  123. end
  124. end
  125. })
  126. end
  127. }
  128. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  129. return RealGame:GetService(Service)
  130. end
  131. end
  132. return function (self,...) return RealGame[Index](RealGame,...) end
  133. else
  134. if game:GetService(Index) then return game:GetService(Index) end
  135. return RealGame[Index]
  136. end
  137. end
  138. return nil
  139. end
  140. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  141. --//====================================================\\--
  142. --|| INJUSTICE BY KILLERZTH_1596
  143. --\\====================================================//--
  144.  
  145. wait(0.2)
  146.  
  147. Player = game.Players.LocalPlayer
  148. Character = Player.Character
  149. local txt = Instance.new("BillboardGui", Character)
  150. txt.Adornee = Character.Head
  151. txt.Name = "_status"
  152. txt.Size = UDim2.new(2, 0, 1.2, 0)
  153. txt.StudsOffset = Vector3.new(-9, 10, 0)
  154. local text = Instance.new("TextLabel", txt)
  155. text.Size = UDim2.new(10, 0, 7, 0)
  156. text.FontSize = "Size24"
  157. text.TextScaled = true
  158. text.TextTransparency = 0
  159. text.BackgroundTransparency = 1
  160. text.TextTransparency = 0
  161. text.TextStrokeTransparency = 0
  162. text.Font = "Bodoni"
  163. text.TextStrokeColor3 = Color3.new(1,1,0)
  164. text.Text = "Injustice"
  165.  
  166. Player = game:GetService("Players").LocalPlayer
  167. PlayerGui = Player.PlayerGui
  168. Cam = workspace.CurrentCamera
  169. Backpack = Player.Backpack
  170. Character = Player.Character
  171. Humanoid = Character.Humanoid
  172. Mouse = Player:GetMouse()
  173. RootPart = Character["HumanoidRootPart"]
  174. Torso = Character["Torso"]
  175. Head = Character["Head"]
  176. RightArm = Character["Right Arm"]
  177. LeftArm = Character["Left Arm"]
  178. RightLeg = Character["Right Leg"]
  179. LeftLeg = Character["Left Leg"]
  180. RootJoint = RootPart["RootJoint"]
  181. Neck = Torso["Neck"]
  182. RightShoulder = Torso["Right Shoulder"]
  183. LeftShoulder = Torso["Left Shoulder"]
  184. RightHip = Torso["Right Hip"]
  185. LeftHip = Torso["Left Hip"]
  186. Character.Archivable = true
  187. Player:ClearCharacterAppearance()
  188.  
  189. IT = Instance.new
  190. CF = CFrame.new
  191. VT = Vector3.new
  192. RAD = math.rad
  193. C3 = Color3.new
  194. UD2 = UDim2.new
  195. BRICKC = BrickColor.new
  196. ANGLES = CFrame.Angles
  197. EULER = CFrame.fromEulerAnglesXYZ
  198. COS = math.cos
  199. ACOS = math.acos
  200. SIN = math.sin
  201. ASIN = math.asin
  202. ABS = math.abs
  203. MRANDOM = math.random
  204. FLOOR = math.floor
  205.  
  206. --//=================================\\
  207. --|| USEFUL VALUES
  208. --\\=================================//
  209.  
  210. Animation_Speed = 3
  211. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  212. local Speed = 20
  213. local SIZE = 1.4
  214. local Player_Size = 1.4
  215. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  216. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  217. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  218. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  219. local DAMAGEMULTIPLIER = 1
  220. local ANIM = "Idle"
  221. local ATTACK = false
  222. local EQUIPPED = false
  223. local HOLD = false
  224. local COMBO = 1
  225. local Rooted = false
  226. local SINE = 0
  227. local KEYHOLD = false
  228. local CHANGE = 2 / Animation_Speed
  229. local WALKINGANIM = false
  230. local VALUE1 = false
  231. local VALUE2 = false
  232. local ROBLOXIDLEANIMATION = IT("Animation")
  233. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  234. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  235. local ATANIM = IT("Animation")
  236. ATANIM.Name = "Attack Animation"
  237. ATANIM.AnimationId = "http://www.roblox.com/asset/?id=74894663"
  238. --ROBLOXIDLEANIMATION.Parent = Humanoid
  239. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  240. WEAPONGUI.Name = "Weapon GUI"
  241. local Weapon = IT("Model")
  242. Weapon.Name = "Adds"
  243. local Effects = IT("Folder", Weapon)
  244. Effects.Name = "Effects"
  245. local ANIMATOR = Humanoid.Animator
  246. local ANIMATE = Character.Animate
  247. local UNANCHOR = true
  248. local CLOCKLOOP = 0
  249. local SONG = 929330882
  250. local CLOCKTARGET = nil
  251. local CLOCKSPEED = 5
  252. script.Parent = WEAPONGUI
  253. local CLONE = Character:Clone()
  254. CLONE.Parent = nil
  255. Character.Archivable = false
  256. local sick = Instance.new("Sound",Torso)
  257. local BOLTSOUNDS = {168586621,168586586,178452241}
  258.  
  259. --//=================================\\
  260. --\\=================================//
  261.  
  262.  
  263. --//=================================\\
  264. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  265. --\\=================================//
  266.  
  267. ArtificialHB = Instance.new("BindableEvent", script)
  268. ArtificialHB.Name = "ArtificialHB"
  269.  
  270. script:WaitForChild("ArtificialHB")
  271.  
  272. frame = Frame_Speed
  273. tf = 0
  274. allowframeloss = false
  275. tossremainder = false
  276. lastframe = tick()
  277. script.ArtificialHB:Fire()
  278.  
  279. game:GetService("RunService").Heartbeat:connect(function(s, p)
  280. tf = tf + s
  281. if tf >= frame then
  282. if allowframeloss then
  283. script.ArtificialHB:Fire()
  284. lastframe = tick()
  285. else
  286. for i = 1, math.floor(tf / frame) do
  287. script.ArtificialHB:Fire()
  288. end
  289. lastframe = tick()
  290. end
  291. if tossremainder then
  292. tf = 0
  293. else
  294. tf = tf - frame * math.floor(tf / frame)
  295. end
  296. end
  297. end)
  298.  
  299. --//=================================\\
  300. --\\=================================//
  301.  
  302. --//=================================\\
  303. --|| SOME FUNCTIONS
  304. --\\=================================//
  305.  
  306. local HATWELD = nil
  307. function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
  308. PLAYMAINANIM = false
  309. if WhichPose == "Cast1" then
  310. for i=0, Time, 0.1 / Animation_Speed do
  311. Swait()
  312. if Magic == true then
  313. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  314. end
  315. if Gyro ~= nil and Gyro ~= false then
  316. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  317. end
  318. 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)
  319. 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)
  320. 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)
  321. 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)
  322. 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)
  323. 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)
  324. end
  325. elseif WhichPose == "Cast2" then
  326. for i=0, Time, 0.2 / Animation_Speed do
  327. Swait()
  328. if Magic == true then
  329. 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"Gold".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  330. end
  331. if Gyro ~= nil and Gyro ~= false then
  332. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  333. end
  334. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(-17.58)), 1 / Animation_Speed)
  335. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.2*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(15 - 3)), 1 / Animation_Speed)
  336. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.7*SIZE, -0.5*SIZE) * ANGLES(RAD(0.98), RAD(-119.59 + 2.5 * SIN(SINE / 25)), RAD(-175.39 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  337. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.3*SIZE) * ANGLES(RAD(9.71), RAD(3.14 - -2.5 * SIN(SINE / 12)), RAD(0.2 - -2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  338. 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)
  339. 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)
  340. end
  341. elseif WhichPose == "RightArmUp" then
  342. for i=0, Time, 0.1 / Animation_Speed do
  343. Swait()
  344. if Magic == true then
  345. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  346. end
  347. if Gyro ~= nil and Gyro ~= false then
  348. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  349. end
  350. 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)
  351. 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)
  352. 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)
  353. 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)
  354. 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)
  355. 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)
  356. end
  357. elseif WhichPose == "Taunt" then
  358. for i=0, Time, 0.1 / Animation_Speed do
  359. Swait()
  360. 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)
  361. 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)
  362. 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)
  363. 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)
  364. 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)
  365. 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)
  366. end
  367. HATWELD.Part0 = RightArm
  368. HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  369. CreateSound(221057812,Torso,10,1,false)
  370. for i=0, Time*2, 0.1 / Animation_Speed do
  371. Swait()
  372. 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)
  373. 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)
  374. 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)
  375. 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)
  376. 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)
  377. 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)
  378. end
  379. for i=0, Time, 0.1 / Animation_Speed do
  380. Swait()
  381. 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)
  382. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  383. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  384. 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)
  385. 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)
  386. 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)
  387. 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)
  388. end
  389. HATWELD.Part0 = Head
  390. HATWELD.C0 = CF(0,0.35,0)
  391. elseif WhichPose == "Prepare key" then
  392. for i=0, Time, 0.1 / Animation_Speed do
  393. Swait()
  394. if Gyro ~= nil and Gyro ~= false then
  395. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  396. end
  397. 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)
  398. 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)
  399. 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)
  400. 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)
  401. 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)
  402. 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)
  403. end
  404. elseif WhichPose == "Turn key" then
  405. for i=0, Time, 0.1 / Animation_Speed do
  406. Swait()
  407. if Gyro ~= nil and Gyro ~= false then
  408. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  409. end
  410. 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)
  411. 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)
  412. 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)
  413. 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)
  414. 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)
  415. 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)
  416. end
  417. end
  418. PLAYMAINANIM = true
  419. end
  420.  
  421. --Lightning({Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false})
  422. function Lightning(Table)
  423. local Color = Table.Color or C3(1,1,1)
  424. local StartPos = Table.Start or Torso.Position
  425. local EndPos = Table.End or Mouse.Hit.p
  426. local SegmentLength = Table.SegmentL or 2
  427. local Thickness = Table.Thickness or 0.1
  428. local Dissapear = Table.DoesFade or false
  429. local Parent = Table.Ignore or Character
  430. local MaxDist = Table.MaxDist or 400
  431. local Branches = Table.Branches or false
  432. local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  433. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength)
  434. local LIGHTNINGMODEL = IT("Model",Effects)
  435. LIGHTNINGMODEL.Name = "Lightning"
  436. local LastBolt = nil
  437. for E = 1, DISTANCE do
  438. local ExtraSize = (DISTANCE-E)/15
  439. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Crimson"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
  440. PART.Color = Color
  441. MakeForm(PART,"Cyl")
  442. if LastBolt == nil then
  443. PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  444. else
  445. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SegmentLength/3+(DISTANCE-E)).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  446. end
  447. LastBolt = PART
  448. if Branches == true then
  449. local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
  450. if CHOICE == 1 then
  451. local LASTBRANCH = nil
  452. for i = 1, MRANDOM(2,5) do
  453. local ExtraSize2 = ((DISTANCE-E)/25)/i
  454. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Crimson"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
  455. PART.Color = Color
  456. MakeForm(PART,"Cyl")
  457. if LASTBRANCH == nil then
  458. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  459. else
  460. PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  461. end
  462. LASTBRANCH = PART
  463. end
  464. end
  465. end
  466. end
  467. if Dissapear == true then
  468. coroutine.resume(coroutine.create(function()
  469. for i = 1, 10 do
  470. Swait()
  471. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  472. if c.ClassName == "Part" then
  473. c.Transparency = i/10
  474. end
  475. end
  476. end
  477. LIGHTNINGMODEL:remove()
  478. end))
  479. elseif Dissapear == false then
  480. Debris:AddItem(LIGHTNINGMODEL,0.1)
  481. end
  482. return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
  483. end
  484.  
  485. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  486. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  487. local mesh = IT("SpecialMesh",wave)
  488. mesh.MeshType = "FileMesh"
  489. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  490. mesh.Scale = SIZE
  491. mesh.Offset = VT(0,0,-SIZE.X/8)
  492. wave.CFrame = CFRAME
  493. coroutine.resume(coroutine.create(function(PART)
  494. for i = 1, WAIT do
  495. Swait()
  496. mesh.Scale = mesh.Scale + GROW
  497. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  498. if DOESROT == true then
  499. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  500. end
  501. wave.Transparency = wave.Transparency + (0.5/WAIT)
  502. if wave.Transparency > 0.99 then
  503. wave:remove()
  504. end
  505. end
  506. end))
  507. end
  508.  
  509. function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  510. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  511. local mesh = IT("SpecialMesh",wave)
  512. mesh.MeshType = "FileMesh"
  513. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  514. mesh.Scale = SIZE
  515. --mesh.Offset = VT(0,0,-SIZE.X/8)
  516. wave.CFrame = CFRAME
  517. coroutine.resume(coroutine.create(function(PART)
  518. for i = 1, WAIT do
  519. Swait()
  520. mesh.Scale = mesh.Scale + GROW
  521. --mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  522. if DOESROT == true then
  523. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  524. end
  525. wave.Transparency = wave.Transparency + (0.5/WAIT)
  526. if wave.Transparency > 0.99 then
  527. wave:remove()
  528. end
  529. end
  530. end))
  531. end
  532.  
  533. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  534. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  535. local mesh = IT("SpecialMesh",wave)
  536. mesh.MeshType = "Sphere"
  537. mesh.Scale = SIZE
  538. mesh.Offset = VT(0,0,0)
  539. wave.CFrame = CFRAME
  540. coroutine.resume(coroutine.create(function(PART)
  541. for i = 1, WAIT do
  542. Swait()
  543. mesh.Scale = mesh.Scale + GROW
  544. wave.Transparency = wave.Transparency + (1/WAIT)
  545. if wave.Transparency > 0.99 then
  546. wave:remove()
  547. end
  548. end
  549. end))
  550. end
  551.  
  552. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  553. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  554. local mesh = IT("SpecialMesh",wave)
  555. mesh.MeshType = "FileMesh"
  556. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  557. mesh.Scale = SIZE
  558. wave.CFrame = CFRAME
  559. coroutine.resume(coroutine.create(function(PART)
  560. for i = 1, WAIT do
  561. Swait()
  562. mesh.Scale = mesh.Scale + GROW
  563. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  564. if DOESROT == true then
  565. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  566. end
  567. wave.Transparency = wave.Transparency + (0.5/WAIT)
  568. if wave.Transparency > 0.99 then
  569. wave:remove()
  570. end
  571. end
  572. end))
  573. end
  574.  
  575. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  576. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  577. end
  578.  
  579. function PositiveAngle(NUMBER)
  580. if NUMBER >= 0 then
  581. NUMBER = 0
  582. end
  583. return NUMBER
  584. end
  585.  
  586. function NegativeAngle(NUMBER)
  587. if NUMBER <= 0 then
  588. NUMBER = 0
  589. end
  590. return NUMBER
  591. end
  592.  
  593. function Swait(NUMBER)
  594. if NUMBER == 0 or NUMBER == nil then
  595. ArtificialHB.Event:wait()
  596. else
  597. for i = 1, NUMBER do
  598. ArtificialHB.Event:wait()
  599. end
  600. end
  601. end
  602.  
  603. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  604. local NEWMESH = IT(MESH)
  605. if MESH == "SpecialMesh" then
  606. NEWMESH.MeshType = MESHTYPE
  607. if MESHID ~= "nil" and MESHID ~= "" then
  608. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  609. end
  610. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  611. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  612. end
  613. end
  614. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  615. NEWMESH.Scale = SCALE
  616. NEWMESH.Parent = PARENT
  617. return NEWMESH
  618. end
  619.  
  620. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  621. local NEWPART = IT("Part")
  622. NEWPART.formFactor = FORMFACTOR
  623. NEWPART.Reflectance = REFLECTANCE
  624. NEWPART.Transparency = TRANSPARENCY
  625. NEWPART.CanCollide = false
  626. NEWPART.Locked = true
  627. NEWPART.Anchored = true
  628. if ANCHOR == false then
  629. NEWPART.Anchored = false
  630. end
  631. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  632. NEWPART.Name = NAME
  633. NEWPART.Size = SIZE
  634. NEWPART.Position = Torso.Position
  635. NEWPART.Material = MATERIAL
  636. NEWPART:BreakJoints()
  637. NEWPART.Parent = PARENT
  638. return NEWPART
  639. end
  640.  
  641. local function weldBetween(a, b)
  642. local weldd = Instance.new("ManualWeld")
  643. weldd.Part0 = a
  644. weldd.Part1 = b
  645. weldd.C0 = CFrame.new()
  646. weldd.C1 = b.CFrame:inverse() * a.CFrame
  647. weldd.Parent = a
  648. return weldd
  649. end
  650.  
  651.  
  652. function QuaternionFromCFrame(cf)
  653. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  654. local trace = m00 + m11 + m22
  655. if trace > 0 then
  656. local s = math.sqrt(1 + trace)
  657. local recip = 0.5 / s
  658. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  659. else
  660. local i = 0
  661. if m11 > m00 then
  662. i = 1
  663. end
  664. if m22 > (i == 0 and m00 or m11) then
  665. i = 2
  666. end
  667. if i == 0 then
  668. local s = math.sqrt(m00 - m11 - m22 + 1)
  669. local recip = 0.5 / s
  670. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  671. elseif i == 1 then
  672. local s = math.sqrt(m11 - m22 - m00 + 1)
  673. local recip = 0.5 / s
  674. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  675. elseif i == 2 then
  676. local s = math.sqrt(m22 - m00 - m11 + 1)
  677. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  678. end
  679. end
  680. end
  681.  
  682. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  683. local xs, ys, zs = x + x, y + y, z + z
  684. local wx, wy, wz = w * xs, w * ys, w * zs
  685. local xx = x * xs
  686. local xy = x * ys
  687. local xz = x * zs
  688. local yy = y * ys
  689. local yz = y * zs
  690. local zz = z * zs
  691. 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))
  692. end
  693.  
  694. function QuaternionSlerp(a, b, t)
  695. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  696. local startInterp, finishInterp;
  697. if cosTheta >= 0.0001 then
  698. if (1 - cosTheta) > 0.0001 then
  699. local theta = ACOS(cosTheta)
  700. local invSinTheta = 1 / SIN(theta)
  701. startInterp = SIN((1 - t) * theta) * invSinTheta
  702. finishInterp = SIN(t * theta) * invSinTheta
  703. else
  704. startInterp = 1 - t
  705. finishInterp = t
  706. end
  707. else
  708. if (1 + cosTheta) > 0.0001 then
  709. local theta = ACOS(-cosTheta)
  710. local invSinTheta = 1 / SIN(theta)
  711. startInterp = SIN((t - 1) * theta) * invSinTheta
  712. finishInterp = SIN(t * theta) * invSinTheta
  713. else
  714. startInterp = t - 1
  715. finishInterp = t
  716. end
  717. end
  718. 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
  719. end
  720.  
  721. function Clerp(a, b, t)
  722. local qa = {QuaternionFromCFrame(a)}
  723. local qb = {QuaternionFromCFrame(b)}
  724. local ax, ay, az = a.x, a.y, a.z
  725. local bx, by, bz = b.x, b.y, b.z
  726. local _t = 1 - t
  727. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  728. end
  729.  
  730. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  731. local frame = IT("Frame")
  732. frame.BackgroundTransparency = TRANSPARENCY
  733. frame.BorderSizePixel = BORDERSIZEPIXEL
  734. frame.Position = POSITION
  735. frame.Size = SIZE
  736. frame.BackgroundColor3 = COLOR
  737. frame.BorderColor3 = BORDERCOLOR
  738. frame.Name = NAME
  739. frame.Parent = PARENT
  740. return frame
  741. end
  742.  
  743. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  744. local label = IT("TextLabel")
  745. label.BackgroundTransparency = 1
  746. label.Size = UD2(1, 0, 1, 0)
  747. label.Position = UD2(0, 0, 0, 0)
  748. label.TextColor3 = TEXTCOLOR
  749. label.TextStrokeTransparency = STROKETRANSPARENCY
  750. label.TextTransparency = TRANSPARENCY
  751. label.FontSize = TEXTFONTSIZE
  752. label.Font = TEXTFONT
  753. label.BorderSizePixel = BORDERSIZEPIXEL
  754. label.TextStrokeColor3 = C3(1,1,1)
  755. label.TextScaled = false
  756. label.Text = TEXT
  757. label.Name = NAME
  758. label.Parent = PARENT
  759. return label
  760. end
  761.  
  762. function NoOutlines(PART)
  763. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  764. end
  765.  
  766. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  767. local NEWWELD = IT(TYPE)
  768. NEWWELD.Part0 = PART0
  769. NEWWELD.Part1 = PART1
  770. NEWWELD.C0 = C0
  771. NEWWELD.C1 = C1
  772. NEWWELD.Parent = PARENT
  773. return NEWWELD
  774. end
  775.  
  776. local S = IT("Sound")
  777. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  778. local NEWSOUND = nil
  779. coroutine.resume(coroutine.create(function()
  780. NEWSOUND = S:Clone()
  781. NEWSOUND.Parent = PARENT
  782. NEWSOUND.Volume = VOLUME
  783. NEWSOUND.Pitch = PITCH
  784. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  785. NEWSOUND:play()
  786. if DOESLOOP == true then
  787. NEWSOUND.Looped = true
  788. else
  789. repeat wait(1) until NEWSOUND.Playing == false
  790. NEWSOUND:remove()
  791. end
  792. end))
  793. return NEWSOUND
  794. end
  795.  
  796. function CFrameFromTopBack(at, top, back)
  797. local right = top:Cross(back)
  798. 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)
  799. end
  800.  
  801. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  802. function WACKYEFFECT(Table)
  803. local TYPE = (Table.EffectType or "Sphere")
  804. local SIZE = (Table.Size or VT(1,1,1))
  805. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  806. local TRANSPARENCY = (Table.Transparency or 0)
  807. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  808. local CFRAME = (Table.CFrame or Torso.CFrame)
  809. local MOVEDIRECTION = (Table.MoveToPos or nil)
  810. local ROTATION1 = (Table.RotationX or 0)
  811. local ROTATION2 = (Table.RotationY or 0)
  812. local ROTATION3 = (Table.RotationZ or 0)
  813. local MATERIAL = (Table.Material or "Neon")
  814. local COLOR = (Table.Color or C3(1,1,1))
  815. local TIME = (Table.Time or 45)
  816. local SOUNDID = (Table.SoundID or nil)
  817. local SOUNDPITCH = (Table.SoundPitch or nil)
  818. local SOUNDVOLUME = (Table.SoundVolume or nil)
  819. coroutine.resume(coroutine.create(function()
  820. local PLAYSSOUND = false
  821. local SOUND = nil
  822. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  823. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  824. PLAYSSOUND = true
  825. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  826. end
  827. EFFECT.Color = COLOR
  828. local MSH = nil
  829. if TYPE == "Sphere" then
  830. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  831. elseif TYPE == "Block" then
  832. MSH = IT("BlockMesh",EFFECT)
  833. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  834. elseif TYPE == "Wave" then
  835. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  836. elseif TYPE == "Ring" then
  837. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  838. elseif TYPE == "Slash" then
  839. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  840. elseif TYPE == "Round Slash" then
  841. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  842. elseif TYPE == "Swirl" then
  843. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  844. elseif TYPE == "Skull" then
  845. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  846. elseif TYPE == "Crystal" then
  847. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  848. end
  849. if MSH ~= nil then
  850. local MOVESPEED = nil
  851. if MOVEDIRECTION ~= nil then
  852. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  853. end
  854. local GROWTH = SIZE - ENDSIZE
  855. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  856. if TYPE == "Block" then
  857. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  858. else
  859. EFFECT.CFrame = CFRAME
  860. end
  861. for LOOP = 1, TIME+1 do
  862. Swait()
  863. MSH.Scale = MSH.Scale - GROWTH/TIME
  864. if TYPE == "Wave" then
  865. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  866. end
  867. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  868. if TYPE == "Block" then
  869. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  870. else
  871. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  872. end
  873. if MOVEDIRECTION ~= nil then
  874. local ORI = EFFECT.Orientation
  875. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  876. EFFECT.Orientation = ORI
  877. end
  878. end
  879. if PLAYSSOUND == false then
  880. EFFECT:remove()
  881. else
  882. repeat Swait() until SOUND.Playing == false
  883. EFFECT:remove()
  884. end
  885. else
  886. if PLAYSSOUND == false then
  887. EFFECT:remove()
  888. else
  889. repeat Swait() until SOUND.Playing == false
  890. EFFECT:remove()
  891. end
  892. end
  893. end))
  894. end
  895.  
  896. function MakeForm(PART,TYPE)
  897. if TYPE == "Cyl" then
  898. local MSH = IT("CylinderMesh",PART)
  899. elseif TYPE == "Ball" then
  900. local MSH = IT("SpecialMesh",PART)
  901. MSH.MeshType = "Sphere"
  902. elseif TYPE == "Wedge" then
  903. local MSH = IT("SpecialMesh",PART)
  904. MSH.MeshType = "Wedge"
  905. end
  906. end
  907.  
  908. Debris = game:GetService("Debris")
  909.  
  910. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  911. local DIRECTION = CF(StartPos,EndPos).lookVector
  912. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  913. end
  914.  
  915. function turnto(position)
  916. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  917. end
  918.  
  919. --//=================================\\
  920. --|| WEAPON CREATION
  921. --\\=================================//
  922.  
  923. Humanoid.Parent = nil
  924. RootPart.Size = RootPart.Size*SIZE
  925. Torso.Size = Torso.Size*SIZE
  926. RightArm.Size = RightArm.Size*SIZE
  927. RightLeg.Size = RightLeg.Size*SIZE
  928. LeftArm.Size = LeftArm.Size*SIZE
  929. LeftLeg.Size = LeftLeg.Size*SIZE
  930. RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
  931. RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
  932. Neck.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
  933. Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180))
  934. RightShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
  935. LeftShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
  936. RightHip.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  937. LeftHip.C0 = CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  938. RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  939. LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  940. Head.Size = Head.Size*SIZE
  941. RootJoint.Parent = RootPart
  942. Neck.Parent = Torso
  943. RightShoulder.Parent = Torso
  944. LeftShoulder.Parent = Torso
  945. RightHip.Parent = Torso
  946. LeftHip.Parent = Torso
  947.  
  948. local top = Instance.new("Shirt")
  949. top.ShirtTemplate = "rbxassetid://338740550"
  950. top.Parent = Character
  951. top.Name = "Cloth"
  952. local bottom = Instance.new("Pants")
  953. bottom.PantsTemplate = "rbxassetid://338750779"
  954. bottom.Parent = Character
  955. bottom.Name = "Cloth"
  956. local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really black", "Hat", VT(1,1,1),false)
  957. PRT.Color = C3(0,0,0)
  958. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.72*SIZE,0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), CF(0, 0, 0))
  959. CreateMesh("SpecialMesh", PRT, "FileMesh", "26768040", "", VT(1,1,1)*SIZE, VT(0,0,0))
  960. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Detail", VT(1,1,1),false)
  961. PRT.Color = C3(0,0,0)
  962. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
  963. CreateMesh("SpecialMesh", PRT, "FileMesh", "13520257", "", VT(1,1,1)*SIZE, VT(0,0,0))
  964. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(1,1.2,0.2),false)
  965. PRT.Color = C3(239/255, 184/255, 56/255)
  966. MakeForm(PRT,"Ball")
  967. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
  968. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.4,0.5),false)
  969. PRT.Color = C3(239/255, 184/255, 56/255)
  970. MakeForm(PRT,"Ball")
  971. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,-0.3,-.5*SIZE), CF(0, 0, 0))
  972. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false)
  973. PRT.Color = C3(239/255, 184/255, 56/255)
  974. MakeForm(PRT,"Ball")
  975. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.25,0.25,-.5*SIZE), CF(0, 0, 0))
  976. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false)
  977. PRT.Color = C3(239/255, 184/255, 56/255)
  978. MakeForm(PRT,"Ball")
  979. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.25,0.25,-.5*SIZE), CF(0, 0, 0))
  980. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false)
  981. PRT.Color = C3(239/255, 184/255, 56/255)
  982. MakeForm(PRT,"Ball")
  983. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(15), RAD(0)), CF(0, 0, 0))
  984. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false)
  985. PRT.Color = C3(239/255, 184/255, 56/255)
  986. MakeForm(PRT,"Ball")
  987. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(-15), RAD(0)), CF(0, 0, 0))
  988.  
  989. local LASTPART = Head
  990. for i = 1, 24 do
  991. local MATH = (1-(i/30))
  992. if LASTPART == Head then
  993. local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  994. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.8, 0.3, -0.4) * ANGLES(RAD(-25), RAD(220), RAD(90)), CF(0, 0, 0))
  995. LASTPART = Horn
  996. Horn.Color = C3(239/255, 184/255, 56/255)
  997. else
  998. local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
  999. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(5), RAD(3), RAD(0)), CF(0, -Horn.Size.Y/2, 0))
  1000. LASTPART = Horn
  1001. Horn.Color = C3(239/255, 184/255, 56/255)
  1002. end
  1003. end
  1004. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(1.05,0.06,1.05)*SIZE,false)
  1005. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1006. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0.5,0.1,0.5)*SIZE,false)
  1007. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
  1008. MakeForm(PRT,"Cyl")
  1009. local PRT = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Watch", VT(0.45,0.11,0.45)*SIZE,false)
  1010. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
  1011. MakeForm(PRT,"Cyl")
  1012. PRT.Color = C3(239/255, 184/255, 56/255)
  1013. local RING = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0.055,0.15,0.055)*SIZE,false)
  1014. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RING, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
  1015. MakeForm(RING,"Cyl")
  1016. RING.Color = C3(0,0,0)
  1017. for i = 1, 12 do
  1018. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0)*SIZE,false)
  1019. PRT.Color = C3(0,0,0)
  1020. local MSH = IT("BlockMesh",PRT)
  1021. MSH.Scale = VT(0.6,1,1)
  1022. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD((360/12)*i), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.2*SIZE))
  1023. end
  1024. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15)*SIZE,false)
  1025. PRT.Color = C3(0,0,0)
  1026. local MSH = IT("BlockMesh",PRT)
  1027. MSH.Scale = VT(0.4,1,1)
  1028. local WATCH1 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.075*SIZE))
  1029. local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15/1.5)*SIZE,false)
  1030. PRT.Color = C3(0,0,0)
  1031. local MSH = IT("BlockMesh",PRT)
  1032. MSH.Scale = VT(0.4,1,1)
  1033. local WATCH2 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -(0.075/1.5)*SIZE))
  1034. coroutine.resume(coroutine.create(function()
  1035. while true do
  1036. Swait()
  1037. CLOCKLOOP = CLOCKLOOP - 1*CLOCKSPEED
  1038. WATCH1.C0 = Clerp(WATCH1.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5), RAD(0)), 1 / Animation_Speed)
  1039. WATCH2.C0 = Clerp(WATCH2.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5/2), RAD(0)), 1 / Animation_Speed)
  1040. if CLOCKLOOP <= -150 then
  1041. if VALUE1 == false then
  1042. CLOCKLOOP = 0
  1043. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = RING.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(239/255, 184/255, 56/255), SoundID , SoundPitch = 1.2, SoundVolume = 4})
  1044. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
  1045. ApplyAoE(HITPOS,10,15,45,75,false)
  1046. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(15,2,15), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(239/255, 184/255, 56/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1047. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(12,3,12), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(239/255, 184/255, 56/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1048. if CLOCKTARGET ~= nil then
  1049. CLOCKTARGET.Health = CLOCKTARGET.Health - 20
  1050. if CLOCKTARGET.Torso ~= nil then
  1051. CLOCKTARGET.Torso.CFrame = CLOCKTARGET.Torso.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))
  1052. end
  1053. if CLOCKTARGET.Health == 0 then
  1054. CLOCKTARGET = nil
  1055. end
  1056. end
  1057. end
  1058. end
  1059. end
  1060. end))
  1061.  
  1062. for _, c in pairs(Weapon:GetChildren()) do
  1063. if c.ClassName == "Part" then
  1064. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1065. end
  1066. end
  1067.  
  1068. function chatfunc(text)
  1069. local chat = coroutine.wrap(function()
  1070. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  1071. Character:FindFirstChild("TalkingBillBoard"):destroy()
  1072. end
  1073. local Bill = Instance.new("BillboardGui",Character)
  1074. Bill.Size = UDim2.new(0,100,0,40)
  1075. Bill.StudsOffset = Vector3.new(0,3,0)
  1076. Bill.Adornee = Character.Head
  1077. Bill.Name = "TalkingBillBoard"
  1078. local Hehe = Instance.new("TextLabel",Bill)
  1079. Hehe.BackgroundTransparency = 1
  1080. Hehe.BorderSizePixel = 0
  1081. Hehe.Text = ""
  1082. Hehe.Font = "Fantasy"
  1083. Hehe.TextSize = 40
  1084. Hehe.TextStrokeTransparency = 0
  1085. Hehe.Size = UDim2.new(1,0,0.5,0)
  1086. coroutine.resume(coroutine.create(function()
  1087. while Hehe ~= nil do
  1088. wait()
  1089. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  1090. Hehe.Rotation = math.random(-5,5)
  1091. Hehe.TextColor3 = Color3.new(0,0,0)
  1092. Hehe.TextStrokeColor3 = Color3.new(255,255,0)
  1093. end
  1094. end))
  1095. for i = 1,string.len(text),1 do
  1096. wait()
  1097. Hehe.Text = string.sub(text,1,i)
  1098. end
  1099. wait(1.5)--Re[math.random(1, 93)]
  1100. for i = 0, 1, .025 do
  1101. wait()
  1102. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  1103. Hehe.TextStrokeTransparency = i
  1104. Hehe.TextTransparency = i
  1105. end
  1106. Bill:Destroy()
  1107. end)
  1108. chat()
  1109. end
  1110.  
  1111. function onChatted(msg)
  1112. chatfunc(msg)
  1113. end
  1114.  
  1115. Player.Chatted:connect(onChatted)
  1116.  
  1117. chatfunc("fucc dis")
  1118.  
  1119. Neck.Name = "Weld"
  1120. RootJoint.Name = "Weld"
  1121. RightShoulder.Name = "Weld"
  1122. LeftShoulder.Name = "Weld"
  1123. RightHip.Name = "Weld"
  1124. LeftHip.Name = "Weld"
  1125.  
  1126. local SKILLTEXTCOLOR = C3(239/255, 184/255, 56/255)
  1127. local SKILLFONT = "Fantasy"
  1128. local SKILLTEXTSIZE = 7
  1129.  
  1130. Weapon.Parent = Character
  1131. Humanoid.Parent = Character
  1132.  
  1133. Humanoid.Died:connect(function()
  1134. ATTACK = true
  1135. end)
  1136.  
  1137. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23-.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  1138. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50+.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  1139. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  1140. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  1141. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  1142.  
  1143.  
  1144. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Watch Booster", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
  1145. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Judgement Punch", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
  1146. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Injustice Thunder", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4")
  1147. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Tornado", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5")
  1148.  
  1149. --//=================================\\
  1150. --|| DAMAGING
  1151. --\\=================================//
  1152.  
  1153.  
  1154. function killnearest(position,range,maxstrength,direction)
  1155. for i,v in ipairs(workspace:GetChildren()) do
  1156. local body = v:GetChildren()
  1157. for part = 1, #body do
  1158. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1159. if(body[part].Position - position).Magnitude < range then
  1160. if v.ClassName == "Model" then
  1161. --v:BreakJoints()
  1162. end
  1163. local POS = position
  1164. coroutine.resume(coroutine.create(function()
  1165. body[part].Anchored = true
  1166. body[part].Parent = Effects
  1167. body[part].CanCollide = true
  1168. local SIZE = body[part].Size
  1169. body[part].Material = "Neon"
  1170. CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10)
  1171. for i = 1, 75 do
  1172. Swait()
  1173. body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1174. body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1175. end
  1176. coroutine.resume(coroutine.create(function()
  1177. while true do
  1178. Swait()
  1179. body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1180. body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1181. end
  1182. end))
  1183. body[part].Anchored = false
  1184. body[part].Velocity = direction.lookVector*maxstrength
  1185. end))
  1186. end
  1187. end
  1188. end
  1189. if v.ClassName == "Part" then
  1190. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1191. local POS = position
  1192. coroutine.resume(coroutine.create(function()
  1193. v.Anchored = true
  1194. v.Parent = Effects
  1195. local SIZE = v.Size
  1196. v.Material = "Neon"
  1197. CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10)
  1198. for i = 1, 75 do
  1199. Swait()
  1200. v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1201. v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1202. end
  1203. coroutine.resume(coroutine.create(function()
  1204. while true do
  1205. Swait()
  1206. v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1207. v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1208. end
  1209. end))
  1210. v.Anchored = false
  1211. v.Velocity = direction.lookVector*maxstrength
  1212. end))
  1213. end
  1214. end
  1215. end
  1216. end
  1217.  
  1218. function ApplyDamage(Humanoid,Damage,TorsoPart)
  1219. local defence = Instance.new("BoolValue",Humanoid.Parent)
  1220. defence.Name = ("HitBy"..Player.Name)
  1221. game:GetService("Debris"):AddItem(defence, 0.001)
  1222. Damage = Damage * DAMAGEMULTIPLIER
  1223. if Humanoid.Health ~= 0 then
  1224. local CritChance = MRANDOM(1,100)
  1225. if Damage > Humanoid.Health then
  1226. Damage = math.ceil(Humanoid.Health)
  1227. if Damage == 0 then
  1228. Damage = 0.1
  1229. end
  1230. end
  1231. Humanoid.Health = Humanoid.Health - Damage
  1232. end
  1233. end
  1234.  
  1235. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  1236. local CHILDREN = workspace:GetDescendants()
  1237. for index, CHILD in pairs(CHILDREN) do
  1238. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1239. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1240. if HUM then
  1241. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1242. if TORSO then
  1243. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1244. if INSTAKILL == true then
  1245. CHILD:BreakJoints()
  1246. else
  1247. local DMG = MRANDOM(MINDMG,MAXDMG)
  1248. ApplyDamage(HUM,DMG,TORSO)
  1249. end
  1250. if FLING > 0 then
  1251. for _, c in pairs(CHILD:GetChildren()) do
  1252. if c:IsA("BasePart") then
  1253. local bv = Instance.new("BodyVelocity")
  1254. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1255. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1256. bv.Parent = c
  1257. Debris:AddItem(bv,0.05)
  1258. end
  1259. end
  1260. end
  1261. end
  1262. end
  1263. end
  1264. end
  1265. end
  1266. end
  1267.  
  1268. function ApplyAoE2(POSITION,RANGE,FLING,BURN)
  1269. local CHILDREN = workspace:GetDescendants()
  1270. for index, CHILD in pairs(CHILDREN) do
  1271. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1272. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1273. if HUM then
  1274. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1275. if TORSO then
  1276. if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then
  1277. CHILD:BreakJoints()
  1278. if FLING ~= 0 then
  1279. for _, c in pairs(CHILD:GetChildren()) do
  1280. if c:IsA("BasePart") and c.Transparency == 0 then
  1281. if BURN == true then
  1282. Fire(c)
  1283. end
  1284. local bv = Instance.new("BodyVelocity")
  1285. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1286. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1287. bv.Parent = c
  1288. Debris:AddItem(bv,0.05)
  1289. end
  1290. end
  1291. end
  1292. end
  1293. end
  1294. end
  1295. end
  1296. end
  1297. end
  1298.  
  1299. --//=================================\\
  1300. --|| ATTACK FUNCTIONS AND STUFF
  1301. --\\=================================//
  1302.  
  1303.  
  1304. function TimesUp()
  1305. CLOCKTARGET = nil
  1306. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1307. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1308. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1309. if TORSO then
  1310. ATTACK = true
  1311. Rooted = false
  1312. coroutine.resume(coroutine.create(function()
  1313. repeat
  1314. Swait()
  1315. 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)
  1316. 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)
  1317. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.5*SIZE, -0.2*SIZE) * ANGLES(RAD(75), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1318. 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)
  1319. 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)
  1320. 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)
  1321. until ATTACK == false
  1322. end))
  1323. if Effects:FindFirstChild("NeonDoll") then
  1324. repeat Swait() until Effects:FindFirstChild("NeonDoll") == nil
  1325. end
  1326. wait(0.5)
  1327. local FAKECHARACTER = IT("Model",Effects)
  1328. FAKECHARACTER.Name = "NeonDoll"
  1329. local TORS = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Gold", "Part", VT(0.3,0.3,0.15),false)
  1330. CreateWeldOrSnapOrMotor("Weld", RING, RING, TORS, CF(0,0.6,0), CF(0,0,0))
  1331. local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Gold", "Part", VT(0.15,0.3,0.15),false)
  1332. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0,0.15,0))
  1333. local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Gold", "Part", VT(0.15,0.3,0.15),false)
  1334. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(-0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0,0.15,0))
  1335. local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Gold", "Part", VT(0.15,0.3,0.15),false)
  1336. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0,0.15,0))
  1337. local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Gold", "Part", VT(0.15,0.3,0.15),false)
  1338. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(-0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(-90)), CF(0,0.15,0))
  1339. local HEAD = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Gold", "Part", VT(0.15,0.15,0.15),false)
  1340. CreateWeldOrSnapOrMotor("Weld", TORS, TORS, HEAD, CF(0,0.225,0), CF(0,0,0))
  1341. CreateSound(201858045, TORS, 5, 0.4, false)
  1342. for i = 1, 150 do
  1343. Swait()
  1344. CLOCKSPEED = 1
  1345. for _, c in pairs(FAKECHARACTER:GetChildren()) do
  1346. if c.ClassName == "Part" then
  1347. c.Transparency = c.Transparency - 0.5/150
  1348. end
  1349. end
  1350. end
  1351. CLOCKTARGET = HUM
  1352. coroutine.resume(coroutine.create(function()
  1353. repeat Swait() CLOCKSPEED = 30 until CLOCKTARGET == nil
  1354. for i = 1, 25 do
  1355. Swait()
  1356. for _, c in pairs(FAKECHARACTER:GetChildren()) do
  1357. if c.ClassName == "Part" then
  1358. c.Transparency = c.Transparency + 0.5/25
  1359. end
  1360. end
  1361. end
  1362. CLOCKSPEED = 6
  1363. FAKECHARACTER:remove()
  1364. end))
  1365. wait(0.5)
  1366. ATTACK = false
  1367. Rooted = false
  1368. end
  1369. end
  1370. end
  1371.  
  1372. function GoldPunch()
  1373. ATTACK = true
  1374. Rooted = false
  1375. local SPEED = Speed
  1376. Speed = 8
  1377. CreateSound("0", RightArm, 10, 1.1)
  1378. for i=0, 4, 0.1 / Animation_Speed do
  1379. Swait()
  1380. turnto(Mouse.Hit.p)
  1381. MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Gold",VT(-1/15,-1/15,-1/15))
  1382. MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Really black",VT(-2/15,-2/15,-2/15))
  1383. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-85)), 0.15 / Animation_Speed)
  1384. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(85)), 0.2 / Animation_Speed)
  1385. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90+(MRANDOM(-45,45)/10)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1386. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1387. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1388. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1389. end
  1390. for i=0, 0.15, 0.1 / Animation_Speed do
  1391. Swait()
  1392. turnto(Mouse.Hit.p)
  1393. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(65)), 1 / Animation_Speed)
  1394. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed)
  1395. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1396. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1397. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1398. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1399. end
  1400. local PART = CreatePart(3, Effects, "Neon", 0, 0.8, "Gold", "Punch", VT(50,50,50),false)
  1401. PART.CFrame = RootPart.CFrame * CF(0,0,-25)
  1402. PART.Shape = "Ball"
  1403. local bv = Instance.new("BodyVelocity")
  1404. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1405. bv.velocity = RootPart.CFrame.lookVector*600
  1406. bv.Parent = PART
  1407. bv.Name = "PROJECTILEVELOCITY"
  1408. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Really black",VT(2.5,0.2,2.5))
  1409. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Gold",VT(3,0.2,3))
  1410. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Gold",VT(2,0.6,2))
  1411. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Instutional white",VT(2.2,0.6,2.2))
  1412. CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10)
  1413. coroutine.resume(coroutine.create(function()
  1414. for i = 1, 10 do
  1415. Swait()
  1416. PART.Transparency = PART.Transparency + 0.2/10
  1417. PART.Size = PART.Size + VT(5,5,5)
  1418. killnearest(PART.Position,PART.Size.Y/2+15,100,RootPart.CFrame)
  1419. end
  1420. PART:Destroy()
  1421. end))
  1422. for i=0, 1, 0.1 / Animation_Speed do
  1423. Swait()
  1424. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(95)), 2 / Animation_Speed)
  1425. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed)
  1426. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1427. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  1428. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed)
  1429. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed)
  1430. end
  1431. Speed = SPEED
  1432. ATTACK = false
  1433. Rooted = false
  1434. end
  1435.  
  1436. function Injustice_Thunder()
  1437. ATTACK = true
  1438. Rooted = false
  1439. local GYRO = IT("BodyGyro",RootPart)
  1440. GYRO.D = 750
  1441. GYRO.P = 20000
  1442. GYRO.MaxTorque = VT(0,40000000,0)
  1443. CreateSound(469345336,Torso,3,2,false)
  1444. Pose("Cast2",1.5,2,true,GYRO)
  1445. coroutine.resume(coroutine.create(function()
  1446. local FRAME = RootPart.CFrame
  1447. for i = 1, 25 do
  1448. local POS = FRAME*CF(MRANDOM(-17,17),0,-i*15)
  1449. local LightningTable = Lightning({Color = SKILLTEXTCOLOR, Start = POS*CF(0,85,0).p, End = POS*CF(0,-15,0).p, SegmentL = 3, Thickness = 0.4, DoesFade = true, Ignore = Character, MaxDist = 400, Branches = true})
  1450. local Hitpos = LightningTable.End
  1451. ApplyAoE2(Hitpos,20,15)
  1452. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(1,1,1)*15, Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*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"Gold".Color, SoundID = BOLTSOUNDS[MRANDOM(1,#BOLTSOUNDS)], SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  1453. for i = 1, 4 do
  1454. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(0,75,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*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"Gold".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1455. end
  1456. wait(0.05)
  1457. end
  1458. end))
  1459. Pose("Cast2",1.5,0.7,true)
  1460. GYRO:remove()
  1461. ATTACK = false
  1462. Rooted = false
  1463. end
  1464.  
  1465. local Handle = nil
  1466. local FORCEWINGS = false
  1467. local Blade = CreatePart(3, Weapon, "Glass", 0, 1, "Really black", "Blade", VT(0.3, 5, 0.3), false)
  1468. MakeForm(Blade, "Pine")
  1469. local Grasp = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Handle, CF(0, -1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1470. function Tornado()
  1471. ATTACK = true
  1472. Rooted = true
  1473. FORCEWINGS = true
  1474. CreateSound(1537955136, Torso, 5, 1, false)
  1475. for i = 1, 15 do
  1476. Swait()
  1477. RootPart.CFrame = RootPart.CFrame * CF(0*SIZE, 0*SIZE, 0.8*SIZE)
  1478. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + i / 15 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.75 / Animation_Speed)
  1479. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0.5*SIZE) * ANGLES(RAD(15), RAD(0), RAD(75)), 0.75 / Animation_Speed)
  1480. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE - 0.1*SIZE * COS(SINE / 12), 0) * ANGLES(RAD(15 - 5 * COS(SINE / 12)), RAD(-35), RAD(35 - 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1481. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE - 0.1*SIZE * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-35), RAD(-12 + 3 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1482. end
  1483. for i = 0, 0.3, 0.1 / Animation_Speed do
  1484. Swait()
  1485. RootPart.CFrame = RootPart.CFrame * CF(0*SIZE, 0*SIZE, 0.015*SIZE)
  1486. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + 0.2 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.75 / Animation_Speed)
  1487. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0.5*SIZE) * ANGLES(RAD(15), RAD(0), RAD(75)), 0.75 / Animation_Speed)
  1488. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE - 0.1*SIZE * COS(SINE / 12), 0) * ANGLES(RAD(15 - 5 * COS(SINE / 12)), RAD(-35), RAD(35 - 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1489. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE - 0.1*SIZE * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-35), RAD(-12 + 3 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1490. end
  1491. for i = 0, 1, 0.1 / Animation_Speed do
  1492. Swait()
  1493. Grasp.C1 = Clerp(Grasp.C1, CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(170), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1494. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE - 0.5*SIZE * COS(SINE), 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1495. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0.5*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1496. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, -0.3*SIZE) * ANGLES(RAD(140), RAD(0), RAD(-42)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1497. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, -0.3*SIZE) * ANGLES(RAD(140), RAD(0), RAD(42)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1498. end
  1499. CreateSound(1537955679, Blade, 7, 0.7, false)
  1500. for i = 0, 0.4, 0.1 / Animation_Speed do
  1501. Swait()
  1502. Grasp.C1 = Clerp(Grasp.C1, CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(115), RAD(-35), RAD(0)), 0.75 / Animation_Speed)
  1503. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1504. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0.5*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1505. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, -0.5*SIZE) * ANGLES(RAD(35), RAD(0), RAD(-42)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1506. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, -0.5*SIZE) * ANGLES(RAD(35), RAD(0), RAD(42)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1507. end
  1508. local TORNADOBASE = CreatePart(3, Effects, "Neon", 0, 0, "Gold", "Tornado", VT(5, 22.5, 5))
  1509. MakeForm(TORNADOBASE, "Ball")
  1510. TORNADOBASE.Mesh.Scale = VT(1, 8, 1)
  1511. local SWIRL = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Tornado", VT(0, 0, 0))
  1512. CreateMesh("SpecialMesh", SWIRL, "FileMesh", "1051557", "", VT(6, 135, 6), VT(0, 0, 0))
  1513. local SWIRL2 = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Tornado", VT(0, 0, 0))
  1514. CreateMesh("SpecialMesh", SWIRL2, "FileMesh", "1051557", "", VT(6, 135, 6), VT(0, 0, 0))
  1515. CreateSound(415700134, TORNADOBASE, 3, 0.5, true)
  1516. coroutine.resume(coroutine.create(function()
  1517. local FRAME = RootPart.CFrame * CF(0, -5, -0.5)
  1518. for E = 1, 185 do
  1519. Swait()
  1520. FRAME = FRAME * CF(0, 0, -0.8)
  1521. TORNADOBASE.CFrame = FRAME * CF(0, TORNADOBASE.Size.Y / 2, 0)
  1522. SWIRL.CFrame = TORNADOBASE.CFrame * ANGLES(RAD(0), RAD(E * 5), RAD(0))
  1523. SWIRL2.CFrame = TORNADOBASE.CFrame * ANGLES(RAD(0), RAD(-E * 15), RAD(0))
  1524. for i = 1, math.ceil(TORNADOBASE.Size.Y / 6) do
  1525. ApplyAoE(TORNADOBASE.CFrame * CF(0, TORNADOBASE.Size.Y / 2, 0) * CF(0, -i * 6, 0).p, 8, 2, 3, -35, 0)
  1526. end
  1527. WACKYEFFECT({
  1528. Time = 5,
  1529. EffectType = "Wave",
  1530. Size = VT(10, 8, 10),
  1531. Size2 = VT(0, 0, 0),
  1532. Transparency = 0,
  1533. Transparency2 = 1,
  1534. CFrame = CF(FRAME.p) * ANGLES(RAD(0), RAD(E * 5), RAD(0)),
  1535. MoveToPos = nil,
  1536. RotationX = 0,
  1537. RotationY = 5,
  1538. RotationZ = 0,
  1539. Material = "Neon",
  1540. Color = TORNADOBASE.Color,
  1541. SoundID = nil,
  1542. SoundPitch = MRANDOM(6, 8) / 10,
  1543. SoundVolume = 2
  1544. })
  1545. end
  1546. for i = 1, 15 do
  1547. Swait()
  1548. TORNADOBASE.Transparency = i / 15
  1549. SWIRL.Transparency = i / 15
  1550. SWIRL2.Transparency = i / 15
  1551. SWIRL.CFrame = SWIRL.CFrame * ANGLES(RAD(0), RAD(i * 5), RAD(0))
  1552. SWIRL2.CFrame = SWIRL2.CFrame * ANGLES(RAD(0), RAD(-i * 15), RAD(0))
  1553. end
  1554. TORNADOBASE:remove()
  1555. SWIRL:remove()
  1556. SWIRL2:remove()
  1557. end))
  1558. for i = 0, 0.2, 0.1 / Animation_Speed do
  1559. Swait()
  1560. Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(115), RAD(-35), RAD(0)), 0.75 / Animation_Speed)
  1561. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1562. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1563. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-42)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1564. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(42)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1565. end
  1566. FORCEWINGS = false
  1567. ATTACK = false
  1568. Rooted = false
  1569. end
  1570.  
  1571.  
  1572. function Taunt()
  1573. ATTACK = true
  1574. local LAUGH = nil
  1575. coroutine.resume(coroutine.create(function()
  1576. repeat
  1577. Swait()
  1578. 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)
  1579. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 1 / Animation_Speed)
  1580. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE, -0.5*SIZE) * ANGLES(RAD(170), RAD(-25), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1581. 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)
  1582. 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)
  1583. 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)
  1584. until LAUGH ~= nil
  1585. repeat
  1586. Swait()
  1587. LAUGH.Parent = Head
  1588. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0+(0.1*LAUGH.PlaybackLoudness/75) + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1589. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE+(0.1*LAUGH.PlaybackLoudness/75)) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 1 / Animation_Speed)
  1590. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE+(0.1*LAUGH.PlaybackLoudness/75), -0.5*SIZE) * ANGLES(RAD(170), RAD(-25), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1591. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE+(0.1*LAUGH.PlaybackLoudness/75), 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1592. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1593. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1594. until LAUGH.Playing == false
  1595. ATTACK = false
  1596. end))
  1597. wait(0.1)
  1598. LAUGH = CreateSound(525166232, Head, 10, 1, false)
  1599. end
  1600.  
  1601. --//=================================\\
  1602. --|| ASSIGN THINGS TO KEYS
  1603. --\\=================================//
  1604.  
  1605. function MouseDown(Mouse)
  1606. HOLD = true
  1607. if ATTACK == false then
  1608. end
  1609. end
  1610.  
  1611. function MouseUp(Mouse)
  1612. HOLD = false
  1613. end
  1614.  
  1615. function KeyDown(Key)
  1616. KEYHOLD = true
  1617. if Key == "" and ATTACK == false then
  1618. MagicMissiles()
  1619. end
  1620.  
  1621. if Key == "b" and ATTACK == false then
  1622. TimesUp()
  1623. end
  1624.  
  1625. if Key == "c" and ATTACK == false then
  1626. GoldPunch()
  1627. end
  1628.  
  1629. if Key == "v" and ATTACK == false then
  1630. Injustice_Thunder()
  1631. end
  1632.  
  1633. if Key == "x" and ATTACK == false then
  1634. Tornado()
  1635. end
  1636.  
  1637. if Key == "t" and ATTACK == false then
  1638. Taunt()
  1639. end
  1640. end
  1641.  
  1642. function KeyUp(Key)
  1643. KEYHOLD = false
  1644. end
  1645.  
  1646. Mouse.Button1Down:connect(function(NEWKEY)
  1647. MouseDown(NEWKEY)
  1648. end)
  1649. Mouse.Button1Up:connect(function(NEWKEY)
  1650. MouseUp(NEWKEY)
  1651. end)
  1652. Mouse.KeyDown:connect(function(NEWKEY)
  1653. KeyDown(NEWKEY)
  1654. end)
  1655. Mouse.KeyUp:connect(function(NEWKEY)
  1656. KeyUp(NEWKEY)
  1657. end)
  1658.  
  1659. --//=================================\\
  1660. --\\=================================//
  1661.  
  1662.  
  1663. function unanchor()
  1664. if UNANCHOR == true then
  1665. RootPart.Anchored = false
  1666. end
  1667. g = Character:GetChildren()
  1668. for i = 1, #g do
  1669. if g[i].ClassName == "Part" and g[i] ~= RootPart then
  1670. g[i].Anchored = false
  1671. end
  1672. end
  1673. g = Weapon:GetChildren()
  1674. for i = 1, #g do
  1675. if g[i].ClassName == "Part" then
  1676. g[i].Anchored = false
  1677. end
  1678. end
  1679. end
  1680.  
  1681.  
  1682. --//=================================\\
  1683. --|| WRAP THE WHOLE SCRIPT UP
  1684. --\\=================================//
  1685.  
  1686. Humanoid.Changed:connect(function(Jump)
  1687. if Jump == "Jump" and (Disable_Jump == true) then
  1688. Humanoid.Jump = false
  1689. end
  1690. end)
  1691.  
  1692. while true do
  1693. Swait()
  1694. script.Parent = WEAPONGUI
  1695. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1696. v:Stop();
  1697. end
  1698. ANIMATE.Parent = nil
  1699. SINE = SINE + CHANGE*1.5
  1700. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1701. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1702. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
  1703. local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16)
  1704. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1705. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1706. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1707. RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 0.875*SIZE - 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1708. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 0.875*SIZE + 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(-25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1709. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1710. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1711. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1712. RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1713. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1714. end
  1715. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1716. ANIM = "Jump"
  1717. if ATTACK == false then
  1718. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1719. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1720. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1721. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1722. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed)
  1723. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 1 / Animation_Speed)
  1724. end
  1725. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1726. ANIM = "Fall"
  1727. if ATTACK == false then
  1728. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1729. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1730. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1731. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1732. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed)
  1733. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 1 / Animation_Speed)
  1734. end
  1735. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1736. ANIM = "Idle"
  1737. if ATTACK == false then
  1738. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1739. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0.4*SIZE + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * COS(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed)
  1740. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.9*SIZE, 0.5*SIZE + 0.05*SIZE * SIN(SINE / 12), -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1741. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.9*SIZE, 0.25*SIZE + 0.05*SIZE * SIN(SINE / 12), -0.35) * ANGLES(RAD(70), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1742. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1743. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1744. end
  1745. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1746. ANIM = "Walk"
  1747. if ATTACK == false then
  1748. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1749. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.3*SIZE) - 1)) * ANGLES(RAD(15 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 1/ Animation_Speed)
  1750. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.9*SIZE, 0.5*SIZE + 0.05*SIZE * SIN(SINE / 12), -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1751. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.9*SIZE, 0.25*SIZE + 0.05*SIZE * SIN(SINE / 12), -0.35) * ANGLES(RAD(70), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1752. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE , -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1753. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1754. end
  1755. end
  1756. unanchor()
  1757. Humanoid.MaxHealth = "inf"
  1758. Humanoid.Health = "inf"
  1759. if Rooted == false then
  1760. Disable_Jump = false
  1761. Humanoid.WalkSpeed = Speed
  1762. elseif Rooted == true then
  1763. Disable_Jump = true
  1764. Humanoid.WalkSpeed = 0
  1765. end
  1766. for _, c in pairs(Character:GetChildren()) do
  1767. if c.ClassName == "Part" and c.Name ~= "Detail" then
  1768. c.Material = "Fabric"
  1769. if c:FindFirstChildOfClass("ParticleEmitter") then
  1770. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1771. end
  1772. if c ~= Head then
  1773. c.Color = C3(0,0,0)
  1774. else
  1775. c.Color = C3(0,0,0)
  1776. end
  1777. if c == Head then
  1778. if c:FindFirstChild("face") then
  1779. c.face:remove()
  1780. end
  1781. end
  1782. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  1783. c:remove()
  1784. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1785. c:remove()
  1786. end
  1787. end
  1788. sick.SoundId = "rbxassetid://"..SONG
  1789. sick.Looped = true
  1790. sick.Pitch = 1
  1791. sick.Volume = 5
  1792. sick.Parent = Torso
  1793. sick:Resume()
  1794. --sick.Playing = false
  1795. Humanoid.Name = "Injustice = "..Player.Name
  1796. end
  1797.  
  1798. --//=================================\\
  1799. --\\=================================//
  1800.  
  1801.  
  1802.  
  1803.  
  1804.  
  1805. --//====================================================\\--
  1806. --|| END OF SCRIPT
  1807. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement