SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient()then error("say h/ not hl/ ya dummy")end;print("get rekt");InternalData = {} | |
2 | do | |
3 | - | --000000[[ MadHumphreys edit |
3 | + | script.Parent = owner.Character |
4 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput" | |
5 | local function NewFakeEvent() | |
6 | local Bind = Instance.new("BindableEvent") | |
7 | local Fake;Fake = {Connections = {}, | |
8 | fakeEvent=true; | |
9 | Connect=function(self,Func) | |
10 | Bind.Event:connect(Func) | |
11 | self.Connections[Bind] = true | |
12 | return setmetatable({Connected = true},{ | |
13 | __index = function (self,Index) | |
14 | if Index:lower() == "disconnect" then | |
15 | return function() Fake.Connections[Bind] = false;self.Connected = false end | |
16 | end | |
17 | return Fake[Index] | |
18 | end; | |
19 | __tostring = function() return "Connection" end; | |
20 | }) | |
21 | end} | |
22 | Fake.connect = Fake.Connect;return Fake; | |
23 | end | |
24 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} | |
25 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} | |
26 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
27 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
28 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
29 | local function TriggerEvent(self,Event,...) | |
30 | local Trigger = Mouse[Event] | |
31 | if Trigger and Trigger.fakeEvent and Trigger.Connections then | |
32 | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end | |
33 | end | |
34 | end | |
35 | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent | |
36 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
37 | if FiredBy.Name ~= owner.Name then return end | |
38 | if Input.MouseEvent then | |
39 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
40 | else | |
41 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
42 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end | |
43 | for _,Action in pairs(ContextActionService.Actions) do | |
44 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
45 | end | |
46 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
47 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
48 | end | |
49 | end) | |
50 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
51 | Event.Parent = NLS([[ | |
52 | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse() | |
53 | local Input = function(Input,gameProcessedEvent) | |
54 | if gameProcessedEvent then return end | |
55 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
56 | end | |
57 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
58 | local Hit,Target | |
59 | while wait(1/30) do | |
60 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
61 | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
62 | end | |
63 | end | |
64 | ]],owner.Character) | |
65 | end | |
66 | RealGame = game;game = setmetatable({},{ | |
67 | __index = function (self,Index) | |
68 | local Sandbox = function (Thing) | |
69 | if Thing:IsA("Player") then | |
70 | local RealPlayer = Thing | |
71 | return setmetatable({},{ | |
72 | __index = function (self,Index) | |
73 | local Type = type(RealPlayer[Index]) | |
74 | if Type == "function" then | |
75 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
76 | return function (self)return InternalData["Mouse"] end | |
77 | end | |
78 | return function (self,...)return RealPlayer[Index](RealPlayer,...) end | |
79 | end | |
80 | return RealPlayer[Index] | |
81 | end; | |
82 | __tostring = function(self) return RealPlayer.Name end | |
83 | }) | |
84 | end | |
85 | end | |
86 | if RealGame[Index] then | |
87 | local Type = type(RealGame[Index]) | |
88 | if Type == "function" then | |
89 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
90 | return function (self,Service) | |
91 | local FakeServices = { | |
92 | ["players"] = function() | |
93 | return setmetatable({},{ | |
94 | __index = function (self2,Index2) | |
95 | local RealService = RealGame:GetService(Service) | |
96 | local Type2 = type(Index2) | |
97 | if Type2 == "function" then | |
98 | return function (self,...) return RealService[Index2](RealService,...)end | |
99 | else | |
100 | if Index2:lower() == "localplayer" then return Sandbox(owner) end | |
101 | return RealService[Index2] | |
102 | end | |
103 | end; | |
104 | __tostring = function(self) return RealGame:GetService(Service).Name end | |
105 | }) | |
106 | end; | |
107 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
108 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
109 | ["runservice"] = function() | |
110 | return setmetatable({},{ | |
111 | __index = function(self2,Index2) | |
112 | local RealService = RealGame:GetService(Service) | |
113 | local Type2 = type(Index2) | |
114 | if Type2 == "function" then | |
115 | return function (self,...) return RealService[Index2](RealService,...) end | |
116 | else | |
117 | local RunServices = { | |
118 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end; | |
119 | ["renderstepped"] = function() return RealService["Stepped"] end | |
120 | } | |
121 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
122 | return RealService[Index2] | |
123 | end | |
124 | end | |
125 | }) | |
126 | end | |
127 | } | |
128 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
129 | return RealGame:GetService(Service) | |
130 | end | |
131 | end | |
132 | return function (self,...) return RealGame[Index](RealGame,...) end | |
133 | else | |
134 | if game:GetService(Index) then return game:GetService(Index) end | |
135 | return RealGame[Index] | |
136 | end | |
137 | end | |
138 | return nil | |
139 | end | |
140 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("running the script noob") | |
141 | ||
142 | -- [[[ | |
143 | --000000[[====================================================================================\\ | |
144 | --000000[[ TameDoNotClick edit | |
145 | --000000[[====================================================================================// | |
146 | -- [[[ | |
147 | --maybe more updates soon | |
148 | Player = game:GetService("Players").LocalPlayer | |
149 | PlayerGui = Player.PlayerGui | |
150 | Cam = workspace.CurrentCamera | |
151 | Backpack = Player.Backpack | |
152 | Character = Player.Character | |
153 | char = Player.Character | |
154 | Humanoid = Character.Humanoid | |
155 | Mouse = Player:GetMouse() | |
156 | RootPart = Character["HumanoidRootPart"] | |
157 | Torso = Character["Torso"] | |
158 | Head = Character["Head"] | |
159 | RightArm = Character["Right Arm"] | |
160 | LeftArm = Character["Left Arm"] | |
161 | RightLeg = Character["Right Leg"] | |
162 | LeftLeg = Character["Left Leg"] | |
163 | RootJoint = RootPart["RootJoint"] | |
164 | Neck = Torso["Neck"] | |
165 | RightShoulder = Torso["Right Shoulder"] | |
166 | LeftShoulder = Torso["Left Shoulder"] | |
167 | RightHip = Torso["Right Hip"] | |
168 | LeftHip = Torso["Left Hip"] | |
169 | Humanoid.MaxHealth = "inf" | |
170 | Humanoid.Health = "inf" | |
171 | Humanoid.JumpPower = 100 | |
172 | ||
173 | ---------------------------------------------------------------------- | |
174 | warn("script edit by MadHumphreys") | |
175 | ||
176 | local Orin = "http://www.roblox.com/asset/?id=1188171642" | |
177 | Head.face.Texture = Orin | |
178 | function weld(a, b, acf) | |
179 | local w = Instance.new("Weld", a) | |
180 | w.Part0 = a | |
181 | w.Part1 = b | |
182 | w.C0 = acf | |
183 | end | |
184 | local righteyebrickcolor = "Really red" | |
185 | local reye = Instance.new("Part", char) | |
186 | reye.CanCollide = false | |
187 | reye.BrickColor = BrickColor.new(righteyebrickcolor) | |
188 | reye.Material = "Neon" | |
189 | reye.Size = Vector3.new(.25,.35,.15) | |
190 | weld(reye, char.Head, CFrame.new(0.15,-0.2,0.55), CFrame.new(1,0,0)) | |
191 | m1 = Instance.new("SpecialMesh", reye) | |
192 | m1.MeshType = "Sphere" | |
193 | m1.Scale = Vector3.new(0.9,0.9,0.9) | |
194 | reye.Locked = true | |
195 | reye.Name = "re" | |
196 | ||
197 | ||
198 | ||
199 | ||
200 | local Hair = Instance.new("Part") | |
201 | Hair.Parent = char | |
202 | Hair.Name = "Hair" | |
203 | Hair.Size = Vector3.new(0.1, 0.1, 0.1) | |
204 | Hair.CFrame = char.Head.CFrame | |
205 | Hair:BreakJoints() | |
206 | Hair.CanCollide = false | |
207 | Hair.BrickColor = BrickColor.new("New Yeller") | |
208 | Hair.TopSurface = "Smooth" | |
209 | Hair.BottomSurface = "Smooth" | |
210 | Weld = Instance.new("Weld") | |
211 | Weld.Name = "Weld" | |
212 | Weld.Part0 = char.Head | |
213 | Weld.Part1 = Hair | |
214 | Weld.Parent = char.Head | |
215 | Weld.C0 = CFrame.new(-0.1, -0.71, 0.8)*CFrame.fromEulerAnglesXYZ(0, 3, 0) | |
216 | Mesh = Instance.new("SpecialMesh") | |
217 | Mesh.Parent = Hair | |
218 | Mesh.MeshId = "disabled" | |
219 | Mesh.TextureId = "disabled" | |
220 | Mesh.Scale = Vector3.new(0.25, 0.21, 0.2) | |
221 | ||
222 | ||
223 | ypcall(function() | |
224 | shirt = Instance.new("Shirt", char) | |
225 | shirt.Name = "Shirt" | |
226 | pants = Instance.new("Pants", char) | |
227 | pants.Name = "Pants" | |
228 | char.Shirt.ShirtTemplate = Shirt | |
229 | char.Pants.PantsTemplate = Pants | |
230 | end) | |
231 | ||
232 | c = "White" | |
233 | ||
234 | vt=Vector3.new | |
235 | cf=CFrame.new | |
236 | euler=CFrame.fromEulerAnglesXYZ | |
237 | angles=CFrame.Angles | |
238 | ||
239 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
240 | local fp=Instance.new("Part") | |
241 | fp.formFactor=formfactor | |
242 | fp.Parent=parent | |
243 | fp.Reflectance=reflectance | |
244 | fp.Transparency=transparency | |
245 | fp.CanCollide=false | |
246 | fp.Locked=true | |
247 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
248 | fp.Name=name | |
249 | fp.Size=size | |
250 | fp.Position=Character.Torso.Position | |
251 | fp.Material=material | |
252 | fp:BreakJoints() | |
253 | return fp | |
254 | end | |
255 | ||
256 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
257 | local mesh=Instance.new(Mesh) | |
258 | mesh.Parent=part | |
259 | if Mesh=="SpecialMesh" then | |
260 | mesh.MeshType=meshtype | |
261 | mesh.MeshId=meshid | |
262 | end | |
263 | mesh.Offset=offset | |
264 | mesh.Scale=scale | |
265 | return mesh | |
266 | end | |
267 | ||
268 | function BreakEffect(brickcolor,cframe,x1,y1,z1,Color) | |
269 | local prt=part("Custom",workspace,"Neon",0,0,Color,"Effect",vt(0.5,0.5,0.5)) | |
270 | prt.Anchored=true | |
271 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
272 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
273 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
274 | CF=Part.CFrame | |
275 | Numbb=0 | |
276 | randnumb=math.random()-math.random() | |
277 | for i=0,1,0.05 do | |
278 | wait() | |
279 | CF=CF*cf(0,1,0) | |
280 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
281 | Part.CFrame=CF*euler(Numbb,0,0) | |
282 | Part.Transparency=i | |
283 | Numbb=Numbb+randnumb | |
284 | end | |
285 | Part.Parent=nil | |
286 | end),prt) | |
287 | end | |
288 | ||
289 | ||
290 | -------------------------------------------------------------------------------- | |
291 | Humanoid.DisplayDistanceType = "None" | |
292 | ||
293 | if Character:FindFirstChild("Granted") == nil then | |
294 | kkk = Instance.new("Sound",Character) | |
295 | kkk.Volume = 1 | |
296 | kkk.PlaybackSpeed = 1 | |
297 | kkk.Pitch = 1 | |
298 | kkk.SoundId = "rbxassetid://1119867593" | |
299 | kkk:Play() | |
300 | kkk.Name = "BackgroundMusic" | |
301 | kkk.Looped = true | |
302 | local naeeym2 = Instance.new("BillboardGui",Character) | |
303 | naeeym2.AlwaysOnTop = true | |
304 | naeeym2.Size = UDim2.new(0,100,0,40) | |
305 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
306 | naeeym2.Adornee = Character.Head | |
307 | naeeym2.Name = "TalkingBillBoard" | |
308 | spawn(function() | |
309 | while wait()do | |
310 | naeeym2.StudsOffset=Vector3.new(math.random(-50,50)/50,4.5+ math.random(-80,80)/50,math.random(-130,130)/50) | |
311 | end | |
312 | end) | |
313 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
314 | tecks2.BackgroundTransparency = 1 | |
315 | tecks2.BorderSizePixel = 0 | |
316 | tecks2.Text = "CORRUPTED" | |
317 | tecks2.Font = "Cartoon" | |
318 | tecks2.TextSize = 30 | |
319 | tecks2.TextStrokeTransparency = 0 | |
320 | tecks2.TextColor3 = Color3.new(0,0,0) | |
321 | tecks2.TextStrokeColor3 = Color3.new(1,1,1) | |
322 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
323 | tecks2.Parent = naeeym2 | |
324 | local naeeym2 = Instance.new("BillboardGui",Character) | |
325 | naeeym2.AlwaysOnTop = true | |
326 | naeeym2.Size = UDim2.new(0,100,0,40) | |
327 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
328 | naeeym2.Adornee = Character.Head | |
329 | naeeym2.Name = "TalkingBillBoard" | |
330 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
331 | tecks2.BackgroundTransparency = 1 | |
332 | tecks2.BorderSizePixel = 0 | |
333 | tecks2.Text = "" | |
334 | tecks2.Font = "Bodoni" | |
335 | tecks2.TextSize = 30 | |
336 | tecks2.TextStrokeTransparency = 0 | |
337 | tecks2.TextColor3 = Color3.new(0,0,0) | |
338 | tecks2.TextStrokeColor3 = Color3.new(1,1,1) | |
339 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
340 | tecks2.Parent = naeeym2 | |
341 | end | |
342 | ||
343 | IT = Instance.new | |
344 | CF = CFrame.new | |
345 | VT = Vector3.new | |
346 | RAD = math.rad | |
347 | C3 = Color3.new | |
348 | UD2 = UDim2.new | |
349 | BRICKC = BrickColor.new | |
350 | ANGLES = CFrame.Angles | |
351 | EULER = CFrame.fromEulerAnglesXYZ | |
352 | COS = math.cos | |
353 | ACOS = math.acos | |
354 | SIN = math.sin | |
355 | ASIN = math.asin | |
356 | ABS = math.abs | |
357 | MRANDOM = math.random | |
358 | FLOOR = math.floor | |
359 | ||
360 | ||
361 | ||
362 | ||
363 | ||
364 | --//=================================\\ | |
365 | --|| CUSTOMIZATION | |
366 | --\\=================================// | |
367 | ||
368 | Class_Name = "Monika deivis97 edit" | |
369 | Weapon_Name = "CORRUPT (when equipped press F)" | |
370 | ||
371 | Custom_Colors = { | |
372 | Custom_Color_1 = BRICKC("Carnation pink"); --1st color for the weapon. | |
373 | Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon. | |
374 | ||
375 | Custom_Color_3 = BRICKC("Carnation pink"); --Color for the abilities. | |
376 | Custom_Color_4 = BRICKC("Carnation pink"); --Color for the secondary bar. | |
377 | Custom_Color_5 = BRICKC("Carnation pink"); --Color for the mana bar. | |
378 | Custom_Color_6 = BRICKC("Carnation pink"); --Color for the health bar. | |
379 | Custom_Color_7 = BRICKC("Carnation pink"); --Color for the stun bar. | |
380 | ||
381 | Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar. | |
382 | Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar. | |
383 | Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar. | |
384 | Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar. | |
385 | Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities. | |
386 | } | |
387 | ||
388 | Mana_Bar_Background_Transparency = 0 --Transparency for the background of the mana bar. | |
389 | Secondary_Mana_Bar_Background_Transparency = 0 --Transparency for the background of the secondary mana bar. | |
390 | Health_Bar_Background_Transparency = 0 --Transparency for the background of the health bar. | |
391 | Stun_Bar_Background_Transparency = 0 --Transparency for the background of the stun bar. | |
392 | Ability_Background_Transparency = 0 --Transparency for the background of the abilities. | |
393 | Stat_Background_Transparency = 0 --Transparency for the background of the stats. | |
394 | ||
395 | Player_Size = 1 --Size of the player. | |
396 | Animation_Speed = 6 | |
397 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
398 | ||
399 | Enable_Gui = false --Enables or disables the Weapon Gui. Also functions as hiding or showing the Gui. | |
400 | Enable_Stats = false --Enables or disables stats. | |
401 | Put_Stats_In_Character = false --Places stats in Character. | |
402 | Enable_Stagger_Hit = false --Enables or disables staggering when hitting a hitbox of some sort. | |
403 | Play_Hitbox_Hit_Sound = true --Plays a hit sound when hitting a hitbox of some sort. | |
404 | Enable_Stagger = false --Enables or disables staggering. | |
405 | Enable_Stun = false --Enables or disables the stun mechanic. | |
406 | Enable_Abilities = false --Enables abilites with cooldowns and mana costs. | |
407 | Enable_Secondary_Bar = false --Enables the secondary mana bar, if true. | |
408 | ||
409 | Start_Equipped = false --Starts the player equipped with their weapon. | |
410 | Start_Equipped_With_Equipped_Animation = false --Used in conjunction with the above option. Starts your equip animation. | |
411 | Can_Equip_Or_Unequip = true --Enables or disables the ability to unequip or equip your weapon. | |
412 | Disable_Animator = true --Disables the Animator in the humanoid. | |
413 | Disable_Animate = true --Disables the Animate script in the monicter. | |
414 | Disable_Moving_Arms = false --Keeps the arms from moving around. | |
415 | Use_Motors_Instead_Of_Welds = false --Uses motors instead of welds to disable moving arms. | |
416 | Walkspeed_Depends_On_Movement_Value = false --Walkspeed depends on movement value. Self-explanatory. | |
417 | Disable_Jump = false --Disables jumping. | |
418 | Use_HopperBin = true --Uses a hopperbin to do things. | |
419 | ||
420 | Cooldown_1 = 0 --Cooldowns for abilites. | |
421 | Cooldown_2 = 0 | |
422 | Cooldown_3 = 0 | |
423 | Cooldown_4 = 0 | |
424 | Skill_1_Mana_Cost = 0 --How much mana is required to use the skill. | |
425 | Skill_2_Mana_Cost = 0 | |
426 | Skill_3_Mana_Cost = 0 | |
427 | Skill_4_Mana_Cost = 0 | |
428 | Max_Mana = 0 --Maximum amount of mana you can have. | |
429 | Max_Secondary_Mana = 0 --Maximum amount of secondary mana you can have. | |
430 | Mana_Name = "Mana" --Name for the mana bar. | |
431 | Secondary_Mana_Name = "Block" --Name for the secondary mana bar. | |
432 | Max_Stun = 1 --Maximum amount of stun you can have. | |
433 | Recover_Mana = 0 --How much mana you gain. | |
434 | Mana_Regen_Mode = "1" --Basically switches from one mana regen system to another. | |
435 | Secondary_Mana_Regen_Mode = "1" --Basically switches from one secondary mana regen system to another. | |
436 | Stun_Lose_Mode = "1" --Basically switches from one secondary stun loss system to another. | |
437 | Recover_Secondary_Mana = 0 --How much secondary mana you gain. | |
438 | Lose_Stun = 0 --How much stun you lose. | |
439 | Stun_Wait = 0 --Delay between losing stun. | |
440 | Mana_Wait = 0 --Delay between gaining mana. | |
441 | Secondary_Mana_Wait = 0 --Delay between gaining secondary mana. | |
442 | Menu_Update_Speed = 0 --How fast the Weapon Gui will update. | |
443 | Constant_Update = false --Removes the delay between updating the Weapon GUI. | |
444 | Show_Stats = false --Hides or shows stats. | |
445 | Stat_Offset = 0.74 --For cosmetic purposes. {0.74, 0.78} | |
446 | ||
447 | --//=================================\\ | |
448 | --|| END OF CUSTOMIZATION | |
449 | --\\=================================// | |
450 | ||
451 | ||
452 | ||
453 | ||
454 | ||
455 | --//=================================\\ | |
456 | --|| USEFUL VALUES | |
457 | --\\=================================// | |
458 | ||
459 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
460 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
461 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
462 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
463 | local CO1 = 0 | |
464 | local CO2 = 0 | |
465 | local CO3 = 0 | |
466 | local CO4 = 0 | |
467 | local CHANGEDEFENSE = 0 | |
468 | local CHANGEDAMAGE = 0 | |
469 | local CHANGEMOVEMENT = 0 | |
470 | local ANIM = "Idle" | |
471 | local ATTACK = false | |
472 | local EQUIPPED = false | |
473 | local HOLD = false | |
474 | local COMBO = 1 | |
475 | local LASTPOINT = nil | |
476 | local BLCF = nil | |
477 | local SCFR = nil | |
478 | local STAGGERHITANIM = false | |
479 | local STAGGERANIM = false | |
480 | local STUNANIM = false | |
481 | local CRITCHANCENUMBER = 0 | |
482 | local IDLENUMBER = 0 | |
483 | local DONUMBER = 0 | |
484 | local HANDIDLE = false | |
485 | local SINE = 0 | |
486 | local CHANGE = 2 / Animation_Speed | |
487 | local WALKINGANIM = false | |
488 | local WALK = 0 | |
489 | local DISABLEJUMPING = false | |
490 | local HASBEENBLOCKED = false | |
491 | local STUNDELAYNUMBER = 0 | |
492 | local MANADELAYNUMBER = 0 | |
493 | local SECONDARYMANADELAYNUMBER = 0 | |
494 | local ROBLOXIDLEANIMATION = IT("Animation") | |
495 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
496 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
497 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
498 | local WEAPONGUI = IT("ScreenGui", nil) | |
499 | WEAPONGUI.Name = "Weapon GUI" | |
500 | local WEAPONTOOL = IT("HopperBin", nil) | |
501 | WEAPONTOOL.Name = Weapon_Name | |
502 | local Weapon = IT("Model") | |
503 | Weapon.Name = Weapon_Name | |
504 | local Effects = IT("Folder", Weapon) | |
505 | Effects.Name = "Effects" | |
506 | local ANIMATOR = Humanoid.Animator | |
507 | local ANIMATE = Character.Animate | |
508 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
509 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} | |
510 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"} | |
511 | local HITBLOCKSOUNDS = {"199148933", "199148947"} | |
512 | ||
513 | --//=================================\\ | |
514 | --\\=================================// | |
515 | ||
516 | ||
517 | ||
518 | ||
519 | ||
520 | --//=================================\\ | |
521 | --|| STATS | |
522 | --\\=================================// | |
523 | ||
524 | if Character:FindFirstChild("Stats") ~= nil then | |
525 | Character:FindFirstChild("Stats").Parent = nil | |
526 | end | |
527 | ||
528 | local Stats = IT("Folder", nil) | |
529 | Stats.Name = "Stats" | |
530 | local ChangeStat = IT("Folder", Stats) | |
531 | ChangeStat.Name = "ChangeStat" | |
532 | local Defense = IT("NumberValue", Stats) | |
533 | Defense.Name = "Defense" | |
534 | Defense.Value = 1 | |
535 | local Movement = IT("NumberValue", Stats) | |
536 | Movement.Name = "Movement" | |
537 | Movement.Value = 1 | |
538 | local Damage = IT("NumberValue", Stats) | |
539 | Damage.Name = "Damage" | |
540 | Damage.Value = 1 | |
541 | local Mana = IT("NumberValue", Stats) | |
542 | Mana.Name = "Mana" | |
543 | Mana.Value = 0 | |
544 | local SecondaryMana = IT("NumberValue", Stats) | |
545 | SecondaryMana.Name = "SecondaryMana" | |
546 | SecondaryMana.Value = 0 | |
547 | local CanCrit = IT("BoolValue", Stats) | |
548 | CanCrit.Name = "CanCrit" | |
549 | CanCrit.Value = false | |
550 | local CritChance = IT("NumberValue", Stats) | |
551 | CritChance.Name = "CritChance" | |
552 | CritChance.Value = 20 | |
553 | local CanPenetrateArmor = IT("BoolValue", Stats) | |
554 | CanPenetrateArmor.Name = "CanPenetrateArmor" | |
555 | CanPenetrateArmor.Value = false | |
556 | local AntiTeamKill = IT("BoolValue", Stats) | |
557 | AntiTeamKill.Name = "AntiTeamKill" | |
558 | AntiTeamKill.Value = false | |
559 | local Rooted = IT("BoolValue", Stats) | |
560 | Rooted.Name = "Rooted" | |
561 | Rooted.Value = false | |
562 | local Block = IT("BoolValue", Stats) | |
563 | Block.Name = "Block" | |
564 | Block.Value = false | |
565 | local RecentEnemy = IT("ObjectValue", Stats) | |
566 | RecentEnemy.Name = "RecentEnemy" | |
567 | RecentEnemy.Value = nil | |
568 | local StaggerHit = IT("BoolValue", Stats) | |
569 | StaggerHit.Name = "StaggerHit" | |
570 | StaggerHit.Value = false | |
571 | local Stagger = IT("BoolValue", Stats) | |
572 | Stagger.Name = "Stagger" | |
573 | Stagger.Value = false | |
574 | local Stun = IT("BoolValue", Stats) | |
575 | Stun.Name = "Stun" | |
576 | Stun.Value = false | |
577 | local StunValue = IT("NumberValue", Stats) | |
578 | StunValue.Name = "StunValue" | |
579 | StunValue.Value = 0 | |
580 | ||
581 | if Enable_Stats == true and Put_Stats_In_Character == true then | |
582 | Stats.Parent = Character | |
583 | end | |
584 | ||
585 | --//=================================\\ | |
586 | --\\=================================// | |
587 | ||
588 | ||
589 | ||
590 | ||
591 | ||
592 | --//=================================\\ | |
593 | --|| DEBUFFS / BUFFS | |
594 | --\\=================================// | |
595 | ||
596 | local DEFENSECHANGE1 = IT("NumberValue", ChangeStat) | |
597 | DEFENSECHANGE1.Name = "ChangeDefense" | |
598 | DEFENSECHANGE1.Value = 0 | |
599 | ||
600 | local MOVEMENTCHANGE1 = IT("NumberValue", nil) | |
601 | MOVEMENTCHANGE1.Name = "ChangeMovement" | |
602 | MOVEMENTCHANGE1.Value = 0 | |
603 | ||
604 | --//=================================\\ | |
605 | --\\=================================// | |
606 | ||
607 | ||
608 | ||
609 | ||
610 | ||
611 | --//=================================\\ | |
612 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
613 | --\\=================================// | |
614 | ||
615 | ArtificialHB = Instance.new("BindableEvent", script) | |
616 | ArtificialHB.Name = "ArtificialHB" | |
617 | ||
618 | script:WaitForChild("ArtificialHB") | |
619 | ||
620 | frame = Frame_Speed | |
621 | tf = 0 | |
622 | allowframeloss = false | |
623 | tossremainder = false | |
624 | lastframe = tick() | |
625 | script.ArtificialHB:Fire() | |
626 | ||
627 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
628 | tf = tf + s | |
629 | if tf >= frame then | |
630 | if allowframeloss then | |
631 | script.ArtificialHB:Fire() | |
632 | lastframe = tick() | |
633 | else | |
634 | for i = 1, math.floor(tf / frame) do | |
635 | script.ArtificialHB:Fire() | |
636 | end | |
637 | lastframe = tick() | |
638 | end | |
639 | if tossremainder then | |
640 | tf = 0 | |
641 | else | |
642 | tf = tf - frame * math.floor(tf / frame) | |
643 | end | |
644 | end | |
645 | end) | |
646 | ||
647 | --//=================================\\ | |
648 | --\\=================================// | |
649 | ||
650 | ||
651 | ||
652 | ||
653 | ||
654 | --//=================================\\ | |
655 | --|| SOME FUNCTIONS | |
656 | --\\=================================// | |
657 | ||
658 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
659 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
660 | end | |
661 | ||
662 | function PositiveAngle(NUMBER) | |
663 | if NUMBER >= 0 then | |
664 | NUMBER = 0 | |
665 | end | |
666 | return NUMBER | |
667 | end | |
668 | ||
669 | function NegativeAngle(NUMBER) | |
670 | if NUMBER <= 0 then | |
671 | NUMBER = 0 | |
672 | end | |
673 | return NUMBER | |
674 | end | |
675 | ||
676 | function Swait(NUMBER) | |
677 | if NUMBER == 0 or NUMBER == nil then | |
678 | ArtificialHB.Event:wait() | |
679 | else | |
680 | for i = 1, NUMBER do | |
681 | ArtificialHB.Event:wait() | |
682 | end | |
683 | end | |
684 | end | |
685 | ||
686 | function QuaternionFromCFrame(cf) | |
687 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
688 | local trace = m00 + m11 + m22 | |
689 | if trace > 0 then | |
690 | local s = math.sqrt(1 + trace) | |
691 | local recip = 0.5 / s | |
692 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
693 | else | |
694 | local i = 0 | |
695 | if m11 > m00 then | |
696 | i = 1 | |
697 | end | |
698 | if m22 > (i == 0 and m00 or m11) then | |
699 | i = 2 | |
700 | end | |
701 | if i == 0 then | |
702 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
703 | local recip = 0.5 / s | |
704 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
705 | elseif i == 1 then | |
706 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
707 | local recip = 0.5 / s | |
708 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
709 | elseif i == 2 then | |
710 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
711 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
712 | end | |
713 | end | |
714 | end | |
715 | ||
716 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
717 | local xs, ys, zs = x + x, y + y, z + z | |
718 | local wx, wy, wz = w * xs, w * ys, w * zs | |
719 | local xx = x * xs | |
720 | local xy = x * ys | |
721 | local xz = x * zs | |
722 | local yy = y * ys | |
723 | local yz = y * zs | |
724 | local zz = z * zs | |
725 | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) | |
726 | end | |
727 | ||
728 | function QuaternionSlerp(a, b, t) | |
729 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
730 | local startInterp, finishInterp; | |
731 | if cosTheta >= 0.0001 then | |
732 | if (1 - cosTheta) > 0.0001 then | |
733 | local theta = ACOS(cosTheta) | |
734 | local invSinTheta = 1 / SIN(theta) | |
735 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
736 | finishInterp = SIN(t * theta) * invSinTheta | |
737 | else | |
738 | startInterp = 1 - t | |
739 | finishInterp = t | |
740 | end | |
741 | else | |
742 | if (1 + cosTheta) > 0.0001 then | |
743 | local theta = ACOS(-cosTheta) | |
744 | local invSinTheta = 1 / SIN(theta) | |
745 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
746 | finishInterp = SIN(t * theta) * invSinTheta | |
747 | else | |
748 | startInterp = t - 1 | |
749 | finishInterp = t | |
750 | end | |
751 | end | |
752 | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp | |
753 | end | |
754 | ||
755 | function Clerp(a, b, t) | |
756 | local qa = {QuaternionFromCFrame(a)} | |
757 | local qb = {QuaternionFromCFrame(b)} | |
758 | local ax, ay, az = a.x, a.y, a.z | |
759 | local bx, by, bz = b.x, b.y, b.z | |
760 | local _t = 1 - t | |
761 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
762 | end | |
763 | ||
764 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
765 | local frame = IT("Frame") | |
766 | frame.BackgroundTransparency = TRANSPARENCY | |
767 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
768 | frame.Position = POSITION | |
769 | frame.Size = SIZE | |
770 | frame.BackgroundColor3 = COLOR | |
771 | frame.BorderColor3 = BORDERCOLOR | |
772 | frame.Name = NAME | |
773 | frame.Parent = PARENT | |
774 | return frame | |
775 | end | |
776 | ||
777 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
778 | local label = IT("TextLabel") | |
779 | label.BackgroundTransparency = 1 | |
780 | label.Size = UD2(1, 0, 1, 0) | |
781 | label.Position = UD2(0, 0, 0, 0) | |
782 | label.TextColor3 = C3(255, 255, 255) | |
783 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
784 | label.TextTransparency = TRANSPARENCY | |
785 | label.FontSize = TEXTFONTSIZE | |
786 | label.Font = TEXTFONT | |
787 | label.BorderSizePixel = BORDERSIZEPIXEL | |
788 | label.TextScaled = true | |
789 | label.Text = TEXT | |
790 | label.Name = NAME | |
791 | label.Parent = PARENT | |
792 | return label | |
793 | end | |
794 | ||
795 | function NoOutlines(PART) | |
796 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
797 | end | |
798 | ||
799 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE) | |
800 | local NEWPART = IT("Part") | |
801 | NEWPART.formFactor = FORMFACTOR | |
802 | NEWPART.Reflectance = REFLECTANCE | |
803 | NEWPART.Transparency = TRANSPARENCY | |
804 | NEWPART.CanCollide = false | |
805 | NEWPART.Locked = true | |
806 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
807 | NEWPART.Name = NAME | |
808 | NEWPART.Size = SIZE | |
809 | NEWPART.Position = Torso.Position | |
810 | NoOutlines(NEWPART) | |
811 | NEWPART.Material = MATERIAL | |
812 | NEWPART:BreakJoints() | |
813 | NEWPART.Parent = PARENT | |
814 | return NEWPART | |
815 | end | |
816 | ||
817 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
818 | local NEWMESH = IT(MESH) | |
819 | if MESH == "SpecialMesh" then | |
820 | NEWMESH.MeshType = MESHTYPE | |
821 | if MESHID ~= "nil" and MESHID ~= "" then | |
822 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
823 | end | |
824 | end | |
825 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
826 | NEWMESH.Scale = Vector3.new(1,1,1) | |
827 | NEWMESH.Parent = PARENT | |
828 | PARENT.Reflectance = 1 | |
829 | PARENT.Transparency = 1 | |
830 | return NEWMESH | |
831 | end | |
832 | ||
833 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
834 | local NEWWELD = IT(TYPE) | |
835 | NEWWELD.Part0 = PART0 | |
836 | NEWWELD.Part1 = PART1 | |
837 | NEWWELD.C0 = C0 | |
838 | NEWWELD.C1 = C1 | |
839 | NEWWELD.Parent = PARENT | |
840 | return NEWWELD | |
841 | end | |
842 | ||
843 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
844 | coroutine.resume(coroutine.create(function() | |
845 | local NEWSOUND = IT("Sound", PARENT) | |
846 | NEWSOUND.Volume = VOLUME | |
847 | NEWSOUND.Pitch = PITCH | |
848 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
849 | Swait() | |
850 | NEWSOUND:play() | |
851 | game:GetService("Debris"):AddItem(NEWSOUND, 100) | |
852 | end)) | |
853 | end | |
854 | ||
855 | function CFrameFromTopBack(at, top, back) | |
856 | local right = top:Cross(back) | |
857 | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
858 | end | |
859 | ||
860 | function Lightning(POSITION1, POSITION2, MULTIPLIERTIME, LIGHTNINGDELAY, OFFSET, BRICKCOLOR, MATERIAL, SIZE, TRANSPARENCY, LASTINGTIME) | |
861 | local MAGNITUDE = (POSITION1 - POSITION2).magnitude | |
862 | local CURRENTPOSITION = POSITION1 | |
863 | local LIGHTNINGOFFSET = {-OFFSET, OFFSET} | |
864 | coroutine.resume(coroutine.create(function() | |
865 | for i = 1, MULTIPLIERTIME do | |
866 | local LIGHTNINGPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR,"Effect", VT(SIZE * Player_Size, SIZE * Player_Size, MAGNITUDE / MULTIPLIERTIME)) | |
867 | LIGHTNINGPART.Anchored = true | |
868 | local LIGHTNINGOFFSET2 = VT(LIGHTNINGOFFSET[MRANDOM(1, 2)], LIGHTNINGOFFSET[MRANDOM(1, 2)], LIGHTNINGOFFSET[MRANDOM(1, 2)]) | |
869 | local LIGHTNINGPOSITION1 = CF(CURRENTPOSITION, POSITION2) * CF(0, 0, MAGNITUDE / MULTIPLIERTIME).p + LIGHTNINGOFFSET2 | |
870 | if MULTIPLIERTIME == i then | |
871 | local LIGHTNINGMAGNITUDE1 = (CURRENTPOSITION - POSITION2).magnitude | |
872 | LIGHTNINGPART.Size = VT(SIZE * Player_Size, SIZE * Player_Size, LIGHTNINGMAGNITUDE1) | |
873 | LIGHTNINGPART.CFrame = CF(CURRENTPOSITION, POSITION2) * CF(0, 0, -LIGHTNINGMAGNITUDE1 / 2) | |
874 | else | |
875 | LIGHTNINGPART.CFrame = CF(CURRENTPOSITION, LIGHTNINGPOSITION1) * CF(0, 0, MAGNITUDE / MULTIPLIERTIME / 2) | |
876 | end | |
877 | CURRENTPOSITION=LIGHTNINGPART.CFrame * CF(0, 0, MAGNITUDE / MULTIPLIERTIME / 2).p | |
878 | game.Debris:AddItem(LIGHTNINGPART, LASTINGTIME) | |
879 | coroutine.resume(coroutine.create(function() | |
880 | while LIGHTNINGPART.Transparency ~= 1 do | |
881 | --local StartTransparency = tra | |
882 | for i=0, 1, LASTINGTIME do | |
883 | Swait() | |
884 | LIGHTNINGPART.Transparency = LIGHTNINGPART.Transparency + (0.1 / LASTINGTIME) | |
885 | end | |
886 | end | |
887 | end)) | |
888 | Swait(LIGHTNINGDELAY / Animation_Speed) | |
889 | end | |
890 | end)) | |
891 | end | |
892 | ||
893 | function MagicBlock(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay) | |
894 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT()) | |
895 | EFFECTPART.Anchored = true | |
896 | EFFECTPART.CFrame = CFRAME | |
897 | local EFFECTMESH = CreateMesh("BlockMesh", EFFECTPART, "", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size) | |
898 | game:GetService("Debris"):AddItem(EFFECTPART, 50) | |
899 | coroutine.resume(coroutine.create(function(PART, MESH) | |
900 | for i = 0, 1, delay do | |
901 | Swait() | |
902 | PART.CFrame = PART.CFrame * ROTATION | |
903 | PART.Transparency = i | |
904 | MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size) | |
905 | end | |
906 | PART.Parent = nil | |
907 | end), EFFECTPART, EFFECTMESH) | |
908 | end | |
909 | ||
910 | function MagicSphere(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay) | |
911 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT()) | |
912 | EFFECTPART.Anchored = true | |
913 | EFFECTPART.CFrame = CFRAME | |
914 | local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "Sphere", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size) | |
915 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
916 | coroutine.resume(coroutine.create(function(PART, MESH) | |
917 | for i = 0, 1, delay do | |
918 | Swait() | |
919 | PART.CFrame = PART.CFrame * ROTATION | |
920 | PART.Transparency = i | |
921 | MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size) | |
922 | end | |
923 | PART.Parent = nil | |
924 | end), EFFECTPART, EFFECTMESH) | |
925 | end | |
926 | ||
927 | function MagicCylinder(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay) | |
928 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT()) | |
929 | EFFECTPART.Anchored = true | |
930 | EFFECTPART.CFrame = CFRAME | |
931 | local EFFECTMESH = CreateMesh("CylinderMesh", EFFECTPART, "", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size) | |
932 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
933 | coroutine.resume(coroutine.create(function(PART, MESH) | |
934 | for i = 0, 1, delay do | |
935 | Swait() | |
936 | PART.CFrame = PART.CFrame * ROTATION | |
937 | PART.Transparency = i | |
938 | MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size) | |
939 | end | |
940 | PART.Parent = nil | |
941 | end), EFFECTPART, EFFECTMESH) | |
942 | end | |
943 | ||
944 | function MagicHead(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay) | |
945 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT()) | |
946 | EFFECTPART.Anchored = true | |
947 | EFFECTPART.CFrame = CFRAME | |
948 | local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "Head", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size) | |
949 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
950 | coroutine.resume(coroutine.create(function(PART, MESH) | |
951 | for i = 0, 1, delay do | |
952 | Swait() | |
953 | PART.CFrame = PART.CFrame * ROTATION | |
954 | PART.Transparency = i | |
955 | MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size) | |
956 | end | |
957 | PART.Parent = nil | |
958 | end), EFFECTPART, EFFECTMESH) | |
959 | end | |
960 | ||
961 | function MagicRing(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay) | |
962 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT()) | |
963 | EFFECTPART.Anchored = true | |
964 | EFFECTPART.CFrame = CFRAME | |
965 | local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "3270017", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size) | |
966 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
967 | coroutine.resume(coroutine.create(function(PART, MESH) | |
968 | for i = 0, 1, delay do | |
969 | Swait() | |
970 | PART.CFrame = PART.CFrame * ROTATION | |
971 | PART.Transparency = i | |
972 | MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size) | |
973 | end | |
974 | PART.Parent = nil | |
975 | end), EFFECTPART, EFFECTMESH) | |
976 | end | |
977 | ||
978 | function MagicWave(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay) | |
979 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT()) | |
980 | EFFECTPART.Anchored = true | |
981 | EFFECTPART.CFrame = CFRAME | |
982 | local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "20329976", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), VT(0, 0, (-0.1 * Z1)) + (OFFSET * Player_Size)) | |
983 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
984 | coroutine.resume(coroutine.create(function(PART, MESH) | |
985 | for i = 0, 1, delay do | |
986 | Swait() | |
987 | PART.CFrame = PART.CFrame * ROTATION | |
988 | PART.Transparency = i | |
989 | MESH.Offset = VT(0, 0, (-0.1 * MESH.Scale.Z)) | |
990 | MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size) | |
991 | end | |
992 | PART.Parent = nil | |
993 | end), EFFECTPART, EFFECTMESH) | |
994 | end | |
995 | ||
996 | function MagicCrystal(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay) | |
997 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT()) | |
998 | EFFECTPART.Anchored = true | |
999 | EFFECTPART.CFrame = CFRAME | |
1000 | local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "9756362", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size) | |
1001 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
1002 | coroutine.resume(coroutine.create(function(PART, MESH) | |
1003 | for i = 0, 1, delay do | |
1004 | Swait() | |
1005 | PART.CFrame = PART.CFrame * ROTATION | |
1006 | PART.Transparency = i | |
1007 | MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size) | |
1008 | end | |
1009 | PART.Parent = nil | |
1010 | end), EFFECTPART, EFFECTMESH) | |
1011 | end | |
1012 | ||
1013 | function MagicSwirl(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay) | |
1014 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT()) | |
1015 | EFFECTPART.Anchored = true | |
1016 | EFFECTPART.CFrame = CFRAME | |
1017 | local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1051557", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size) | |
1018 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
1019 | coroutine.resume(coroutine.create(function(PART, MESH) | |
1020 | for i = 0, 10, delay do | |
1021 | Swait() | |
1022 | PART.CFrame = PART.CFrame * Head.CFrame | |
1023 | PART.Transparency = 0 | |
1024 | MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size) | |
1025 | end | |
1026 | --PART.Parent = nil | |
1027 | end), EFFECTPART, EFFECTMESH) | |
1028 | end | |
1029 | ||
1030 | function MagicSharpCone(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay) | |
1031 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT()) | |
1032 | EFFECTPART.Anchored = true | |
1033 | EFFECTPART.CFrame = CFRAME | |
1034 | local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1778999", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size) | |
1035 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
1036 | coroutine.resume(coroutine.create(function(PART, MESH) | |
1037 | for i = 0, 1, delay do | |
1038 | Swait() | |
1039 | PART.CFrame = PART.CFrame * ROTATION | |
1040 | PART.Transparency = i | |
1041 | MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size) | |
1042 | end | |
1043 | PART.Parent = nil | |
1044 | end), EFFECTPART, EFFECTMESH) | |
1045 | end | |
1046 | ||
1047 | function MagicFlatCone(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay) | |
1048 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT()) | |
1049 | EFFECTPART.Anchored = true | |
1050 | EFFECTPART.CFrame = CFRAME | |
1051 | local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1033714", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size) | |
1052 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
1053 | coroutine.resume(coroutine.create(function(PART, MESH) | |
1054 | for i = 0, 1, delay do | |
1055 | Swait() | |
1056 | PART.CFrame = PART.CFrame * Vector3.new(0,0,0) | |
1057 | PART.Transparency = i | |
1058 | MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size) | |
1059 | end | |
1060 | PART.Parent = nil | |
1061 | end), EFFECTPART, EFFECTMESH) | |
1062 | end | |
1063 | ||
1064 | function MagicSpikedCrown(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay) | |
1065 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT()) | |
1066 | EFFECTPART.Anchored = true | |
1067 | EFFECTPART.CFrame = CFRAME | |
1068 | local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1323306", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size) | |
1069 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
1070 | coroutine.resume(coroutine.create(function(PART, MESH) | |
1071 | for i = 0, 1, delay do | |
1072 | Swait() | |
1073 | PART.CFrame = PART.CFrame * Head.CFrame | |
1074 | PART.Transparency = i | |
1075 | MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size) | |
1076 | end | |
1077 | PART.Parent = nil | |
1078 | end), EFFECTPART, EFFECTMESH) | |
1079 | end | |
1080 | ||
1081 | function MagicFlatCrown(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay) | |
1082 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT()) | |
1083 | EFFECTPART.Anchored = true | |
1084 | EFFECTPART.CFrame = CFRAME | |
1085 | local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1078075", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size) | |
1086 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
1087 | coroutine.resume(coroutine.create(function(PART, MESH) | |
1088 | for i = 0, 1, delay do | |
1089 | Swait() | |
1090 | PART.CFrame = PART.CFrame * ROTATION | |
1091 | PART.Transparency = i | |
1092 | MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size) | |
1093 | end | |
1094 | PART.Parent = nil | |
1095 | end), EFFECTPART, EFFECTMESH) | |
1096 | end | |
1097 | ||
1098 | function MagicSkull(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay) | |
1099 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT()) | |
1100 | EFFECTPART.Anchored = true | |
1101 | EFFECTPART.CFrame = CFRAME | |
1102 | local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "4770583", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size) | |
1103 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
1104 | coroutine.resume(coroutine.create(function(PART, MESH) | |
1105 | for i = 0, 1, delay do | |
1106 | Swait() | |
1107 | PART.CFrame = PART.CFrame * ROTATION | |
1108 | PART.Transparency = i | |
1109 | MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size) | |
1110 | end | |
1111 | PART.Parent = nil | |
1112 | end), EFFECTPART, EFFECTMESH) | |
1113 | end | |
1114 | ||
1115 | function ElectricEffect(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X, Y, Z, delay) | |
1116 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT()) | |
1117 | EFFECTPART.Anchored = true | |
1118 | EFFECTPART.CFrame = CFRAME | |
1119 | local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "4770583", "", VT(X * Player_Size, Y * Player_Size, Z * Player_Size), OFFSET * Player_Size) | |
1120 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
1121 | local XVALUE = MRANDOM() | |
1122 | local YVALUE = MRANDOM() | |
1123 | local ZVALUE = MRANDOM() | |
1124 | coroutine.resume(coroutine.create(function(PART, MESH, THEXVALUE, THEYVALUE, THEZVALUE) | |
1125 | for i = 0, 1, delay do | |
1126 | Swait() | |
1127 | PART.CFrame = PART.CFrame * ROTATION | |
1128 | PART.Transparency = i | |
1129 | THEXVALUE = THEXVALUE - 0.1 * (delay * 10) | |
1130 | THEYVALUE = THEYVALUE - 0.1 * (delay * 10) | |
1131 | THEZVALUE = THEZVALUE - 0.1 * (delay * 10) | |
1132 | MESH.Scale = MESH.Scale + VT(THEXVALUE * Player_Size, THEYVALUE * Player_Size, THEZVALUE * Player_Size) | |
1133 | end | |
1134 | PART.Parent = nil | |
1135 | end), EFFECTPART, EFFECTMESH, XVALUE, YVALUE, ZVALUE) | |
1136 | end | |
1137 | ||
1138 | function TrailEffect(BRICKCOLOR, MATERIAL, CURRENTCFRAME, OLDCFRAME, MESHTYPE, REFLECTANCE, SIZE, ROTATION, X, Y, Z, delay) | |
1139 | local MAGNITUDECFRAME = (CURRENTCFRAME.p - OLDCFRAME.p).magnitude | |
1140 | if MAGNITUDECFRAME > (1 / 100) then | |
1141 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT(1, MAGNITUDECFRAME, 1)) | |
1142 | EFFECTPART.Anchored = true | |
1143 | EFFECTPART.CFrame = CF((CURRENTCFRAME.p + OLDCFRAME.p) / 2, OLDCFRAME.p) * ANGLES(RAD(90), 0, 0) | |
1144 | local THEMESHTYPE = "BlockMesh" | |
1145 | if MESHTYPE == "Cylinder" then | |
1146 | THEMESHTYPE = "CylinderMesh" | |
1147 | end | |
1148 | local EFFECTMESH = CreateMesh(THEMESHTYPE, EFFECTPART, "", "", "", VT(0 + SIZE * Player_Size, 1, 0 + SIZE * Player_Size), VT(0, 0, 0)) | |
1149 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
1150 | coroutine.resume(coroutine.create(function(PART, MESH) | |
1151 | for i = 0, 1, delay do | |
1152 | Swait() | |
1153 | PART.CFrame = PART.CFrame * ROTATION | |
1154 | PART.Transparency = i | |
1155 | MESH.Scale = MESH.Scale + VT(X * Player_Size, Y * Player_Size, Z * Player_Size) | |
1156 | end | |
1157 | PART.Parent = nil | |
1158 | end), EFFECTPART, EFFECTMESH) | |
1159 | end | |
1160 | end | |
1161 | ||
1162 | function ClangEffect(BRICKCOLOR, MATERIAL, CFRAME, ANGLE, DURATION, SIZE, POWER, REFLECTANCE, X, Y, Z, delay) | |
1163 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 1, BRICKCOLOR, "Effect", VT()) | |
1164 | EFFECTPART.Anchored = true | |
1165 | EFFECTPART.CFrame = CFRAME | |
1166 | local EFFECTMESH = CreateMesh("BlockMesh", EFFECTPART, "", "", "", VT(0, 0, 0), VT(0, 0, 0)) | |
1167 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
1168 | local THELASTPOINT = CFRAME | |
1169 | coroutine.resume(coroutine.create(function(PART) | |
1170 | for i = 1, DURATION do | |
1171 | Swait() | |
1172 | PART.CFrame = PART.CFrame * ANGLES(RAD(ANGLE), 0, 0) * CF(0, POWER * Player_Size, 0) | |
1173 | TrailEffect(BRICKCOLOR, MATERIAL, PART.CFrame, THELASTPOINT, "Cylinder", REFLECTANCE, SIZE * Player_Size, ANGLES(0, 0, 0), X * Player_Size, Y * Player_Size, Z * Player_Size, delay) | |
1174 | THELASTPOINT = PART.CFrame | |
1175 | end | |
1176 | PART.Parent = nil | |
1177 | end), EFFECTPART) | |
1178 | end | |
1179 | ||
1180 | --local list={} | |
1181 | function Triangle(Color, Material, a, b, c, delay) | |
1182 | local edge1 = (c - a):Dot((b - a).unit) | |
1183 | local edge2 = (a - b):Dot((c - b).unit) | |
1184 | local edge3 = (b - c):Dot((a - c).unit) | |
1185 | if edge1 <= (b - a).magnitude and edge1 >= 0 then | |
1186 | a, b, c=a, b, c | |
1187 | elseif edge2 <= (c - b).magnitude and edge2 >= 0 then | |
1188 | a, b, c=b, c, a | |
1189 | elseif edge3 <= (a - c).magnitude and edge3 >= 0 then | |
1190 | a, b, c=c, a, b | |
1191 | else | |
1192 | assert(false, "unreachable") | |
1193 | end | |
1194 | local len1 = (c - a):Dot((b - a).unit) | |
1195 | local len2 = (b - a).magnitude - len1 | |
1196 | local width = (a + (b - a).unit * len1 - c).magnitude | |
1197 | local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, - (b - a).unit) | |
1198 | if len1 > 1 / 100 then | |
1199 | local sz = VT(0.2, width, len1) | |
1200 | local w1 = CreatePart(3, Effects, Material, 0, 0.5, Color, "Trail", sz) | |
1201 | local sp = CreateMesh("SpecialMesh", w1, "Wedge", "", "", VT(0, 1, 1) * sz / w1.Size, VT(0, 0, 0)) | |
1202 | w1.Anchored = true | |
1203 | w1.CFrame = maincf * ANGLES(math.pi, 0, math.pi / 2) * CF(0, width / 2, len1 / 2) | |
1204 | coroutine.resume(coroutine.create(function() | |
1205 | for i = 0.5, 1, delay * (2 / Animation_Speed) do | |
1206 | Swait() | |
1207 | w1.Transparency = i | |
1208 | end | |
1209 | w1.Parent = nil | |
1210 | end)) | |
1211 | game:GetService("Debris"):AddItem(w1, 10) | |
1212 | --table.insert(list, w1) | |
1213 | end | |
1214 | if len2 > 1 / 100 then | |
1215 | local sz = VT(0.2, width, len2) | |
1216 | local w2 = CreatePart(3, Effects, Material, 0, 0.5, Color, "Trail", sz) | |
1217 | local sp = CreateMesh("SpecialMesh", w2, "Wedge", "", "", VT(0, 1, 1) * sz / w2.Size, VT(0, 0, 0)) | |
1218 | w2.Anchored = true | |
1219 | w2.CFrame = maincf * ANGLES(math.pi, math.pi, -math.pi / 2) * CF(0, width / 2, -len1 - len2 / 2) | |
1220 | coroutine.resume(coroutine.create(function() | |
1221 | for i = 0.5, 1, delay * (2 / Animation_Speed) do | |
1222 | Swait() | |
1223 | w2.Transparency = i | |
1224 | end | |
1225 | w2.Parent = nil | |
1226 | end)) | |
1227 | game:GetService("Debris"):AddItem(w2, 10) | |
1228 | --table.insert(list, w2) | |
1229 | end | |
1230 | --return unpack(list) | |
1231 | end | |
1232 | ||
1233 | --[[Usage: | |
1234 | local Pos = Part | |
1235 | local Offset = Part.CFrame * CF(0, 0, 0) | |
1236 | local Color = "Institutional white" | |
1237 | local Material = "Neon" | |
1238 | local TheDelay = 0.01 | |
1239 | local Height = 4 | |
1240 | BLCF = Offset | |
1241 | if SCFR and (Pos.Position - SCFR.p).magnitude > 0.1 then | |
1242 | local a, b = Triangle(Color, Material, (SCFR * CF(0, Height / 2,0)).p, (SCFR * CF(0, -Height / 2, 0)).p, (BLCF * CF(0, Height / 2,0)).p, TheDelay) | |
1243 | if a then game:GetService("Debris"):AddItem(a, 1) end | |
1244 | if b then game:GetService("Debris"):AddItem(b, 1) end | |
1245 | local a, b = Triangle(Color, Material, (BLCF * CF(0, Height / 2, 0)).p, (BLCF * CF(0, -Height / 2, 0)).p, (SCFR * CF(0, -Height / 2, 0)).p, TheDelay) | |
1246 | if a then game:GetService("Debris"):AddItem(a, 1) end | |
1247 | if b then game:GetService("Debris"):AddItem(b, 1) end | |
1248 | SCFR = BLCF | |
1249 | elseif not SCFR then | |
1250 | SCFR = BLCF | |
1251 | end | |
1252 | -- | |
1253 | BLCF = nil | |
1254 | SCFR = nil | |
1255 | --]] | |
1256 | ||
1257 | --//=================================\\ | |
1258 | --\\=================================// | |
1259 | ||
1260 | ||
1261 | ||
1262 | local function weldBetween(a, b) | |
1263 | local weldd = Instance.new("ManualWeld") | |
1264 | weldd.Part0 = a | |
1265 | weldd.Part1 = b | |
1266 | weldd.C0 = CFrame.new() | |
1267 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
1268 | weldd.Parent = a | |
1269 | return weldd | |
1270 | end | |
1271 | ||
1272 | ||
1273 | --//=================================\\ | |
1274 | --|| RESIZE PLAYER | |
1275 | --\\=================================// | |
1276 | ||
1277 | if Player_Size ~= 1 then | |
1278 | RootPart.Size = RootPart.Size * Player_Size | |
1279 | Torso.Size = Torso.Size * Player_Size | |
1280 | Head.Size = Head.Size * Player_Size | |
1281 | RightArm.Size = RightArm.Size * Player_Size | |
1282 | LeftArm.Size = LeftArm.Size * Player_Size | |
1283 | RightLeg.Size = RightLeg.Size * Player_Size | |
1284 | LeftLeg.Size = LeftLeg.Size * Player_Size | |
1285 | RootJoint.Parent = RootPart | |
1286 | Neck.Parent = Torso | |
1287 | RightShoulder.Parent = Torso | |
1288 | LeftShoulder.Parent = Torso | |
1289 | RightHip.Parent = Torso | |
1290 | LeftHip.Parent = Torso | |
1291 | ||
1292 | RootJoint.C0 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1293 | RootJoint.C1 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1294 | Neck.C0 = NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1295 | Neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
1296 | RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0 | |
1297 | LeftShoulder.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0 | |
1298 | if Disable_Moving_Arms == false then | |
1299 | RightShoulder.C1 = ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5) | |
1300 | LeftShoulder.C1 = ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5) | |
1301 | else | |
1302 | RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) | |
1303 | LeftShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) | |
1304 | end | |
1305 | RightHip.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1306 | LeftHip.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1307 | RightHip.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1308 | LeftHip.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1309 | end | |
1310 | ||
1311 | ||
1312 | --//=================================\\ | |
1313 | --\\=================================// | |
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | --//=================================\\ | |
1320 | --|| WEAPON CREATION | |
1321 | --\\=================================// | |
1322 | ||
1323 | local HandlePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Carnation pink", "Handle", VT(0, 0, 0)) | |
1324 | local HandleMesh = CreateMesh("SpecialMesh", HandlePart, "FileMesh", "93180631", "93180676", VT(1, 1, 1), VT(0, 3.1 * Player_Size, 0)) | |
1325 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Torso, HandlePart, CF(2 * Player_Size, 2 * Player_Size, 0.6 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(135)), CF(0, 0, 0)) | |
1326 | ||
1327 | local HitboxPart = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Carnation pink", "Hitbox", VT(0, 0, 0)) | |
1328 | local HitboxWeld = CreateWeldOrSnapOrMotor("Weld", HitboxPart, HandlePart, HitboxPart, CF(0 * Player_Size, 4 * Player_Size, 0 * Player_Size), CF(0, 0, 0)) | |
1329 | ||
1330 | local EffectPart = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Carnation pink", "Effect Part", VT(0, 0, 0)) | |
1331 | local EffectWeld = CreateWeldOrSnapOrMotor("Weld", EffectPart, HandlePart, EffectPart, CF(0 * Player_Size, 7 * Player_Size, 0 * Player_Size), CF(0, 0, 0)) | |
1332 | ||
1333 | if Player_Size ~= 1 then | |
1334 | for _, v in pairs (Weapon:GetChildren()) do | |
1335 | if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then | |
1336 | local p1 = v.Part1 | |
1337 | v.Part1 = nil | |
1338 | local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components() | |
1339 | v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12) | |
1340 | v.Part1 = p1 | |
1341 | elseif v.ClassName == "Part" then | |
1342 | for _, b in pairs (v:GetChildren()) do | |
1343 | if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then | |
1344 | b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size) | |
1345 | end | |
1346 | end | |
1347 | end | |
1348 | end | |
1349 | end | |
1350 | ||
1351 | for _, c in pairs(Weapon:GetChildren()) do | |
1352 | if c.ClassName == "Part" then | |
1353 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1354 | end | |
1355 | end | |
1356 | ||
1357 | if Start_Equipped == true and Start_Equipped_With_Equipped_Animation == false then | |
1358 | HandleWeld.Part0 = RightArm | |
1359 | HandleWeld.C0 = CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1360 | end | |
1361 | ||
1362 | Weapon.Parent = Character | |
1363 | ||
1364 | Humanoid.Died:connect(function() | |
1365 | ATTACK = true | |
1366 | end) | |
1367 | ||
1368 | print(Class_Name.." loaded.") | |
1369 | ||
1370 | --//=================================\\ | |
1371 | --\\=================================// | |
1372 | ||
1373 | ||
1374 | ||
1375 | ||
1376 | ||
1377 | --//=================================\\ | |
1378 | --|| DAMAGE FUNCTIONS | |
1379 | --\\=================================// | |
1380 | ||
1381 | function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR) | |
1382 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Carnation pink", "Effect", VT()) | |
1383 | STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0)) | |
1384 | local BODYGYRO = IT("BodyGyro", STATPART) | |
1385 | local BODYPOSITION = IT("BodyPosition", STATPART) | |
1386 | BODYPOSITION.P = 2000 | |
1387 | BODYPOSITION.D = 100 | |
1388 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
1389 | if LABELTYPE == "Normal" then | |
1390 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2)) | |
1391 | elseif LABELTYPE == "Debuff" then | |
1392 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2)) | |
1393 | elseif LABELTYPE == "Interruption" then | |
1394 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2)) | |
1395 | end | |
1396 | game:GetService("Debris"):AddItem(STATPART ,5) | |
1397 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) | |
1398 | BILLBOARDGUI.Adornee = STATPART | |
1399 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
1400 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
1401 | BILLBOARDGUI.AlwaysOnTop = false | |
1402 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
1403 | TEXTLABEL.BackgroundTransparency = 1 | |
1404 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
1405 | TEXTLABEL.Text = TEXT | |
1406 | TEXTLABEL.Font = "SourceSans" | |
1407 | TEXTLABEL.FontSize="Size42" | |
1408 | TEXTLABEL.TextColor3 = COLOR | |
1409 | TEXTLABEL.TextStrokeTransparency = 0 | |
1410 | TEXTLABEL.TextScaled = true | |
1411 | TEXTLABEL.TextWrapped = true | |
1412 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
1413 | wait(0.2) | |
1414 | for i=1, 5 do | |
1415 | wait() | |
1416 | THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0) | |
1417 | end | |
1418 | wait(1.2) | |
1419 | for i=1, 5 do | |
1420 | wait() | |
1421 | THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2 | |
1422 | THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2 | |
1423 | THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0) | |
1424 | end | |
1425 | THEPART.Parent = nil | |
1426 | end),STATPART, BODYPOSITION, TEXTLABEL) | |
1427 | end | |
1428 | ||
1429 | function IncreaseOrDecreaseStat(LOCATION, STAT, AMOUNT, DURATION, SHOWTHESTAT) | |
1430 | if LOCATION:FindFirstChild("Stats") ~= nil then | |
1431 | if LOCATION.Stats:FindFirstChild("Block") ~= nil then | |
1432 | if LOCATION.Stats:FindFirstChild("Block").Value == true then | |
1433 | return | |
1434 | end | |
1435 | end | |
1436 | if LOCATION.Stats:FindFirstChild("ChangeStat") ~= nil and LOCATION.Stats:FindFirstChild("Block").Value == false then | |
1437 | local NewStatChange = IT("NumberValue") | |
1438 | NewStatChange.Value = AMOUNT | |
1439 | if STAT == "Defense" then | |
1440 | NewStatChange.Name = "ChangeDefense" | |
1441 | elseif STAT == "Damage" then | |
1442 | NewStatChange.Name = "ChangeDamage" | |
1443 | elseif STAT == "Movement" then | |
1444 | NewStatChange.Name = "ChangeMovement" | |
1445 | end | |
1446 | if SHOWTHESTAT == true then | |
1447 | if AMOUNT < 0 then | |
1448 | StatLabel("Debuff", LOCATION.Head.CFrame * CF(0, 0 + (LOCATION.Head.Size.z - 1), 0), "-"..STAT, C3(1, 1, 1)) | |
1449 | elseif AMOUNT > 0 then | |
1450 | StatLabel("Debuff", LOCATION.Head.CFrame * CF(0, 0 + (LOCATION.Head.Size.z - 1), 0), "+"..STAT, C3(1, 1, 1)) | |
1451 | end | |
1452 | end | |
1453 | if DURATION ~= nil and DURATION ~= 0 then | |
1454 | local StatDuration = IT("NumberValue") | |
1455 | StatDuration.Name = "Duration" | |
1456 | StatDuration.Value = DURATION | |
1457 | StatDuration.Parent = NewStatChange | |
1458 | end | |
1459 | NewStatChange.Parent = LOCATION.Stats:FindFirstChild("ChangeStat") | |
1460 | end | |
1461 | end | |
1462 | end | |
1463 | ||
1464 | --Usage: DamageFunction(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, hit, false, 5, 10, MRANDOM(5, 10), "Normal", Part, 0.5, false, true, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false) | |
1465 | function DamageFunction(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, HIT, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, DECREASETHESTAT, DECREASEAMOUNT, DECREASEDURATION, SHOWDECREASEDSTAT) | |
1466 | if HIT.Parent == nil then | |
1467 | return | |
1468 | end | |
1469 | local HITHUMANOID = HIT.Parent:FindFirstChild("Humanoid") | |
1470 | for _, v in pairs(HIT.Parent:GetChildren()) do | |
1471 | if v:IsA("Humanoid") then | |
1472 | HITHUMANOID = v | |
1473 | end | |
1474 | end | |
1475 | if HIT.Name == "Hitbox" and RANGED ~= true and HIT.Parent ~= Weapon and Enable_Stagger_Hit == true then | |
1476 | StaggerHit.Value = true | |
1477 | if Play_Hitbox_Hit_Sound == true then | |
1478 | if HITWEAPONSOUND ~= "" and HITWEAPONSOUND ~= "nil" then | |
1479 | CreateSound(HITWEAPONSOUND, HIT, 1, HITWEAPONSOUNDPITCH) | |
1480 | end | |
1481 | end | |
1482 | return | |
1483 | end | |
1484 | if HIT.Parent.Parent:FindFirstChild("Torso") ~= nil or HIT.Parent.Parent:FindFirstChild("UpperTorso") ~= nil then | |
1485 | HITHUMANOID = HIT.Parent.Parent:FindFirstChild("Humanoid") | |
1486 | end | |
1487 | if HIT.Parent.ClassName == "Hat" or HIT.ClassName == "Accessory" then | |
1488 | HIT = HIT.Parent.Parent:FindFirstChild("Head") | |
1489 | end | |
1490 | if HITHUMANOID ~= nil and HIT.Parent.Name ~= Character.Name and (HIT.Parent:FindFirstChild("Torso") ~= nil or HIT.Parent:FindFirstChild("UpperTorso") ~= nil) then | |
1491 | if HIT.Parent:FindFirstChild("DebounceHit") ~= nil then | |
1492 | if HIT.Parent.DebounceHit.Value == true then | |
1493 | return | |
1494 | end | |
1495 | end | |
1496 | if AntiTeamKill.Value == true then | |
1497 | if Player.Neutral == false and game.Players:GetPlayerFromCharacter(HIT.Parent) ~= nil then | |
1498 | if game.Players:GetPlayerFromCharacter(HIT.Parent).TeamColor == Player.TeamColor then | |
1499 | return | |
1500 | end | |
1501 | end | |
1502 | end | |
1503 | if HITEVENWHENDEAD == false then | |
1504 | if HIT.Parent:FindFirstChild("Humanoid") ~= nil then | |
1505 | if HIT.Parent:FindFirstChild("Humanoid").Health <= 0 then | |
1506 | return | |
1507 | end | |
1508 | end | |
1509 | end | |
1510 | if HIT.Parent:FindFirstChild("Stats") ~= nil then | |
1511 | if HIT.Parent.Stats:FindFirstChild("StunValue") ~= nil then | |
1512 | HIT.Parent.Stats:FindFirstChild("StunValue").Value = HIT.Parent.Stats:FindFirstChild("StunValue").Value + INCREASESTUN | |
1513 | end | |
1514 | end | |
1515 | if HIT.Parent:FindFirstChild("Stats") ~= nil then | |
1516 | if HIT.Parent.Stats:FindFirstChild("Stagger") ~= nil then | |
1517 | if STAGGER == true and Enable_Stagger == true then | |
1518 | HIT.Parent.Stats:FindFirstChild("Stagger").Value = true | |
1519 | end | |
1520 | end | |
1521 | end | |
1522 | if HIT.Parent:FindFirstChild("Stats") ~= nil then | |
1523 | if HIT.Parent.Stats:FindFirstChild("Block") ~= nil then | |
1524 | if HIT.Parent.Stats:FindFirstChild("Block").Value == true then | |
1525 | HASBEENBLOCKED = true | |
1526 | if HIT.Parent.Stats:FindFirstChild("Block"):FindFirstChild("BlockDebounce") == nil then | |
1527 | StatLabel("Interruption", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Blocked!", C3(0, 100 / 255, 255 / 255)) | |
1528 | if RANGED ~= true then | |
1529 | if HITBLOCKSOUND ~= "" and HITBLOCKSOUND ~= "nil" then | |
1530 | CreateSound(HITBLOCKSOUND, HIT, 1, HITBLOCKSOUNDPITCH) | |
1531 | end | |
1532 | end | |
1533 | local BlockDebounce = IT("BoolValue", HIT.Parent.Stats:FindFirstChild("Block")) | |
1534 | BlockDebounce.Name = "BlockDebounce" | |
1535 | BlockDebounce.Value = true | |
1536 | if RANGED ~= true then | |
1537 | game:GetService("Debris"):AddItem(BlockDebounce, 0.5) | |
1538 | else | |
1539 | game:GetService("Debris"):AddItem(BlockDebounce, 0.1) | |
1540 | end | |
1541 | end | |
1542 | if RANGED ~= true and Enable_Stagger == true then | |
1543 | HIT.Parent.Stats:FindFirstChild("Block").Value = false | |
1544 | Stagger.Value = true | |
1545 | end | |
1546 | return | |
1547 | end | |
1548 | end | |
1549 | end | |
1550 | if DECREASETHESTAT ~= nil then | |
1551 | if HIT.Parent:FindFirstChild("Stats") ~= nil then | |
1552 | IncreaseOrDecreaseStat(HIT.Parent, DECREASETHESTAT, DECREASEAMOUNT, DECREASEDURATION, SHOWDECREASEDSTAT) | |
1553 | end | |
1554 | end | |
1555 | local DAMAGE = MRANDOM(MINIMUMDAMAGE,MAXIMUMDAMAGE) * Damage.Value | |
1556 | if HIT.Parent:FindFirstChild("Stats") ~= nil then | |
1557 | if HIT.Parent.Stats:FindFirstChild("Defense") ~= nil then | |
1558 | if CanPenetrateArmor.Value == true then | |
1559 | DAMAGE = DAMAGE | |
1560 | else | |
1561 | DAMAGE = DAMAGE / HIT.Parent.Stats:FindFirstChild("Defense").Value | |
1562 | end | |
1563 | elseif HIT.Parent.Stats:FindFirstChild("Defense") == nil then | |
1564 | DAMAGE = DAMAGE | |
1565 | end | |
1566 | end | |
1567 | if CanCrit.Value == true then | |
1568 | CRITCHANCENUMBER = MRANDOM(1, CritChance.Value) | |
1569 | if CRITCHANCENUMBER == 1 then | |
1570 | DAMAGE = DAMAGE * 2 | |
1571 | end | |
1572 | end | |
1573 | DAMAGE = math.floor(DAMAGE) | |
1574 | if DAMAGE <= 3 and HASBEENBLOCKED == false then | |
1575 | if STAGGERHIT == true and Enable_Stagger_Hit == true and RANGED ~= true then | |
1576 | StaggerHit.Value = true | |
1577 | end | |
1578 | if HITARMORSOUND ~= "" and HITARMORSOUND ~= "nil" then | |
1579 | end | |
1580 | elseif DAMAGE > 3 and DAMAGE < 100 and HASBEENBLOCKED == false then | |
1581 | if HITPLAYERSOUND ~= "" and HITPLAYERSOUND ~= "nil" then | |
1582 | end | |
1583 | end | |
1584 | if DAMAGE > 3 and DAMAGE < 20 and HASBEENBLOCKED == false then | |
1585 | HITHUMANOID.MaxHealth = 100 | |
1586 | HITHUMANOID.Health = HITHUMANOID.Health - DAMAGE | |
1587 | if CanCrit.Value == true and CRITCHANCENUMBER == 1 then | |
1588 | StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Crit! \n"..DAMAGE, C3(200/255, 0, 0)) | |
1589 | else | |
1590 | StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), DAMAGE, C3(255/255, 220/255, 0)) | |
1591 | end | |
1592 | elseif DAMAGE >= 20 and DAMAGE < 100 and HASBEENBLOCKED == false then | |
1593 | HITHUMANOID.MaxHealth = 100 | |
1594 | HITHUMANOID.Health = HITHUMANOID.Health - DAMAGE | |
1595 | if CanCrit.Value == true and CRITCHANCENUMBER == 1 then | |
1596 | StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Crit! \n"..DAMAGE, C3(200/255, 0, 0)) | |
1597 | else | |
1598 | StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), DAMAGE, C3(255/255, 0, 0)) | |
1599 | end | |
1600 | elseif DAMAGE == 100 then | |
1601 | local part = Instance.new("Part") | |
1602 | part.Anchored = true | |
1603 | part.CanCollide = false | |
1604 | part.Transparency = 1 | |
1605 | part.CFrame = HIT.CFrame | |
1606 | part.Parent = Effects | |
1607 | game:GetService("Debris"):AddItem(part, 5) | |
1608 | for i = 1, 15 do | |
1609 | BreakEffect(BrickColor.new("Black"),part.CFrame,0.5,math.random(5,20),0.5,BrickColor.new("White")) | |
1610 | end | |
1611 | CreateSound("215395073", part, 1, 1) | |
1612 | StatLabel("Normal", part.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), ".char deleted", C3(225/255, 0/255, 0/255)) | |
1613 | HIT.Parent:remove() | |
1614 | elseif DAMAGE == 0 then | |
1615 | CreateSound("260433557", HIT, 1, 1) | |
1616 | StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Script broken", C3(0/255, 0/255, 0/255)) | |
1617 | h = HIT.Parent:GetChildren() | |
1618 | for i = 1, #h do | |
1619 | if h[i].ClassName == "Part" then | |
1620 | h[i].Anchored = true | |
1621 | elseif h[i].ClassName == "Script" then | |
1622 | h[i]:Destroy() | |
1623 | end | |
1624 | end | |
1625 | elseif DAMAGE == 1 then | |
1626 | StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), ".char file backup", C3(0/255, 255/255, 0/255)) | |
1627 | HITHUMANOID.MaxHealth = "inf" | |
1628 | HITHUMANOID.Health = "inf" | |
1629 | for i = 1, 5 do | |
1630 | BreakEffect(BrickColor.new("Black"),HIT.CFrame,0.5,math.random(5,20),0.5,BrickColor.new("Carnation pink")) | |
1631 | end | |
1632 | elseif DAMAGE == 2 then | |
1633 | if game.Players:FindFirstChild(HIT.Parent.Name) then | |
1634 | local granted = script:Clone() | |
1635 | HITHUMANOID.MaxHealth = "inf" | |
1636 | HITHUMANOID.Health = "inf" | |
1637 | g = Instance.new("Folder") | |
1638 | g.Parent = HIT.Parent | |
1639 | g.Name = "Granted" | |
1640 | granted.Parent = HIT.Parent.Torso | |
1641 | granted.Disabled = false | |
1642 | CreateSound("3264923", HIT, 1, 1) | |
1643 | CreateSound("814168787", HIT, 1, 1) | |
1644 | end | |
1645 | end | |
1646 | if TYPE == "Normal" then | |
1647 | local vp = IT("BodyVelocity") | |
1648 | vp.P=500 | |
1649 | vp.maxForce = VT(math.huge, 0, math.huge) | |
1650 | if KNOCKBACKTYPE == 1 then | |
1651 | vp.Velocity = PROPERTY.CFrame.lookVector * KNOCKBACK + PROPERTY.Velocity / 1.05 | |
1652 | elseif KNOCKBACKTYPE == 2 then | |
1653 | vp.Velocity = PROPERTY.CFrame.lookVector * KNOCKBACK | |
1654 | end | |
1655 | if KNOCKBACK > 0 and HASBEENBLOCKED == false then | |
1656 | vp.Parent = HIT--.Parent.Torso | |
1657 | end | |
1658 | game:GetService("Debris"):AddItem(vp, 0.5) | |
1659 | end | |
1660 | HASBEENBLOCKED = false | |
1661 | RecentEnemy.Value = HIT.Parent | |
1662 | local DebounceHit = IT("BoolValue", HIT.Parent) | |
1663 | DebounceHit.Name = "DebounceHit" | |
1664 | DebounceHit.Value = true | |
1665 | game:GetService("Debris"):AddItem(DebounceHit, DELAY) | |
1666 | end | |
1667 | end | |
1668 | ||
1669 | --Usage: MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, Part, 5, true, 5, 10, MRANDOM(5, 10), "Normal", Part, 0.5, false, true, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false) | |
1670 | function MagnitudeDamage(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, PART, MAGNITUDE, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, MAGNITUDEDECREASETHESTAT, MAGNITUDEDECREASEAMOUNT, MAGNITUDEDECREASEDURATION, MAGNITUDESHOWDECREASEDSTAT) | |
1671 | for _, c in pairs(workspace:GetChildren()) do | |
1672 | local HUMANOID = c:FindFirstChild("Humanoid") | |
1673 | local HEAD = nil | |
1674 | if HUMANOID ~= nil then | |
1675 | for _, d in pairs(c:GetChildren()) do | |
1676 | if d.ClassName == "Model" and RANGED ~= true then | |
1677 | HEAD = d:FindFirstChild("Hitbox") | |
1678 | if HEAD ~= nil then | |
1679 | local THEMAGNITUDE = (HEAD.Position - PART.Position).magnitude | |
1680 | if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and c.Name ~= Player.Name then | |
1681 | if Play_Hitbox_Hit_Sound == true then | |
1682 | local HitRefpart = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Carnation pink", "Effect", VT()) | |
1683 | HitRefpart.Anchored = true | |
1684 | HitRefpart.CFrame = CF(HEAD.Position) | |
1685 | CreateSound(HITWEAPONSOUND, HitRefpart, 1, HITWEAPONSOUNDPITCH) | |
1686 | end | |
1687 | if Enable_Stagger_Hit == true then | |
1688 | StaggerHit.Value = true | |
1689 | end | |
1690 | end | |
1691 | end | |
1692 | elseif d:IsA"BasePart" then | |
1693 | HEAD = d | |
1694 | if HEAD ~= nil then | |
1695 | local THEMAGNITUDE = (HEAD.Position - PART.Position).magnitude | |
1696 | if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and c.Name ~= Player.Name then | |
1697 | DamageFunction(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, HEAD, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, MAGNITUDEDECREASETHESTAT, MAGNITUDEDECREASEAMOUNT, MAGNITUDEDECREASEDURATION, MAGNITUDESHOWDECREASEDSTAT) | |
1698 | end | |
1699 | end | |
1700 | end | |
1701 | end | |
1702 | end | |
1703 | end | |
1704 | end | |
1705 | ||
1706 | --Usage: MagnitudeBuffOrDebuff(Part, 5, "Defense", -0.1, 3, true, true) | |
1707 | function MagnitudeBuffOrDebuff(PART, MAGNITUDE, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF, APPLYTOOTHERSINSTEAD) | |
1708 | if Player.Neutral == true then | |
1709 | IncreaseOrDecreaseStat(Character, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF) | |
1710 | end | |
1711 | for _, c in pairs(workspace:GetChildren()) do | |
1712 | local HUMANOID = c:FindFirstChild("Humanoid") | |
1713 | local THEHEAD = nil | |
1714 | if HUMANOID ~= nil then | |
1715 | if c:FindFirstChild("Torso") ~= nil then | |
1716 | THEHEAD = c:FindFirstChild("Torso") | |
1717 | elseif c:FindFirstChild("UpperTorso") ~= nil then | |
1718 | THEHEAD = c:FindFirstChild("UpperTorso") | |
1719 | end | |
1720 | if THEHEAD ~= nil then | |
1721 | local THEMAGNITUDE = (THEHEAD.Position - PART.Position).magnitude | |
1722 | print("yes 1") | |
1723 | if APPLYTOOTHERSINSTEAD == true then | |
1724 | if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and c.Name ~= Player.Name then | |
1725 | if Player.Neutral == false and game.Players:GetPlayerFromCharacter(THEHEAD.Parent) ~= nil then | |
1726 | if game.Players:GetPlayerFromCharacter(THEHEAD.Parent).TeamColor == Player.TeamColor then | |
1727 | IncreaseOrDecreaseStat(THEHEAD.Parent, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF) | |
1728 | end | |
1729 | end | |
1730 | end | |
1731 | elseif APPLYTOOTHERSINSTEAD == false then | |
1732 | if THEMAGNITUDE <= (MAGNITUDE * Player_Size) then | |
1733 | if Player.Neutral == false and game.Players:GetPlayerFromCharacter(THEHEAD.Parent) ~= nil then | |
1734 | if game.Players:GetPlayerFromCharacter(THEHEAD.Parent).TeamColor == Player.TeamColor then | |
1735 | IncreaseOrDecreaseStat(THEHEAD.Parent, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF) | |
1736 | end | |
1737 | end | |
1738 | end | |
1739 | end | |
1740 | end | |
1741 | end | |
1742 | end | |
1743 | end | |
1744 | ||
1745 | --//=================================\\ | |
1746 | --\\=================================// | |
1747 | ||
1748 | ||
1749 | ||
1750 | ||
1751 | ||
1752 | --//=================================\\ | |
1753 | --|| WEAPON GUI | |
1754 | --\\=================================// | |
1755 | ||
1756 | local MANABAR = CreateFrame(WEAPONGUI, Mana_Bar_Background_Transparency, 2, UD2(0.23, 0, 0.82, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_8.r, Custom_Colors.Custom_Color_8.g, Custom_Colors.Custom_Color_8.b), C3(0, 0, 0),"Mana Bar") | |
1757 | local MANACOVER = CreateFrame(MANABAR, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_5.r, Custom_Colors.Custom_Color_5.g, Custom_Colors.Custom_Color_5.b), C3(0, 0, 0),"Mana Cover") | |
1758 | local MANATEXT = CreateLabel(MANABAR, Mana_Name.." ["..FLOOR(Mana.Value).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Mana Text") | |
1759 | ||
1760 | local HEALTHBAR = CreateFrame(WEAPONGUI, Health_Bar_Background_Transparency, 2, UD2(0.5, 0, 0.82, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_11.r, Custom_Colors.Custom_Color_11.g, Custom_Colors.Custom_Color_11.b), C3(0, 0, 0), "Health Bar") | |
1761 | local HEALTHCOVER = CreateFrame(HEALTHBAR, 0, 2,UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_6.r, Custom_Colors.Custom_Color_6.g, Custom_Colors.Custom_Color_6.b), C3(0, 0, 0), "Health Cover") | |
1762 | local HEALTHTEXT = CreateLabel(HEALTHBAR, "Health ["..FLOOR(Humanoid.Health).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Health Text") | |
1763 | ||
1764 | local STUNFRAME = CreateFrame(nil, Stun_Bar_Background_Transparency, 2, UD2(0.5, 0, 0.78, 0),UD2(0.26, 0, 0, 0),C3(Custom_Colors.Custom_Color_10.r, Custom_Colors.Custom_Color_10.g, Custom_Colors.Custom_Color_10.b), C3(0, 0, 0), "Stun Frame") | |
1765 | local STUNBAR = CreateFrame(STUNFRAME, 0, 2, UD2(0, 0, 0, 0),UD2(0, 0, 1, 0),C3(Custom_Colors.Custom_Color_7.r, Custom_Colors.Custom_Color_7.g, Custom_Colors.Custom_Color_7.b), C3(0, 0, 0), "Stun Bar") | |
1766 | local STUNTEXT = CreateLabel(STUNFRAME, "Stun ["..FLOOR(StunValue.Value).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Stun Text") | |
1767 | ||
1768 | local SECONDARYMANABAR = CreateFrame(nil, Secondary_Mana_Bar_Background_Transparency, 2, UD2(0.23, 0, 0.78, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_9.r, Custom_Colors.Custom_Color_9.g, Custom_Colors.Custom_Color_9.b), C3(0, 0, 0),"Secondary Mana Bar") | |
1769 | local SECONDARYMANACOVER = CreateFrame(SECONDARYMANABAR, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_4.r, Custom_Colors.Custom_Color_4.g, Custom_Colors.Custom_Color_4.b), C3(0, 0, 0),"Secondary Mana Cover") | |
1770 | local SECONDARYMANATEXT = CreateLabel(SECONDARYMANABAR, Secondary_Mana_Name.." ["..FLOOR(SecondaryMana.Value).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Secondary Mana Text") | |
1771 | ||
1772 | local DEFENSEFRAME = CreateFrame(nil, Stat_Background_Transparency, 2, UD2(0.23, 0, Stat_Offset, 0), UD2(0.075, 0, 0, 0), C3(100 / 255, 100 / 255, 255 / 255), C3(0, 0, 0),"Defense Frame") | |
1773 | local DEFENSETEXT = CreateLabel(DEFENSEFRAME, "Defense ["..(Defense.Value * 100).."%]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Defense Text") | |
1774 | ||
1775 | local DAMAGEFRAME = CreateFrame(nil, Stat_Background_Transparency, 2, UD2(0.456, 0, Stat_Offset, 0), UD2(0.075, 0, 0, 0), C3(255 / 255, 100 / 255, 100 / 255), C3(0, 0, 0),"Damage Frame") | |
1776 | local DAMAGETEXT = CreateLabel(DAMAGEFRAME, "Damage ["..(Damage.Value * 100).."%]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Damage Text") | |
1777 | ||
1778 | local MOVEMENTFRAME = CreateFrame(nil, Stat_Background_Transparency, 2, UD2(0.685, 0, Stat_Offset, 0), UD2(0.075, 0, 0, 0), C3(100 / 255, 255 / 255, 100 / 255), C3(0, 0, 0),"Movement Frame") | |
1779 | local MOVEMENTTEXT = CreateLabel(MOVEMENTFRAME, "Movement ["..(Movement.Value * 100).."%]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Movement Text") | |
1780 | ||
1781 | local SKILL1FRAME = CreateFrame(nil, Ability_Background_Transparency, 2, UD2(0.23, 0, 0.86, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_12.r, Custom_Colors.Custom_Color_12.g, Custom_Colors.Custom_Color_12.b), C3(0, 0, 0), "Skill 1 Frame") | |
1782 | local SKILL2FRAME = CreateFrame(nil, Ability_Background_Transparency, 2, UD2(0.50, 0, 0.86, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_12.r, Custom_Colors.Custom_Color_12.g, Custom_Colors.Custom_Color_12.b), C3(0, 0, 0), "Skill 2 Frame") | |
1783 | local SKILL3FRAME = CreateFrame(nil, Ability_Background_Transparency, 2, UD2(0.23, 0, 0.93, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_12.r, Custom_Colors.Custom_Color_12.g, Custom_Colors.Custom_Color_12.b), C3(0, 0, 0), "Skill 3 Frame") | |
1784 | local SKILL4FRAME = CreateFrame(nil, Ability_Background_Transparency, 2, UD2(0.50, 0, 0.93, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_12.r, Custom_Colors.Custom_Color_12.g, Custom_Colors.Custom_Color_12.b), C3(0, 0, 0), "Skill 4 Frame") | |
1785 | ||
1786 | local SKILL1BAR = CreateFrame(SKILL1FRAME, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_3.r, Custom_Colors.Custom_Color_3.g, Custom_Colors.Custom_Color_3.b), C3(0, 0, 0), "Skill 1 Bar") | |
1787 | local SKILL2BAR = CreateFrame(SKILL2FRAME, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_3.r, Custom_Colors.Custom_Color_3.g, Custom_Colors.Custom_Color_3.b), C3(0, 0, 0), "Skill 2 Bar") | |
1788 | local SKILL3BAR = CreateFrame(SKILL3FRAME, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_3.r, Custom_Colors.Custom_Color_3.g, Custom_Colors.Custom_Color_3.b), C3(0, 0, 0), "Skill 3 Bar") | |
1789 | local SKILL4BAR = CreateFrame(SKILL4FRAME, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_3.r, Custom_Colors.Custom_Color_3.g, Custom_Colors.Custom_Color_3.b), C3(0, 0, 0), "Skill 4 Bar") | |
1790 | ||
1791 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Ability 1", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 1") | |
1792 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[X] Ability 2", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 2") | |
1793 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 3") | |
1794 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 4") | |
1795 | ||
1796 | if Enable_Gui == true then | |
1797 | WEAPONGUI.Parent = PlayerGui | |
1798 | end | |
1799 | ||
1800 | if Enable_Stats == true and Show_Stats == true then | |
1801 | DEFENSEFRAME.Parent = WEAPONGUI | |
1802 | DAMAGEFRAME.Parent = WEAPONGUI | |
1803 | MOVEMENTFRAME.Parent = WEAPONGUI | |
1804 | end | |
1805 | ||
1806 | if Enable_Secondary_Bar == true then | |
1807 | SECONDARYMANABAR.Parent = WEAPONGUI | |
1808 | end | |
1809 | ||
1810 | if Enable_Abilities == true then | |
1811 | SKILL1FRAME.Parent = WEAPONGUI | |
1812 | SKILL2FRAME.Parent = WEAPONGUI | |
1813 | SKILL3FRAME.Parent = WEAPONGUI | |
1814 | SKILL4FRAME.Parent = WEAPONGUI | |
1815 | end | |
1816 | ||
1817 | if Enable_Stun == true then | |
1818 | STUNFRAME.Parent = WEAPONGUI | |
1819 | end | |
1820 | ||
1821 | function UpdateGUI() | |
1822 | MANABAR:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
1823 | MANACOVER:TweenSize(UD2(1 * (Mana.Value / Max_Mana), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
1824 | MANATEXT.Text = Mana_Name.." ["..FLOOR(Mana.Value).."]" | |
1825 | HEALTHBAR:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
1826 | HEALTHCOVER:TweenSize(UD2(1 * (Humanoid.Health / Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
1827 | HEALTHTEXT.Text = "Health ["..FLOOR(Humanoid.Health).."]" | |
1828 | if Enable_Abilities == true then | |
1829 | SKILL1FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
1830 | SKILL2FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
1831 | SKILL3FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
1832 | SKILL4FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
1833 | SKILL1BAR:TweenSize(UD2(1 * (CO1 / Cooldown_1), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
1834 | SKILL2BAR:TweenSize(UD2(1 * (CO2 / Cooldown_2), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
1835 | SKILL3BAR:TweenSize(UD2(1 * (CO3 / Cooldown_3), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
1836 | SKILL4BAR:TweenSize(UD2(1 * (CO4 / Cooldown_4), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
1837 | end | |
1838 | if Enable_Stats == true and Show_Stats == true then | |
1839 | DEFENSEFRAME:TweenSize(UD2(0.075, 0, 0.03), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
1840 | DEFENSETEXT.Text = "Defense ["..(Defense.Value * 100).."%]" | |
1841 | DAMAGEFRAME:TweenSize(UD2(0.075, 0, 0.03), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
1842 | DAMAGETEXT.Text = "Damage ["..(Damage.Value * 100).."%]" | |
1843 | MOVEMENTFRAME:TweenSize(UD2(0.075, 0, 0.03), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
1844 | MOVEMENTTEXT.Text = "Movement ["..(Movement.Value * 100).."%]" | |
1845 | end | |
1846 | if Enable_Stun == true then | |
1847 | STUNFRAME:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
1848 | STUNBAR:TweenSize(UD2(1 * (StunValue.Value / Max_Stun), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
1849 | STUNTEXT.Text = "Stun ["..FLOOR(StunValue.Value).."]" | |
1850 | end | |
1851 | if Enable_Secondary_Bar == true then | |
1852 | SECONDARYMANABAR:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
1853 | SECONDARYMANACOVER:TweenSize(UD2(1 * (SecondaryMana.Value / Max_Secondary_Mana), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
1854 | SECONDARYMANATEXT.Text = Secondary_Mana_Name.." ["..FLOOR(SecondaryMana.Value).."]" | |
1855 | end | |
1856 | end | |
1857 | ||
1858 | if Enable_Gui == true then | |
1859 | UpdateGUI() | |
1860 | for _, v in pairs (WEAPONGUI:GetChildren()) do | |
1861 | if v.ClassName == "Frame" then | |
1862 | for _, b in pairs (v:GetChildren()) do | |
1863 | if b.ClassName == "TextLabel" then | |
1864 | coroutine.resume(coroutine.create(function(THETEXTLABEL) | |
1865 | wait(Menu_Update_Speed) | |
1866 | for i = 1, 0, -0.1 do | |
1867 | Swait() | |
1868 | THETEXTLABEL.TextTransparency = i | |
1869 | THETEXTLABEL.TextStrokeTransparency = i | |
1870 | end | |
1871 | THETEXTLABEL.TextTransparency = 0 | |
1872 | THETEXTLABEL.TextStrokeTransparency = 0 | |
1873 | end), b) | |
1874 | end | |
1875 | end | |
1876 | end | |
1877 | end | |
1878 | end | |
1879 | ||
1880 | --//=================================\\ | |
1881 | --\\=================================// | |
1882 | ||
1883 | ||
1884 | ||
1885 | ||
1886 | ||
1887 | --//=================================\\ | |
1888 | --|| SKILL FUNCTIONS | |
1889 | --\\=================================// | |
1890 | ||
1891 | function UpdateSkillsAndStuff() | |
1892 | if Mana_Regen_Mode == "1" then | |
1893 | if Mana.Value >= Max_Mana then | |
1894 | Mana.Value = Max_Mana | |
1895 | elseif Mana.Value < 0 then | |
1896 | Mana.Value = 0 | |
1897 | else | |
1898 | if MANADELAYNUMBER <= Mana_Wait then | |
1899 | MANADELAYNUMBER = MANADELAYNUMBER + 1 | |
1900 | else | |
1901 | MANADELAYNUMBER = 0 | |
1902 | Mana.Value = Mana.Value + Recover_Mana | |
1903 | end | |
1904 | end | |
1905 | elseif Mana_Regen_Mode == "2" then | |
1906 | if Mana.Value <= Max_Mana then | |
1907 | Mana.Value = Mana.Value + (Recover_Mana / 30) / Animation_Speed | |
1908 | elseif Mana.Value >= Max_Mana then | |
1909 | Mana.Value = Max_Mana | |
1910 | elseif Mana.Value < 0 then | |
1911 | Mana.Value = 0 | |
1912 | end | |
1913 | end | |
1914 | if Enable_Secondary_Bar == true then | |
1915 | if Secondary_Mana_Regen_Mode == "1" then | |
1916 | if SecondaryMana.Value >= Max_Secondary_Mana then | |
1917 | SecondaryMana.Value = Max_Secondary_Mana | |
1918 | elseif SecondaryMana.Value < 0 then | |
1919 | SecondaryMana.Value = 0 | |
1920 | else | |
1921 | if SECONDARYMANADELAYNUMBER <= Secondary_Mana_Wait then | |
1922 | SECONDARYMANADELAYNUMBER = SECONDARYMANADELAYNUMBER + 1 | |
1923 | else | |
1924 | SECONDARYMANADELAYNUMBER = 0 | |
1925 | SecondaryMana.Value = SecondaryMana.Value + Recover_Secondary_Mana | |
1926 | end | |
1927 | end | |
1928 | elseif Secondary_Mana_Regen_Mode == "2" then | |
1929 | if SecondaryMana.Value <= Max_Secondary_Mana then | |
1930 | SecondaryMana.Value = SecondaryMana.Value + (Recover_Secondary_Mana / 30) / Animation_Speed | |
1931 | elseif SecondaryMana.Value >= Max_Secondary_Mana then | |
1932 | SecondaryMana.Value = Max_Secondary_Mana | |
1933 | elseif SecondaryMana.Value < 0 then | |
1934 | SecondaryMana.Value = 0 | |
1935 | end | |
1936 | end | |
1937 | else | |
1938 | SecondaryMana.Value = 0 | |
1939 | end | |
1940 | if Enable_Stun == true then | |
1941 | if Stun_Lose_Mode == "1" then | |
1942 | if StunValue.Value > Max_Stun then | |
1943 | StunValue.Value = Max_Stun | |
1944 | elseif StunValue.Value <= 0 then | |
1945 | StunValue.Value = 0 | |
1946 | else | |
1947 | if STUNDELAYNUMBER <= Stun_Wait then | |
1948 | STUNDELAYNUMBER = STUNDELAYNUMBER + 1 | |
1949 | else | |
1950 | STUNDELAYNUMBER = 0 | |
1951 | StunValue.Value = StunValue.Value - Lose_Stun | |
1952 | end | |
1953 | end | |
1954 | elseif Stun_Lose_Mode == "2" then | |
1955 | if StunValue.Value <= Max_Stun and StunValue.Value > 0 then | |
1956 | StunValue.Value = StunValue.Value - (Lose_Stun / 30) / Animation_Speed | |
1957 | elseif StunValue.Value > Max_Stun then | |
1958 | StunValue.Value = Max_Stun | |
1959 | elseif StunValue.Value <= 0 then | |
1960 | StunValue.Value = 0 | |
1961 | end | |
1962 | end | |
1963 | else | |
1964 | StunValue.Value = 0 | |
1965 | end | |
1966 | if Enable_Abilities == true then | |
1967 | if CO1 <= Cooldown_1 then | |
1968 | CO1 = CO1 + (1 / 30) / Animation_Speed | |
1969 | elseif CO1 >= Cooldown_1 then | |
1970 | CO1 = Cooldown_1 | |
1971 | end | |
1972 | if CO2 <= Cooldown_2 then | |
1973 | CO2 = CO2 + (1 / 30) / Animation_Speed | |
1974 | elseif CO2 >= Cooldown_2 then | |
1975 | CO2 = Cooldown_2 | |
1976 | end | |
1977 | if CO3 <= Cooldown_3 then | |
1978 | CO3 = CO3 + (1 / 30) / Animation_Speed | |
1979 | elseif CO3 >= Cooldown_3 then | |
1980 | CO3 = Cooldown_3 | |
1981 | end | |
1982 | if CO4 <= Cooldown_4 then | |
1983 | CO4 = CO4 + (1 / 30) / Animation_Speed | |
1984 | elseif CO4 >= Cooldown_4 then | |
1985 | CO4 = Cooldown_4 | |
1986 | end | |
1987 | end | |
1988 | end | |
1989 | ||
1990 | --//=================================\\ | |
1991 | --\\=================================// | |
1992 | ||
1993 | ||
1994 | function NewEffect(cframe,name,colour,meshid,texture,scale) | |
1995 | local part = Instance.new("Part") | |
1996 | part.Size = Vector3.new(1,1,1) | |
1997 | part.CFrame = cframe | |
1998 | part.Name = "Part" | |
1999 | part.BrickColor = colour | |
2000 | part.Parent = Effects | |
2001 | part.Anchored = true | |
2002 | part.CanCollide = false | |
2003 | local emesh = Instance.new("SpecialMesh") | |
2004 | emesh.MeshId = meshid | |
2005 | emesh.TextureId = texture | |
2006 | emesh.Parent = part | |
2007 | emesh.Scale = scale | |
2008 | end | |
2009 | ||
2010 | ||
2011 | --//=================================\\ | |
2012 | --|| ATTACK FUNCTIONS AND STUFF | |
2013 | --\\=================================// | |
2014 | ||
2015 | function StaggerHitAnimation() | |
2016 | ATTACK = true | |
2017 | if Weapon:FindFirstChild("Hitbox") ~= nil then | |
2018 | for i = 1, MRANDOM(2, 4) do | |
2019 | ClangEffect("Bright yellow", "Neon", CF(Weapon:FindFirstChild("Hitbox").Position) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), 20, 5, 0.2, MRANDOM(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1) | |
2020 | end | |
2021 | end | |
2022 | for i = 0, 1, 0.1 / Animation_Speed do | |
2023 | Swait() | |
2024 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-10), RAD(0), RAD(-30)), 0.3 / Animation_Speed) | |
2025 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(30)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
2026 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-30), RAD(0), RAD(60)) * ANGLES(RAD(0), RAD(-30), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) | |
2027 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-20)) * ANGLES(RAD(0), RAD(20), RAD(0)) * LEFTSHOULDERC0, 0.3 / Animation_Speed) | |
2028 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.9 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-20)), 0.3 / Animation_Speed) | |
2029 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1.1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(10)), 0.3 / Animation_Speed) | |
2030 | if Stagger.Value == true or Stun.Value == true then | |
2031 | break | |
2032 | end | |
2033 | end | |
2034 | ATTACK = false | |
2035 | end | |
2036 | ||
2037 | function StaggerAnimation() | |
2038 | ATTACK = true | |
2039 | if Weapon:FindFirstChild("Hitbox") ~= nil then | |
2040 | for i = 1, MRANDOM(2, 4) do | |
2041 | ClangEffect("Bright yellow", "Neon", CF(Weapon:FindFirstChild("Hitbox").Position) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), 20, 5, 0.2, MRANDOM(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1) | |
2042 | end | |
2043 | end | |
2044 | DISABLEJUMPING = true | |
2045 | COMBO = 1 | |
2046 | StatLabel("Interruption", Head.CFrame * CF(0, 0 + (Head.Size.z - 1), 0), "Staggered!", C3(255 / 255, 255 / 255, 0)) | |
2047 | local STAGGERVELOCITY = Instance.new("BodyVelocity",Torso) | |
2048 | STAGGERVELOCITY.P = 500 | |
2049 | STAGGERVELOCITY.maxForce = VT(math.huge, 0, math.huge) | |
2050 | if Rooted.Value == false then | |
2051 | STAGGERVELOCITY.Velocity = RootPart.CFrame.lookVector * -40 | |
2052 | end | |
2053 | for i = 0, 1, 0.35 / Animation_Speed do | |
2054 | Swait() | |
2055 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.3 / Animation_Speed) | |
2056 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(2.5), RAD(0), RAD(20)), 0.3 / Animation_Speed) | |
2057 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size,0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) | |
2058 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size,0 * Player_Size) * ANGLES(RAD(-7.5), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.3 / Animation_Speed) | |
2059 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size,0 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(30)), 0.3 / Animation_Speed) | |
2060 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size,0 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(5)), 0.3 / Animation_Speed) | |
2061 | end | |
2062 | for i = 0, 1, 0.2 / Animation_Speed do | |
2063 | Swait() | |
2064 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(-20)), 0.4 / Animation_Speed) | |
2065 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.4 / Animation_Speed) | |
2066 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2067 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-7.5), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
2068 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(50)), 0.4 / Animation_Speed) | |
2069 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.4 / Animation_Speed) | |
2070 | end | |
2071 | STAGGERVELOCITY.Parent = nil | |
2072 | for i = 1, 50 * Animation_Speed do | |
2073 | Swait() | |
2074 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1.8 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-20)) * ANGLES(RAD(-5), RAD(-5), RAD(0)), 0.3 / Animation_Speed) | |
2075 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(5), RAD(0)), 0.3 / Animation_Speed) | |
2076 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(-20), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) | |
2077 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(-10)) * ANGLES(RAD(0), RAD(15), RAD(0)) * LEFTSHOULDERC0, 0.3 / Animation_Speed) | |
2078 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.4 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(70)) * ANGLES(RAD(0), RAD(30), RAD(0)), 0.3 / Animation_Speed) | |
2079 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(-10)), 0.3 / Animation_Speed) | |
2080 | end | |
2081 | DISABLEJUMPING = false | |
2082 | ATTACK = false | |
2083 | end | |
2084 | ||
2085 | function StunAnimation() | |
2086 | ATTACK = true | |
2087 | DISABLEJUMPING = true | |
2088 | COMBO = 1 | |
2089 | StatLabel("Interruption", Head.CFrame * CF(0, 0 + (Head.Size.z - 1), 0), "Stunned!", C3(255 / 255, 255 / 255, 0)) | |
2090 | for i = 0, 1, 0.3 / Animation_Speed do | |
2091 | Swait() | |
2092 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.05 * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(-150)), 0.3 / Animation_Speed) | |
2093 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-10), RAD(0), RAD(-20)), 0.3 / Animation_Speed) | |
2094 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(30), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) | |
2095 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.3 / Animation_Speed) | |
2096 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(30)), 0.3 / Animation_Speed) | |
2097 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(20)), 0.3 / Animation_Speed) | |
2098 | end | |
2099 | for i = 0, 1, 0.3 / Animation_Speed do | |
2100 | Swait() | |
2101 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.05 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(-180)), 0.4 / Animation_Speed) | |
2102 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-30)), 0.4 / Animation_Speed) | |
2103 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(30), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2104 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
2105 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(15)), 0.4 / Animation_Speed) | |
2106 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(50)), 0.4 / Animation_Speed) | |
2107 | end | |
2108 | for i = 0, 1, 0.3 / Animation_Speed do | |
2109 | Swait() | |
2110 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(75), RAD(0), RAD(-180)), 0.4 / Animation_Speed) | |
2111 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-60)), 0.4 / Animation_Speed) | |
2112 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(20), RAD(0), RAD(70)) * ANGLES(RAD(0), RAD(30), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2113 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-10), RAD(0), RAD(-80)) * ANGLES(RAD(0), RAD(-40), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
2114 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(10)), 0.4 / Animation_Speed) | |
2115 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(80)), 0.4 / Animation_Speed) | |
2116 | end | |
2117 | for i = 1, 70 * Animation_Speed do | |
2118 | Swait() | |
2119 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -2.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-180)), 0.3 / Animation_Speed) | |
2120 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.3 / Animation_Speed) | |
2121 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(-10), RAD(90)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) | |
2122 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.3 / Animation_Speed) | |
2123 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
2124 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
2125 | end | |
2126 | for i = 0, 1, 0.2 / Animation_Speed do | |
2127 | Swait() | |
2128 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1.5 * Player_Size) * ANGLES(RAD(20), RAD(0), RAD(100)), 0.4 / Animation_Speed) | |
2129 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-30)), 0.4 / Animation_Speed) | |
2130 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(-10), RAD(30)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2131 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(80), RAD(0), RAD(20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
2132 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(70)), 0.4 / Animation_Speed) | |
2133 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.25 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(20)), 0.4 / Animation_Speed) | |
2134 | end | |
2135 | DISABLEJUMPING = false | |
2136 | ATTACK = false | |
2137 | end | |
2138 | ||
2139 | function EAbility() | |
2140 | ATTACK = true | |
2141 | ATTACK = false | |
2142 | end | |
2143 | ||
2144 | function ShootFireball(POSITION1, POSITION2, SPEED, SIZE, DURATION, LOWDAMAGE, HIGHDAMAGE) | |
2145 | local POS1 = POSITION1 | |
2146 | local POS2 = POSITION2 | |
2147 | local MOUSELOOK = CF((POS1 + POS2) / 2, POS2) | |
2148 | local FIREBALLSPEED = SPEED * Player_Size | |
2149 | local FIREBALLDURATION = DURATION | |
2150 | local FIREBALLCOLORS = {"White", "Carnation pink"} | |
2151 | local FIREBALLHITSOUNDS = {"438666542"} | |
2152 | coroutine.resume(coroutine.create(function() | |
2153 | repeat | |
2154 | Swait() | |
2155 | local FIREBALLHIT, FIREBALLPOS = Raycast(POS1, MOUSELOOK.lookVector, FIREBALLSPEED, Character) | |
2156 | POS1 = POS1 + (MOUSELOOK.lookVector * FIREBALLSPEED) | |
2157 | MagicBlock(FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)], "Neon", CF(POS1) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), SIZE, SIZE, SIZE, SIZE / 10, SIZE / 10, SIZE / 10, 0.1) | |
2158 | if FIREBALLHIT ~= nil or FIREBALLDURATION <= 0.1 then | |
2159 | FIREBALLDURATION = 0 | |
2160 | local FireballHitRefpart = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Carnation pink", "Effect", VT()) | |
2161 | FireballHitRefpart.Anchored = true | |
2162 | FireballHitRefpart.CFrame = CF(FIREBALLPOS) | |
2163 | game:GetService("Debris"):AddItem(FireballHitRefpart, 5) | |
2164 | CreateSound(FIREBALLHITSOUNDS[MRANDOM(1, #FIREBALLHITSOUNDS)], FireballHitRefpart, 15, MRANDOM(14, 16) / 10) | |
2165 | for i = 1, MRANDOM(4, 8) do | |
2166 | MagicBlock(FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)], "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360))), CF(0, MRANDOM(5, 7) / 10 * Player_Size, 0), VT(0, 0, 0), 5, 5, 5, 0, 0, 0, MRANDOM(3, 5) / 100) | |
2167 | end | |
2168 | MagicBlock("White", "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE, SIZE, SIZE, SIZE / 3, SIZE / 3, SIZE / 3, 0.05) | |
2169 | MagicBlock("Carnation pink", "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE * 0.5, SIZE * 0.5, SIZE * 0.5, SIZE / 4, SIZE / 4, SIZE / 4, 0.05) | |
2170 | MagicBlock("White", "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE * 0.25, SIZE * 0.25, SIZE * 0.25, SIZE / 5, SIZE / 5, SIZE / 5, 0.05) | |
2171 | MagnitudeDamage("", "", "", "", 1, 1, 1, 1, FireballHitRefpart, SIZE / 2, false, 45, 70, 0, "Normal", RootPart, 0, 1, MRANDOM(10, 15), nil, false, true, nil, 0, 0, false) | |
2172 | else | |
2173 | FIREBALLDURATION = FIREBALLDURATION - (1 / 30) / Animation_Speed | |
2174 | end | |
2175 | until FIREBALLHIT ~= nil or FIREBALLDURATION <= 0 | |
2176 | end)) | |
2177 | end | |
2178 | ||
2179 | function project() | |
2180 | ATTACK = true | |
2181 | for i=0, 1, 0.1 / Animation_Speed do | |
2182 | Swait() | |
2183 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2184 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2185 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(-55), RAD(-100)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2186 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2187 | RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2188 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2189 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2190 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
2191 | break | |
2192 | end | |
2193 | end | |
2194 | CreateSound("971125740",Head, 1.2, MRANDOM(7, 9) / 10) | |
2195 | ShootFireball((CFrame.new(Head.Position.X + math.random(-12,12),Head.Position.Y + 12,Head.Position.Z + math.random(-12,12)) * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size)).p, Mouse.hit.p, 3, 70, 2.1, 5, 10) | |
2196 | for i=0, 1, 0.1 / Animation_Speed*5 do | |
2197 | Swait() | |
2198 | local Pos = HitboxPart | |
2199 | local Offset = HitboxPart.CFrame * CF(0, 0.1 * Player_Size, 0) | |
2200 | local Color = "Cyan" | |
2201 | local Material = "Neon" | |
2202 | local TheDelay = 0.01 | |
2203 | local Height = 6.2 * Player_Size | |
2204 | BLCF = Offset | |
2205 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2206 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2207 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(-100)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2208 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2209 | RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2210 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2211 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2212 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
2213 | break | |
2214 | end | |
2215 | local FIREEFFECTCOLORS = {"White", "White"} | |
2216 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.065) | |
2217 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.065) | |
2218 | --MagicBlock("White", "Neon", Head.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), 1500, 1500, 1500, 30, 30, 30, 0.1) | |
2219 | end | |
2220 | BLCF = nil | |
2221 | SCFR = nil | |
2222 | ATTACK = false | |
2223 | end | |
2224 | ||
2225 | function serverbless() | |
2226 | Humanoid.WalkSpeed = 0 | |
2227 | ATTACK = true | |
2228 | kkk:Pause() | |
2229 | for i=0, 1, 0.1 / Animation_Speed do | |
2230 | Swait() | |
2231 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 60 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2232 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2233 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
2234 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2235 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
2236 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2237 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.2 / Animation_Speed) | |
2238 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
2239 | break | |
2240 | end | |
2241 | end | |
2242 | CreateSound("146224091", Character, 10, 1) | |
2243 | wait(25) | |
2244 | SIZE = 25 | |
2245 | MagicBlock("Sea green", "Neon", Head.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE, SIZE, SIZE, SIZE / 3, SIZE / 3, SIZE / 3, 0.05) | |
2246 | MagicBlock("White", "Neon", Head.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE * 0.75, SIZE * 0.75, SIZE * 0.75, 50, 50, 50, 0.05) | |
2247 | MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, Head, 3000000000000000, false, 1, 1, 0, "Normal", RootPart, 0.5, 1, MRANDOM(50, 70), nil, true, false, nil, 0, 0, false) | |
2248 | CreateSound("971126018",workspace, 1.2, MRANDOM(7, 9) / 10) | |
2249 | for i=0, 1, 0.1 / Animation_Speed*5 do | |
2250 | Swait() | |
2251 | local Pos = HitboxPart | |
2252 | local Offset = HitboxPart.CFrame * CF(0, 0.1 * Player_Size, 0) | |
2253 | local Color = "Cyan" | |
2254 | local Material = "Neon" | |
2255 | local TheDelay = 0.01 | |
2256 | local Height = 6.2 * Player_Size | |
2257 | BLCF = Offset | |
2258 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2259 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2260 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
2261 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2262 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2263 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2264 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.2 / Animation_Speed) | |
2265 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
2266 | break | |
2267 | end | |
2268 | end | |
2269 | BLCF = nil | |
2270 | SCFR = nil | |
2271 | ATTACK = false | |
2272 | kkk:Play() | |
2273 | Humanoid.WalkSpeed = 20 | |
2274 | end | |
2275 | ||
2276 | function Attack1() | |
2277 | ATTACK = true | |
2278 | for i=0, 1, 0.1 / Animation_Speed do | |
2279 | Swait() | |
2280 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2281 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2282 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(-55), RAD(-100)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2283 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2284 | RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2285 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2286 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2287 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
2288 | break | |
2289 | end | |
2290 | end | |
2291 | CreateSound("971125740",Head, 1.2, MRANDOM(7, 9) / 10) | |
2292 | for i=0, 1, 0.1 / Animation_Speed*5 do | |
2293 | Swait() | |
2294 | local Pos = HitboxPart | |
2295 | local Offset = HitboxPart.CFrame * CF(0, 0.1 * Player_Size, 0) | |
2296 | local Color = "Cyan" | |
2297 | local Material = "Neon" | |
2298 | local TheDelay = 0.01 | |
2299 | local Height = 6.2 * Player_Size | |
2300 | BLCF = Offset | |
2301 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2302 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2303 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(-100)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2304 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2305 | RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2306 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2307 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2308 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
2309 | break | |
2310 | end | |
2311 | local FIREEFFECTCOLORS = {"White", "Carnation pink"} | |
2312 | MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, Head, 30, false, 50, 70, 500, "Normal", RootPart, 0.5, 1, MRANDOM(50, 70), nil, true, false, nil, 0, 0, false) | |
2313 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.065) | |
2314 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.065) | |
2315 | --MagicBlock("White", "Neon", Head.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), 1500, 1500, 1500, 30, 30, 30, 0.1) | |
2316 | end | |
2317 | BLCF = nil | |
2318 | SCFR = nil | |
2319 | ATTACK = false | |
2320 | end | |
2321 | ||
2322 | function Attack2() | |
2323 | ATTACK = true | |
2324 | for i=0, 1, 0.1 / Animation_Speed do | |
2325 | Swait() | |
2326 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2327 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2328 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(-55), RAD(-100)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2329 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2330 | RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2331 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2332 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2333 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
2334 | break | |
2335 | end | |
2336 | end | |
2337 | CreateSound("971126018",Head, 1.2, MRANDOM(7, 9) / 10) | |
2338 | for i=0, 1, 0.1 / Animation_Speed*5 do | |
2339 | Swait() | |
2340 | local Pos = HitboxPart | |
2341 | local Offset = HitboxPart.CFrame * CF(0, 0.1 * Player_Size, 0) | |
2342 | local Color = "Cyan" | |
2343 | local Material = "Neon" | |
2344 | local TheDelay = 0.01 | |
2345 | local Height = 6.2 * Player_Size | |
2346 | BLCF = Offset | |
2347 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2348 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2349 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(-100)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2350 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2351 | RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2352 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2353 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2354 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
2355 | break | |
2356 | end | |
2357 | local FIREEFFECTCOLORS = {"White", "Carnation pink"} | |
2358 | MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, Head, 30, false, 100, 100,-5, "Normal", RootPart, 0.5, 1, MRANDOM(50, 70), nil, true, false, nil, 0, 0, false) | |
2359 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.065) | |
2360 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.065) | |
2361 | --MagicBlock("White", "Neon", Head.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), 1500, 1500, 1500, 30, 30, 30, 0.1) | |
2362 | end | |
2363 | BLCF = nil | |
2364 | SCFR = nil | |
2365 | ATTACK = false | |
2366 | end | |
2367 | ||
2368 | function Attack3() | |
2369 | ATTACK = true | |
2370 | for i=0, 1, 0.1 / Animation_Speed do | |
2371 | Swait() | |
2372 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2373 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2374 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(-55), RAD(-100)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2375 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2376 | RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2377 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2378 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2379 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
2380 | break | |
2381 | end | |
2382 | end | |
2383 | CreateSound("260433487",Head, 1.2, MRANDOM(7, 9) / 10) | |
2384 | for i=0, 1, 0.1 / Animation_Speed*5 do | |
2385 | Swait() | |
2386 | local Pos = HitboxPart | |
2387 | local Offset = HitboxPart.CFrame * CF(0, 0.1 * Player_Size, 0) | |
2388 | local Color = "Cyan" | |
2389 | local Material = "Neon" | |
2390 | local TheDelay = 0.01 | |
2391 | local Height = 6.2 * Player_Size | |
2392 | BLCF = Offset | |
2393 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2394 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2395 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(-100)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2396 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2397 | RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2398 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2399 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2400 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
2401 | break | |
2402 | end | |
2403 | local FIREEFFECTCOLORS = {"Steel blue", "Carnation pink"} | |
2404 | MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, Head, 30, false, 0, 0,-5, "Normal", RootPart, 0.5, 1, MRANDOM(50, 70), nil, true, false, nil, 0, 0, false) | |
2405 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.065) | |
2406 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.065) | |
2407 | --MagicBlock("White", "Neon", Head.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), 1500, 1500, 1500, 30, 30, 30, 0.1) | |
2408 | end | |
2409 | BLCF = nil | |
2410 | SCFR = nil | |
2411 | ATTACK = false | |
2412 | end | |
2413 | ||
2414 | function Attack4() | |
2415 | ATTACK = true | |
2416 | for i=0, 1, 0.1 / Animation_Speed do | |
2417 | Swait() | |
2418 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2419 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2420 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(-55), RAD(-100)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2421 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2422 | RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2423 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2424 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2425 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
2426 | break | |
2427 | end | |
2428 | end | |
2429 | CreateSound("319467359",Head, 1.2, MRANDOM(7, 9) / 10) | |
2430 | for i=0, 1, 0.1 / Animation_Speed*5 do | |
2431 | Swait() | |
2432 | local Pos = HitboxPart | |
2433 | local Offset = HitboxPart.CFrame * CF(0, 0.1 * Player_Size, 0) | |
2434 | local Color = "Cyan" | |
2435 | local Material = "Neon" | |
2436 | local TheDelay = 0.01 | |
2437 | local Height = 6.2 * Player_Size | |
2438 | BLCF = Offset | |
2439 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2440 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2441 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(-100)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2442 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2443 | RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2444 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2445 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2446 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
2447 | break | |
2448 | end | |
2449 | local FIREEFFECTCOLORS = {"Sea green", "Carnation pink"} | |
2450 | MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, Head, 30, false, 1, 1, 0, "Normal", RootPart, 0.5, 1, MRANDOM(50, 70), nil, true, false, nil, 0, 0, false) | |
2451 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.065) | |
2452 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.065) | |
2453 | --MagicBlock("White", "Neon", Head.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), 1500, 1500, 1500, 30, 30, 30, 0.1) | |
2454 | end | |
2455 | BLCF = nil | |
2456 | SCFR = nil | |
2457 | ATTACK = false | |
2458 | end | |
2459 | ||
2460 | function grant() | |
2461 | ATTACK = true | |
2462 | for i=0, 1, 0.1 / Animation_Speed do | |
2463 | Swait() | |
2464 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2465 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2466 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(-55), RAD(-100)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2467 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2468 | RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2469 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2470 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2471 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
2472 | break | |
2473 | end | |
2474 | end | |
2475 | CreateSound("2800815",Head, 1.2, MRANDOM(7, 9) / 10) | |
2476 | for i=0, 1, 0.1 / Animation_Speed*5 do | |
2477 | Swait() | |
2478 | local Pos = HitboxPart | |
2479 | local Offset = HitboxPart.CFrame * CF(0, 0.1 * Player_Size, 0) | |
2480 | local Color = "Cyan" | |
2481 | local Material = "Neon" | |
2482 | local TheDelay = 0.01 | |
2483 | local Height = 6.2 * Player_Size | |
2484 | BLCF = Offset | |
2485 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2486 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2487 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(-100)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2488 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2489 | RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2490 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2491 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2492 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
2493 | break | |
2494 | end | |
2495 | local FIREEFFECTCOLORS = {"White", "White"} | |
2496 | MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, Head, 10, false, 2, 2, 0, "Normal", RootPart, 0.5, 1, MRANDOM(50, 70), nil, true, false, nil, 0, 0, false) | |
2497 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.065) | |
2498 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.065) | |
2499 | --MagicBlock("White", "Neon", Head.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), 1500, 1500, 1500, 30, 30, 30, 0.1) | |
2500 | end | |
2501 | BLCF = nil | |
2502 | SCFR = nil | |
2503 | ATTACK = false | |
2504 | end | |
2505 | ||
2506 | function ray() | |
2507 | ATTACK = true | |
2508 | local FIREEFFECTCOLORS = {"Carnation pink", "White", "Maroon"} | |
2509 | for i=0, 1, 0.1 / Animation_Speed do | |
2510 | Swait() | |
2511 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 1, 1, 1, -0.05, -0.05, -0.05, 0.05) | |
2512 | --MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RootPart.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 1, 1, 1, -0.05, -0.05, -0.05, 0.05) | |
2513 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-40)), 0.4 / Animation_Speed) | |
2514 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(35)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
2515 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2516 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(80), RAD(-20), RAD(-30)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
2517 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed) | |
2518 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-40), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-10)), 0.4 / Animation_Speed) | |
2519 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed) | |
2520 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
2521 | break | |
2522 | end | |
2523 | end | |
2524 | local framed = CFrame.new(Mouse.hit.p.X,Mouse.hit.p.Y+250,Mouse.hit.p.Z) | |
2525 | local cloud = NewEffect(framed,"Cloud",BrickColor.new("Dark stone grey"),"http://www.roblox.com/asset/?id=111820358","",Vector3.new(1000,150,1000)) | |
2526 | CreateSound("199978087", workspace, 10, MRANDOM(9, 11) / 10) | |
2527 | MagicBlock("Carnation pink", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 5, 5, 5, 0.5, 0.5, 0.5, 0.05) | |
2528 | MagicBlock("White", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.05) | |
2529 | MagicBlock("Maroon", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 0.05, 0.05, 0.05, 0.5, 0.5, 0.5, 0.05) | |
2530 | for i=0, 1, 0.1 / Animation_Speed do | |
2531 | Swait() | |
2532 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.4 / Animation_Speed) | |
2533 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(25)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
2534 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2535 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.25 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-20 + MRANDOM(-2.5, 2.5))) * ANGLES(RAD(70 + MRANDOM(-2.5, 2.5)), RAD(40), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
2536 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.4 / Animation_Speed) | |
2537 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(-12.5)), 0.4 / Animation_Speed) | |
2538 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed) | |
2539 | --[[RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(40)), 0.4 / Animation_Speed) | |
2540 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-30)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
2541 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2542 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-10 + MRANDOM(-2.5, 2.5))) * ANGLES(RAD(40 + MRANDOM(-2.5, 2.5)), RAD(70), RAD(20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
2543 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(10)), 0.4 / Animation_Speed) | |
2544 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(5)), 0.4 / Animation_Speed) | |
2545 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed)]]-- | |
2546 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
2547 | break | |
2548 | end | |
2549 | end | |
2550 | wait(1) | |
2551 | CreateSound("438666077", workspace, 10, MRANDOM(8, 12) / 10) | |
2552 | wait(0.3) | |
2553 | --CreateSound("444667859", workspace, 10, MRANDOM(4, 6) / 10) | |
2554 | local cm = Instance.new("CylinderMesh") | |
2555 | local cm2 = cm:Clone() | |
2556 | local death = Instance.new("Part") | |
2557 | death.CFrame = CFrame.new(framed.X,framed.Y-250,framed.Z) | |
2558 | death.Material = "Neon" | |
2559 | death.BrickColor = BrickColor.new("Carnation pink") | |
2560 | death.Size = Vector3.new(25,600,25) | |
2561 | death.Transparency = 0.25 | |
2562 | death.Parent = Effects | |
2563 | death.CanCollide = false | |
2564 | death.Anchored = true | |
2565 | cm.Parent = death | |
2566 | local death2 = Instance.new("Part") | |
2567 | death2.CFrame = CFrame.new(framed.X,framed.Y-250,framed.Z) | |
2568 | death2.Material = "Neon" | |
2569 | death2.BrickColor = BrickColor.new("White") | |
2570 | death2.Size = Vector3.new(27,600,27) | |
2571 | death2.Parent = Effects | |
2572 | death2.CanCollide = false | |
2573 | death2.Anchored = true | |
2574 | cm2.Parent = death2 | |
2575 | local exp = Instance.new("Part") | |
2576 | exp.Parent = Effects | |
2577 | exp.Size = Vector3.new(1,1,1) | |
2578 | exp.Anchored = true | |
2579 | exp.Transparency = 0 | |
2580 | exp.CanCollide = false | |
2581 | exp.CFrame = death.CFrame | |
2582 | exp.BrickColor = BrickColor.new("Carnation pink") | |
2583 | exp.Material = "Neon" | |
2584 | local meshe = Instance.new("SpecialMesh") | |
2585 | meshe.MeshType = "Sphere" | |
2586 | meshe.Parent = exp | |
2587 | meshe.Scale = Vector3.new(0.8,0.8,0.8) | |
2588 | local exp2 = Instance.new("Part") | |
2589 | exp2.Parent = Effects | |
2590 | exp2.Size = Vector3.new(1,1,1) | |
2591 | exp2.Anchored = true | |
2592 | exp2.Transparency = 0.25 | |
2593 | exp2.CanCollide = false | |
2594 | exp2.CFrame = death.CFrame | |
2595 | exp2.BrickColor = BrickColor.new("White") | |
2596 | exp2.Material = "Neon" | |
2597 | local meshe2 = Instance.new("SpecialMesh") | |
2598 | meshe2.MeshType = "Sphere" | |
2599 | meshe2.Parent = exp2 | |
2600 | meshe2.Scale = Vector3.new(1,1,1) | |
2601 | local shockwave = Instance.new("Part") | |
2602 | shockwave.CanCollide = false | |
2603 | shockwave.Anchored = true | |
2604 | shockwave.Parent = Effects | |
2605 | shockwave.BrickColor = BrickColor.new("Carnation pink") | |
2606 | local meshg = Instance.new("SpecialMesh") | |
2607 | meshg.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
2608 | meshg.Parent = shockwave | |
2609 | meshg.Scale = Vector3.new(3, 12, 3) | |
2610 | meshg.Offset = Vector3.new(0,0,-3) | |
2611 | shockwave.CFrame = death.CFrame | |
2612 | SIZE = 25 | |
2613 | for size = 1, 45 do | |
2614 | MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, exp, 120, false, 100, 100, MRANDOM(35, 50), "Normal", RootPart, 0.5, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false) | |
2615 | MagicBlock("White", "Neon", death.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE, SIZE, SIZE, SIZE / 3, SIZE / 3, SIZE / 3, 0.05) | |
2616 | MagicBlock("Carnation pink", "Neon", death.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE * 0.75, SIZE * 0.75, SIZE * 0.75, 50, 50, 50, 0.05) | |
2617 | meshe.Scale = meshe.Scale + Vector3.new(6,6,6) | |
2618 | exp.Transparency = exp.Transparency + (1/45) | |
2619 | meshe2.Scale = meshe2.Scale + Vector3.new(6,6,6) | |
2620 | exp2.Transparency = exp2.Transparency + (1/45) | |
2621 | cm.Scale = cm.Scale - Vector3.new(1/45,0,1/45) | |
2622 | cm2.Scale = cm2.Scale - Vector3.new(1/45,0,1/45) | |
2623 | shockwave.Transparency = shockwave.Transparency + 1/45 | |
2624 | meshg.Scale = meshg.Scale + Vector3.new(8,3,8) | |
2625 | wait(0.025) | |
2626 | end | |
2627 | exp:Destroy() | |
2628 | exp2:Destroy() | |
2629 | death:Destroy() | |
2630 | death2:Destroy() | |
2631 | wait(1.2) | |
2632 | Effects:ClearAllChildren() | |
2633 | ATTACK = false | |
2634 | end | |
2635 | ||
2636 | function Move1() | |
2637 | ATTACK = true | |
2638 | ATTACK = false | |
2639 | end | |
2640 | ||
2641 | function Move2() | |
2642 | ATTACK = true | |
2643 | ATTACK = false | |
2644 | end | |
2645 | ||
2646 | function Move3() | |
2647 | ATTACK = true | |
2648 | ATTACK = false | |
2649 | end | |
2650 | ||
2651 | function Move4() | |
2652 | ATTACK = true | |
2653 | ATTACK = false | |
2654 | end | |
2655 | ||
2656 | --//=================================\\ | |
2657 | --\\=================================// | |
2658 | ||
2659 | ||
2660 | ||
2661 | ||
2662 | ||
2663 | --//=================================\\ | |
2664 | --|| SET THINGS UP | |
2665 | --\\=================================// | |
2666 | ||
2667 | if Start_Equipped == true then | |
2668 | ATTACK = true | |
2669 | EQUIPPED = true | |
2670 | if Disable_Animate == true then | |
2671 | ANIMATE.Parent = nil | |
2672 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
2673 | IDLEANIMATION:Play() | |
2674 | end | |
2675 | if Disable_Animator == true then | |
2676 | ANIMATOR.Parent = nil | |
2677 | end | |
2678 | if Disable_Moving_Arms == true then | |
2679 | RSH = Torso["Right Shoulder"] | |
2680 | LSH = Torso["Left Shoulder"] | |
2681 | RSH.Parent = nil | |
2682 | LSH.Parent = nil | |
2683 | if Use_Motors_Instead_Of_Welds == true then | |
2684 | RightShoulder = IT("Motor") | |
2685 | LeftShoulder = IT("Motor") | |
2686 | else | |
2687 | RightShoulder = IT("Weld") | |
2688 | LeftShoulder = IT("Weld") | |
2689 | end | |
2690 | RightShoulder.Name = "Right Shoulder" | |
2691 | RightShoulder.Part0 = Torso | |
2692 | RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) | |
2693 | RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) | |
2694 | RightShoulder.Part1 = Character["Right Arm"] | |
2695 | RightShoulder.Parent = Torso | |
2696 | LeftShoulder.Name = "Left Shoulder" | |
2697 | LeftShoulder.Part0 = Torso | |
2698 | LeftShoulder.C0=CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) | |
2699 | LeftShoulder.C1=CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) | |
2700 | LeftShoulder.Part1 = Character["Left Arm"] | |
2701 | LeftShoulder.Parent = Torso | |
2702 | RIGHTSHOULDERC0 = CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
2703 | LEFTSHOULDERC0 = CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
2704 | end | |
2705 | if Start_Equipped_With_Equipped_Animation == true then | |
2706 | Swait() | |
2707 | end | |
2708 | ATTACK = false | |
2709 | end | |
2710 | ||
2711 | --//=================================\\ | |
2712 | --\\=================================// | |
2713 | ||
2714 | ||
2715 | ||
2716 | ||
2717 | ||
2718 | --//=================================\\ | |
2719 | --|| ASSIGN THINGS TO KEYS | |
2720 | --\\=================================// | |
2721 | ||
2722 | Humanoid.Changed:connect(function(Jump) | |
2723 | if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then | |
2724 | Humanoid.Jump = false | |
2725 | end | |
2726 | end) | |
2727 | ||
2728 | function MouseDown(Mouse) | |
2729 | if ATTACK == true or EQUIPPED == false then | |
2730 | return | |
2731 | end | |
2732 | HOLD = true | |
2733 | Attack1() | |
2734 | end | |
2735 | coroutine.resume(coroutine.create(function() | |
2736 | for i=1, 50 do | |
2737 | if ATTACK == false then | |
2738 | Swait() | |
2739 | end | |
2740 | end | |
2741 | if ATTACK == false then | |
2742 | COMBO = 1 | |
2743 | end | |
2744 | end)) | |
2745 | ||
2746 | function unanchor() | |
2747 | g = Character:GetChildren() | |
2748 | for i = 1, #g do | |
2749 | if g[i].ClassName == "Part" then | |
2750 | g[i].Anchored = false | |
2751 | end | |
2752 | end | |
2753 | end | |
2754 | ||
2755 | function MouseUp(Mouse) | |
2756 | HOLD = false | |
2757 | end | |
2758 | ||
2759 | function KeyDown(Key) | |
2760 | if Key == "f" and Can_Equip_Or_Unequip == true and ATTACK == false then | |
2761 | ATTACK = true | |
2762 | COMBO = 1 | |
2763 | if EQUIPPED == false then | |
2764 | EQUIPPED = true | |
2765 | if Disable_Animate == true then | |
2766 | ANIMATE.Parent = nil | |
2767 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
2768 | IDLEANIMATION:Play() | |
2769 | end | |
2770 | if Disable_Animator == true then | |
2771 | ANIMATOR.Parent = nil | |
2772 | end | |
2773 | Swait() | |
2774 | elseif EQUIPPED == true then | |
2775 | end | |
2776 | ATTACK = false | |
2777 | end | |
2778 | if Key == "e" and EQUIPPED == true and ATTACK == false then | |
2779 | Attack2() | |
2780 | end | |
2781 | if Key == "z" and EQUIPPED == true and ATTACK == false and CO1 >= Cooldown_1 and Mana.Value >= Skill_1_Mana_Cost and Character:FindFirstChild("Granted") == nil then | |
2782 | ray() | |
2783 | end | |
2784 | if Key == "x" and EQUIPPED == true and ATTACK == false and CO2 >= Cooldown_2 and Mana.Value >= Skill_2_Mana_Cost then | |
2785 | Attack3() | |
2786 | end | |
2787 | if Key == "c" and EQUIPPED == true and ATTACK == false and CO3 >= Cooldown_3 and Mana.Value >= Skill_3_Mana_Cost then | |
2788 | project() | |
2789 | end | |
2790 | if Key == "v" and EQUIPPED == true and ATTACK == false and CO4 >= Cooldown_4 and Mana.Value >= Skill_4_Mana_Cost then | |
2791 | Attack4() | |
2792 | end | |
2793 | if Key == "q" and Character:FindFirstChild("Granted") == nil then | |
2794 | --grant() | |
2795 | end | |
2796 | if Key == "" then | |
2797 | CreateSound("1285760020", Head, 5, 1) | |
2798 | end | |
2799 | if Key == "6" then | |
2800 | serverbless() | |
2801 | end | |
2802 | if Key == "5" then | |
2803 | CreateSound("165487479", Head, 5, 0.9) | |
2804 | end | |
2805 | if Key == "4" then | |
2806 | CreateSound("660244878", Head, 5, 0.9) | |
2807 | end | |
2808 | if Key == "3" then | |
2809 | CreateSound("1285760020", Head, 5, 1) | |
2810 | end | |
2811 | if Key == "" then | |
2812 | CreateSound("907329044", Head, 5, 0.9) | |
2813 | end | |
2814 | if Key == "2" then | |
2815 | CreateSound("1035350628", Head, 5, 0.9) | |
2816 | end | |
2817 | if Key == "m" then | |
2818 | Humanoid.MaxHealth = "inf" | |
2819 | Humanoid.Health = "inf" | |
2820 | CreateSound("2800815",Head, 1.2, MRANDOM(7, 9) / 10) | |
2821 | unanchor() | |
2822 | MagicBlock(BrickColor.new("Lime green"), "Neon", Torso.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.075) | |
2823 | MagicBlock(BrickColor.new("Lime green"), "Neon", Torso.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.075) | |
2824 | MagicBlock(BrickColor.new("Lime green"), "Neon", Torso.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.075) | |
2825 | end | |
2826 | end | |
2827 | ||
2828 | ||
2829 | function KeyUp(Key) | |
2830 | end | |
2831 | ||
2832 | if Use_HopperBin == false then | |
2833 | ||
2834 | Mouse.Button1Down:connect(function(NEWKEY) | |
2835 | MouseDown(NEWKEY) | |
2836 | end) | |
2837 | Mouse.Button1Up:connect(function(NEWKEY) | |
2838 | MouseUp(NEWKEY) | |
2839 | end) | |
2840 | Mouse.KeyDown:connect(function(NEWKEY) | |
2841 | KeyDown(NEWKEY) | |
2842 | end) | |
2843 | Mouse.KeyUp:connect(function(NEWKEY) | |
2844 | KeyUp(NEWKEY) | |
2845 | end) | |
2846 | ||
2847 | elseif Use_HopperBin == true then | |
2848 | WEAPONTOOL.Parent = Backpack | |
2849 | script.Parent = WEAPONTOOL | |
2850 | function SelectTool(Mouse) | |
2851 | Mouse.Button1Down:connect(function() | |
2852 | MouseDown(Mouse) | |
2853 | end) | |
2854 | Mouse.Button1Up:connect(function() | |
2855 | MouseUp(Mouse) | |
2856 | end) | |
2857 | Mouse.KeyDown:connect(KeyDown) | |
2858 | Mouse.KeyUp:connect(KeyUp) | |
2859 | end | |
2860 | function DeselectTool(Mouse) | |
2861 | end | |
2862 | WEAPONTOOL.Selected:connect(SelectTool) | |
2863 | WEAPONTOOL.Deselected:connect(DeselectTool) | |
2864 | end | |
2865 | ||
2866 | --//=================================\\ | |
2867 | --\\=================================// | |
2868 | ||
2869 | ||
2870 | ||
2871 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
2872 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
2873 | ||
2874 | while true do | |
2875 | Swait() | |
2876 | if HitboxPart ~= nil and ATTACK == false and StaggerHit.Value == false and Stagger.Value == false and Stun.Value == false then | |
2877 | HitboxPart.Name = "NilHitbox" | |
2878 | else | |
2879 | HitboxPart.Name = "Hitbox" | |
2880 | end | |
2881 | if Enable_Gui == true then | |
2882 | UpdateGUI() | |
2883 | end | |
2884 | UpdateSkillsAndStuff() | |
2885 | if Walkspeed_Depends_On_Movement_Value == true then | |
2886 | if Movement.Value < 0 or StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true or Rooted.Value == true then | |
2887 | Humanoid.WalkSpeed = 0 | |
2888 | else | |
2889 | Humanoid.WalkSpeed = 16 * Movement.Value * Player_Size | |
2890 | end | |
2891 | end | |
2892 | if Enable_Stun == true and StunValue.Value >= Max_Stun then | |
2893 | StunValue.Value = 0 | |
2894 | Stun.Value = true | |
2895 | end | |
2896 | if Enable_Stagger_Hit == true then | |
2897 | if StaggerHit.Value == true and STAGGERHITANIM == false then | |
2898 | coroutine.resume(coroutine.create(function() | |
2899 | STAGGERHITANIM = true | |
2900 | while ATTACK == true do | |
2901 | Swait() | |
2902 | end | |
2903 | StaggerHitAnimation() | |
2904 | StaggerHit.Value = false | |
2905 | STAGGERHITANIM = false | |
2906 | end)) | |
2907 | end | |
2908 | else | |
2909 | StaggerHit.Value = false | |
2910 | end | |
2911 | if Enable_Stagger == true then | |
2912 | if Stagger.Value == true and STAGGERANIM == false then | |
2913 | coroutine.resume(coroutine.create(function() | |
2914 | STAGGERANIM = true | |
2915 | while ATTACK == true do | |
2916 | Swait() | |
2917 | end | |
2918 | StaggerAnimation() | |
2919 | Stagger.Value = false | |
2920 | STAGGERANIM = false | |
2921 | end)) | |
2922 | end | |
2923 | else | |
2924 | Stagger.Value = false | |
2925 | end | |
2926 | if Enable_Stun == true then | |
2927 | if Stun.Value == true and STUNANIM == false then | |
2928 | coroutine.resume(coroutine.create(function() | |
2929 | StunValue.Value = 0 | |
2930 | STUNANIM = true | |
2931 | while ATTACK == true do | |
2932 | Swait() | |
2933 | end | |
2934 | StunAnimation() | |
2935 | Stun.Value = false | |
2936 | STUNANIM = false | |
2937 | end)) | |
2938 | end | |
2939 | else | |
2940 | StunValue.Value = 0 | |
2941 | Stun.Value = false | |
2942 | end | |
2943 | if DONUMBER >= .5 then | |
2944 | HANDIDLE = true | |
2945 | elseif DONUMBER <= 0 then | |
2946 | HANDIDLE = false | |
2947 | end | |
2948 | if HANDIDLE == false then | |
2949 | DONUMBER = DONUMBER + 0.003 / Animation_Speed | |
2950 | else | |
2951 | DONUMBER = DONUMBER - 0.003 / Animation_Speed | |
2952 | end | |
2953 | if ATTACK == false then | |
2954 | IDLENUMBER = IDLENUMBER + 1 | |
2955 | else | |
2956 | IDLENUMBER = 0 | |
2957 | end | |
2958 | if Enable_Stats == true then | |
2959 | for _, v in pairs (ChangeStat:GetChildren()) do | |
2960 | if v:FindFirstChild("Duration") ~= nil then | |
2961 | v:FindFirstChild("Duration").Value = v:FindFirstChild("Duration").Value - (1 / 30) / Animation_Speed | |
2962 | if v:FindFirstChild("Duration").Value <= 0 then | |
2963 | v.Parent = nil | |
2964 | end | |
2965 | end | |
2966 | if v.Name == "ChangeDefense" then | |
2967 | CHANGEDEFENSE = CHANGEDEFENSE + v.Value | |
2968 | elseif v.Name == "ChangeDamage" then | |
2969 | CHANGEDAMAGE = CHANGEDAMAGE + v.Value | |
2970 | elseif v.Name == "ChangeMovement" then | |
2971 | CHANGEMOVEMENT = CHANGEMOVEMENT + v.Value | |
2972 | end | |
2973 | end | |
2974 | Defense.Value = 1 + (CHANGEDEFENSE) | |
2975 | if Defense.Value <= 0.01 then | |
2976 | Defense.Value = 0.01 | |
2977 | end | |
2978 | Damage.Value = 1 + (CHANGEDAMAGE) | |
2979 | if Damage.Value <= 0 then | |
2980 | Damage.Value = 0 | |
2981 | end | |
2982 | Movement.Value = 1 + (CHANGEMOVEMENT) | |
2983 | if Movement.Value <= 0 then | |
2984 | Movement.Value = 0 | |
2985 | end | |
2986 | CHANGEDEFENSE = 0 | |
2987 | CHANGEDAMAGE = 0 | |
2988 | CHANGEMOVEMENT = 0 | |
2989 | end | |
2990 | SINE = SINE + CHANGE | |
2991 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2992 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2993 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
2994 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
2995 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
2996 | if ANIM == "Walk" and EQUIPPED == true and TORSOVELOCITY > 1 then | |
2997 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2998 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2999 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3000 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3001 | elseif (ANIM ~= "Walk" and EQUIPPED == true) or (TORSOVELOCITY < 1) then | |
3002 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3003 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3004 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3005 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3006 | end | |
3007 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
3008 | ANIM = "Jump" | |
3009 | if EQUIPPED == true and ATTACK == false then | |
3010 | Humanoid.WalkSpeed = 150 | |
3011 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3012 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3013 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
3014 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
3015 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
3016 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
3017 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.2 / Animation_Speed) | |
3018 | end | |
3019 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
3020 | ANIM = "Fall" | |
3021 | if EQUIPPED == true and ATTACK == false then | |
3022 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3023 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3024 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
3025 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
3026 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
3027 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
3028 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.2 / Animation_Speed) | |
3029 | end | |
3030 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
3031 | ANIM = "Idle" | |
3032 | if EQUIPPED == true and ATTACK == false then | |
3033 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -0.1 + 0.02 * math.cos(SINE / 8)) * angles(math.rad(0), math.rad(1), math.rad(15)), 0.1) | |
3034 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3035 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 0.15 / Animation_Speed) | |
3036 | RightShoulder.C0 = Clerp(RightShoulder.C0, CFrame.new(.9, 0.7, -0.7) * angles(math.rad(90 - 1 * math.cos(SINE / 8)), math.rad(0), math.rad(-50)), 0.1) | |
3037 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CFrame.new(-.9, 0.7, -0.5) * angles(math.rad(70 - 1 * math.cos(SINE / 8)), math.rad(-7), math.rad(70)), 0.1) | |
3038 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.02 * math.cos(SINE / 8), 0) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(SINE / 25))), 0.1) | |
3039 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.02 * math.cos(SINE / 8), 0) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(SINE / 25))), 0.1) | |
3040 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-100), RAD(90), RAD(0)), 0.15 / Animation_Speed) | |
3041 | end | |
3042 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
3043 | ANIM = "Walk" | |
3044 | WALK = WALK + 1 / Animation_Speed | |
3045 | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then | |
3046 | WALK = 0 | |
3047 | if WALKINGANIM == true then | |
3048 | WALKINGANIM = false | |
3049 | elseif WALKINGANIM == false then | |
3050 | WALKINGANIM = true | |
3051 | end | |
3052 | end | |
3053 | if EQUIPPED == true and ATTACK == false then | |
3054 | Humanoid.WalkSpeed = 20 | |
3055 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * COS(SINE / WALKSPEEDVALUE) * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3056 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3057 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
3058 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 * Player_Size, 0.2 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
3059 | RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3060 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3061 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3062 | end | |
3063 | end | |
3064 | ||
3065 | end |