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