SHOW:
|
|
- or go back to the newest paste.
1 | - | wait() |
1 | + | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end |
2 | - | local Player = game.Players.LocalPlayer |
2 | + | local Player,Mouse,mouse,UserInputService,ContextActionService = owner |
3 | do | |
4 | print("FE Compatibility code by Mokiros") | |
5 | script.Parent = Player.Character | |
6 | ||
7 | --RemoteEvent for communicating | |
8 | local Event = Instance.new("RemoteEvent") | |
9 | Event.Name = "UserInput_Event" | |
10 | ||
11 | --Fake event to make stuff like Mouse.KeyDown work | |
12 | local function fakeEvent() | |
13 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
14 | t.connect = t.Connect | |
15 | return t | |
16 | end | |
17 | ||
18 | --Creating fake input objects with fake variables | |
19 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
20 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
21 | - | local Mouse = Player:GetMouse() |
21 | + | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) |
22 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
23 | end} | |
24 | --Merged 2 functions into one by checking amount of arguments | |
25 | CAS.UnbindAction = CAS.BindAction | |
26 | ||
27 | --This function will trigger the events that have been :Connect()'ed | |
28 | local function te(self,ev,...) | |
29 | local t = m[ev] | |
30 | if t and t._fakeEvent and t.Function then | |
31 | t.Function(...) | |
32 | end | |
33 | end | |
34 | m.TrigEvent = te | |
35 | UIS.TrigEvent = te | |
36 | ||
37 | Event.OnServerEvent:Connect(function(plr,io) | |
38 | if plr~=Player then return end | |
39 | if io.isMouse then | |
40 | m.Target = io.Target | |
41 | m.Hit = io.Hit | |
42 | else | |
43 | local b = io.UserInputState == Enum.UserInputState.Begin | |
44 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
45 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
46 | end | |
47 | for _,t in pairs(CAS.Actions) do | |
48 | for _,k in pairs(t.Keys) do | |
49 | if k==io.KeyCode then | |
50 | t.Function(t.Name,io.UserInputState,io) | |
51 | end | |
52 | end | |
53 | end | |
54 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
55 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
56 | end | |
57 | end) | |
58 | Event.Parent = NLS([==[ | |
59 | local Player = game:GetService("Players").LocalPlayer | |
60 | local Event = script:WaitForChild("UserInput_Event") | |
61 | ||
62 | local UIS = game:GetService("UserInputService") | |
63 | local input = function(io,a) | |
64 | if a then return end | |
65 | --Since InputObject is a client-side instance, we create and pass table instead | |
66 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
67 | end | |
68 | UIS.InputBegan:Connect(input) | |
69 | UIS.InputEnded:Connect(input) | |
70 | ||
71 | local Mouse = Player:GetMouse() | |
72 | local h,t | |
73 | --Give the server mouse data 30 times every second, but only if the values changed | |
74 | --If player is not moving their mouse, client won't fire events | |
75 | while wait(1/30) do | |
76 | if h~=Mouse.Hit or t~=Mouse.Target then | |
77 | h,t=Mouse.Hit,Mouse.Target | |
78 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
79 | end | |
80 | end]==],Player.Character) | |
81 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
82 | end | |
83 | ||
84 | local Player = owner | |
85 | local Character = Player.Character | |
86 | local Humanoid = Character.Humanoid | |
87 | local Head = Character.Head | |
88 | local Face = Character.Head.face | |
89 | local Texture = Face.Texture | |
90 | local Torso = Character.Torso | |
91 | local RootPart = Character.HumanoidRootPart | |
92 | local RightArm = Character["Right Arm"] | |
93 | local LeftArm = Character["Left Arm"] | |
94 | local RightLeg = Character["Right Leg"] | |
95 | local LeftLeg = Character["Left Leg"] | |
96 | local Neck = Torso.Neck | |
97 | local RootJoint = RootPart.RootJoint | |
98 | local RightShoulder = Torso["Right Shoulder"] | |
99 | local LeftShoulder = Torso["Left Shoulder"] | |
100 | local RightHip = Torso["Right Hip"] | |
101 | local LeftHip = Torso["Left Hip"] | |
102 | local Insert = table.insert | |
103 | VFXList = {} | |
104 | local CharaterAnimate, CharacterAnimator = Character:FindFirstChild("Animate"), Humanoid:FindFirstChild("Animator") | |
105 | CharaterAnimate.Parent = nil | |
106 | CharacterAnimator.Parent = nil | |
107 | local ManaDelay = 0 | |
108 | local ManaDelay2 = 8 | |
109 | local EffectRemovalDelay = 0 | |
110 | local EffectRemovalDelay2 = 3 | |
111 | local Combo = 1 | |
112 | local AttackDecrease = 0 | |
113 | local MvmtDecrease = 0 | |
114 | local DefenceDecrease = 0 | |
115 | local Attacking = false | |
116 | local StunBarVisible = false | |
117 | local ConfusedVisible = false | |
118 | local CanShowStunDisplay = true | |
119 | local CanRemoveStun = false | |
120 | local CanAnimate = true | |
121 | local CharacterUnderControl = true | |
122 | local CanResumeControl = true | |
123 | local AntiGlitch = false | |
124 | local Fury = false | |
125 | NeckDefaultCFrame = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
126 | RootDefaultCFrame = CFrame.Angles(-1.57, 0, 3.14) | |
127 | RightLegDefaultCFrame = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
128 | LeftLegDefaultCFrame = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
129 | RightShoulder.C1 = CFrame.new(0, 0.5, 0) | |
130 | LeftShoulder.C1 = CFrame.new(0, 0.5, 0) | |
131 | local MyStats = Instance.new("Folder", Character) | |
132 | MyStats.Name = "MyStats" | |
133 | local Defence = Instance.new("NumberValue", MyStats) | |
134 | Defence.Name = "Defence" | |
135 | Defence.Value = 1 | |
136 | local Attack = Instance.new("NumberValue", MyStats) | |
137 | Attack.Name = "Attack" | |
138 | Attack.Value = 1 | |
139 | local Movement = Instance.new("NumberValue", MyStats) | |
140 | Movement.Name = "Movement" | |
141 | Movement.Value = 1 | |
142 | local Mana = Instance.new("NumberValue", MyStats) | |
143 | Mana.Name = "Mana" | |
144 | Mana.Value = 0 | |
145 | local Debuffs = Instance.new("Folder", MyStats) | |
146 | Debuffs.Name = "Debuffs" | |
147 | local Effects = Instance.new("Folder", Character) | |
148 | Effects.Name = "Effects" | |
149 | local StunEffect = Instance.new("BoolValue", Effects) | |
150 | StunEffect.Name = "StunEffect" | |
151 | StunEffect.Value = false | |
152 | local Stun = Instance.new("NumberValue", StunEffect) | |
153 | Stun.Name = "Stun" | |
154 | Stun.Value = 0 | |
155 | local PushedJump = Instance.new("BoolValue", Effects) | |
156 | PushedJump.Name = "PushedJump" | |
157 | PushedJump.Value = false | |
158 | local Cooldown1 = 0 | |
159 | local Cooldown2 = 0 | |
160 | local Cooldown3 = 0 | |
161 | local Cooldown4 = 0 | |
162 | local Cooldown5 = 0 | |
163 | local Cooldown6 = 0 | |
164 | local Cooldown7 = 0 | |
165 | local Cooldown1Add = 0.3 | |
166 | local Cooldown2Add = 0.25 | |
167 | local Cooldown3Add = 0.2 | |
168 | local Cooldown4Add = 0.12 | |
169 | local Cooldown5Add = 0.05 | |
170 | local Cooldown6Add = 0.05 | |
171 | local Cooldown7Add = 5 | |
172 | local MaxCooldown1 = 60 | |
173 | local MaxCooldown2 = 80 | |
174 | local MaxCooldown3 = 140 | |
175 | local MaxCooldown4 = 180 | |
176 | local MaxCooldown5 = 5 | |
177 | local MaxCooldown6 = 5 | |
178 | local MaxCooldown7 = 8000 | |
179 | local Stars = Instance.new("Part", Character) | |
180 | Stars.Name = "Stars" | |
181 | Stars.CanCollide = false | |
182 | Stars.Size = Vector3.new() | |
183 | Stars.Transparency = 1 | |
184 | local StarsMesh = Instance.new("SpecialMesh", Stars) | |
185 | StarsMesh.TextureId = "http://www.roblox.com/asset/?id=110857406" | |
186 | StarsMesh.MeshId = "http://www.roblox.com/asset/?id=110857526" | |
187 | local StarsWeld = Instance.new("Weld", Stars) | |
188 | StarsWeld.Part0 = Stars | |
189 | StarsWeld.Part1 = Head | |
190 | StarsWeld.C0 = CFrame.new(0, -1, 0) | |
191 | function GUI(NewInstance, Parent, Size, StartPosition, Position, BGTransparency, Visible, BGColor, Rotation, Style, Text, TextColor, TextStroke, StrokeTrans, Scaled, Font) | |
192 | local NewGui = Instance.new(NewInstance) | |
193 | NewGui.Parent = Parent | |
194 | NewGui.Position = StartPosition | |
195 | coroutine.resume(coroutine.create(function() | |
196 | NewGui:TweenSizeAndPosition(Size, Position, "Out", "Quad", 2) | |
197 | end)) | |
198 | NewGui.BackgroundTransparency = BGTransparency | |
199 | NewGui.Visible = Visible | |
200 | NewGui.Rotation = Rotation | |
201 | NewGui.BorderSizePixel = 0 | |
202 | NewGui.BackgroundColor3 = BrickColor.new(BGColor).Color | |
203 | if Style and NewInstance == "Frame" or Style and NewInstance == "ScrollingFrame" then | |
204 | NewGui.Style = Style | |
205 | end | |
206 | if NewInstance == "TextBox" or NewInstance == "TextLabel" or NewInstance == "TextButton" then | |
207 | NewGui.Text = Text | |
208 | NewGui.TextStrokeTransparency = StrokeTrans | |
209 | NewGui.TextColor3 = BrickColor.new(TextColor).Color | |
210 | NewGui.TextStrokeColor3 = BrickColor.new(TextStroke).Color | |
211 | NewGui.TextScaled = Scaled | |
212 | NewGui.Font = Font | |
213 | end | |
214 | return NewGui | |
215 | end | |
216 | local CreatePart = function(Parent, Name, Color, Size, Material, Transparency, Shape) | |
217 | local Part = Instance.new("Part", Parent) | |
218 | Part.Name = Name | |
219 | Part.BrickColor = BrickColor.new(Color) | |
220 | Part.Size = Size | |
221 | Part.Material = Material | |
222 | Part.Transparency = Transparency | |
223 | Part.Shape = Shape | |
224 | Part.CanCollide = false | |
225 | NoOutlines(Part) | |
226 | return Part | |
227 | end | |
228 | local CreateWeld = function(Parent, Cframe, Cframe2, P1, P0, Name) | |
229 | local Weld = Instance.new("Weld", Parent) | |
230 | Weld.Part0 = P0 | |
231 | Weld.Part1 = P1 | |
232 | Weld.Name = Name | |
233 | Weld.C0 = Cframe | |
234 | Weld.C1 = Cframe2 | |
235 | return Weld | |
236 | end | |
237 | local CreateMesh = function(Parent, Scale, Type, Type2, ID, Texture) | |
238 | local Mesh | |
239 | if Type == "SpecialMesh" then | |
240 | Mesh = Instance.new("SpecialMesh", Parent) | |
241 | if Type then | |
242 | Mesh.MeshType = Type2 | |
243 | if Type2 == "FileMesh" and ID then | |
244 | Mesh.MeshId = "http://www.roblox.com/asset?id=" .. ID | |
245 | if Texture then | |
246 | Mesh.TextureId = "http://www.roblox.com/asset?id=" .. Texture | |
247 | end | |
248 | end | |
249 | end | |
250 | elseif Type == "BlockMesh" then | |
251 | Mesh = Instance.new("BlockMesh", Parent) | |
252 | elseif Type == "CylinderMesh" then | |
253 | Mesh = Instance.new("CylinderMesh", Parent) | |
254 | end | |
255 | Mesh.Scale = Scale | |
256 | return Mesh | |
257 | end | |
258 | function Animate(Weld, Point1, Point2) | |
259 | return Weld:Lerp(Point1, Point2) | |
260 | end | |
261 | function ResumeCharacterControl() | |
262 | CharacterUnderControl = true | |
263 | Humanoid.JumpPower = 50 | |
264 | end | |
265 | function RemoveCharacterControl() | |
266 | CharacterUnderControl = false | |
267 | wait() | |
268 | Humanoid.JumpPower = 0 | |
269 | Humanoid.WalkSpeed = 0 | |
270 | end | |
271 | function SoundEffect(Part, ID, Volume, Pitch, Looped) | |
272 | local Sound = Instance.new("Sound", Part) | |
273 | Sound.SoundId = "http://www.roblox.com/asset?id=" .. ID | |
274 | Sound.Name = "SFX" | |
275 | Sound.Volume = Volume | |
276 | Sound.Pitch = Pitch | |
277 | Sound:Play() | |
278 | if Looped then | |
279 | return | |
280 | end | |
281 | Services.Debris:AddItem(Sound, 5) | |
282 | return Sound | |
283 | end | |
284 | function NoOutlines(Part) | |
285 | Part.TopSurface = 10 | |
286 | Part.BottomSurface = 10 | |
287 | Part.LeftSurface = 10 | |
288 | Part.RightSurface = 10 | |
289 | Part.FrontSurface = 10 | |
290 | Part.BackSurface = 10 | |
291 | end | |
292 | function AddVFX(VFXType, Part, TransparencyAdd, IncreaseSize1, IncreaseSize2, IncreaseSize3) | |
293 | Insert(VFXList, { | |
294 | VFXType, | |
295 | Part, | |
296 | TransparencyAdd, | |
297 | IncreaseSize1, | |
298 | IncreaseSize2, | |
299 | IncreaseSize3 | |
300 | }) | |
301 | end | |
302 | function BlockVFX(PartPosition, Color, Material, Transparency, TransparencyAdd, Size1, Size2, Size3, IncreaseSize1, IncreaseSize2, IncreaseSize3) | |
303 | local Part = CreatePart(Services.Workspace, "VFX", Color, Vector3.new(), Material, Transparency, "Block") | |
304 | Part.Anchored = true | |
305 | Part.CFrame = PartPosition | |
306 | Services.Debris:AddItem(Part, 20) | |
307 | local Mesh = CreateMesh(Part, Vector3.new(Size1, Size2, Size3), "SpecialMesh", "Brick") | |
308 | AddVFX("Resize", Part, TransparencyAdd, IncreaseSize1, IncreaseSize2, IncreaseSize3) | |
309 | AddVFX("Rotate", Part) | |
310 | return Part | |
311 | end | |
312 | function CylinderVFX(PartPosition, Color, Material, Transparency, TransparencyAdd, Size1, Size2, Size3, IncreaseSize1, IncreaseSize2, IncreaseSize3) | |
313 | local Part = CreatePart(Services.Workspace, "VFX", Color, Vector3.new(), Material, Transparency, "Block") | |
314 | Part.Anchored = true | |
315 | Part.CFrame = PartPosition | |
316 | Services.Debris:AddItem(Part, 20) | |
317 | local Mesh = CreateMesh(Part, Vector3.new(Size1, Size2, Size3), "SpecialMesh", "Cylinder") | |
318 | AddVFX("Resize", Part, TransparencyAdd, IncreaseSize1, IncreaseSize2, IncreaseSize3) | |
319 | return Part | |
320 | end | |
321 | function CircleVFX(PartPosition, Color, Material, Transparency, TransparencyAdd, Size1, Size2, Size3, IncreaseSize1, IncreaseSize2, IncreaseSize3) | |
322 | local Part = CreatePart(Services.Workspace, "VFX", Color, Vector3.new(), Material, Transparency, "Block") | |
323 | Part.Anchored = true | |
324 | Part.CFrame = PartPosition | |
325 | Services.Debris:AddItem(Part, 20) | |
326 | local Mesh = CreateMesh(Part, Vector3.new(Size1, Size2, Size3), "SpecialMesh", "Sphere") | |
327 | AddVFX("Resize", Part, TransparencyAdd, IncreaseSize1, IncreaseSize2, IncreaseSize3) | |
328 | return Part | |
329 | end | |
330 | function CylinderVFX(PartPosition, Color, Material, Transparency, TransparencyAdd, Size1, Size2, Size3, IncreaseSize1, IncreaseSize2, IncreaseSize3) | |
331 | local Part = CreatePart(Services.Workspace, "VFX", Color, Vector3.new(), Material, Transparency, "Block") | |
332 | Part.Anchored = true | |
333 | Part.CFrame = PartPosition | |
334 | Services.Debris:AddItem(Part, 20) | |
335 | local Mesh = CreateMesh(Part, Vector3.new(Size1, Size2, Size3), "SpecialMesh", "Cylinder") | |
336 | AddVFX("Resize", Part, TransparencyAdd, IncreaseSize1, IncreaseSize2, IncreaseSize3) | |
337 | return Part | |
338 | end | |
339 | function WaveVFX(PartPosition, Color, Material, Transparency, TransparencyAdd, Size1, Size2, Size3, IncreaseSize1, IncreaseSize2, IncreaseSize3) | |
340 | local Part = CreatePart(Services.Workspace, "VFX", Color, Vector3.new(), Material, Transparency, "Block") | |
341 | Part.Anchored = true | |
342 | Part.CFrame = PartPosition | |
343 | Services.Debris:AddItem(Part, 20) | |
344 | local Mesh = CreateMesh(Part, Vector3.new(Size1, Size2, Size3), "SpecialMesh", "FileMesh", 20329976) | |
345 | AddVFX("Resize", Part, TransparencyAdd, IncreaseSize1, IncreaseSize2, IncreaseSize3) | |
346 | return Part and Mesh | |
347 | end | |
348 | function RingVFX(PartPosition, Color, Material, Transparency, TransparencyAdd, Size1, Size2, Size3, IncreaseSize1, IncreaseSize2, IncreaseSize3) | |
349 | local Part = CreatePart(Services.Workspace, "VFX", Color, Vector3.new(), Material, Transparency, "Block") | |
350 | Part.Anchored = true | |
351 | Part.CFrame = PartPosition | |
352 | Services.Debris:AddItem(Part, 20) | |
353 | local Mesh = CreateMesh(Part, Vector3.new(Size1, Size2, Size3), "SpecialMesh", "FileMesh", 3270017) | |
354 | AddVFX("Resize", Part, TransparencyAdd, IncreaseSize1, IncreaseSize2, IncreaseSize3) | |
355 | return Part and Mesh | |
356 | end | |
357 | function ShurikenVFX(PartPosition, Color, Material, Transparency, TransparencyAdd, Size1, Size2, Size3, IncreaseSize1, IncreaseSize2, IncreaseSize3) | |
358 | local Part = CreatePart(Services.Workspace, "VFX", Color, Vector3.new(), Material, Transparency, "Block") | |
359 | Part.Anchored = true | |
360 | Part.CFrame = PartPosition | |
361 | Services.Debris:AddItem(Part, 20) | |
362 | local Mesh = CreateMesh(Part, Vector3.new(Size1, Size2, Size3), "SpecialMesh", "FileMesh", 11112101) | |
363 | AddVFX("Resize", Part, TransparencyAdd, IncreaseSize1, IncreaseSize2, IncreaseSize3) | |
364 | return Part | |
365 | end | |
366 | function KunaiVFX(PartPosition, Color, Material, Transparency, TransparencyAdd, Size1, Size2, Size3, IncreaseSize1, IncreaseSize2, IncreaseSize3) | |
367 | local Part = CreatePart(Services.Workspace, "VFX", Color, Vector3.new(), Material, Transparency, "Block") | |
368 | Part.Anchored = true | |
369 | Part.CFrame = PartPosition | |
370 | Services.Debris:AddItem(Part, 20) | |
371 | local Mesh = CreateMesh(Part, Vector3.new(Size1, Size2, Size3), "SpecialMesh", "FileMesh", 45728702) | |
372 | AddVFX("Resize", Part, TransparencyAdd, IncreaseSize1, IncreaseSize2, IncreaseSize3) | |
373 | return Part | |
374 | end | |
375 | function WindVFX(PartPosition, Color, Material, Transparency, TransparencyAdd, Size1, Size2, Size3, IncreaseSize1, IncreaseSize2, IncreaseSize3) | |
376 | local Part = CreatePart(Services.Workspace, "VFX", Color, Vector3.new(), Material, Transparency, "Block") | |
377 | Part.Anchored = true | |
378 | Part.CFrame = PartPosition | |
379 | Services.Debris:AddItem(Part, 20) | |
380 | local Mesh = CreateMesh(Part, Vector3.new(Size1, Size2, Size3), "SpecialMesh", "FileMesh", 168892432) | |
381 | AddVFX("Resize", Part, TransparencyAdd, IncreaseSize1, IncreaseSize2, IncreaseSize3) | |
382 | return Part | |
383 | end | |
384 | function SlashVFX(PartPosition, Color, Material, Transparency, TransparencyAdd, Size1, Size2, Size3, IncreaseSize1, IncreaseSize2, IncreaseSize3) | |
385 | local Part = CreatePart(Services.Workspace, "VFX", Color, Vector3.new(), Material, Transparency, "Block") | |
386 | Part.Anchored = true | |
387 | Part.CFrame = PartPosition | |
388 | Services.Debris:AddItem(Part, 20) | |
389 | local Mesh = CreateMesh(Part, Vector3.new(Size1, Size2, Size3), "SpecialMesh", "FileMesh", 448386996) | |
390 | AddVFX("Resize", Part, TransparencyAdd, IncreaseSize1, IncreaseSize2, IncreaseSize3) | |
391 | return Part | |
392 | end | |
393 | WeaponGUI = Instance.new("ScreenGui", Player.PlayerGui) | |
394 | WeaponGUI.Name = "WeaponThing" | |
395 | local HealthBarBack = GUI("Frame", WeaponGUI, UDim2.new(0, 355, 0, 25), UDim2.new(0, 0, 0, 0), UDim2.new(0, 350, 0.96, 0), 0, true, "Really black", 0, nil) | |
396 | local HealthBarBar = GUI("Frame", HealthBarBack, UDim2.new(0, 345, 0, 19), UDim2.new(0, 0, 0, 0), UDim2.new(0, 3, 0.1, 0), 0, true, "Lime green", 0) | |
397 | local HealthBarText = GUI("TextLabel", WeaponGUI, UDim2.new(0, 345, 0, 19), UDim2.new(0, 0, 0, 0), UDim2.new(0, 355, 0.96, 0), 1, true, "", 0, nil, "Health", "White", "Black", 0, true, "SourceSansBold") | |
398 | local ManaBarBack = GUI("Frame", WeaponGUI, UDim2.new(0, 355, 0, 25), UDim2.new(0, 0, 0, 0), UDim2.new(0, 350, 0.9, 0), 0, true, "Really black", 0, nil) | |
399 | local ManaBarBar = GUI("Frame", ManaBarBack, UDim2.new(0, 0, 0, 19), UDim2.new(0, 0, 0, 0), UDim2.new(0, 3, 0.1, 0), 0, true, "Bright blue", 0) | |
400 | local ManaBarText = GUI("TextLabel", WeaponGUI, UDim2.new(0, 345, 0, 19), UDim2.new(0, 0, 0, 0), UDim2.new(0, 355, 0.9, 0), 1, true, "", 0, nil, "Mana", "White", "Cyan", 0, true, "SourceSansBold") | |
401 | local AtkBarBack = GUI("Frame", WeaponGUI, UDim2.new(0, 70, 0, 25), UDim2.new(0, 0, 0, 0), UDim2.new(0, 195, 0.94, 0), 0, true, "Really black", 90) | |
402 | local AtkBarBar = GUI("Frame", WeaponGUI, UDim2.new(0, 60, 0, 19), UDim2.new(0, 0, 0, 0), UDim2.new(0, 200, 0.94, 0), 0, true, "Really red", 90) | |
403 | local AtkBarText = GUI("TextLabel", WeaponGUI, UDim2.new(0, 60, 0, 19), UDim2.new(0, 0, 0, 0), UDim2.new(0, 202, 0.94, 0), 1, true, "", 90, nil, "Atk", "Black", "Neon orange", 0, true, "SourceSansBold") | |
404 | local DefBarBack = GUI("Frame", WeaponGUI, UDim2.new(0, 70, 0, 25), UDim2.new(0, 0, 0, 0), UDim2.new(0, 240, 0.94, 0), 0, true, "Really black", 90) | |
405 | local DefBarBar = GUI("Frame", WeaponGUI, UDim2.new(0, 60, 0, 19), UDim2.new(0, 0, 0, 0), UDim2.new(0, 245, 0.94, 0), 0, true, "Bright blue", 90) | |
406 | local DefBarText = GUI("TextLabel", WeaponGUI, UDim2.new(0, 60, 0, 19), UDim2.new(0, 0, 0, 0), UDim2.new(0, 247, 0.94, 0), 1, true, "", 90, nil, "Def", "White", "Cyan", 0, true, "SourceSansBold") | |
407 | local MvmtBarBack = GUI("Frame", WeaponGUI, UDim2.new(0, 70, 0, 25), UDim2.new(0, 0, 0, 0), UDim2.new(0, 285, 0.94, 0), 0, true, "Really black", 90) | |
408 | local MvmtBarBar = GUI("Frame", WeaponGUI, UDim2.new(0, 60, 0, 19), UDim2.new(0, 0, 0, 0), UDim2.new(0, 290, 0.94, 0), 0, true, "Lime green", 90) | |
409 | local MvmtBarText = GUI("TextLabel", WeaponGUI, UDim2.new(0, 60, 0, 19), UDim2.new(0, 0, 0, 0), UDim2.new(0, 292, 0.94, 0), 1, true, "", 90, nil, "Mvmt", "White", "Black", 0, true, "SourceSansBold") | |
410 | local CooldownZBarBack = GUI("Frame", WeaponGUI, UDim2.new(0, 80, 0, 80), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0.3, 0), 0, true, "Really black", 0, nil) | |
411 | local CooldownZBarBar = GUI("TextButton", CooldownZBarBack, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0, 5), 0.3, true, "Ghost grey", 0, nil, "", "White", "Cyan", 1, true, "SourceSansBold") | |
412 | local CooldownZBarText = GUI("TextLabel", CooldownZBarBack, UDim2.new(0, 80, 0, 80), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0, 0), 1, true, "", 0, nil, "Z", "White", "Cyan", 1, true, "SourceSansBold") | |
413 | local CooldownXBarBack = GUI("Frame", WeaponGUI, UDim2.new(0, 80, 0, 80), UDim2.new(0, 0, 0, 0), UDim2.new(0.93, 0, 0.3, 0), 0, true, "Really black", 0, nil) | |
414 | local CooldownXBarBar = GUI("TextButton", CooldownXBarBack, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0, 5), 0.3, true, "Ghost grey", 0, nil, "", "White", "Cyan", 1, true, "SourceSansBold") | |
415 | local CooldownXBarText = GUI("TextLabel", CooldownXBarBack, UDim2.new(0, 80, 0, 80), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0, 0), 1, true, "", 0, nil, "X", "White", "Cyan", 1, true, "SourceSansBold") | |
416 | local CooldownCBarBack = GUI("Frame", WeaponGUI, UDim2.new(0, 80, 0, 80), UDim2.new(0, 0, 0, 0), UDim2.new(0.93, 0, 0.6, 0), 0, true, "Really black", 0, nil) | |
417 | local CooldownCBarBar = GUI("TextButton", CooldownCBarBack, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0, 5), 0.3, true, "Ghost grey", 0, nil, "", "White", "Cyan", 1, true, "SourceSansBold") | |
418 | local CooldownCBarText = GUI("TextLabel", CooldownCBarBack, UDim2.new(0, 80, 0, 80), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0, 0), 1, true, "", 0, nil, "C", "White", "Cyan", 1, true, "SourceSansBold") | |
419 | local CooldownVBarBack = GUI("Frame", WeaponGUI, UDim2.new(0, 80, 0, 80), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0.6, 0), 0, true, "Really black", 0, nil) | |
420 | local CooldownVBarBar = GUI("TextButton", CooldownVBarBack, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0, 5), 0.3, true, "Ghost grey", 0, nil, "", "White", "Cyan", 1, true, "SourceSansBold") | |
421 | local CooldownVBarText = GUI("TextLabel", CooldownVBarBack, UDim2.new(0, 80, 0, 80), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0, 0), 1, true, "", 0, nil, "V", "White", "Cyan", 1, true, "SourceSansBold") | |
422 | local CooldownQBarBack = GUI("Frame", WeaponGUI, UDim2.new(0, 80, 0, 80), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0, 0), 0, true, "Really black", 0, nil) | |
423 | local CooldownQBarBar = GUI("TextButton", CooldownQBarBack, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0, 5), 0.3, true, "Ghost grey", 0, nil, "", "White", "Cyan", 1, true, "SourceSansBold") | |
424 | local CooldownQBarText = GUI("TextLabel", CooldownQBarBack, UDim2.new(0, 80, 0, 80), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0, 0), 1, true, "", 0, nil, "Q", "White", "Cyan", 1, true, "SourceSansBold") | |
425 | local CooldownEBarBack = GUI("Frame", WeaponGUI, UDim2.new(0, 80, 0, 80), UDim2.new(0, 0, 0, 0), UDim2.new(0.93, 0, 0, 0), 0, true, "Really black", 0, nil) | |
426 | local CooldownEBarBar = GUI("TextButton", CooldownEBarBack, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0, 5), 0.3, true, "Ghost grey", 0, nil, "", "White", "Cyan", 1, true, "SourceSansBold") | |
427 | local CooldownEBarText = GUI("TextLabel", CooldownEBarBack, UDim2.new(0, 80, 0, 80), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0, 0), 1, true, "", 0, nil, "E", "White", "Cyan", 1, true, "SourceSansBold") | |
428 | local CooldownFBarBack = GUI("Frame", WeaponGUI, UDim2.new(0, 80, 0, 80), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0.93, 0), 0, true, "Bright red", 0, nil) | |
429 | local CooldownFBarBar = GUI("TextButton", CooldownFBarBack, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0, 5), 0.3, true, "Ghost grey", 0, nil, "", "White", "Cyan", 1, true, "SourceSansBold") | |
430 | local CooldownFBarText = GUI("TextLabel", CooldownFBarBack, UDim2.new(0, 80, 0, 80), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0, 0), 1, true, "", 0, nil, "F", "White", "Cyan", 1, true, "SourceSansBold") | |
431 | function MobileControlZ() | |
432 | if not Attacking and Cooldown1 == MaxCooldown1 and Mana.Value > 5 then | |
433 | Cooldown1 = 0 | |
434 | Mana.Value = Mana.Value - 5 | |
435 | Move1() | |
436 | end | |
437 | end | |
438 | function MobileControlX() | |
439 | if not Attacking and Cooldown2 == MaxCooldown2 and Mana.Value > 15 then | |
440 | Cooldown2 = 0 | |
441 | Mana.Value = Mana.Value - 15 | |
442 | Move2() | |
443 | end | |
444 | end | |
445 | function MobileControlC() | |
446 | if not Attacking and Cooldown3 == MaxCooldown3 and Mana.Value > 40 then | |
447 | Cooldown3 = 0 | |
448 | Mana.Value = Mana.Value - 40 | |
449 | Move3() | |
450 | end | |
451 | end | |
452 | function MobileControlV() | |
453 | if not Attacking and Cooldown4 == MaxCooldown4 and Mana.Value > 50 then | |
454 | Cooldown4 = 0 | |
455 | Mana.Value = Mana.Value - 50 | |
456 | Move4() | |
457 | end | |
458 | end | |
459 | function MobileControlQ() | |
460 | if not Attacking and Cooldown5 == MaxCooldown5 then | |
461 | Cooldown5 = 0 | |
462 | EvadeQ() | |
463 | end | |
464 | end | |
465 | function MobileControlE() | |
466 | if not Attacking and Cooldown6 == MaxCooldown6 then | |
467 | Cooldown6 = 0 | |
468 | EvadeE() | |
469 | end | |
470 | end | |
471 | Services = { | |
472 | Workspace = game:GetService("Workspace"), | |
473 | Debris = game:GetService("Debris") | |
474 | } | |
475 | Heartbeat = Instance.new("BindableEvent", script) | |
476 | Heartbeat.Name = "Heartbeat" | |
477 | script:WaitForChild("Heartbeat") | |
478 | Frame = 0.033333333333333 | |
479 | TF = 0 | |
480 | AllowFrameLoss = false | |
481 | TossRemainder = false | |
482 | LastFrame = tick() | |
483 | script.Heartbeat:Fire() | |
484 | local HeartBeatIsNil = false | |
485 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
486 | if script:FindFirstChild("Heartbeat") == nil then | |
487 | HeartBeatIsNil = true | |
488 | end | |
489 | if HeartBeatIsNil then | |
490 | return | |
491 | end | |
492 | TF = TF + s | |
493 | if Frame <= TF then | |
494 | if AllowFrameLoss then | |
495 | Heartbeat:Fire() | |
496 | LastFrame = tick() | |
497 | else | |
498 | for i = 1, math.floor(TF / Frame) do | |
499 | Heartbeat:Fire() | |
500 | LastFrame = tick() | |
501 | end | |
502 | end | |
503 | if TossRemainder then | |
504 | TF = 0 | |
505 | else | |
506 | TF = TF - Frame * math.floor(TF / Frame) | |
507 | end | |
508 | end | |
509 | end) | |
510 | function Wait2(WaitNumber) | |
511 | if WaitNumber == 0 or WaitNumber == nil then | |
512 | Heartbeat.Event:wait() | |
513 | else | |
514 | for i = 0, WaitNumber do | |
515 | Heartbeat.Event:wait() | |
516 | end | |
517 | end | |
518 | end | |
519 | local LazerEdge = Instance.new("Model", Character) | |
520 | LazerEdge.Name = "Lazer Edge" | |
521 | local Color1 = "Medium stone grey" | |
522 | Handle = CreatePart(LazerEdge, "Handle", "Black", Vector3.new(2.32, 0.3, 0.4), "SmoothPlastic", 0, "Block") | |
523 | HandleMesh = CreateMesh(Handle, Vector3.new(1, 1, 1), "SpecialMesh", "Cylinder") | |
524 | HandleWeld = CreateWeld(Handle, CFrame.new(0, -1, 0) * CFrame.Angles(-1.57, 0, 1.57), CFrame.new(0, 0, 0), Handle, RightArm, "HandleToRightArm") | |
525 | Part1 = CreatePart(LazerEdge, "Part1", Color1, Vector3.new(0.2, 0.4, 0.5), "SmoothPlastic", 0, "Block") | |
526 | Part1Weld = CreateWeld(Part1, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.06002414, 0, 0, 0.99999547, 0, 0, 0, 1, 0, 0, 0, 0.99999547), Handle, Part1, "Part1ToHandle") | |
527 | Part1Mesh = CreateMesh(Part1, Vector3.new(1, 1, 1), "SpecialMesh", "Cylinder") | |
528 | Part2 = CreatePart(LazerEdge, "Part2", "Cyan", Vector3.new(1, 0.5, 0.5), "Neon", 0.4, "Block") | |
529 | Part2Weld = CreateWeld(Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.68999255, 0, 0, 0.99999547, 0, 0, 0, 1, 0, 0, 0, 0.99999547), Handle, Part2, "Part2ToHandle") | |
530 | Part2Mesh = CreateMesh(Part2, Vector3.new(1, 1, 1), "SpecialMesh", "Cylinder") | |
531 | Part3 = CreatePart(LazerEdge, "Part3", "Cyan", Vector3.new(1, 0.4, 0.4), "Neon", 0.6, "Block") | |
532 | Part3Weld = CreateWeld(Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.56998444, 0, 0.289997101, 0.966275215, 0, -0.257493705, 0, 1, 0, 0.257493705, 0, 0.966275215), Handle, Part3, "Part3ToHandle") | |
533 | Part3Mesh = CreateMesh(Part3, Vector3.new(1, 1, 1), "SpecialMesh", "Cylinder") | |
534 | Part4 = CreatePart(LazerEdge, "Part4", Color1, Vector3.new(0.2, 0.6, 0.6), "SmoothPlastic", 0, "Block") | |
535 | Part4Weld = CreateWeld(Part4, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.16001117, 0, 1.90734863E-6, 0.99999547, 0, 0, 0, 1, 0, 0, 0, 0.99999547), Handle, Part4, "Part4ToHandle") | |
536 | Part4Mesh = CreateMesh(Part4, Vector3.new(0.30000001192093, 1, 1), "SpecialMesh", "Cylinder") | |
537 | Part5 = CreatePart(LazerEdge, "Part5", "Cyan", Vector3.new(1, 0.45, 0.45), "Neon", 0.5, "Block") | |
538 | Part5Weld = CreateWeld(Part5, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.61998653, 0, 0.0800037384, 0.982708693, 0, -0.185134172, 0, 1, 0, 0.185134172, 0, 0.982708693), Handle, Part5, "Part5ToHandle") | |
539 | Part5Mesh = CreateMesh(Part5, Vector3.new(1, 1, 1), "SpecialMesh", "Cylinder") | |
540 | Part6 = CreatePart(LazerEdge, "Part6", "Black", Vector3.new(0.31, 0.31, 0.31), "SmoothPlastic", 0, "Block") | |
541 | Part6Weld = CreateWeld(Part6, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.19999397, 0, -1.90734863E-6, 0.99999547, 0, 0, 0, 1, 0, 0, 0, 0.99999547), Handle, Part6, "Part6ToHandle") | |
542 | Part6Mesh = CreateMesh(Part6, Vector3.new(1, 1, 1), "SpecialMesh", "Sphere") | |
543 | Part7 = CreatePart(LazerEdge, "Part7", Color1, Vector3.new(0.5, 1.5, 0.5), "Plastic", 0, "Block") | |
544 | Part7Weld = CreateWeld(Part7, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.459974885, 0, -1.90734863E-6, 0, 0.99999547, 0, -1, 0, 0, 0, 0, 0.99999547), Handle, Part7, "Part7ToHandle") | |
545 | Part7Mesh = CreateMesh(Part7, Vector3.new(1, 1, 1), "SpecialMesh", "Head") | |
546 | Part8 = CreatePart(LazerEdge, "Part8", "Cyan", Vector3.new(1, 0.3, 0.3), "Neon", 0.8, "Block") | |
547 | Part8Weld = CreateWeld(Part8, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(5.28999233, 1.90734863E-6, 0.929994583, 0.878526747, 0, -0.477683723, 0, 1, 0, 0.477683723, 0, 0.878526747), Handle, Part8, "Part8ToHandle") | |
548 | Part8Mesh = CreateMesh(Part8, Vector3.new(1, 1, 1), "SpecialMesh", "Cylinder") | |
549 | Part9 = CreatePart(LazerEdge, "Part9", "Cyan", Vector3.new(1, 0.35, 0.35), "Neon", 0.7, "Block") | |
550 | Part9Weld = CreateWeld(Part9, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.46998024, 9.53674316E-7, 0.56999588, 0.929504633, 0, -0.368798256, 0, 1, 0, 0.368798256, 0, 0.929504514), Handle, Part9, "Part9ToHandle") | |
551 | Part9Mesh = CreateMesh(Part9, Vector3.new(1, 1, 1), "SpecialMesh", "Cylinder") | |
552 | Part10 = CreatePart(LazerEdge, "Part10", "Cyan", Vector3.new(1, 0.25, 0.25), "Neon", 0.9, "Block") | |
553 | Part10Weld = CreateWeld(Part10, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(6.18000221, 1.90734863E-6, 1.40998459, 0.872381926, 0, -0.488815755, 0, 1, 0, 0.488815755, 0, 0.872381926), Handle, Part10, "Part10ToHandle") | |
554 | Part10Mesh = CreateMesh(Part10, Vector3.new(1, 1, 1), "SpecialMesh", "Cylinder") | |
555 | Part11 = CreatePart(LazerEdge, "Part11", Color1, Vector3.new(0.2, 0.4, 0.5), "SmoothPlastic", 0, "Block") | |
556 | Part11Weld = CreateWeld(Part11, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.360021114, 1.90734863E-6, -1.90734863E-6, 0.99999547, 0, 0, 0, 1, 0, 0, 0, 0.99999547), Handle, Part11, "Part11ToHandle") | |
557 | Part11Mesh = CreateMesh(Part11, Vector3.new(1, 1, 1), "SpecialMesh", "Cylinder") | |
558 | RightArmReference = CreatePart(Character, "Right arm reference", "None", Vector3.new(), "SmoothPlastic", 1, "Block") | |
559 | RightArmReferenceWeld = CreateWeld(RightArmReference, CFrame.new(0, 1.5, 0), CFrame.new(0, 0, 0), RightArm, RightArmReference, "LeftArmReferenceToRightArm") | |
560 | LeftArmReference = CreatePart(Character, "Left arm reference", "None", Vector3.new(), "SmoothPlastic", 1, "Block") | |
561 | LeftArmReferenceWeld = CreateWeld(LeftArmReference, CFrame.new(0, 1.5, 0), CFrame.new(0, 0, 0), LeftArm, LeftArmReference, "LeftArmReferenceToLeftArm") | |
562 | TorsoReference = CreatePart(Character, "Torso reference", "None", Vector3.new(), "SmoothPlastic", 1, "Block") | |
563 | TorsoReferenceWeld = CreateWeld(TorsoReference, CFrame.new(0, 0, 0), CFrame.new(0, 0, 0), Torso, TorsoReference, "TorsoReferenceToTorsoArm") | |
564 | RootPartReference = CreatePart(Character, "Root part reference", "None", Vector3.new(), "SmoothPlastic", 1, "Block") | |
565 | RootPartReferenceWeld = CreateWeld(RootPartReference, CFrame.new(0, 0, 0), CFrame.new(0, 0, 0), RootPart, RootPartReference, "RootPartReferenceToRootPart") | |
566 | function Display(HitCharacter, DisplayText, DisplayType) | |
567 | if HitCharacter:FindFirstChild("Head") then | |
568 | do | |
569 | local DamageShowingPart = Instance.new("Part", Services.Workspace) | |
570 | DamageShowingPart.Name = "ShowDamage" | |
571 | DamageShowingPart.BrickColor = BrickColor.new("Crimson") | |
572 | DamageShowingPart.Size = Vector3.new() | |
573 | DamageShowingPart.Material = "Neon" | |
574 | DamageShowingPart.Transparency = 1 | |
575 | local DisplayGui = Instance.new("BillboardGui", DamageShowingPart) | |
576 | DisplayGui.Name = "Damage" | |
577 | DisplayGui.AlwaysOnTop = true | |
578 | DisplayGui.Size = UDim2.new(2, 0, 2, 0) | |
579 | local DisplayNumber = Instance.new("TextLabel", DisplayGui) | |
580 | DisplayNumber.Size = UDim2.new(1, 0, 1, 0) | |
581 | DisplayNumber.TextTransparency = 1 | |
582 | DisplayNumber.TextStrokeTransparency = 1 | |
583 | DisplayNumber.BackgroundTransparency = 1 | |
584 | DisplayNumber.TextTransparency = 1 | |
585 | DisplayNumber.Font = "SourceSansBold" | |
586 | DisplayNumber.TextScaled = true | |
587 | local BodyVelocity = Instance.new("BodyVelocity", DamageShowingPart) | |
588 | BodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge) | |
589 | BodyVelocity.Velocity = Vector3.new(0, 0.5, 0) | |
590 | if DisplayType == "Stun" then | |
591 | BodyVelocity.Velocity = Vector3.new(0, 0.1, 0) | |
592 | DisplayGui.Size = UDim2.new(5, 0, 5, 0) | |
593 | DisplayNumber.TextStrokeColor3 = BrickColor.Black().Color | |
594 | DisplayNumber.TextColor3 = BrickColor.new("Bright yellow").Color | |
595 | DisplayNumber.Text = "Stunned!" | |
596 | DamageShowingPart.Position = HitCharacter.Head.Position + Vector3.new(0, 5, 0) | |
597 | end | |
598 | if DisplayType == "Damage" then | |
599 | DisplayNumber.TextStrokeColor3 = BrickColor.Black().Color | |
600 | DisplayNumber.TextColor3 = BrickColor.new("Really red").Color | |
601 | DisplayNumber.Text = "-" .. DisplayText | |
602 | DamageShowingPart.Position = HitCharacter.Head.Position + Vector3.new(math.random(-1, 1), 5, math.random(-1, 1)) | |
603 | end | |
604 | coroutine.resume(coroutine.create(function() | |
605 | while DisplayNumber.TextTransparency > 0 do | |
606 | wait() | |
607 | DisplayNumber.TextStrokeTransparency = DisplayNumber.BackgroundTransparency - 0.1 | |
608 | DisplayNumber.TextTransparency = DisplayNumber.TextTransparency - 0.1 | |
609 | end | |
610 | AddVFX("Display", DamageShowingPart, 0.05) | |
611 | end)) | |
612 | Services.Debris:AddItem(DamageShowingPart, 10) | |
613 | end | |
614 | end | |
615 | end | |
616 | function DoDamage(Hit, HitCharacter, Type, MinDamage, MaxDamage, PartLook, Knockback, SFX, SFXPitch, Delay, PartLook, Effect, Stat, StatsDecreaseNumber, StatsDecreaseDuration) | |
617 | if Hit.Health == 0 or HitCharacter:FindFirstChild(Player.Name) then | |
618 | return | |
619 | end | |
620 | SoundEffect(HitCharacter.Torso, SFX, 1, SFXPitch, false) | |
621 | local DelayDebounce = Instance.new("Folder", HitCharacter) | |
622 | DelayDebounce.Name = Player.Name | |
623 | Services.Debris:AddItem(DelayDebounce, Delay) | |
624 | local Damage = math.random(MinDamage, MaxDamage) * Attack.Value | |
625 | local HitPlayer = game.Players:FindFirstChild(HitCharacter.Name) | |
626 | local HitStats = HitCharacter:FindFirstChild("MyStats") | |
627 | local EffectsFolder = HitCharacter:FindFirstChild("Effects") | |
628 | HitCharacter.Torso.Velocity = PartLook.CFrame.lookVector * Knockback | |
629 | if HitStats then | |
630 | if Stat ~= nil then | |
631 | local Decrease = Instance.new("NumberValue", HitStats.Debuffs) | |
632 | Decrease.Value = StatsDecreaseNumber | |
633 | Decrease.Name = Stat | |
634 | Services.Debris:AddItem(Decrease, StatsDecreaseDuration) | |
635 | end | |
636 | if Effect == "Stun" then | |
637 | EffectsFolder.StunEffect.Value = true | |
638 | EffectsFolder.StunEffect.Stun.Value = 1001 | |
639 | end | |
640 | end | |
641 | if HitStats and HitStats:IsA("Folder") then | |
642 | Damage = Damage / HitStats.Defence.Value | |
643 | end | |
644 | coroutine.resume(coroutine.create(function() | |
645 | wait() | |
646 | Hit:TakeDamage(Damage) | |
647 | Display(HitCharacter, Damage, "Damage") | |
648 | end)) | |
649 | end | |
650 | function ValidateDamage(Part, Type, Distance, MinDamage, MaxDamage, PartLook, Knockback, SFX, SFXPitch, Delay, Effect, Stat, StatsDecreaseNumber, StatsDecreaseDuration) | |
651 | for ChildrenNumber, Children in pairs(Services.Workspace:children()) do | |
652 | if Children ~= Character and Children:FindFirstChild("Humanoid") and Children:FindFirstChild("Head") then | |
653 | local HitHead = Children.Head | |
654 | local TargetPosition = HitHead.Position - Part.Position | |
655 | local Magnitude = TargetPosition.magnitude | |
656 | if Distance > Magnitude then | |
657 | local Hit = Children.Humanoid | |
658 | local HitCharacter = Children | |
659 | DoDamage(Hit, HitCharacter, Type, MinDamage, MaxDamage, PartLook, Knockback, SFX, SFXPitch, Delay, PartLook, Effect, Stat, StatsDecreaseNumber, StatsDecreaseDuration) | |
660 | end | |
661 | end | |
662 | end | |
663 | end | |
664 | function Attack1() | |
665 | Attacking = true | |
666 | if not Fury then | |
667 | for i = 1, 8 do | |
668 | Wait2() | |
669 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, 1), 0.3) | |
670 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, -1), 0.3) | |
671 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(2.6, 0, 0.2), 0.3) | |
672 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0.5, 0, -0.2), 0.3) | |
673 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.8, -1, -0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
674 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.8, -1, 0.7) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
675 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, -0.5) * CFrame.Angles(-1.57, 0, 1), 0.3) | |
676 | end | |
677 | SoundEffect(Torso, 247718224, 1, 1.044, false) | |
678 | for i = 1, 8 do | |
679 | Wait2() | |
680 | ValidateDamage(Part2, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
681 | ValidateDamage(Part3, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
682 | ValidateDamage(Part5, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
683 | ValidateDamage(Part8, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
684 | ValidateDamage(Part9, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
685 | ValidateDamage(Part10, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
686 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, -1), 0.3) | |
687 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, -1, 0) * CFrame.Angles(0, 0, 1), 0.3) | |
688 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.4, 0) * CFrame.Angles(0.3, 0, -0.5), 0.3) | |
689 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-0.5, 0, -0.2), 0.3) | |
690 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.8, -1, 0.7) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, -1, 0), 0.3) | |
691 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.8, -1, -0.7) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, -1, 0), 0.3) | |
692 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, -0.5) * CFrame.Angles(-1.57, 0, 1), 0.3) | |
693 | end | |
694 | else | |
695 | for i = 1, 3 do | |
696 | Wait2() | |
697 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(1, -1, 0.3), 0.5) | |
698 | end | |
699 | for i = 1, 8 do | |
700 | Wait2() | |
701 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, 1), 0.3) | |
702 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -1.2), 0.3) | |
703 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(0.2, 0.5, -0.8) * CFrame.Angles(2.6, 0, -1.3), 0.3) | |
704 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0.5, 0, -0.2), 0.3) | |
705 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.8, -1, -0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
706 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.8, -1, 0.7) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
707 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, -0.5) * CFrame.Angles(-1.57, 0, 1.57), 0.3) | |
708 | end | |
709 | SoundEffect(Torso, 247718224, 1, 1.044, false) | |
710 | for i = 1, 8 do | |
711 | Wait2() | |
712 | ValidateDamage(Part2, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
713 | ValidateDamage(Part3, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
714 | ValidateDamage(Part5, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
715 | ValidateDamage(Part8, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
716 | ValidateDamage(Part9, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
717 | ValidateDamage(Part10, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
718 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, 1), 0.3) | |
719 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -1), 0.3) | |
720 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.2, 0.4, 0.2) * CFrame.Angles(-0.1, -0.2, 0.6), 0.3) | |
721 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-0.5, 0, -0.4), 0.3) | |
722 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.8, -1, -0.7) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
723 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.8, -1, 0.7) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
724 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, -0.5) * CFrame.Angles(-2, 0, 1.57), 0.3) | |
725 | end | |
726 | end | |
727 | Attacking = false | |
728 | end | |
729 | function Attack2() | |
730 | Attacking = true | |
731 | if not Fury then | |
732 | for i = 1, 8 do | |
733 | Wait2() | |
734 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, 1), 0.3) | |
735 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, -1, 0) * CFrame.Angles(0, 0, -1), 0.3) | |
736 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(0.3, -0.6, 1.6), 0.3) | |
737 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0.5, 0, -0.2), 0.3) | |
738 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.8, -1, -0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
739 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.8, -1, 0.7) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
740 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.3) | |
741 | end | |
742 | SoundEffect(Torso, 247718230, 1, 1.276, false) | |
743 | for i = 1, 10 do | |
744 | Wait2() | |
745 | ValidateDamage(Part2, "Normal", 3, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
746 | ValidateDamage(Part3, "Normal", 3, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
747 | ValidateDamage(Part5, "Normal", 3, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
748 | ValidateDamage(Part8, "Normal", 3, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
749 | ValidateDamage(Part9, "Normal", 3, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
750 | ValidateDamage(Part10, "Normal", 3, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
751 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, -1.6), 0.3) | |
752 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 1, 0) * CFrame.Angles(0.3, 0, 1.6), 0.3) | |
753 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1, 0.5, -0.5) * CFrame.Angles(0, 2.3, 1.6), 0.3) | |
754 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-0.5, 0, -0.4), 0.3) | |
755 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.5, -1, 0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, -1.6, 0), 0.3) | |
756 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.5, -1, -0.7) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, -1.6, 0), 0.3) | |
757 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.3) | |
758 | end | |
759 | else | |
760 | for i = 1, 8 do | |
761 | Wait2() | |
762 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, 1), 0.3) | |
763 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, -1, 0) * CFrame.Angles(0, 0, -1), 0.3) | |
764 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(0.3, -0.6, 1.6), 0.3) | |
765 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0.5, 0, -0.2), 0.3) | |
766 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.8, -1, -0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
767 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.8, -1, 0.7) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
768 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.3) | |
769 | end | |
770 | SoundEffect(Torso, 247718230, 1, 1.276, false) | |
771 | for i = 1, 10 do | |
772 | Wait2() | |
773 | ValidateDamage(Part2, "Normal", 3, 6, 8, RootPart, 5, 247718107, 1.4, 0.3) | |
774 | ValidateDamage(Part3, "Normal", 3, 6, 8, RootPart, 5, 247718107, 1.4, 0.3) | |
775 | ValidateDamage(Part5, "Normal", 3, 6, 8, RootPart, 5, 247718107, 1.4, 0.3) | |
776 | ValidateDamage(Part8, "Normal", 3, 6, 8, RootPart, 5, 247718107, 1.4, 0.3) | |
777 | ValidateDamage(Part9, "Normal", 3, 6, 8, RootPart, 5, 247718107, 1.4, 0.3) | |
778 | ValidateDamage(Part10, "Normal", 3, 6, 8, RootPart, 5, 247718107, 1.4, 0.3) | |
779 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, -1.6), 0.3) | |
780 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 1, 0) * CFrame.Angles(0.3, 0, 1.6), 0.3) | |
781 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1, 0.5, -0.5) * CFrame.Angles(0, 2.3, 1.6), 0.3) | |
782 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-0.5, 0, -0.4), 0.3) | |
783 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.5, -1, 0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, -1.6, 0), 0.3) | |
784 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.5, -1, -0.7) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, -1.6, 0), 0.3) | |
785 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.3) | |
786 | end | |
787 | end | |
788 | Attacking = false | |
789 | end | |
790 | function Attack3() | |
791 | Attacking = true | |
792 | if not Fury then | |
793 | CanAnimate = false | |
794 | for i = 1, 12 do | |
795 | Wait2() | |
796 | RightHip.C1 = Animate(RightHip.C1, RightLegDefaultCFrame, 0.2) | |
797 | LeftHip.C1 = Animate(LeftHip.C1, LeftLegDefaultCFrame, 0.2) | |
798 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, 1), 0.3) | |
799 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0.3, 2) * CFrame.Angles(0, 0, -1), 0.3) | |
800 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(3.2, 0, 0.2), 0.3) | |
801 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0.5, 0, -0.2), 0.3) | |
802 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(1, -1, -0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 1, -0.5), 0.3) | |
803 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-1, -1, 0.5) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 1, 0.5), 0.3) | |
804 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, -0.5) * CFrame.Angles(-1.57, 0, 1.57), 0.3) | |
805 | end | |
806 | SoundEffect(Torso, 247718230, 1, 1.6, false) | |
807 | for i = 1, 12 do | |
808 | Wait2() | |
809 | ValidateDamage(Part2, "Normal", 3, 4, 7, RootPart, 5, 247718107, 1.4, 0.3, nil, "Movement", 0.1, 0.5) | |
810 | ValidateDamage(Part3, "Normal", 3, 4, 7, RootPart, 5, 247718107, 1.4, 0.3, nil, "Movement", 0.1, 0.5) | |
811 | ValidateDamage(Part5, "Normal", 3, 4, 7, RootPart, 5, 247718107, 1.4, 0.3, nil, "Movement", 0.1, 0.5) | |
812 | ValidateDamage(Part8, "Normal", 3, 4, 7, RootPart, 5, 247718107, 1.4, 0.3, nil, "Movement", 0.1, 0.5) | |
813 | ValidateDamage(Part9, "Normal", 3, 4, 7, RootPart, 5, 247718107, 1.4, 0.3, nil, "Movement", 0.1, 0.5) | |
814 | ValidateDamage(Part10, "Normal", 3, 4, 7, RootPart, 5, 247718107, 1.4, 0.3, nil, "Movement", 0.1, 0.5) | |
815 | RightHip.C1 = Animate(RightHip.C1, RightLegDefaultCFrame, 0.2) | |
816 | LeftHip.C1 = Animate(LeftHip.C1, LeftLegDefaultCFrame, 0.2) | |
817 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, -1.6), 0.3) | |
818 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, -2, -0.5) * CFrame.Angles(0.3, 0, 1.6), 0.3) | |
819 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(0.2, 0, 0.2), 0.3) | |
820 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.3, 0.4, 0.2) * CFrame.Angles(-0.5, 0, -0.2), 0.3) | |
821 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.8, -1, 0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, -1.6, -0.5), 0.3) | |
822 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.8, -1, -0.5) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, -1.6, 0.5), 0.3) | |
823 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0.5, -0.8, 0) * CFrame.Angles(-1.57, 0, 0), 0.3) | |
824 | end | |
825 | CanAnimate = true | |
826 | else | |
827 | for i = 1, 8 do | |
828 | Wait2() | |
829 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, 1), 0.3) | |
830 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 2, 0) * CFrame.Angles(0.3, 0, -1), 0.3) | |
831 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(0.4, 0.5, -1) * CFrame.Angles(3.2, 3.8, 1.6), 0.3) | |
832 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-0.5, 0, -0.2), 0.3) | |
833 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.8, -1, -0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
834 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.8, -1, 0.7) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
835 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.3) | |
836 | end | |
837 | SoundEffect(Torso, 247718230, 1, 1.6, false) | |
838 | for i = 1, 8 do | |
839 | Wait2() | |
840 | ValidateDamage(Part2, "Normal", 3, 7, 8, RootPart, 5, 247718107, 1.4, 0.3) | |
841 | ValidateDamage(Part3, "Normal", 3, 7, 8, RootPart, 5, 247718107, 1.4, 0.3) | |
842 | ValidateDamage(Part5, "Normal", 3, 7, 8, RootPart, 5, 247718107, 1.4, 0.3) | |
843 | ValidateDamage(Part8, "Normal", 3, 7, 8, RootPart, 5, 247718107, 1.4, 0.3) | |
844 | ValidateDamage(Part9, "Normal", 3, 7, 8, RootPart, 5, 247718107, 1.4, 0.3) | |
845 | ValidateDamage(Part10, "Normal", 3, 7, 8, RootPart, 5, 247718107, 1.4, 0.3) | |
846 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, 1), 0.3) | |
847 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, -2, 0) * CFrame.Angles(0, 0, -1), 0.3) | |
848 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(3.2, 0.5, 1.6), 0.3) | |
849 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0.8, 0, -0.2), 0.3) | |
850 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.8, -1, -0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
851 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.8, -1, 0.7) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
852 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.3) | |
853 | end | |
854 | end | |
855 | Attacking = false | |
856 | end | |
857 | function Attack4() | |
858 | Attacking = true | |
859 | if not Fury then | |
860 | CanAnimate = false | |
861 | for i = 1, 8 do | |
862 | Wait2() | |
863 | RightHip.C1 = Animate(RightHip.C1, RightLegDefaultCFrame, 0.2) | |
864 | LeftHip.C1 = Animate(LeftHip.C1, LeftLegDefaultCFrame, 0.2) | |
865 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, 1), 0.3) | |
866 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 1, 0) * CFrame.Angles(0, 0, -1), 0.3) | |
867 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(0, -0.6, 1.6), 0.3) | |
868 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0.5, 0, -0.2), 0.3) | |
869 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.8, -1, -0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
870 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.8, -1, 0.7) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
871 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.3) | |
872 | end | |
873 | SoundEffect(Torso, 247718248, 1, 1, false) | |
874 | for i = 1, 20 do | |
875 | Wait2() | |
876 | ValidateDamage(Part2, "Normal", 5, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
877 | ValidateDamage(Part3, "Normal", 5, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
878 | ValidateDamage(Part5, "Normal", 5, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
879 | ValidateDamage(Part8, "Normal", 5, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
880 | ValidateDamage(Part9, "Normal", 5, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
881 | ValidateDamage(Part10, "Normal", 5, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
882 | RightHip.C1 = Animate(RightHip.C1, RightLegDefaultCFrame, 0.2) | |
883 | LeftHip.C1 = Animate(LeftHip.C1, LeftLegDefaultCFrame, 0.2) | |
884 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, 0), 0.3) | |
885 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, -2, 0) * CFrame.Angles(0.3, 0, i / 2), 0.4) | |
886 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1, 0.5, -0.5) * CFrame.Angles(0, 2.3, 1.6), 0.3) | |
887 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-0.5, 0, -0.4), 0.3) | |
888 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.5, -1, 0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(-0.5, -1.6, 0), 0.3) | |
889 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.5, -1, -0.7) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(-0.5, -1.6, 0), 0.3) | |
890 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.3) | |
891 | end | |
892 | CanAnimate = true | |
893 | else | |
894 | CanAnimate = false | |
895 | for i = 1, 8 do | |
896 | Wait2() | |
897 | RightHip.C1 = Animate(RightHip.C1, RightLegDefaultCFrame, 0.2) | |
898 | LeftHip.C1 = Animate(LeftHip.C1, LeftLegDefaultCFrame, 0.2) | |
899 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, 1), 0.3) | |
900 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 1, 0) * CFrame.Angles(0, 0, -1), 0.3) | |
901 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(0, -0.6, 1.6), 0.3) | |
902 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0.5, 0, -0.2), 0.3) | |
903 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.8, -1, -0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
904 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.8, -1, 0.7) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
905 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.3) | |
906 | end | |
907 | SoundEffect(Torso, 247718248, 1, 1, false) | |
908 | for i = 1, 20 do | |
909 | Wait2() | |
910 | ValidateDamage(Part2, "Normal", 5, 6, 8, RootPart, 5, 247718107, 1.4, 0.3) | |
911 | ValidateDamage(Part3, "Normal", 5, 6, 8, RootPart, 5, 247718107, 1.4, 0.3) | |
912 | ValidateDamage(Part5, "Normal", 5, 6, 8, RootPart, 5, 247718107, 1.4, 0.3) | |
913 | ValidateDamage(Part8, "Normal", 5, 6, 8, RootPart, 5, 247718107, 1.4, 0.3) | |
914 | ValidateDamage(Part9, "Normal", 5, 6, 8, RootPart, 5, 247718107, 1.4, 0.3) | |
915 | ValidateDamage(Part10, "Normal", 5, 6, 8, RootPart, 5, 247718107, 1.4, 0.3) | |
916 | RightHip.C1 = Animate(RightHip.C1, RightLegDefaultCFrame, 0.2) | |
917 | LeftHip.C1 = Animate(LeftHip.C1, LeftLegDefaultCFrame, 0.2) | |
918 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, 0), 0.3) | |
919 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, -2, 2) * CFrame.Angles(0, 1.6, i / 2), 0.4) | |
920 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1, 0.5, -0.5) * CFrame.Angles(0, 2.3, 1.6), 0.3) | |
921 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-0.5, 0, -0.4), 0.3) | |
922 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.5, -1, 0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(-0.5, -1.6, 0), 0.3) | |
923 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.5, -1, -0.7) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(-0.5, -1.6, 0), 0.3) | |
924 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.3) | |
925 | end | |
926 | CanAnimate = true | |
927 | end | |
928 | Attacking = false | |
929 | end | |
930 | function EvadeE() | |
931 | Attacking = true | |
932 | CanAnimate = false | |
933 | SoundEffect(Torso, 320557563, 1, 1, false) | |
934 | if not Fury then | |
935 | for i = 1, 10 do | |
936 | Wait2() | |
937 | BlockVFX(Torso.CFrame, "White", "Neon", 0, 0.05, 1, 1, 1, 1, 1, 1) | |
938 | CircleVFX(Torso.CFrame, "Cyan", "Neon", 0.3, 0.05, 1, 1, 1, 3, 3, 3) | |
939 | RootPart.Velocity = Torso.CFrame.lookVector * -50 | |
940 | RightHip.C1 = Animate(RightHip.C1, RightLegDefaultCFrame, 1) | |
941 | LeftHip.C1 = Animate(LeftHip.C1, LeftLegDefaultCFrame, 1) | |
942 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0.5, 0, 0), 0.5) | |
943 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 1.6), 0.5) | |
944 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(0.5, 0, 0.2), 0.5) | |
945 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0.5, 0, -0.2), 0.5) | |
946 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 0, 0.5), 0.5) | |
947 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 0, -0.5), 0.5) | |
948 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.5) | |
949 | end | |
950 | else | |
951 | for i = 1, 10 do | |
952 | Wait2() | |
953 | RootPart.Velocity = RootPart.CFrame.lookVector * -100 | |
954 | RightHip.C1 = Animate(RightHip.C1, RightLegDefaultCFrame, 1) | |
955 | LeftHip.C1 = Animate(LeftHip.C1, LeftLegDefaultCFrame, 1) | |
956 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0.5, 0, 0), 0.5) | |
957 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(-i / 2, 0, 1.6), 0.5) | |
958 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(0, 0, 2.6), 0.5) | |
959 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0, 0, -2.6), 0.5) | |
960 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(-0.2, 0, 0), 0.5) | |
961 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(-0.2, 0, 0), 0.5) | |
962 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.5) | |
963 | end | |
964 | end | |
965 | CanAnimate = true | |
966 | Attacking = false | |
967 | end | |
968 | function EvadeQ() | |
969 | Attacking = true | |
970 | CanAnimate = false | |
971 | SoundEffect(Torso, 320557563, 1, 1, false) | |
972 | if not Fury then | |
973 | for i = 1, 10 do | |
974 | Wait2() | |
975 | BlockVFX(Torso.CFrame, "White", "Neon", 0, 0.05, 1, 1, 1, 1, 1, 1) | |
976 | CircleVFX(Torso.CFrame, "Cyan", "Neon", 0.3, 0.05, 1, 1, 1, 3, 3, 3) | |
977 | RootPart.Velocity = Torso.CFrame.lookVector * -50 | |
978 | RightHip.C1 = Animate(RightHip.C1, RightLegDefaultCFrame, 1) | |
979 | LeftHip.C1 = Animate(LeftHip.C1, LeftLegDefaultCFrame, 1) | |
980 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0.5, 0, 0), 0.5) | |
981 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -1.6), 0.5) | |
982 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(0.5, 0, 0.2), 0.5) | |
983 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0.5, 0, -0.2), 0.5) | |
984 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 0, 0.5), 0.5) | |
985 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 0, -0.5), 0.5) | |
986 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.5) | |
987 | end | |
988 | else | |
989 | for i = 1, 10 do | |
990 | Wait2() | |
991 | RootPart.Velocity = RootPart.CFrame.lookVector * 100 | |
992 | RightHip.C1 = Animate(RightHip.C1, RightLegDefaultCFrame, 1) | |
993 | LeftHip.C1 = Animate(LeftHip.C1, LeftLegDefaultCFrame, 1) | |
994 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0.5, 0, 0), 0.5) | |
995 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(i / 2, 0, -1.6), 0.5) | |
996 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(0, 0, 2.6), 0.5) | |
997 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0, 0, -2.6), 0.5) | |
998 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(-0.2, 0, 0), 0.5) | |
999 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(-0.2, 0, 0), 0.5) | |
1000 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.5) | |
1001 | end | |
1002 | end | |
1003 | CanAnimate = true | |
1004 | Attacking = false | |
1005 | end | |
1006 | function Move1() | |
1007 | Attacking = true | |
1008 | if not Fury then | |
1009 | CanAnimate = false | |
1010 | for i = 1, 8 do | |
1011 | Wait2() | |
1012 | RightHip.C1 = Animate(RightHip.C1, RightLegDefaultCFrame, 0.2) | |
1013 | LeftHip.C1 = Animate(LeftHip.C1, LeftLegDefaultCFrame, 0.2) | |
1014 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, 1), 0.3) | |
1015 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 1, 3) * CFrame.Angles(0, 3.2, -1), 0.3) | |
1016 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(0, -0.6, 1.6), 0.3) | |
1017 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0.5, 0, -0.2), 0.3) | |
1018 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.8, -1, -0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
1019 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.8, -1, 0.7) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
1020 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.3) | |
1021 | end | |
1022 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "Galla spin!", "Blue") | |
1023 | SoundEffect(Torso, 247718248, 1, 1, false) | |
1024 | for i = 1, 20 do | |
1025 | Wait2() | |
1026 | ValidateDamage(Part2, "Normal", 5, 4, 6, RootPart, 5, 247718107, 1.4, 0.3) | |
1027 | ValidateDamage(Part3, "Normal", 5, 4, 6, RootPart, 5, 247718107, 1.4, 0.3) | |
1028 | ValidateDamage(Part5, "Normal", 5, 4, 6, RootPart, 5, 247718107, 1.4, 0.3) | |
1029 | ValidateDamage(Part8, "Normal", 5, 4, 6, RootPart, 5, 247718107, 1.4, 0.3) | |
1030 | ValidateDamage(Part9, "Normal", 5, 4, 6, RootPart, 5, 247718107, 1.4, 0.3) | |
1031 | ValidateDamage(Part10, "Normal", 5, 4, 6, RootPart, 5, 247718107, 1.4, 0.3) | |
1032 | RightHip.C1 = Animate(RightHip.C1, RightLegDefaultCFrame, 0.2) | |
1033 | LeftHip.C1 = Animate(LeftHip.C1, LeftLegDefaultCFrame, 0.2) | |
1034 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, 0), 0.3) | |
1035 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, -2, -1) * CFrame.Angles(0, 3.2, i / 2), 0.4) | |
1036 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1, 0.5, -0.5) * CFrame.Angles(0, 2.3, 1.6), 0.3) | |
1037 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-0.5, 0, -0.4), 0.3) | |
1038 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.5, -1, 0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(-0.5, -1.6, 0), 0.3) | |
1039 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.5, -1, -0.7) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(-0.5, -1.6, 0), 0.3) | |
1040 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.3) | |
1041 | end | |
1042 | CanAnimate = true | |
1043 | else | |
1044 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head, ". . .", "Red") | |
1045 | for i = 1, 20 do | |
1046 | Wait2() | |
1047 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, 1), 0.3) | |
1048 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -1.2), 0.3) | |
1049 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(0.2, 0.5, -0.8) * CFrame.Angles(2.6, 0, -1.3), 0.3) | |
1050 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0.5, 0, -0.2), 0.3) | |
1051 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.8, -1, -0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
1052 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.8, -1, 0.7) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
1053 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, -0.5) * CFrame.Angles(-1.57, 0, 1.57), 0.3) | |
1054 | end | |
1055 | SoundEffect(Torso, 247718224, 1, 0.8, false) | |
1056 | RootPartReferenceWeld.C0 = CFrame.new(1, -1, 5) * CFrame.Angles(0, 0, 0.8) | |
1057 | CircleVFX(RootPartReference.CFrame, "Bright red", "Neon", 0, 0.01, 3, 3, 3, 1, -0.001, 0.01) | |
1058 | ValidateDamage(RootPartReference, "Normal", 10, 10, 13, RootPart, 5, 247718107, 1.4, 0.3, "Defence", 0.25, 3) | |
1059 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "C h a o s c u t .", "Red") | |
1060 | for i = 1, 50 do | |
1061 | Wait2() | |
1062 | ValidateDamage(Part2, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1063 | ValidateDamage(Part3, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1064 | ValidateDamage(Part5, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1065 | ValidateDamage(Part8, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1066 | ValidateDamage(Part9, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1067 | ValidateDamage(Part10, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1068 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, 1), 0.3) | |
1069 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -1), 0.3) | |
1070 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.2, 0.4, 0.2) * CFrame.Angles(-0.1, -0.2, 0.6), 0.3) | |
1071 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-0.5, 0, -0.4), 0.3) | |
1072 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.8, -1, -0.7) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
1073 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.8, -1, 0.7) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
1074 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, -0.5) * CFrame.Angles(-2, 0, 1.57), 0.3) | |
1075 | end | |
1076 | end | |
1077 | Attacking = false | |
1078 | end | |
1079 | function Move2() | |
1080 | Attacking = true | |
1081 | CanResumeControl = false | |
1082 | RemoveCharacterControl() | |
1083 | if not Fury then | |
1084 | local Point1 = Torso.Position | |
1085 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "...", "Blue") | |
1086 | for i = 1, 15 do | |
1087 | Wait2() | |
1088 | RightHip.C1 = Animate(RightHip.C1, RightLegDefaultCFrame, 0.2) | |
1089 | LeftHip.C1 = Animate(LeftHip.C1, LeftLegDefaultCFrame, 0.2) | |
1090 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, 1), 0.3) | |
1091 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, -0.5) * CFrame.Angles(0, 0, -1), 0.3) | |
1092 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(1.6, 0, -0.6), 0.3) | |
1093 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0, -0.6, -1.6), 0.3) | |
1094 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(1, -1, -0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 1, -0.5), 0.3) | |
1095 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-1, -1, 0.5) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 1, 0.5), 0.3) | |
1096 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0) * CFrame.Angles(-1.8, 0, 0), 0.3) | |
1097 | end | |
1098 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "Star cutter!", "Blue") | |
1099 | SoundEffect(Torso, 247718230, 1, 1.6, false) | |
1100 | RootPart.Velocity = RootPart.CFrame.lookVector * 2000 | |
1101 | TorsoReferenceWeld.C0 = CFrame.new(-15, 0, -9) | |
1102 | wait() | |
1103 | RootPart.Velocity = Vector3.new(0, 0, 0) | |
1104 | local Point2 = Torso.Position | |
1105 | local Magnitude = Point1 - Point2.magnitude | |
1106 | local Hitbox = CylinderVFX(TorsoReference.CFrame * CFrame.Angles(0, 2.6, 0), "Cyan", "Neon", 0, 0.008, 1, 1, 1, 0, 0.1, 0.1) | |
1107 | Hitbox.Size = Vector3.new(Magnitude, 0, 0) | |
1108 | ValidateDamage(Hitbox, "Normal", 20, 8, 12, RootPart, 5, 247718107, 1.4, 0.3, nil, "Defence", 0.2, 5) | |
1109 | for i = 1, 15 do | |
1110 | Wait2() | |
1111 | RightHip.C1 = Animate(RightHip.C1, RightLegDefaultCFrame, 0.2) | |
1112 | LeftHip.C1 = Animate(LeftHip.C1, LeftLegDefaultCFrame, 0.2) | |
1113 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, -1), 0.3) | |
1114 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, -0.5) * CFrame.Angles(0, 0, 1), 0.3) | |
1115 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5, -0.5) * CFrame.Angles(1.6, 0, 0.6), 0.3) | |
1116 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-0.5, 0, -0.8), 0.3) | |
1117 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(1, -1, 0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, -1, -0.5), 0.3) | |
1118 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-1, -1, -0.5) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, -1, 0.5), 0.3) | |
1119 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0) * CFrame.Angles(-1.57, -0.5, 0), 0.3) | |
1120 | end | |
1121 | TorsoReferenceWeld.C0 = CFrame.new(0, 0, 0) | |
1122 | else | |
1123 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head, ". . .", "Red") | |
1124 | RootPartReferenceWeld.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, 1.6) | |
1125 | for i = 1, 50 do | |
1126 | Wait2() | |
1127 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, 1), 0.3) | |
1128 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 2, 0) * CFrame.Angles(0.3, 0, -1), 0.3) | |
1129 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(0.4, 0.5, -1) * CFrame.Angles(3.2, 3.8, 1.6), 0.3) | |
1130 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-0.5, 0, -0.2), 0.3) | |
1131 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.8, -1, -0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
1132 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.8, -1, 0.7) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
1133 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.3) | |
1134 | end | |
1135 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "C h a o s w a v e .", "Red") | |
1136 | SoundEffect(Torso, 247718230, 1, 1.6, false) | |
1137 | do | |
1138 | local WaveReference = RootPartReference:Clone() | |
1139 | WaveReference.Parent = Services.Workspace | |
1140 | WaveReference:ClearAllChildren() | |
1141 | Services.Debris:AddItem(WaveReference, 2) | |
1142 | local BodyVelocity = Instance.new("BodyVelocity", WaveReference) | |
1143 | BodyVelocity.Velocity = RootPart.CFrame.lookVector * 100 | |
1144 | BodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge) | |
1145 | coroutine.resume(coroutine.create(function() | |
1146 | while WaveReference.Parent == Services.Workspace do | |
1147 | Wait2() | |
1148 | ValidateDamage(WaveReference, "Normal", 10, 10, 16, RootPart, 5, 247718107, 1.4, 0.3) | |
1149 | SlashVFX(WaveReference.CFrame, "Bright red", "Neon", 0, 0.1, 0.001, 0.1, 0.1, 0, 0.001, 0.001) | |
1150 | end | |
1151 | end)) | |
1152 | for i = 1, 50 do | |
1153 | Wait2() | |
1154 | ValidateDamage(Part2, "Normal", 2, 7, 8, RootPart, 5, 247718107, 1.4, 0.3) | |
1155 | ValidateDamage(Part3, "Normal", 2, 7, 8, RootPart, 5, 247718107, 1.4, 0.3) | |
1156 | ValidateDamage(Part5, "Normal", 2, 7, 8, RootPart, 5, 247718107, 1.4, 0.3) | |
1157 | ValidateDamage(Part8, "Normal", 2, 7, 8, RootPart, 5, 247718107, 1.4, 0.3) | |
1158 | ValidateDamage(Part9, "Normal", 2, 7, 8, RootPart, 5, 247718107, 1.4, 0.3) | |
1159 | ValidateDamage(Part10, "Normal", 2, 7, 8, RootPart, 5, 247718107, 1.4, 0.3) | |
1160 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0.5, 0, 1), 0.3) | |
1161 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, -2, 0) * CFrame.Angles(0, 0, -1), 0.3) | |
1162 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(3.2, 0.5, 1.6), 0.3) | |
1163 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0.8, 0, -0.2), 0.3) | |
1164 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.8, -1, -0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
1165 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.8, -1, 0.7) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
1166 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.3) | |
1167 | end | |
1168 | end | |
1169 | end | |
1170 | RemoveCharacterControl() | |
1171 | CanResumeControl = true | |
1172 | Attacking = false | |
1173 | end | |
1174 | function Move3() | |
1175 | Attacking = true | |
1176 | if not Fury then | |
1177 | CanResumeControl = false | |
1178 | RemoveCharacterControl() | |
1179 | SoundEffect(RootPart, 588738544, 10, 1, false) | |
1180 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "Charge...", "Blue") | |
1181 | for i = 1, 15 do | |
1182 | wait() | |
1183 | BlockVFX(LeftArmReference.CFrame, "Cyan", "Neon", 0, 0.05, 1, 1, 1, 0.5, 0.5, 0.5) | |
1184 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, -1), 0.2) | |
1185 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 1), 0.2) | |
1186 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.6, 0) * CFrame.Angles(0.2, 0, 0.2), 0.2) | |
1187 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.3, 0.8, 0) * CFrame.Angles(0, 0, -2.6), 0.2) | |
1188 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.8, -1, 0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, -1, 0), 0.2) | |
1189 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.8, -1, -0.5) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, -1, 0), 0.2) | |
1190 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.2) | |
1191 | end | |
1192 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "Tactical blast!", "Blue") | |
1193 | for i = 1, 8 do | |
1194 | wait() | |
1195 | BlockVFX(LeftArmReference.CFrame, "Cyan", "Neon", 0, 0.05, 1, 1, 1, 0.5, 0.5, 0.5) | |
1196 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, 1), 0.3) | |
1197 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -1), 0.3) | |
1198 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.6, 0) * CFrame.Angles(-0.3, 0, 0.2), 0.3) | |
1199 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.3, 0.5, -0.3) * CFrame.Angles(0.5, 0, 0.5), 0.3) | |
1200 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.8, -1, -0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
1201 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.8, -1, 0.5) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
1202 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, -0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.3) | |
1203 | end | |
1204 | local TouchedFloor, WavePosition = FindPartOnRay(LeftArmReference.Position, CFrame.new(LeftArmReference.Position, LeftArmReference.Position - Vector3.new(0, 1, 0)).lookVector, 200, Character) | |
1205 | SoundEffect(RootPart, 588735437, 10, 1, false) | |
1206 | SoundEffect(RootPart, 588736245, 10, 1, false) | |
1207 | CircleVFX(LeftArmReference.CFrame, "Cyan", "Neon", 0, 0.05, 10, 10, 10, 10, 10, 10) | |
1208 | if TouchedFloor then | |
1209 | WaveVFX(CFrame.new(WavePosition), "Cyan", "Neon", 0, 0.05, 1, 1.5, 1, 2, 0, 2) | |
1210 | end | |
1211 | ValidateDamage(RootPart, "Normal", 20, 10, 14, RootPart, 5, 0, 1.4, 0.3, "Stun") | |
1212 | ValidateDamage(RootPart, "Normal", 45, 6, 8, RootPart, 5, 0, 1.4, 0.3) | |
1213 | RemoveCharacterControl() | |
1214 | CanResumeControl = true | |
1215 | else | |
1216 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "C h a o s c o u n t e r a t t a c k .", "Red") | |
1217 | for i = 1, 5 do | |
1218 | for i = 1, 5 do | |
1219 | Wait2() | |
1220 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, 1), 0.3) | |
1221 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, -1), 0.3) | |
1222 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(2.6, 0, 0.2), 0.3) | |
1223 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0.5, 0, -0.2), 0.3) | |
1224 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.8, -1, -0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
1225 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.8, -1, 0.7) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
1226 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, -0.5) * CFrame.Angles(-1.57, 0, 1), 0.3) | |
1227 | end | |
1228 | SoundEffect(Torso, 247718224, 1, 1.044, false) | |
1229 | for i = 1, 5 do | |
1230 | Wait2() | |
1231 | ValidateDamage(Part2, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1232 | ValidateDamage(Part3, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1233 | ValidateDamage(Part5, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1234 | ValidateDamage(Part8, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1235 | ValidateDamage(Part9, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1236 | ValidateDamage(Part10, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1237 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, -1), 0.3) | |
1238 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, -1, 0) * CFrame.Angles(0, 0, 1), 0.3) | |
1239 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.4, 0) * CFrame.Angles(0.3, 0, -0.5), 0.3) | |
1240 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-0.5, 0, -0.2), 0.3) | |
1241 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.8, -1, 0.7) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, -1, 0), 0.3) | |
1242 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.8, -1, -0.7) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, -1, 0), 0.3) | |
1243 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, -0.5) * CFrame.Angles(-1.57, 0, 1), 0.3) | |
1244 | end | |
1245 | for i = 1, 3 do | |
1246 | Wait2() | |
1247 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(1, -1, 0.3), 0.5) | |
1248 | end | |
1249 | for i = 1, 5 do | |
1250 | Wait2() | |
1251 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, 1), 0.3) | |
1252 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -1.2), 0.3) | |
1253 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(0.2, 0.5, -0.8) * CFrame.Angles(2.6, 0, -1.3), 0.3) | |
1254 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0.5, 0, -0.2), 0.3) | |
1255 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.8, -1, -0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
1256 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.8, -1, 0.7) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
1257 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, -0.5) * CFrame.Angles(-1.57, 0, 1.57), 0.3) | |
1258 | end | |
1259 | SoundEffect(Torso, 247718224, 1, 1.044, false) | |
1260 | for i = 1, 5 do | |
1261 | Wait2() | |
1262 | ValidateDamage(Part2, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1263 | ValidateDamage(Part3, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1264 | ValidateDamage(Part5, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1265 | ValidateDamage(Part8, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1266 | ValidateDamage(Part9, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1267 | ValidateDamage(Part10, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1268 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, 1), 0.3) | |
1269 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -1), 0.3) | |
1270 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.2, 0.4, 0.2) * CFrame.Angles(-0.1, -0.2, 0.6), 0.3) | |
1271 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-0.5, 0, -0.4), 0.3) | |
1272 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.8, -1, -0.7) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
1273 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.8, -1, 0.7) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
1274 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, -0.5) * CFrame.Angles(-2, 0, 1.57), 0.3) | |
1275 | end | |
1276 | end | |
1277 | local TouchedFloor, WavePosition = FindPartOnRay(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 200, Character) | |
1278 | SoundEffect(RootPart, 588735437, 10, 1, false) | |
1279 | SoundEffect(RootPart, 588736245, 10, 1, false) | |
1280 | CircleVFX(RootPart.CFrame, "Bright red", "Neon", 0, 0.05, 10, 10, 10, 10, 10, 10) | |
1281 | if TouchedFloor then | |
1282 | WaveVFX(CFrame.new(WavePosition), "Bright red", "Neon", 0, 0.05, 1, 1.5, 1, 2, 0, 2) | |
1283 | end | |
1284 | ValidateDamage(RootPart, "Normal", 20, 10, 14, RootPart, 5, 0, 1.4, 0.3, "Stun") | |
1285 | ValidateDamage(RootPart, "Normal", 45, 6, 8, RootPart, 5, 0, 1.4, 0.3) | |
1286 | end | |
1287 | Attacking = false | |
1288 | end | |
1289 | function Move4() | |
1290 | Attacking = true | |
1291 | CanResumeControl = false | |
1292 | RemoveCharacterControl() | |
1293 | if not Fury then | |
1294 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "...", "Blue") | |
1295 | for i = 1, 20 do | |
1296 | Wait2() | |
1297 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, 1), 0.3) | |
1298 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -1), 0.3) | |
1299 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(2.6, 0, 0.2), 0.3) | |
1300 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0.5, 0, -0.2), 0.3) | |
1301 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.8, -1, -0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
1302 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.8, -1, 0.7) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
1303 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, -0.5) * CFrame.Angles(-1.57, 0, 1), 0.3) | |
1304 | end | |
1305 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "X...", "Blue") | |
1306 | SoundEffect(Torso, 247718224, 1, 0.8, false) | |
1307 | RootPartReferenceWeld.C0 = CFrame.new(0, 0, 10) * CFrame.Angles(0, 0, -0.8) | |
1308 | CircleVFX(RootPartReference.CFrame, "Cyan", "Neon", 0, 0.01, 5, 5, 5, 3, -0.001, 0.01) | |
1309 | ValidateDamage(RootPartReference, "Normal", 10, 10, 13, RootPart, 5, 247718107, 1.4, 0.3, "Defence", 0.25, 3) | |
1310 | for i = 1, 8 do | |
1311 | Wait2() | |
1312 | ValidateDamage(Part2, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1313 | ValidateDamage(Part3, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1314 | ValidateDamage(Part5, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1315 | ValidateDamage(Part8, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1316 | ValidateDamage(Part9, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1317 | ValidateDamage(Part10, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1318 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, -1), 0.3) | |
1319 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 1), 0.3) | |
1320 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.4, 0) * CFrame.Angles(0.1, 0, -0.5), 0.3) | |
1321 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-0.5, 0, -0.2), 0.3) | |
1322 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.8, -1, 0.7) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, -1, 0), 0.3) | |
1323 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.8, -1, -0.7) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, -1, 0), 0.3) | |
1324 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, -0.5) * CFrame.Angles(-1.57, 0, 1), 0.3) | |
1325 | end | |
1326 | for i = 1, 20 do | |
1327 | Wait2() | |
1328 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, 1), 0.3) | |
1329 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -1.2), 0.3) | |
1330 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(0.2, 0.5, -0.8) * CFrame.Angles(2.6, 0, -1.3), 0.3) | |
1331 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0.5, 0, -0.2), 0.3) | |
1332 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.8, -1, -0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
1333 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.8, -1, 0.7) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
1334 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, -0.5) * CFrame.Angles(-1.57, 0, 1.57), 0.3) | |
1335 | end | |
1336 | SoundEffect(Torso, 247718224, 1, 0.8, false) | |
1337 | RootPartReferenceWeld.C0 = CFrame.new(0, 0, 10) * CFrame.Angles(0, 0, 0.8) | |
1338 | CircleVFX(RootPartReference.CFrame, "Cyan", "Neon", 0, 0.01, 5, 5, 5, 3, -0.001, 0.01) | |
1339 | ValidateDamage(RootPartReference, "Normal", 10, 10, 13, RootPart, 5, 247718107, 1.4, 0.3, "Defence", 0.25, 3) | |
1340 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "Cut!", "Blue") | |
1341 | for i = 1, 50 do | |
1342 | Wait2() | |
1343 | ValidateDamage(Part2, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1344 | ValidateDamage(Part3, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1345 | ValidateDamage(Part5, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1346 | ValidateDamage(Part8, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1347 | ValidateDamage(Part9, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1348 | ValidateDamage(Part10, "Normal", 2, 3, 5, RootPart, 5, 247718107, 1.4, 0.3) | |
1349 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, 1), 0.3) | |
1350 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -1), 0.3) | |
1351 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.2, 0.4, 0.2) * CFrame.Angles(-0.1, -0.2, 0.6), 0.3) | |
1352 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-0.5, 0, -0.4), 0.3) | |
1353 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.8, -1, -0.7) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
1354 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.8, -1, 0.7) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 1, 0), 0.3) | |
1355 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, -0.5) * CFrame.Angles(-2, 0, 1.57), 0.3) | |
1356 | end | |
1357 | else | |
1358 | SoundEffect(LeftArmReference, 199145446, 1, 1, false) | |
1359 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head, ". . .", "Red") | |
1360 | for i = 1, 30 do | |
1361 | wait() | |
1362 | BlockVFX(LeftArmReference.CFrame, "Bright red", "Neon", 0, 0.05, 1, 1, 1, 0.5, 0.5, 0.5) | |
1363 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, -1), 0.2) | |
1364 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 1), 0.2) | |
1365 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.6, 0) * CFrame.Angles(0.2, 0, 0.2), 0.2) | |
1366 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.3, 0.5, 0) * CFrame.Angles(1.6, 0, 0.6), 0.2) | |
1367 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(1, -1, 0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, -1, 0), 0.2) | |
1368 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.8, -1, -0.5) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, -1, 0.5), 0.2) | |
1369 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.2) | |
1370 | end | |
1371 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "C h a o s . . .", "Red") | |
1372 | for i = 1, 8 do | |
1373 | wait() | |
1374 | BlockVFX(LeftArmReference.CFrame, "Bright red", "Neon", 0, 0.05, 1, 1, 1, 0.5, 0.5, 0.5) | |
1375 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, 1.6), 0.4) | |
1376 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, -0.2) * CFrame.Angles(0, 0, -1.6), 0.4) | |
1377 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.6, 0) * CFrame.Angles(-0.2, 0, 0.2), 0.4) | |
1378 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.3, 0.5, 0) * CFrame.Angles(1.6, 0, -1.6), 0.4) | |
1379 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.6, -1, -0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 1.6, -0.5), 0.4) | |
1380 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.6, -1, 0.5) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 1.6, 0.5), 0.4) | |
1381 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.4) | |
1382 | end | |
1383 | SoundEffect(LeftArmReference, 280247455, 3, 1, false) | |
1384 | WaveVFX(LeftArmReference.CFrame, "Bright red", "Neon", 0, 0.05, 1, 1.5, 1, 1, 0.5, 1) | |
1385 | for i = 1, 30 do | |
1386 | wait() | |
1387 | WaveVFX(LeftArmReference.CFrame, "Bright red", "Neon", 0, 0.05, 1, 1.5, 1, 1, 0.5, 1) | |
1388 | LeftArmReferenceWeld.C0 = CFrame.new(0, i * 2, 0) | |
1389 | RingVFX(LeftArmReference.CFrame * CFrame.Angles(1.57, 0, 1.57), "Bright red", "Neon", 0, 0.05, 1, 1, 1, 1, 1, 1) | |
1390 | end | |
1391 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "O V E R D R I V E !", "Red") | |
1392 | local TouchedFloor, WavePosition = FindPartOnRay(LeftArmReference.Position, CFrame.new(LeftArmReference.Position, LeftArmReference.Position - Vector3.new(0, 1, 0)).lookVector, 200, Character) | |
1393 | if TouchedFloor then | |
1394 | Hitbox = CircleVFX(CFrame.new(WavePosition), "Bright red", "Neon", 0, 0.01, 10, 10, 10, 10, 10, 10) | |
1395 | WaveVFX(Hitbox.CFrame, "Bright red", "Neon", 0, 0.01, 1, 1.5, 1, 2, 0, 2) | |
1396 | end | |
1397 | SoundEffect(LeftArmReference, 110284742, 3, 0.8, false) | |
1398 | wait() | |
1399 | ValidateDamage(Hitbox, "Normal", 100, 26, 30, RootPart, 5, 247718107, 1.4, 0.3, "Stun", "Movement", 0.1, 0.5) | |
1400 | LeftArmReferenceWeld.C0 = CFrame.new(0, 1, 0) | |
1401 | end | |
1402 | ResumeCharacterControl() | |
1403 | CanResumeControl = true | |
1404 | Attacking = false | |
1405 | end | |
1406 | function FuryMode() | |
1407 | Attacking = true | |
1408 | Cooldown7Add = 0 | |
1409 | CanResumeControl = false | |
1410 | RemoveCharacterControl() | |
1411 | if not Fury then | |
1412 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head, ". . .", "Red") | |
1413 | coroutine.resume(coroutine.create(function() | |
1414 | for i = 1, 60 do | |
1415 | Wait2() | |
1416 | Attacking = true | |
1417 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0.5, 0, 0), 0.3) | |
1418 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
1419 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5 - DoAnimateVal / 4, 0) * CFrame.Angles(-0.1 - DoAnimateVal / 8, -1, 0.3 - DoAnimateVal / 8), 0.3) | |
1420 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5 - DoAnimateVal / 4, 0) * CFrame.Angles(0 - DoAnimateVal2 / 2, 0, -0.2 - DoAnimateVal2 / 4), 0.3) | |
1421 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
1422 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
1423 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, -0.5) * CFrame.Angles(-1.57, 0, 1.57), 0.3) | |
1424 | end | |
1425 | end)) | |
1426 | Face.Texture = "http://www.roblox.com/asset/?id=362505168" | |
1427 | for i = 1, 60 do | |
1428 | wait() | |
1429 | Part2.Transparency = Part2.Transparency + 0.01 | |
1430 | Part5.Transparency = Part5.Transparency + 0.01 | |
1431 | Part3.Transparency = Part3.Transparency + 0.01 | |
1432 | Part9.Transparency = Part9.Transparency + 0.01 | |
1433 | Part8.Transparency = Part8.Transparency + 0.01 | |
1434 | Part10.Transparency = Part10.Transparency + 0.01 | |
1435 | end | |
1436 | for i, v in pairs(LazerEdge:children()) do | |
1437 | if v.BrickColor == BrickColor.new("Cyan") then | |
1438 | v.BrickColor = BrickColor.new("Bright red") | |
1439 | end | |
1440 | end | |
1441 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "I t ' s t i m e t o e n d t h i s a l r e a d y ,", "Red") | |
1442 | wait(2) | |
1443 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "d o n ' t y o u t h i n k ?", "Red") | |
1444 | for i = 1, 60 do | |
1445 | wait() | |
1446 | Part2.Transparency = Part2.Transparency - 0.01 | |
1447 | Part5.Transparency = Part5.Transparency - 0.01 | |
1448 | Part3.Transparency = Part3.Transparency - 0.01 | |
1449 | Part9.Transparency = Part9.Transparency - 0.01 | |
1450 | Part8.Transparency = Part8.Transparency - 0.01 | |
1451 | Part10.Transparency = Part10.Transparency - 0.01 | |
1452 | end | |
1453 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "L e t ' s p l a y h i d e a n d s e e k .", "Red") | |
1454 | for i = 1, 120 do | |
1455 | Wait2() | |
1456 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0.3, 0), 0.3) | |
1457 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
1458 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.4 - DoAnimateVal / 4, 0) * CFrame.Angles(-0.1 - DoAnimateVal / 8, -1, 0.3 - DoAnimateVal / 8), 0.3) | |
1459 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.4 - DoAnimateVal / 4, 0) * CFrame.Angles(0 - DoAnimateVal2 / 2, 0, -0.2 - DoAnimateVal2 / 4), 0.3) | |
1460 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
1461 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
1462 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, -0.5) * CFrame.Angles(-1.57, 0, 1.57), 0.3) | |
1463 | end | |
1464 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head, ": )", "Red") | |
1465 | Fury = true | |
1466 | else | |
1467 | Fury = false | |
1468 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "Uhh..", "Blue") | |
1469 | coroutine.resume(coroutine.create(function() | |
1470 | for i = 1, 60 do | |
1471 | Wait2() | |
1472 | Attacking = true | |
1473 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0.5, 0, 0), 0.3) | |
1474 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
1475 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5 - DoAnimateVal / 4, 0) * CFrame.Angles(-0.1 - DoAnimateVal / 8, -1, 0.3 - DoAnimateVal / 8), 0.3) | |
1476 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5 - DoAnimateVal / 4, 0) * CFrame.Angles(0 - DoAnimateVal2 / 2, 0, -0.2 - DoAnimateVal2 / 4), 0.3) | |
1477 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
1478 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
1479 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, -0.5) * CFrame.Angles(-1.57, 0, 1.57), 0.3) | |
1480 | end | |
1481 | end)) | |
1482 | Face.Texture = Texture | |
1483 | for i = 1, 60 do | |
1484 | wait() | |
1485 | Part2.Transparency = Part2.Transparency + 0.01 | |
1486 | Part5.Transparency = Part5.Transparency + 0.01 | |
1487 | Part3.Transparency = Part3.Transparency + 0.01 | |
1488 | Part9.Transparency = Part9.Transparency + 0.01 | |
1489 | Part8.Transparency = Part8.Transparency + 0.01 | |
1490 | Part10.Transparency = Part10.Transparency + 0.01 | |
1491 | Head.face.Transparency = Head.face.Transparency - 0.01 | |
1492 | end | |
1493 | for i, v in pairs(LazerEdge:children()) do | |
1494 | if v.BrickColor == BrickColor.new("Bright red") then | |
1495 | v.BrickColor = BrickColor.new("Cyan") | |
1496 | end | |
1497 | end | |
1498 | for i = 1, 60 do | |
1499 | wait() | |
1500 | Part2.Transparency = Part2.Transparency - 0.01 | |
1501 | Part5.Transparency = Part5.Transparency - 0.01 | |
1502 | Part3.Transparency = Part3.Transparency - 0.01 | |
1503 | Part9.Transparency = Part9.Transparency - 0.01 | |
1504 | Part8.Transparency = Part8.Transparency - 0.01 | |
1505 | Part10.Transparency = Part10.Transparency - 0.01 | |
1506 | end | |
1507 | game.Chat:Chat(game.Players.LocalPlayer.Character.Head, "What the hell just happened? i can't remember anything...", "Blue") | |
1508 | for i = 1, 120 do | |
1509 | Wait2() | |
1510 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0.5, DoAnimateVal4 / 4, DoAnimateVal4 / 4), 0.2) | |
1511 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.2) | |
1512 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5 + DoAnimateVal2, 0) * CFrame.Angles(0.1 + DoAnimateVal2, 0, 0.2), 0.2) | |
1513 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5 + DoAnimateVal2, 0) * CFrame.Angles(0.1 + DoAnimateVal2, 0, -0.2), 0.2) | |
1514 | RightHip.C1 = Animate(RightHip.C1, RightLegDefaultCFrame, 0.2) | |
1515 | LeftHip.C1 = Animate(LeftHip.C1, LeftLegDefaultCFrame, 0.2) | |
1516 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(-0.05, 0, 0), 0.2) | |
1517 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(-0.05, 0, 0), 0.2) | |
1518 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.3) | |
1519 | end | |
1520 | end | |
1521 | CanResumeControl = true | |
1522 | Attacking = false | |
1523 | Cooldown7Add = 1 | |
1524 | end | |
1525 | function MouseClick() | |
1526 | if Attacking or not CanAnimate then | |
1527 | return | |
1528 | end | |
1529 | if Combo == 1 then | |
1530 | Combo = 2 | |
1531 | Attack1() | |
1532 | elseif Combo == 2 then | |
1533 | Combo = 3 | |
1534 | Attack2() | |
1535 | elseif Combo == 3 then | |
1536 | Combo = 4 | |
1537 | Attack3() | |
1538 | elseif Combo == 4 then | |
1539 | Combo = 1 | |
1540 | Attack4() | |
1541 | end | |
1542 | end | |
1543 | function Keydown(Key) | |
1544 | if Attacking or not CanAnimate then | |
1545 | return | |
1546 | end | |
1547 | if Key == "z" and Cooldown1 == MaxCooldown1 and Mana.Value > 5 then | |
1548 | Cooldown1 = 0 | |
1549 | Mana.Value = Mana.Value - 5 | |
1550 | Move1() | |
1551 | end | |
1552 | if Key == "x" and Cooldown2 == MaxCooldown2 and Mana.Value > 15 then | |
1553 | Cooldown2 = 0 | |
1554 | Mana.Value = Mana.Value - 15 | |
1555 | Move2() | |
1556 | end | |
1557 | if Key == "c" and Cooldown3 == MaxCooldown3 and Mana.Value > 40 then | |
1558 | Cooldown3 = 0 | |
1559 | Mana.Value = Mana.Value - 40 | |
1560 | Move3() | |
1561 | end | |
1562 | if Key == "v" and Cooldown4 == MaxCooldown4 and Mana.Value > 50 then | |
1563 | Cooldown4 = 0 | |
1564 | Mana.Value = Mana.Value - 50 | |
1565 | Move4() | |
1566 | end | |
1567 | if Key == "q" and Cooldown5 == MaxCooldown5 then | |
1568 | Cooldown5 = 0 | |
1569 | EvadeQ() | |
1570 | end | |
1571 | if Key == "e" and Cooldown6 == MaxCooldown6 then | |
1572 | Cooldown6 = 0 | |
1573 | EvadeE() | |
1574 | end | |
1575 | if Key == "f" and Cooldown7 > MaxCooldown7 / 16 then | |
1576 | FuryMode() | |
1577 | end | |
1578 | end | |
1579 | Mouse.Button1Down:connect(MouseClick) | |
1580 | Mouse.KeyDown:connect(Keydown) | |
1581 | CooldownZBarBar.MouseButton1Click:connect(MobileControlZ) | |
1582 | CooldownXBarBar.MouseButton1Click:connect(MobileControlX) | |
1583 | CooldownCBarBar.MouseButton1Click:connect(MobileControlC) | |
1584 | CooldownVBarBar.MouseButton1Click:connect(MobileControlV) | |
1585 | CooldownQBarBar.MouseButton1Click:connect(MobileControlQ) | |
1586 | CooldownEBarBar.MouseButton1Click:connect(MobileControlE) | |
1587 | DoAnimateVal = 0 | |
1588 | DoAnimateVal2 = 0 | |
1589 | DoAnimateVal3 = 0 | |
1590 | DoAnimateVal4 = 0 | |
1591 | Increase = 0 | |
1592 | Increase2 = 0 | |
1593 | Invert = false | |
1594 | Invert2 = false | |
1595 | Invert3 = false | |
1596 | Invert4 = false | |
1597 | WalkVal = 0 | |
1598 | WalkInvert = false | |
1599 | Walk = false | |
1600 | function Effects() | |
1601 | if StunEffect.Value and not Attacking then | |
1602 | CanAnimate = false | |
1603 | HealthBarText.Text = "Stunned!" | |
1604 | ManaBarText.Text = "Stunned!" | |
1605 | RemoveCharacterControl() | |
1606 | if CanShowStunDisplay then | |
1607 | CanShowStunDisplay = false | |
1608 | Display(Character, "Stunned", "Stun") | |
1609 | end | |
1610 | AntiGlitch = true | |
1611 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0.5, DoAnimateVal4 / 4, DoAnimateVal4 / 4), 0.2) | |
1612 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.2) | |
1613 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5 + DoAnimateVal2, 0) * CFrame.Angles(0.1 + DoAnimateVal2, 0, 0.2), 0.2) | |
1614 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5 + DoAnimateVal2, 0) * CFrame.Angles(0.1 + DoAnimateVal2, 0, -0.2), 0.2) | |
1615 | RightHip.C1 = Animate(RightHip.C1, RightLegDefaultCFrame, 0.2) | |
1616 | LeftHip.C1 = Animate(LeftHip.C1, LeftLegDefaultCFrame, 0.2) | |
1617 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(-0.05, 0, 0), 0.2) | |
1618 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(-0.05, 0, 0), 0.2) | |
1619 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.3) | |
1620 | coroutine.resume(coroutine.create(function() | |
1621 | wait(2) | |
1622 | CanRemoveStun = true | |
1623 | end)) | |
1624 | if CanRemoveStun then | |
1625 | StunEffect.Stun.Value = StunEffect.Stun.Value - 10 | |
1626 | end | |
1627 | if 0 < Stars.Transparency then | |
1628 | Stars.Transparency = Stars.Transparency - 0.01 | |
1629 | end | |
1630 | end | |
1631 | if StunEffect.Stun.Value < 1 then | |
1632 | if CanResumeControl then | |
1633 | ResumeCharacterControl() | |
1634 | else | |
1635 | wait() | |
1636 | end | |
1637 | StunEffect.Stun.Value = 0 | |
1638 | StunBarVisible = false | |
1639 | StunEffect.Value = false | |
1640 | CanShowStunDisplay = true | |
1641 | CanRemoveStun = false | |
1642 | if not Attacking then | |
1643 | CanAnimate = true | |
1644 | end | |
1645 | AntiGlitch = false | |
1646 | if 1 > Stars.Transparency then | |
1647 | Stars.Transparency = Stars.Transparency + 0.05 | |
1648 | end | |
1649 | end | |
1650 | end | |
1651 | for i, v in pairs(Debuffs:children()) do | |
1652 | if MyStats:FindFirstChild(v.Name) then | |
1653 | MyStats:FindFirstChild(v.Name).Value = MyStats:FindFirstChild(v.Name).Value - v.Value | |
1654 | end | |
1655 | end | |
1656 | function VisualEffects() | |
1657 | for i = 1, #VFXList do | |
1658 | if VFXList[i] then | |
1659 | local VFXConfiguration = VFXList[i] | |
1660 | if VFXConfiguration then | |
1661 | if VFXConfiguration[1] == "Display" and VFXConfiguration[2]:FindFirstChild("Damage") then | |
1662 | VFXConfiguration[2].Damage.TextLabel.TextStrokeTransparency = VFXConfiguration[2].Damage.TextLabel.TextStrokeTransparency + VFXConfiguration[3] | |
1663 | VFXConfiguration[2].Damage.TextLabel.TextTransparency = VFXConfiguration[2].Damage.TextLabel.TextTransparency + VFXConfiguration[3] | |
1664 | end | |
1665 | if VFXConfiguration[1] == "Resize" and VFXConfiguration[2]:FindFirstChild("Mesh") and 1 > VFXConfiguration[2].Transparency then | |
1666 | VFXConfiguration[2].Mesh.Scale = VFXConfiguration[2].Mesh.Scale + Vector3.new(VFXConfiguration[4], VFXConfiguration[5], VFXConfiguration[6]) | |
1667 | VFXConfiguration[2].Transparency = VFXConfiguration[2].Transparency + VFXConfiguration[3] | |
1668 | end | |
1669 | if VFXConfiguration[1] == "Rotate" and 1 > VFXConfiguration[2].Transparency then | |
1670 | VFXConfiguration[2].Rotation = VFXConfiguration[2].Rotation + Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1671 | end | |
1672 | end | |
1673 | end | |
1674 | end | |
1675 | end | |
1676 | function UpdateAllBars() | |
1677 | AtkBarText.Text = "Atk: " .. Attack.Value * 100 .. "%" | |
1678 | DefBarText.Text = "Def: " .. Defence.Value * 100 .. "%" | |
1679 | MvmtBarText.Text = "Mvmt: " .. Movement.Value * 100 .. "%" | |
1680 | ManaBarText.Text = "Mana: " .. Mana.Value .. "%" | |
1681 | HealthBarText.Text = "Health: " .. Humanoid.Health .. "%" | |
1682 | if PushedJump.Value then | |
1683 | Humanoid.JumpPower = 300 | |
1684 | CanResumeControl = false | |
1685 | else | |
1686 | CanResumeControl = true | |
1687 | end | |
1688 | if not AntiGlitch then | |
1689 | HealthBarBar:TweenSize(UDim2.new(0.98 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 0, 19), "Out", "Quad", 0.3) | |
1690 | ManaBarBar:TweenSize(UDim2.new(0.98 * (Mana.Value / 100), 0, 0, 19), "Out", "Quad", 0.3) | |
1691 | CooldownZBarBar:TweenSize(UDim2.new(1 * (Cooldown1 / MaxCooldown1), 0, 0, 70), "Out", "Quad", 0.3) | |
1692 | CooldownXBarBar:TweenSize(UDim2.new(1 * (Cooldown2 / MaxCooldown2), 0, 0, 70), "Out", "Quad", 0.3) | |
1693 | CooldownCBarBar:TweenSize(UDim2.new(1 * (Cooldown3 / MaxCooldown3), 0, 0, 70), "Out", "Quad", 0.3) | |
1694 | CooldownVBarBar:TweenSize(UDim2.new(1 * (Cooldown4 / MaxCooldown4), 0, 0, 70), "Out", "Quad", 0.3) | |
1695 | CooldownQBarBar:TweenSize(UDim2.new(1 * (Cooldown5 / MaxCooldown5), 0, 0, 70), "Out", "Quad", 0.3) | |
1696 | CooldownEBarBar:TweenSize(UDim2.new(1 * (Cooldown6 / MaxCooldown6), 0, 0, 70), "Out", "Quad", 0.3) | |
1697 | CooldownFBarBar:TweenSize(UDim2.new(1 * (Cooldown7 / MaxCooldown7), 0, 0, 70), "Out", "Quad", 0.3) | |
1698 | end | |
1699 | if StunEffect.Value == true then | |
1700 | if not StunBarVisible then | |
1701 | StunBarVisible = true | |
1702 | StunBarBack = GUI("Frame", WeaponGUI, UDim2.new(0, 116, 0, 25), UDim2.new(0, 0, 0, 0), UDim2.new(0, 116, 0.843, 0), 0, true, "Really black", 0) | |
1703 | StunBarBar = GUI("Frame", StunBarBack, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 4, 0, 3), 0, true, "Cool yellow", 0) | |
1704 | StunBarText = GUI("TextLabel", WeaponGUI, UDim2.new(0, 109, 0, 19), UDim2.new(0, 120, 0.844, 0), 1, true, "", 0, nil, "Stun", "Bright yellow", "Black", 0, true, "SourceSansBold") | |
1705 | end | |
1706 | StunBarBar:TweenSize(UDim2.new(0.94 * (StunEffect.Stun.Value / 1000), 0, 0, 19), "Out", "Quad", 0.3) | |
1707 | end | |
1708 | if Stun.Value == 0 then | |
1709 | coroutine.resume(coroutine.create(function() | |
1710 | StunBarBack:TweenSizeAndPosition(UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0, 0), "Out", "Quad", 3) | |
1711 | StunBarBack:TweenSizeAndPosition(UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0, 0), "Out", "Quad", 3) | |
1712 | StunBarText:TweenSizeAndPosition(UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 0, 0), "Out", "Quad", 3) | |
1713 | StunBarBar:Remove() | |
1714 | wait(5) | |
1715 | StunBarBack:Remove() | |
1716 | StunBarText:Remove() | |
1717 | end)) | |
1718 | end | |
1719 | if Humanoid.Health > 75 then | |
1720 | HealthBarBar.BackgroundColor3 = BrickColor.new("Lime green").Color | |
1721 | elseif Humanoid.Health > 50 and Humanoid.Health < 75 then | |
1722 | HealthBarBar.BackgroundColor3 = BrickColor.new("Cool yellow").Color | |
1723 | elseif Humanoid.Health > 35 and Humanoid.Health < 50 then | |
1724 | HealthBarBar.BackgroundColor3 = BrickColor.new("Bright yellow").Color | |
1725 | elseif Humanoid.Health > 15 and Humanoid.Health < 35 then | |
1726 | HealthBarBar.BackgroundColor3 = BrickColor.new("Bright red").Color | |
1727 | elseif Humanoid.Health < 35 then | |
1728 | HealthBarBar.BackgroundColor3 = BrickColor.new("Really red").Color | |
1729 | end | |
1730 | end | |
1731 | function FindPartOnRay(Position, Direction, MaxDistance, Ignore) | |
1732 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * MaxDistance), Ignore) | |
1733 | end | |
1734 | function Values() | |
1735 | for i, v in pairs(Debuffs:children()) do | |
1736 | if v ~= nil and MyStats:FindFirstChild(v.Name) then | |
1737 | if v.Name == "Attack" then | |
1738 | AttackDecrease = AttackDecrease + v.Value | |
1739 | end | |
1740 | if v.Name == "Movement" then | |
1741 | MvmtDecrease = MvmtDecrease + v.Value | |
1742 | end | |
1743 | if v.Name == "Defence" then | |
1744 | DefenceDecrease = DefenceDecrease + v.Value | |
1745 | end | |
1746 | if Attack.Value < 0 then | |
1747 | Attack.Value = 0 | |
1748 | end | |
1749 | if Defence.Value < 0 then | |
1750 | Defence.Value = 0 | |
1751 | end | |
1752 | if Movement.Value < 0 then | |
1753 | Movement.Value = 0 | |
1754 | end | |
1755 | end | |
1756 | end | |
1757 | Attack.Value = 1 - AttackDecrease | |
1758 | Defence.Value = 1 - DefenceDecrease | |
1759 | Movement.Value = 1 - MvmtDecrease | |
1760 | AttackDecrease = 0 | |
1761 | MvmtDecrease = 0 | |
1762 | DefenceDecrease = 0 | |
1763 | if CharacterUnderControl and not Attacking then | |
1764 | Humanoid.WalkSpeed = 16 * Movement.Value | |
1765 | end | |
1766 | Increase = Increase + 0.1 | |
1767 | Increase2 = Increase2 + 1 | |
1768 | if WalkVal > 10 then | |
1769 | WalkInvert = true | |
1770 | elseif 1 > WalkVal then | |
1771 | WalkInvert = false | |
1772 | end | |
1773 | if WalkInvert then | |
1774 | WalkVal = WalkVal - 1 | |
1775 | elseif not WalkInvert then | |
1776 | WalkVal = WalkVal + 1 | |
1777 | end | |
1778 | if 0.5 < DoAnimateVal then | |
1779 | Invert = true | |
1780 | elseif DoAnimateVal < -0.5 then | |
1781 | Invert = false | |
1782 | end | |
1783 | if 0.2 < DoAnimateVal2 then | |
1784 | Invert2 = true | |
1785 | elseif 0 > DoAnimateVal2 then | |
1786 | Invert2 = false | |
1787 | end | |
1788 | if Invert == false then | |
1789 | DoAnimateVal = DoAnimateVal + 0.01 | |
1790 | else | |
1791 | DoAnimateVal = DoAnimateVal - 0.01 | |
1792 | end | |
1793 | if Invert2 == false then | |
1794 | DoAnimateVal2 = DoAnimateVal2 + 0.005 | |
1795 | else | |
1796 | DoAnimateVal2 = DoAnimateVal2 - 0.005 | |
1797 | end | |
1798 | if 1 < DoAnimateVal3 then | |
1799 | Invert3 = true | |
1800 | elseif 0 > DoAnimateVal3 then | |
1801 | Invert3 = false | |
1802 | end | |
1803 | if Invert3 == false then | |
1804 | DoAnimateVal3 = DoAnimateVal3 + 0.1 | |
1805 | else | |
1806 | DoAnimateVal3 = DoAnimateVal3 - 0.1 | |
1807 | end | |
1808 | if 1 < DoAnimateVal4 then | |
1809 | Invert4 = true | |
1810 | elseif DoAnimateVal4 < -1 then | |
1811 | Invert4 = false | |
1812 | end | |
1813 | if Invert4 == false then | |
1814 | DoAnimateVal4 = DoAnimateVal4 + 0.1 | |
1815 | else | |
1816 | DoAnimateVal4 = DoAnimateVal4 - 0.1 | |
1817 | end | |
1818 | if Stun.Value > 999 then | |
1819 | Stun.Value = 1000 | |
1820 | end | |
1821 | if Cooldown1 < MaxCooldown1 then | |
1822 | Cooldown1 = Cooldown1 + Cooldown1Add | |
1823 | end | |
1824 | if Cooldown1 > MaxCooldown1 - 1 then | |
1825 | Cooldown1 = MaxCooldown1 | |
1826 | end | |
1827 | if Cooldown2 < MaxCooldown2 then | |
1828 | Cooldown2 = Cooldown2 + Cooldown2Add | |
1829 | end | |
1830 | if Cooldown2 > MaxCooldown2 - 1 then | |
1831 | Cooldown2 = MaxCooldown2 | |
1832 | end | |
1833 | if Cooldown3 < MaxCooldown3 then | |
1834 | Cooldown3 = Cooldown3 + Cooldown3Add | |
1835 | end | |
1836 | if Cooldown3 > MaxCooldown3 - 1 then | |
1837 | Cooldown3 = MaxCooldown3 | |
1838 | end | |
1839 | if Cooldown4 < MaxCooldown4 then | |
1840 | Cooldown4 = Cooldown4 + Cooldown4Add | |
1841 | end | |
1842 | if Cooldown4 > MaxCooldown4 - 1 then | |
1843 | Cooldown4 = MaxCooldown4 | |
1844 | end | |
1845 | if Cooldown5 < MaxCooldown5 then | |
1846 | Cooldown5 = Cooldown5 + Cooldown5Add | |
1847 | end | |
1848 | if Cooldown5 > MaxCooldown5 - 1 then | |
1849 | Cooldown5 = MaxCooldown5 | |
1850 | end | |
1851 | if Cooldown6 < MaxCooldown6 then | |
1852 | Cooldown6 = Cooldown6 + Cooldown6Add | |
1853 | end | |
1854 | if Cooldown6 > MaxCooldown6 - 1 then | |
1855 | Cooldown6 = MaxCooldown6 | |
1856 | end | |
1857 | if Cooldown7 < MaxCooldown7 and not Fury then | |
1858 | Cooldown7 = Cooldown7 + Cooldown7Add | |
1859 | end | |
1860 | if Fury then | |
1861 | Cooldown7 = Cooldown7 - Cooldown7Add | |
1862 | end | |
1863 | if Cooldown7 > MaxCooldown7 - 1 then | |
1864 | Cooldown7 = MaxCooldown7 | |
1865 | end | |
1866 | if Cooldown7 < 1 and Fury and not Attacking then | |
1867 | coroutine.resume(coroutine.create(function() | |
1868 | FuryMode() | |
1869 | end)) | |
1870 | end | |
1871 | if ManaDelay < ManaDelay2 then | |
1872 | ManaDelay = ManaDelay + 1 | |
1873 | elseif ManaDelay > ManaDelay2 - 1 then | |
1874 | ManaDelay = 0 | |
1875 | end | |
1876 | if Mana.Value < 100 and ManaDelay < 1 then | |
1877 | Mana.Value = Mana.Value + 1 | |
1878 | end | |
1879 | if Mana.Value > 99 then | |
1880 | Mana.Value = 100 | |
1881 | end | |
1882 | end | |
1883 | function Animations() | |
1884 | local Velocity = RootPart.Velocity.magnitude * Vector3.new(1, 0, 1).magnitude | |
1885 | local FallVelocity = RootPart.Velocity.Y | |
1886 | local Floor = FindPartOnRay(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position + Vector3.new(0, -1, 0)).lookVector, 4, Character) | |
1887 | if Floor and PushedJump.Value then | |
1888 | PushedJump.Value = false | |
1889 | end | |
1890 | StarsWeld.C1 = Animate(StarsWeld.C1, CFrame.Angles(0, Increase, 0), 0.2) | |
1891 | if CanAnimate then | |
1892 | if Velocity > 1 and Floor then | |
1893 | if WalkInvert then | |
1894 | RightHip.C1 = Animate(RightHip.C1, RightLegDefaultCFrame * CFrame.Angles(0, 0, 1), 0.2) | |
1895 | LeftHip.C1 = Animate(LeftHip.C1, LeftLegDefaultCFrame * CFrame.Angles(0, 0, 1), 0.2) | |
1896 | elseif not WalkInvert then | |
1897 | RightHip.C1 = Animate(RightHip.C1, RightLegDefaultCFrame * CFrame.Angles(0, 0, -1), 0.2) | |
1898 | LeftHip.C1 = Animate(LeftHip.C1, LeftLegDefaultCFrame * CFrame.Angles(0, 0, -1), 0.2) | |
1899 | end | |
1900 | else | |
1901 | RightHip.C1 = Animate(RightHip.C1, RightLegDefaultCFrame, 0.2) | |
1902 | LeftHip.C1 = Animate(LeftHip.C1, LeftLegDefaultCFrame, 0.2) | |
1903 | end | |
1904 | if Velocity < 1 and Floor and not Attacking and Fury then | |
1905 | Walk = false | |
1906 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, 0), 0.2) | |
1907 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.2) | |
1908 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5 - DoAnimateVal / 8, 0) * CFrame.Angles(-0.1 - DoAnimateVal / 8, -1, 0.3 - DoAnimateVal / 8), 0.2) | |
1909 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5 - DoAnimateVal / 8, 0) * CFrame.Angles(0 - DoAnimateVal2 / 2, 0, -0.2 - DoAnimateVal2 / 4), 0.2) | |
1910 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 0, 0), 0.2) | |
1911 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 0, 0), 0.2) | |
1912 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, -0.5) * CFrame.Angles(-1.57, 0, 1.57), 0.2) | |
1913 | end | |
1914 | if Velocity > 1 and Floor and not Attacking and Fury then | |
1915 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0.2, 0.1, 0.6), 0.3) | |
1916 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0.1, 0, -0.8), 0.2) | |
1917 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5 - DoAnimateVal / 4, 0) * CFrame.Angles(-0.3 - DoAnimateVal / 8, -1, 0.3 - DoAnimateVal / 8), 0.2) | |
1918 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1, 0.5 - DoAnimateVal / 4, -1) * CFrame.Angles(1.6 - DoAnimateVal2 / 2, 0, 1.6 + DoAnimateVal2 / 4), 0.2) | |
1919 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.8, -1, -0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 0.8, 0), 0.2) | |
1920 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.7, -1, 0.5) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 0.8, 0), 0.2) | |
1921 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0.5, -0.8, 0) * CFrame.Angles(-1.57, 0, 0), 0.2) | |
1922 | end | |
1923 | if FallVelocity > 1 and not Floor and not Attacking and not PushedJump.Value and Fury then | |
1924 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(-0.5, 0, 0 + DoAnimateVal / 8), 0.2) | |
1925 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0.3, RootPart.RotVelocity.Y / 50, 0), 0.2) | |
1926 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.6 + DoAnimateVal2 / 4, 0) * CFrame.Angles(-0.5, 0, 0.1 + DoAnimateVal2 / 4), 0.2) | |
1927 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.6 + DoAnimateVal2 / 8, 0) * CFrame.Angles(-0.5, 0, -0.1 - DoAnimateVal2 / 4), 0.2) | |
1928 | RightHip.C1 = Animate(RightHip.C1, RightLegDefaultCFrame, 0.2) | |
1929 | LeftHip.C1 = Animate(LeftHip.C1, LeftLegDefaultCFrame, 0.2) | |
1930 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 0, 0), 0.2) | |
1931 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-1, -1, -0.5) * CFrame.Angles(-0.5, -1.6, 0) * CFrame.Angles(0, 0, 0), 0.2) | |
1932 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.2) | |
1933 | end | |
1934 | if FallVelocity > 1 and not Floor and not Attacking and PushedJump.Value and Fury then | |
1935 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(-0.5, 0, 0), 0.2) | |
1936 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, Increase * 6), 0.35) | |
1937 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5, 0.2) * CFrame.Angles(-0.5, 0, 0.3 + DoAnimateVal2 / 4), 0.2) | |
1938 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0.2) * CFrame.Angles(-0.5, 0, -0.3 - DoAnimateVal2 / 4), 0.2) | |
1939 | RightHip.C1 = Animate(RightHip.C1, RightLegDefaultCFrame, 0.2) | |
1940 | LeftHip.C1 = Animate(LeftHip.C1, LeftLegDefaultCFrame, 0.2) | |
1941 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(-0.3, 0, 0), 0.2) | |
1942 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(-0.3, 0, 0), 0.2) | |
1943 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.2) | |
1944 | end | |
1945 | if FallVelocity < -1 and not Floor and not Attacking and PushedJump.Value and Fury then | |
1946 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0.5, 0, 0), 0.2) | |
1947 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(-Increase * 6, 0, 0), 0.35) | |
1948 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5, 0.2) * CFrame.Angles(-0.5, 0, 0.1 + DoAnimateVal2 / 4), 0.2) | |
1949 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0.2) * CFrame.Angles(-0.5, 0, -0.1 - DoAnimateVal2 / 4), 0.2) | |
1950 | RightHip.C1 = Animate(RightHip.C1, RightLegDefaultCFrame, 0.2) | |
1951 | LeftHip.C1 = Animate(LeftHip.C1, LeftLegDefaultCFrame, 0.2) | |
1952 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(1, 1.6, 0) * CFrame.Angles(0, 0, 0), 0.2) | |
1953 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(-1, -1.6, 0) * CFrame.Angles(0, 0, 0), 0.2) | |
1954 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.2) | |
1955 | end | |
1956 | if FallVelocity < -1 and not Floor and not Attacking and not PushedJump.Value and Fury then | |
1957 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0.8, 0, 0 + DoAnimateVal / 8), 0.2) | |
1958 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(-0.3, RootPart.RotVelocity.Y / 50, 0), 0.2) | |
1959 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.6 + DoAnimateVal2 / 4, 0) * CFrame.Angles(0.5, 0, 0.1 + DoAnimateVal2 / 4), 0.2) | |
1960 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.6 + DoAnimateVal2 / 8, 0) * CFrame.Angles(0.5, 0, -0.1 - DoAnimateVal2 / 4), 0.2) | |
1961 | RightHip.C1 = Animate(RightHip.C1, RightLegDefaultCFrame, 0.2) | |
1962 | LeftHip.C1 = Animate(LeftHip.C1, LeftLegDefaultCFrame, 0.2) | |
1963 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(0.3, 1.6, 0) * CFrame.Angles(0, 0, 0), 0.2) | |
1964 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-1, -1, -0.5) * CFrame.Angles(-0.5, -1.6, 0) * CFrame.Angles(0, 0, 0), 0.2) | |
1965 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.2) | |
1966 | end | |
1967 | if Velocity < 1 and Floor and not Attacking and not Fury then | |
1968 | Walk = false | |
1969 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(-DoAnimateVal / 4, 0, 0.8 + DoAnimateVal / 8), 0.2) | |
1970 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -1), 0.2) | |
1971 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5 + DoAnimateVal2 / 4, 0) * CFrame.Angles(0 + DoAnimateVal / 4, 0, 0.1 + DoAnimateVal2 / 4), 0.2) | |
1972 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5 + DoAnimateVal2 / 8, 0) * CFrame.Angles(0 - DoAnimateVal / 4, 0, -0.1 - DoAnimateVal2 / 4), 0.2) | |
1973 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.7, -1, -0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 1.2, 0), 0.2) | |
1974 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.7, -1, 0.4) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 1.2, 0), 0.2) | |
1975 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.2) | |
1976 | end | |
1977 | if Velocity > 1 and Floor and not Attacking and not Fury then | |
1978 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0, 0, 0.6), 0.3) | |
1979 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0.1, 0, -0.8), 0.3) | |
1980 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5 - DoAnimateVal / 4, 0) * CFrame.Angles(-0.3 - DoAnimateVal / 8, 0, 0.3 - DoAnimateVal / 8), 0.3) | |
1981 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1, 0.5 - DoAnimateVal / 4, -1) * CFrame.Angles(1.6 - DoAnimateVal2 / 2, 0, 1.6 + DoAnimateVal2 / 4), 0.3) | |
1982 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(0.8, -1, -0.5) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 0.8, 0), 0.3) | |
1983 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-0.7, -1, 0.5) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(0, 0.8, 0), 0.3) | |
1984 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.3) | |
1985 | end | |
1986 | if FallVelocity > 1 and not Floor and not Attacking and not PushedJump.Value and not Fury then | |
1987 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(-0.5, 0, 0 + DoAnimateVal / 8), 0.2) | |
1988 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0.3, RootPart.RotVelocity.Y / 50, 0), 0.2) | |
1989 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.6 + DoAnimateVal2 / 4, 0) * CFrame.Angles(-0.5, 0, 0.1 + DoAnimateVal2 / 4), 0.2) | |
1990 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.6 + DoAnimateVal2 / 8, 0) * CFrame.Angles(-0.5, 0, -0.1 - DoAnimateVal2 / 4), 0.2) | |
1991 | RightHip.C1 = Animate(RightHip.C1, RightLegDefaultCFrame, 0.2) | |
1992 | LeftHip.C1 = Animate(LeftHip.C1, LeftLegDefaultCFrame, 0.2) | |
1993 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(0, 0, 0), 0.2) | |
1994 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-1, -1, -0.5) * CFrame.Angles(-0.5, -1.6, 0) * CFrame.Angles(0, 0, 0), 0.2) | |
1995 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.2) | |
1996 | end | |
1997 | if FallVelocity > 1 and not Floor and not Attacking and PushedJump.Value and not Fury then | |
1998 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(-0.5, 0, 0), 0.2) | |
1999 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, Increase * 6), 0.35) | |
2000 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5, 0.2) * CFrame.Angles(-0.5, 0, 0.3 + DoAnimateVal2 / 4), 0.2) | |
2001 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0.2) * CFrame.Angles(-0.5, 0, -0.3 - DoAnimateVal2 / 4), 0.2) | |
2002 | RightHip.C1 = Animate(RightHip.C1, RightLegDefaultCFrame, 0.2) | |
2003 | LeftHip.C1 = Animate(LeftHip.C1, LeftLegDefaultCFrame, 0.2) | |
2004 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(0, 1.6, 0) * CFrame.Angles(-0.3, 0, 0), 0.2) | |
2005 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(0, -1.6, 0) * CFrame.Angles(-0.3, 0, 0), 0.2) | |
2006 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.2) | |
2007 | end | |
2008 | if FallVelocity < -1 and not Floor and not Attacking and PushedJump.Value and not Fury then | |
2009 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.Angles(0.5, 0, 0), 0.2) | |
2010 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(-Increase * 6, 0, 0), 0.35) | |
2011 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.5, 0.2) * CFrame.Angles(-0.5, 0, 0.1 + DoAnimateVal2 / 4), 0.2) | |
2012 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0.2) * CFrame.Angles(-0.5, 0, -0.1 - DoAnimateVal2 / 4), 0.2) | |
2013 | RightHip.C1 = Animate(RightHip.C1, RightLegDefaultCFrame, 0.2) | |
2014 | LeftHip.C1 = Animate(LeftHip.C1, LeftLegDefaultCFrame, 0.2) | |
2015 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(1, 1.6, 0) * CFrame.Angles(0, 0, 0), 0.2) | |
2016 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(-1, -1.6, 0) * CFrame.Angles(0, 0, 0), 0.2) | |
2017 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.2) | |
2018 | end | |
2019 | if FallVelocity < -1 and not Floor and not Attacking and not PushedJump.Value and not Fury then | |
2020 | Neck.C0 = Animate(Neck.C0, NeckDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(0.8, 0, 0 + DoAnimateVal / 8), 0.2) | |
2021 | RootJoint.C0 = Animate(RootJoint.C0, RootDefaultCFrame * CFrame.new(0, 0, 0) * CFrame.Angles(-0.3, RootPart.RotVelocity.Y / 50, 0), 0.2) | |
2022 | RightShoulder.C0 = Animate(RightShoulder.C0, CFrame.new(1.5, 0.6 + DoAnimateVal2 / 4, 0) * CFrame.Angles(0.5, 0, 0.1 + DoAnimateVal2 / 4), 0.2) | |
2023 | LeftShoulder.C0 = Animate(LeftShoulder.C0, CFrame.new(-1.5, 0.6 + DoAnimateVal2 / 8, 0) * CFrame.Angles(0.5, 0, -0.1 - DoAnimateVal2 / 4), 0.2) | |
2024 | RightHip.C1 = Animate(RightHip.C1, RightLegDefaultCFrame, 0.2) | |
2025 | LeftHip.C1 = Animate(LeftHip.C1, LeftLegDefaultCFrame, 0.2) | |
2026 | RightHip.C0 = Animate(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(0.3, 1.6, 0) * CFrame.Angles(0, 0, 0), 0.2) | |
2027 | LeftHip.C0 = Animate(LeftHip.C0, CFrame.new(-1, -1, -0.5) * CFrame.Angles(-0.5, -1.6, 0) * CFrame.Angles(0, 0, 0), 0.2) | |
2028 | HandleWeld.C0 = Animate(HandleWeld.C0, CFrame.new(0, -0.8, 0.5) * CFrame.Angles(-1.57, 0, -1.57), 0.2) | |
2029 | end | |
2030 | end | |
2031 | end | |
2032 | while true do | |
2033 | Wait2() | |
2034 | UpdateAllBars() | |
2035 | Values() | |
2036 | Effects() | |
2037 | VisualEffects() | |
2038 | Animations() | |
2039 | end |