Advertisement
LovelyDiamond

LKS

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