SHOW:
|
|
- or go back to the newest paste.
1 | --//====================================================\\-- | |
2 | - | --|| Edited By adam222334I (follow me :D ) |
2 | + | --|| Edited By nuttanun734 (follow me :D ) |
3 | --\\====================================================//-- | |
4 | ||
5 | ||
6 | ----------skidded by blobgi jk | |
7 | - | local plr = game:service'Players'.LocalPlayer |
7 | + | local plr = owner |
8 | local char = plr.Character | |
9 | local hum = char.Humanoid | |
10 | local hed = char.Head | |
11 | Character = char | |
12 | Torso = Character["Torso"] | |
13 | Head = Character["Head"] | |
14 | RightArm = Character["Right Arm"] | |
15 | LeftArm = Character["Left Arm"] | |
16 | RightLeg = Character["Right Leg"] | |
17 | LeftLeg = Character["Left Leg"] | |
18 | ||
19 | local particleemitter = Instance.new('ParticleEmitter', LeftArm) | |
20 | particleemitter.VelocitySpread = 350 | |
21 | particleemitter.Lifetime = NumberRange.new(1) | |
22 | particleemitter.Speed = NumberRange.new(0) | |
23 | cringememe= {} | |
24 | for i=0, 19 do | |
25 | cringememe[#cringememe + 1] = NumberSequenceKeypoint.new(i/19, math.random(0.5, 0.9)) | |
26 | end | |
27 | particleemitter.Size = NumberSequence.new(cringememe) | |
28 | particleemitter.Rate = 50 | |
29 | particleemitter.LockedToPart = true | |
30 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
31 | particleemitter.LightEmission = 1 | |
32 | particleemitter.Texture = "rbxassetid://584827399" | |
33 | particleemitter.Color = ColorSequence.new(BrickColor.new("White").Color) | |
34 | ||
35 | local particleemitter = Instance.new('ParticleEmitter', Torso) | |
36 | particleemitter.VelocitySpread = 250 | |
37 | particleemitter.Lifetime = NumberRange.new(3) | |
38 | particleemitter.Speed = NumberRange.new(1.5) | |
39 | youAreATHOT = {} | |
40 | for i=0, 19 do | |
41 | youAreATHOT[#youAreATHOT + 1] = NumberSequenceKeypoint.new(i/19, math.random(0.5, 0.9)) | |
42 | end | |
43 | particleemitter.Size = NumberSequence.new(youAreATHOT) | |
44 | particleemitter.Rate = 50 | |
45 | particleemitter.LockedToPart = false | |
46 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
47 | particleemitter.LightEmission = 1 | |
48 | particleemitter.Texture = "rbxassetid://584827399" | |
49 | particleemitter.Color = ColorSequence.new(BrickColor.new("White").Color) | |
50 | ||
51 | local particleemitter = Instance.new('ParticleEmitter', RightArm) | |
52 | particleemitter.VelocitySpread = 350 | |
53 | particleemitter.Lifetime = NumberRange.new(1) | |
54 | particleemitter.Speed = NumberRange.new(0) | |
55 | cringememe2= {} | |
56 | for i=0, 19 do | |
57 | cringememe2[#cringememe2 + 1] = NumberSequenceKeypoint.new(i/19, math.random(0.5, 0.9)) | |
58 | end | |
59 | particleemitter.Size = NumberSequence.new(cringememe2) | |
60 | particleemitter.Rate = 50 | |
61 | particleemitter.LockedToPart = true | |
62 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
63 | particleemitter.LightEmission = 1 | |
64 | particleemitter.Texture = "rbxassetid://584827399" | |
65 | particleemitter.Color = ColorSequence.new(BrickColor.new("White").Color) | |
66 | ||
67 | local particleemitter = Instance.new('ParticleEmitter', RightLeg) | |
68 | particleemitter.VelocitySpread = 350 | |
69 | particleemitter.Lifetime = NumberRange.new(1) | |
70 | particleemitter.Speed = NumberRange.new(0) | |
71 | cringememe3= {} | |
72 | for i=0, 19 do | |
73 | cringememe3[#cringememe3 + 1] = NumberSequenceKeypoint.new(i/19, math.random(0.5, 0.9)) | |
74 | end | |
75 | particleemitter.Size = NumberSequence.new(cringememe3) | |
76 | particleemitter.Rate = 50 | |
77 | particleemitter.LockedToPart = true | |
78 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
79 | particleemitter.LightEmission = 1 | |
80 | particleemitter.Texture = "rbxassetid://584827399" | |
81 | particleemitter.Color = ColorSequence.new(BrickColor.new("White").Color) | |
82 | ||
83 | local particleemitter = Instance.new('ParticleEmitter', LeftLeg) | |
84 | particleemitter.VelocitySpread = 350 | |
85 | particleemitter.Lifetime = NumberRange.new(1) | |
86 | particleemitter.Speed = NumberRange.new(0) | |
87 | cringememe4= {} | |
88 | for i=0, 19 do | |
89 | cringememe4[#cringememe4 + 1] = NumberSequenceKeypoint.new(i/19, math.random(0.5, 0.9)) | |
90 | end | |
91 | particleemitter.Size = NumberSequence.new(cringememe4) | |
92 | particleemitter.Rate = 50 | |
93 | particleemitter.LockedToPart = true | |
94 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
95 | particleemitter.LightEmission = 1 | |
96 | particleemitter.Texture = "rbxassetid://584827399" | |
97 | particleemitter.Color = ColorSequence.new(BrickColor.new("White").Color) | |
98 | ||
99 | ||
100 | ||
101 | --------------------------------- | |
102 | local textblin = Instance.new("BillboardGui", game.Players.LocalPlayer.Character.Head) | |
103 | textblin.Adornee = cykablyat | |
104 | textblin.Name = "ky" | |
105 | textblin.Size = UDim2.new(2, 0, 1.2, 0) | |
106 | textblin.StudsOffset = Vector3.new(-5, 3, 0) | |
107 | local textblin= Instance.new("TextLabel", textblin) | |
108 | textblin.Size = UDim2.new(6, 0, 1, 0) | |
109 | textblin.FontSize = "Size8" | |
110 | textblin.TextScaled = true | |
111 | textblin.TextTransparency = 0 | |
112 | textblin.BackgroundTransparency = 1 | |
113 | textblin.TextTransparency = 0 | |
114 | textblin.TextStrokeTransparency = 0 | |
115 | textblin.Font = "SciFi" | |
116 | textblin.TextStrokeColor3 = Color3.new(0, 0, 255) | |
117 | textblin.Text = "Future-eye" | |
118 | ------------------------- | |
119 | TrailSettings = { | |
120 | Lifetime = 0.5, | |
121 | Texture = 'rbxassetid://31270182', | |
122 | --Color1 is for UpperBody and Accessories, Color2 is for Lower Body | |
123 | Color1 = ColorSequence.new(BrickColor.new('Toothpaste').Color,BrickColor.new('Royal purple').Color), | |
124 | Color2 = ColorSequence.new(BrickColor.new('Institutional white').Color,BrickColor.new('Really black').Color), | |
125 | AllBody = true, | |
126 | UpperBodyOnly = false, | |
127 | LowerBodyOnly = false, | |
128 | Accessories = false, | |
129 | Extras = true, | |
130 | R15 = false, --Change to true if you're using R15 | |
131 | R15Parts = { | |
132 | 'UpperTorso', | |
133 | 'LowerTorso', | |
134 | } | |
135 | } | |
136 | ||
137 | local Trail; --Making other Trails uses this in this Script | |
138 | ||
139 | --UpperBody Function | |
140 | UpperBody = function() | |
141 | if TrailSettings.R15 == false then | |
142 | A0 = Instance.new('Attachment',Character.Torso) | |
143 | A1 = Instance.new('Attachment',Character.Head) | |
144 | A2 = Instance.new('Attachment',Character['Right Arm']) | |
145 | A3 = Instance.new('Attachment',Character['Left Arm']) | |
146 | Trail = Instance.new('Trail',Character) | |
147 | Trail.Attachment0 = A0 | |
148 | Trail.Attachment1 = A1 | |
149 | Trail.Texture = TrailSettings.Texture | |
150 | Trail.Color = TrailSettings.Color1 | |
151 | Trail.Lifetime = TrailSettings.Lifetime | |
152 | local Trail2 = Trail:Clone() | |
153 | Trail2.Parent = Character | |
154 | Trail2.Attachment1 = A2 | |
155 | local Trail3 = Trail:Clone() | |
156 | Trail3.Parent = Character | |
157 | Trail3.Attachment1 = A3 | |
158 | local Trail6 = Trail:Clone() | |
159 | Trail6.Parent = Character | |
160 | Trail6.Attachment0 = A1 | |
161 | Trail6.Attachment1 = A2 | |
162 | local Trail7 = Trail:Clone() | |
163 | Trail7.Parent = Character | |
164 | Trail7.Attachment0 = A1 | |
165 | Trail7.Attachment1 = A3 | |
166 | else | |
167 | A0 = Instance.new('Attachment',Character[TrailSettings.R15Parts[1]]) | |
168 | A0R = Instance.new('Attachment',Character[TrailSettings.R15Parts[2]]) | |
169 | A1 = Instance.new('Attachment',Character.Head) | |
170 | A2 = Instance.new('Attachment',Character['RightUpperArm']) | |
171 | A2R = Instance.new('Attachment',Character['RightLowerArm']) | |
172 | A3 = Instance.new('Attachment',Character['LeftUpperArm']) | |
173 | A3R = Instance.new('Attachment',Character['LeftLowerArm']) | |
174 | Trail = Instance.new('Trail',Character) | |
175 | Trail.Attachment0 = A0 | |
176 | Trail.Attachment1 = A1 | |
177 | Trail.Texture = TrailSettings.Texture | |
178 | Trail.Color = TrailSettings.Color1 | |
179 | Trail.Lifetime = TrailSettings.Lifetime | |
180 | local Trail2 = Trail:Clone() | |
181 | Trail2.Parent = Character | |
182 | Trail2.Attachment1 = A2 | |
183 | local Trail3 = Trail:Clone() | |
184 | Trail3.Parent = Character | |
185 | Trail3.Attachment1 = A3 | |
186 | local Trail6 = Trail:Clone() | |
187 | Trail6.Parent = Character | |
188 | Trail6.Attachment0 = A1 | |
189 | Trail6.Attachment1 = A2 | |
190 | local Trail7 = Trail:Clone() | |
191 | Trail7.Parent = Character | |
192 | Trail7.Attachment0 = A1 | |
193 | Trail7.Attachment1 = A3 | |
194 | --R15 Trails | |
195 | local Trail1R = Trail:Clone() | |
196 | Trail1R.Parent = Character | |
197 | Trail1R.Attachment1 = A2R | |
198 | local Trail2R = Trail:Clone() | |
199 | Trail2R.Parent = Character | |
200 | Trail2R.Attachment1 = A3R | |
201 | local Trail6R = Trail:Clone() | |
202 | Trail6.Parent = Character | |
203 | Trail6.Attachment0 = A1 | |
204 | Trail6.Attachment1 = A2R | |
205 | local Trail7R = Trail:Clone() | |
206 | Trail7.Parent = Character | |
207 | Trail7.Attachment0 = A1 | |
208 | Trail7.Attachment1 = A3R | |
209 | end | |
210 | end | |
211 | ||
212 | --Lower Body Function | |
213 | LowerBody = function() | |
214 | if TrailSettings.R15 == false then | |
215 | A4 = Instance.new('Attachment',Character['Right Leg']) | |
216 | A5 = Instance.new('Attachment',Character['Left Leg']) | |
217 | local Trail4 = Trail:Clone() | |
218 | Trail4.Parent = Character | |
219 | Trail4.Attachment1 = A4 | |
220 | local Trail5 = Trail:Clone() | |
221 | Trail5.Parent = Character | |
222 | Trail5.Attachment1 = A5 | |
223 | local Trail8 = Trail:Clone() | |
224 | Trail8.Parent = Character | |
225 | Trail8.Attachment0 = A2 | |
226 | Trail8.Attachment1 = A4 | |
227 | Trail8.Color = TrailSettings.Color2 | |
228 | local Trail9 = Trail:Clone() | |
229 | Trail9.Parent = Character | |
230 | Trail9.Attachment0 = A3 | |
231 | Trail9.Attachment1 = A5 | |
232 | Trail9.Color = TrailSettings.Color2 | |
233 | local FT = Trail:Clone() | |
234 | FT.Parent = Character | |
235 | FT.Attachment0 = A4 | |
236 | FT.Attachment1 = A5 | |
237 | FT.Color = TrailSettings.Color2 | |
238 | else | |
239 | A4 = Instance.new('Attachment',Character['RightLowerLeg']) | |
240 | A4R = Instance.new('Attachment',Character['RightUpperLeg']) | |
241 | A5 = Instance.new('Attachment',Character['LeftLowerLeg']) | |
242 | A5R = Instance.new('Attachment',Character['LeftUpperLeg']) | |
243 | local Trail4 = Trail:Clone() | |
244 | Trail4.Parent = Character | |
245 | Trail4.Attachment1 = A4 | |
246 | local Trail5 = Trail:Clone() | |
247 | Trail5.Parent = Character | |
248 | Trail5.Attachment1 = A5 | |
249 | local Trail8 = Trail:Clone() | |
250 | Trail8.Parent = Character | |
251 | Trail8.Attachment0 = A2 | |
252 | Trail8.Attachment1 = A4 | |
253 | Trail8.Color = TrailSettings.Color2 | |
254 | local Trail9 = Trail:Clone() | |
255 | Trail9.Parent = Character | |
256 | Trail9.Attachment0 = A3 | |
257 | Trail9.Attachment1 = A5 | |
258 | Trail9.Color = TrailSettings.Color2 | |
259 | local FT = Trail:Clone() | |
260 | FT.Parent = Character | |
261 | FT.Attachment0 = A4 | |
262 | FT.Attachment1 = A5 | |
263 | FT.Color = TrailSettings.Color2 | |
264 | --R15 Trails | |
265 | local Trail3R = Trail:Clone() | |
266 | Trail3R.Parent = Character | |
267 | Trail3R.Attachment1 = A4R | |
268 | local Trail4R = Trail:Clone() | |
269 | Trail4R.Parent = Character | |
270 | Trail4R.Attachment1 = A5R | |
271 | local Trail8 = Trail:Clone() | |
272 | Trail8.Parent = Character | |
273 | Trail8.Attachment0 = A2R | |
274 | Trail8.Attachment1 = A4R | |
275 | Trail8.Color = TrailSettings.Color2 | |
276 | local Trail9 = Trail:Clone() | |
277 | Trail9.Parent = Character | |
278 | Trail9.Attachment0 = A3R | |
279 | Trail9.Attachment1 = A5R | |
280 | Trail9.Color = TrailSettings.Color2 | |
281 | local FT2R = Trail:Clone() | |
282 | FT2R.Parent = Character | |
283 | FT2R.Attachment0 = A4R | |
284 | FT2R.Attachment1 = A5R | |
285 | FT2R.Color = TrailSettings.Color2 | |
286 | end | |
287 | end | |
288 | ||
289 | --All Body Function calling Both Functions | |
290 | AllBody = function() | |
291 | UpperBody() | |
292 | LowerBody() | |
293 | end | |
294 | ||
295 | --Checking to make sure that Only some Variables are Selected else do All Body | |
296 | if TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then | |
297 | TrailSettings.UpperBodyOnly = false | |
298 | TrailSettings.LowerBodyOnly = false | |
299 | elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == false and TrailSettings.LowerBodyOnly == true then | |
300 | TrailSettings.UpperBodyOnly = false | |
301 | TrailSettings.LowerBodyOnly = false | |
302 | elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == false then | |
303 | TrailSettings.UpperBodyOnly = false | |
304 | TrailSettings.LowerBodyOnly = false | |
305 | elseif TrailSettings.AllBody == false and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then | |
306 | TrailSettings.AllBody = true | |
307 | TrailSettings.UpperBodyOnly = false | |
308 | TrailSettings.LowerBodyOnly = false | |
309 | end | |
310 | ||
311 | --Call Trail Functions | |
312 | if TrailSettings.UpperBodyOnly == true then | |
313 | UpperBody() | |
314 | print('Called Upper Body Trail') | |
315 | elseif TrailSettings.LowerBodyOnly == true then | |
316 | LowerBody() | |
317 | print('Called Lower Body Trail') | |
318 | elseif TrailSettings.AllBody == true then | |
319 | AllBody() | |
320 | print('Called Full Body Trail') | |
321 | end | |
322 | ||
323 | --Trails for Accessories | |
324 | if TrailSettings.Accessories == true then | |
325 | for Index,Item in pairs(Character:GetChildren()) do | |
326 | if Item:IsA'Accessory' then | |
327 | local AA = Instance.new('Attachment',Item.Handle) | |
328 | local ATrail = Trail:Clone() | |
329 | ATrail.Parent = Character | |
330 | ATrail.Attachment1 = AA | |
331 | end | |
332 | end | |
333 | end | |
334 | ||
335 | --Extras | |
336 | if TrailSettings.Extras == true then | |
337 | --Making an Invisible Platform Part | |
338 | local a = Instance.new('Part',Character) | |
339 | a.CanCollide = false | |
340 | a.Size = Vector3.new(2,.2,2) | |
341 | a.Transparency = 1 | |
342 | ||
343 | --Constantly putting it under your feet | |
344 | if TrailSettings.R15 == false then | |
345 | spawn(function() | |
346 | game:GetService('RunService').RenderStepped:connect(function() | |
347 | a.CFrame = Character.Torso.CFrame * CFrame.new(0,-3,0) | |
348 | end) | |
349 | end) | |
350 | else | |
351 | spawn(function() | |
352 | game:GetService('RunService').RenderStepped:connect(function() | |
353 | a.CFrame = Character[TrailSettings.R15Parts[2]].CFrame * CFrame.new(0,-2,0) | |
354 | end) | |
355 | end) | |
356 | end | |
357 | ||
358 | --Make a Trail from both feet to the Platform | |
359 | spawn(function() | |
360 | repeat wait() until Trail | |
361 | local AB = Instance.new('Attachment',a) | |
362 | local ABT = Trail:Clone() | |
363 | ABT.Parent = Character | |
364 | ABT.Attachment0 = A4 | |
365 | ABT.Attachment1 = AB | |
366 | ABT.Color = TrailSettings.Color2 | |
367 | local ABT2 = Trail:Clone() | |
368 | ABT2.Parent = Character | |
369 | ABT2.Attachment0 = A5 | |
370 | ABT2.Attachment1 = AB | |
371 | ABT2.Color = TrailSettings.Color2 | |
372 | end) | |
373 | end | |
374 | -- | |
375 | ||
376 | wait(0.2) | |
377 | ||
378 | Player = game:GetService("Players").LocalPlayer | |
379 | PlayerGui = Player.PlayerGui | |
380 | Cam = workspace.CurrentCamera | |
381 | Backpack = Player.Backpack | |
382 | Character = Player.Character | |
383 | - | Humanoid = Character.Humanoid |
383 | + | Humanoid = Character.Humanoidcf |
384 | - | Mouse = Player:GetMouse() |
384 | + | |
385 | Torso = Character["Torso"] | |
386 | Head = Character["Head"] | |
387 | RightArm = Character["Right Arm"] | |
388 | LeftArm = Character["Left Arm"] | |
389 | RightLeg = Character["Right Leg"] | |
390 | LeftLeg = Character["Left Leg"] | |
391 | RootJoint = RootPart["RootJoint"] | |
392 | Neck = Torso["Neck"] | |
393 | RightShoulder = Torso["Right Shoulder"] | |
394 | LeftShoulder = Torso["Left Shoulder"] | |
395 | RightHip = Torso["Right Hip"] | |
396 | LeftHip = Torso["Left Hip"] | |
397 | local sick = Instance.new("Sound",Torso) | |
398 | sick.SoundId = "rbxassetid://848439234" | |
399 | sick.Looped = true | |
400 | sick.Pitch = 1 | |
401 | sick.Volume = 5 | |
402 | sick:Play() | |
403 | ||
404 | IT = Instance.new | |
405 | CF = CFrame.new | |
406 | VT = Vector3.new | |
407 | RAD = math.rad | |
408 | C3 = Color3.fromRGB | |
409 | UD2 = UDim2.new | |
410 | BRICKC = BrickColor.new | |
411 | ANGLES = CFrame.Angles | |
412 | EULER = CFrame.fromEulerAnglesXYZ | |
413 | COS = math.cos | |
414 | ACOS = math.acos | |
415 | SIN = math.sin | |
416 | ASIN = math.asin | |
417 | ABS = math.abs | |
418 | MRANDOM = math.random | |
419 | FLOOR = math.floor | |
420 | ||
421 | --//=================================\\ | |
422 | --|| USEFUL VALUES | |
423 | --\\=================================// | |
424 | ||
425 | Animation_Speed = 2 | |
426 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
427 | local Speed = 50 | |
428 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
429 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
430 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
431 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
432 | local DAMAGEMULTIPLIER = 1 | |
433 | local ANIM = "Idle" | |
434 | local ATTACK = false | |
435 | local EQUIPPED = false | |
436 | local HOLD = false | |
437 | local COMBO = 1 | |
438 | local Rooted = false | |
439 | local SINE = 0 | |
440 | local KEYHOLD = false | |
441 | local CHANGE = 2 / Animation_Speed | |
442 | local WALKINGANIM = false | |
443 | local VALUE1 = false | |
444 | local VALUE2 = false | |
445 | local ROBLOXIDLEANIMATION = IT("Animation") | |
446 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
447 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
448 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
449 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
450 | WEAPONGUI.Name = "Weapon GUI" | |
451 | local Effects = IT("Folder", Character) | |
452 | Effects.Name = "Effects" | |
453 | local ANIMATOR = Humanoid.Animator | |
454 | local ANIMATE = Character.Animate | |
455 | local UNANCHOR = true | |
456 | local LAUGHS = {834001699,834001752,834001797,834001828} | |
457 | local SONGS = {1534958855} | |
458 | local CHOICE = MRANDOM(1) | |
459 | ||
460 | --//=================================\\ | |
461 | --\\=================================// | |
462 | ||
463 | ||
464 | --//=================================\\ | |
465 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
466 | --\\=================================// | |
467 | ||
468 | ArtificialHB = Instance.new("BindableEvent", script) | |
469 | ArtificialHB.Name = "ArtificialHB" | |
470 | ||
471 | script:WaitForChild("ArtificialHB") | |
472 | ||
473 | frame = Frame_Speed | |
474 | tf = 0 | |
475 | allowframeloss = false | |
476 | tossremainder = false | |
477 | lastframe = tick() | |
478 | script.ArtificialHB:Fire() | |
479 | ||
480 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
481 | tf = tf + s | |
482 | if tf >= frame then | |
483 | if allowframeloss then | |
484 | script.ArtificialHB:Fire() | |
485 | lastframe = tick() | |
486 | else | |
487 | for i = 1, math.floor(tf / frame) do | |
488 | script.ArtificialHB:Fire() | |
489 | end | |
490 | lastframe = tick() | |
491 | end | |
492 | if tossremainder then | |
493 | tf = 0 | |
494 | else | |
495 | tf = tf - frame * math.floor(tf / frame) | |
496 | end | |
497 | end | |
498 | end) | |
499 | ||
500 | --//=================================\\ | |
501 | --\\=================================// | |
502 | ||
503 | --//=================================\\ | |
504 | --|| SOME FUNCTIONS | |
505 | --\\=================================// | |
506 | ||
507 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
508 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
509 | end | |
510 | ||
511 | function PositiveAngle(NUMBER) | |
512 | if NUMBER >= 0 then | |
513 | NUMBER = 0 | |
514 | end | |
515 | return NUMBER | |
516 | end | |
517 | ||
518 | function NegativeAngle(NUMBER) | |
519 | if NUMBER <= 0 then | |
520 | NUMBER = 0 | |
521 | end | |
522 | return NUMBER | |
523 | end | |
524 | ||
525 | function Swait(NUMBER) | |
526 | if NUMBER == 0 or NUMBER == nil then | |
527 | ArtificialHB.Event:wait() | |
528 | else | |
529 | for i = 1, NUMBER do | |
530 | ArtificialHB.Event:wait() | |
531 | end | |
532 | end | |
533 | end | |
534 | ||
535 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
536 | local NEWMESH = IT(MESH) | |
537 | if MESH == "SpecialMesh" then | |
538 | NEWMESH.MeshType = MESHTYPE | |
539 | if MESHID ~= "nil" and MESHID ~= "" then | |
540 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
541 | end | |
542 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
543 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
544 | end | |
545 | end | |
546 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
547 | NEWMESH.Scale = SCALE | |
548 | NEWMESH.Parent = PARENT | |
549 | return NEWMESH | |
550 | end | |
551 | ||
552 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
553 | local NEWPART = IT("Part") | |
554 | NEWPART.formFactor = FORMFACTOR | |
555 | NEWPART.Reflectance = REFLECTANCE | |
556 | NEWPART.Transparency = TRANSPARENCY | |
557 | NEWPART.CanCollide = false | |
558 | NEWPART.Locked = true | |
559 | NEWPART.Anchored = true | |
560 | if ANCHOR == false then | |
561 | NEWPART.Anchored = false | |
562 | end | |
563 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
564 | NEWPART.Name = NAME | |
565 | NEWPART.Size = SIZE | |
566 | NEWPART.Position = Torso.Position | |
567 | NEWPART.Material = MATERIAL | |
568 | NEWPART:BreakJoints() | |
569 | NEWPART.Parent = PARENT | |
570 | return NEWPART | |
571 | end | |
572 | ||
573 | local function weldBetween(a, b) | |
574 | local weldd = IT("Weld") | |
575 | weldd.Part0 = a | |
576 | weldd.Part1 = b | |
577 | weldd.C0 = CF() | |
578 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
579 | weldd.Parent = a | |
580 | return weldd | |
581 | end | |
582 | ||
583 | ||
584 | function QuaternionFromCFrame(cf) | |
585 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
586 | local trace = m00 + m11 + m22 | |
587 | if trace > 0 then | |
588 | local s = math.sqrt(1 + trace) | |
589 | local recip = 0.5 / s | |
590 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
591 | else | |
592 | local i = 0 | |
593 | if m11 > m00 then | |
594 | i = 1 | |
595 | end | |
596 | if m22 > (i == 0 and m00 or m11) then | |
597 | i = 2 | |
598 | end | |
599 | if i == 0 then | |
600 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
601 | local recip = 0.5 / s | |
602 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
603 | elseif i == 1 then | |
604 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
605 | local recip = 0.5 / s | |
606 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
607 | elseif i == 2 then | |
608 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
609 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
610 | end | |
611 | end | |
612 | end | |
613 | ||
614 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
615 | local xs, ys, zs = x + x, y + y, z + z | |
616 | local wx, wy, wz = w * xs, w * ys, w * zs | |
617 | local xx = x * xs | |
618 | local xy = x * ys | |
619 | local xz = x * zs | |
620 | local yy = y * ys | |
621 | local yz = y * zs | |
622 | local zz = z * zs | |
623 | 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)) | |
624 | end | |
625 | ||
626 | function QuaternionSlerp(a, b, t) | |
627 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
628 | local startInterp, finishInterp; | |
629 | if cosTheta >= 0.0001 then | |
630 | if (1 - cosTheta) > 0.0001 then | |
631 | local theta = ACOS(cosTheta) | |
632 | local invSinTheta = 1 / SIN(theta) | |
633 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
634 | finishInterp = SIN(t * theta) * invSinTheta | |
635 | else | |
636 | startInterp = 1 - t | |
637 | finishInterp = t | |
638 | end | |
639 | else | |
640 | if (1 + cosTheta) > 0.0001 then | |
641 | local theta = ACOS(-cosTheta) | |
642 | local invSinTheta = 1 / SIN(theta) | |
643 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
644 | finishInterp = SIN(t * theta) * invSinTheta | |
645 | else | |
646 | startInterp = t - 1 | |
647 | finishInterp = t | |
648 | end | |
649 | end | |
650 | 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 | |
651 | end | |
652 | ||
653 | function Clerp(a, b, t) | |
654 | local qa = {QuaternionFromCFrame(a)} | |
655 | local qb = {QuaternionFromCFrame(b)} | |
656 | local ax, ay, az = a.x, a.y, a.z | |
657 | local bx, by, bz = b.x, b.y, b.z | |
658 | local _t = 1 - t | |
659 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
660 | end | |
661 | ||
662 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
663 | local frame = IT("Frame") | |
664 | frame.BackgroundTransparency = TRANSPARENCY | |
665 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
666 | frame.Position = POSITION | |
667 | frame.Size = SIZE | |
668 | frame.BackgroundColor3 = COLOR | |
669 | frame.BorderColor3 = BORDERCOLOR | |
670 | frame.Name = NAME | |
671 | frame.Parent = PARENT | |
672 | return frame | |
673 | end | |
674 | ||
675 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
676 | local label = IT("TextLabel") | |
677 | label.BackgroundTransparency = 1 | |
678 | label.Size = UD2(1, 0, 1, 0) | |
679 | label.Position = UD2(0, 0, 0, 0) | |
680 | label.TextColor3 = TEXTCOLOR | |
681 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
682 | label.TextTransparency = TRANSPARENCY | |
683 | label.FontSize = TEXTFONTSIZE | |
684 | label.Font = TEXTFONT | |
685 | label.BorderSizePixel = BORDERSIZEPIXEL | |
686 | label.TextScaled = false | |
687 | label.Text = TEXT | |
688 | label.Name = NAME | |
689 | label.Parent = PARENT | |
690 | return label | |
691 | end | |
692 | ||
693 | function NoOutlines(PART) | |
694 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
695 | end | |
696 | ||
697 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
698 | local NEWWELD = IT(TYPE) | |
699 | NEWWELD.Part0 = PART0 | |
700 | NEWWELD.Part1 = PART1 | |
701 | NEWWELD.C0 = C0 | |
702 | NEWWELD.C1 = C1 | |
703 | NEWWELD.Parent = PARENT | |
704 | return NEWWELD | |
705 | end | |
706 | ||
707 | local S = IT("Sound") | |
708 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
709 | local NEWSOUND = nil | |
710 | coroutine.resume(coroutine.create(function() | |
711 | NEWSOUND = S:Clone() | |
712 | NEWSOUND.Parent = PARENT | |
713 | NEWSOUND.Volume = VOLUME | |
714 | NEWSOUND.Pitch = PITCH | |
715 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
716 | NEWSOUND:play() | |
717 | if DOESLOOP == true then | |
718 | NEWSOUND.Looped = true | |
719 | else | |
720 | repeat wait(1) until NEWSOUND.Playing == false | |
721 | NEWSOUND:remove() | |
722 | end | |
723 | end)) | |
724 | return NEWSOUND | |
725 | end | |
726 | ||
727 | function CFrameFromTopBack(at, top, back) | |
728 | local right = top:Cross(back) | |
729 | 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) | |
730 | end | |
731 | ||
732 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
733 | function WACKYEFFECT(Table) | |
734 | local TYPE = (Table.EffectType or "Sphere") | |
735 | local SIZE = (Table.Size or VT(1,1,1)) | |
736 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
737 | local TRANSPARENCY = (Table.Transparency or 0) | |
738 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
739 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
740 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
741 | local ROTATION1 = (Table.RotationX or 0) | |
742 | local ROTATION2 = (Table.RotationY or 0) | |
743 | local ROTATION3 = (Table.RotationZ or 0) | |
744 | local MATERIAL = (Table.Material or "Neon") | |
745 | local COLOR = (Table.Color or C3(1,1,1)) | |
746 | local TIME = (Table.Time or 45) | |
747 | local SOUNDID = (Table.SoundID or nil) | |
748 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
749 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
750 | coroutine.resume(coroutine.create(function() | |
751 | local PLAYSSOUND = false | |
752 | local SOUND = nil | |
753 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
754 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
755 | PLAYSSOUND = true | |
756 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
757 | end | |
758 | EFFECT.Color = COLOR | |
759 | local MSH = nil | |
760 | if TYPE == "Sphere" then | |
761 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
762 | elseif TYPE == "Block" then | |
763 | MSH = IT("BlockMesh",EFFECT) | |
764 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
765 | elseif TYPE == "Wave" then | |
766 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
767 | elseif TYPE == "Ring" then | |
768 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
769 | elseif TYPE == "Slash" then | |
770 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
771 | elseif TYPE == "Round Slash" then | |
772 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
773 | elseif TYPE == "Swirl" then | |
774 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
775 | elseif TYPE == "Skull" then | |
776 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
777 | elseif TYPE == "Crystal" then | |
778 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
779 | end | |
780 | if MSH ~= nil then | |
781 | local MOVESPEED = nil | |
782 | if MOVEDIRECTION ~= nil then | |
783 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
784 | end | |
785 | local GROWTH = SIZE - ENDSIZE | |
786 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
787 | if TYPE == "Block" then | |
788 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
789 | else | |
790 | EFFECT.CFrame = CFRAME | |
791 | end | |
792 | for LOOP = 1, TIME+1 do | |
793 | Swait() | |
794 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
795 | if TYPE == "Wave" then | |
796 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
797 | end | |
798 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
799 | if TYPE == "Block" then | |
800 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
801 | else | |
802 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
803 | end | |
804 | if MOVEDIRECTION ~= nil then | |
805 | local ORI = EFFECT.Orientation | |
806 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
807 | EFFECT.Orientation = ORI | |
808 | end | |
809 | end | |
810 | if PLAYSSOUND == false then | |
811 | EFFECT:remove() | |
812 | else | |
813 | SOUND.Stopped:Connect(function() | |
814 | EFFECT:remove() | |
815 | end) | |
816 | end | |
817 | else | |
818 | if PLAYSSOUND == false then | |
819 | EFFECT:remove() | |
820 | else | |
821 | repeat Swait() until SOUND.Playing == false | |
822 | EFFECT:remove() | |
823 | end | |
824 | end | |
825 | end)) | |
826 | end | |
827 | ||
828 | function MakeForm(PART,TYPE) | |
829 | if TYPE == "Cyl" then | |
830 | local MSH = IT("CylinderMesh",PART) | |
831 | elseif TYPE == "Ball" then | |
832 | local MSH = IT("SpecialMesh",PART) | |
833 | MSH.MeshType = "Sphere" | |
834 | elseif TYPE == "Wedge" then | |
835 | local MSH = IT("SpecialMesh",PART) | |
836 | MSH.MeshType = "Wedge" | |
837 | end | |
838 | end | |
839 | ||
840 | Debris = game:GetService("Debris") | |
841 | ||
842 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
843 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
844 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
845 | end | |
846 | ||
847 | function turnto(position) | |
848 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
849 | end | |
850 | ||
851 | function SpawnTrail(FROM,TO,BIG) | |
852 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really blue", "Trail", VT(0,0,0)) | |
853 | MakeForm(TRAIL,"Cyl") | |
854 | local DIST = (FROM - TO).Magnitude | |
855 | if BIG == true then | |
856 | TRAIL.Size = VT(0.5,DIST,0.5) | |
857 | else | |
858 | TRAIL.Size = VT(0.25,DIST,0.25) | |
859 | end | |
860 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
861 | coroutine.resume(coroutine.create(function() | |
862 | for i = 0, 5 do | |
863 | Swait() | |
864 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
865 | end | |
866 | TRAIL:remove() | |
867 | end)) | |
868 | end | |
869 | ||
870 | local asd = Instance.new("ParticleEmitter") | |
871 | asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0)) | |
872 | asd.LightEmission = .1 | |
873 | asd.Texture = "http://www.roblox.com/asset/?ID=584827399" | |
874 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)}) | |
875 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
876 | asd.Transparency = aaa | |
877 | asd.Size = bbb | |
878 | asd.ZOffset = .9 | |
879 | asd.Acceleration = Vector3.new(0, -15, 0) | |
880 | asd.LockedToPart = false | |
881 | asd.EmissionDirection = "Back" | |
882 | asd.Lifetime = NumberRange.new(1, 2) | |
883 | asd.Rotation = NumberRange.new(-100, 100) | |
884 | asd.RotSpeed = NumberRange.new(-100, 100) | |
885 | asd.Speed = NumberRange.new(10) | |
886 | asd.Enabled = true | |
887 | asd.VelocitySpread = 999 | |
888 | ||
889 | function getbloody(victim,amount) | |
890 | local PART = CreatePart(3, Effects, "Metal", 0, 1, "Really blue", "Blood", victim.Size) | |
891 | PART.CFrame = victim.CFrame | |
892 | local HITPLAYERSOUNDS = {"356551938","264486467"} | |
893 | Debris:AddItem(PART,5) | |
894 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
895 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
896 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
897 | local prtcl = asd:Clone() | |
898 | prtcl.Parent = PART | |
899 | prtcl:Emit(amount*10) | |
900 | end | |
901 | ||
902 | local Particle = IT("ParticleEmitter",nil) | |
903 | Particle.Enabled = true | |
904 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)}) | |
905 | Particle.LightEmission = 1 | |
906 | Particle.Rate = 800 | |
907 | Particle.ZOffset = 1 | |
908 | Particle.Rotation = NumberRange.new(-180, 180) | |
909 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
910 | Particle.Texture = "http://www.roblox.com/asset/?id=584827399" | |
911 | Particle.Color = ColorSequence.new(C3(0,0,255),C3(0.4,0,0)) | |
912 | ||
913 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 5, Lifetime2 = 5, Parent = Torso, Emit = 100, Offset = 360, Enabled = true}) | |
914 | function ParticleEmitter(Table) | |
915 | local PRTCL = Particle:Clone() | |
916 | local Speed = Table.Speed or 5 | |
917 | local Drag = Table.Drag or 0 | |
918 | local Size1 = Table.Size1 or 1 | |
919 | local Size2 = Table.Size2 or 5 | |
920 | local Lifetime1 = Table.Lifetime1 or 1 | |
921 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
922 | local Parent = Table.Parent or Torso | |
923 | local Emit = Table.Emit or 100 | |
924 | local Offset = Table.Offset or 360 | |
925 | local Acel = Table.Acel or VT(0,0,0) | |
926 | local Enabled = Table.Enabled or false | |
927 | PRTCL.Parent = Parent | |
928 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
929 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
930 | PRTCL.Speed = NumberRange.new(Speed) | |
931 | PRTCL.VelocitySpread = Offset | |
932 | PRTCL.Drag = Drag | |
933 | PRTCL.Acceleration = Acel | |
934 | if Enabled == false then | |
935 | PRTCL:Emit(Emit) | |
936 | Debris:AddItem(PRTCL,Lifetime2) | |
937 | else | |
938 | PRTCL.Enabled = true | |
939 | end | |
940 | return PRTCL | |
941 | end | |
942 | ||
943 | --//=================================\\ | |
944 | --|| WEAPON CREATION | |
945 | --\\=================================// | |
946 | ||
947 | local Handle = CreatePart(3, Character, "Metal", 0, 0, "Really blue", "Part", VT(0.2,1.2,0.2),false) | |
948 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.3, 0)) | |
949 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really blue", "Part", VT(0.2,0.8,0.2),false) | |
950 | MakeForm(Part,"Wedge") | |
951 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0.2, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
952 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really blue", "Part", VT(0.3,0.5,0.6),false) | |
953 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
954 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really blue", "Part", VT(0.4,0.4,0.4),false) | |
955 | MakeForm(Part,"Cyl") | |
956 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
957 | for i = 1, 8 do | |
958 | local Piece = CreatePart(3, Character, "Metal", 0, 0, "Really blue", "Eye", VT(0,0.35,0.41),false) | |
959 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
960 | end | |
961 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really blue", "Part", VT(0.2,0.5,0.2),false) | |
962 | MakeForm(Part,"Wedge") | |
963 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
964 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really blue", "Eye", VT(0.39,0.41,0.39),false) | |
965 | MakeForm(Part,"Cyl") | |
966 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
967 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really blue", "Part", VT(0.3,0.5,0.5),false) | |
968 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
969 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really blue", "Part", VT(0.3,0.4,0.5),false) | |
970 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.65) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
971 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really blue", "Part", VT(0.2,0,0.6),false) | |
972 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, -0.2, -0.3)) | |
973 | local RightBarrel = CreatePart(3, Character, "Metal", 0, 0, "Really blue", "Part", VT(0.28,5,0.28),false) | |
974 | MakeForm(RightBarrel,"Cyl") | |
975 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, RightBarrel, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -2.5, 0)) | |
976 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really blue", "Part", VT(0,0.2,0.2),false) | |
977 | MakeForm(Part,"Wedge") | |
978 | CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, Part, CF(0, 2.415, 0.15) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
979 | local RightHole = CreatePart(3, Character, "Metal", 0, 0, "Really blue", "Eye", VT(0.2,0,0.2),false) | |
980 | MakeForm(RightHole,"Cyl") | |
981 | CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, RightHole, CF(0, 2.5, 0), CF(0, 0, 0)) | |
982 | local Handle = CreatePart(3, Character, "Metal", 0, 0, "Really blue", "Part", VT(0.2,1.2,0.2),false) | |
983 | local LeftArmGraps = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.3, 0)) | |
984 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really blue", "Part", VT(0.2,0.8,0.2),false) | |
985 | MakeForm(Part,"Wedge") | |
986 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0.2, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
987 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really blue", "Part", VT(0.3,0.5,0.6),false) | |
988 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
989 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really blue", "Part", VT(0.4,0.4,0.4),false) | |
990 | MakeForm(Part,"Cyl") | |
991 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
992 | for i = 1, 8 do | |
993 | local Piece = CreatePart(3, Character, "Metal", 0, 0, "Really blue", "Eye", VT(0,0.35,0.41),false) | |
994 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
995 | end | |
996 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really blue", "Part", VT(0.2,0.5,0.2),false) | |
997 | MakeForm(Part,"Wedge") | |
998 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
999 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really blue", "Eye", VT(0.39,0.41,0.39),false) | |
1000 | MakeForm(Part,"Cyl") | |
1001 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1002 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really blue", "Part", VT(0.3,0.5,0.5),false) | |
1003 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1004 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really blue", "Part", VT(0.3,0.4,0.5),false) | |
1005 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.65) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1006 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really blue", "Part", VT(0.2,0,0.6),false) | |
1007 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, -0.2, -0.3)) | |
1008 | local LeftBarrel = CreatePart(3, Character, "Metal", 0, 0, "Really blue", "Part", VT(0.28,5,0.28),false) | |
1009 | MakeForm(LeftBarrel,"Cyl") | |
1010 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, LeftBarrel, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -2.5, 0)) | |
1011 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really blue", "Part", VT(0,0.2,0.2),false) | |
1012 | MakeForm(Part,"Wedge") | |
1013 | CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, Part, CF(0, 2.415, 0.15) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1014 | local LeftHole = CreatePart(3, Character, "Metal", 0, 0, "Really blue", "Eye", VT(0.2,0,0.2),false) | |
1015 | MakeForm(LeftHole,"Cyl") | |
1016 | CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, LeftHole, CF(0, 2.5, 0), CF(0, 0, 0)) | |
1017 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Eye", VT(0.6,0.1,1)/2,false) | |
1018 | MakeForm(Eye,"Ball") | |
1019 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4)) | |
1020 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Eye", VT(0.6,0.1,1)/2,false) | |
1021 | MakeForm(Eye,"Ball") | |
1022 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4)) | |
1023 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Eye", VT(0.1,1,1)/2,false) | |
1024 | MakeForm(Eye,"Ball") | |
1025 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4)) | |
1026 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Eye", VT(0.1,1,1)/2,false) | |
1027 | MakeForm(Eye,"Ball") | |
1028 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4)) | |
1029 | local A = IT("Attachment",Torso) | |
1030 | A.Position = VT(1,1.3,0) | |
1031 | A.Orientation = VT(-0.098, -89.999, 0.227) | |
1032 | local B = IT("Attachment",Torso) | |
1033 | B.Position = VT(-1.3,-0.6,0) | |
1034 | B.Orientation = VT(-88.911, -68.808, 158.782) | |
1035 | local ChainLink = IT("Beam",Torso) | |
1036 | ChainLink.Texture = "rbxassetid://73042633" | |
1037 | ChainLink.Color = ColorSequence.new(C3(0,0,255)) | |
1038 | ChainLink.TextureSpeed = 1 | |
1039 | ChainLink.FaceCamera = true | |
1040 | ChainLink.Width0 = 1 | |
1041 | ChainLink.Width1 = 1 | |
1042 | ChainLink.TextureLength = 3 | |
1043 | ChainLink.Attachment0 = A | |
1044 | ChainLink.Attachment1 = B | |
1045 | ChainLink.CurveSize0 = 1.6 | |
1046 | ChainLink.CurveSize1 = 1.6 | |
1047 | ChainLink.FaceCamera = true | |
1048 | ChainLink.Transparency = NumberSequence.new(0) | |
1049 | local ChainLink = IT("Beam",Torso) | |
1050 | ChainLink.Texture = "rbxassetid://73042633" | |
1051 | ChainLink.Color = ColorSequence.new(C3(0,0,255)) | |
1052 | ChainLink.TextureSpeed = 1 | |
1053 | ChainLink.FaceCamera = true | |
1054 | ChainLink.Width0 = 1 | |
1055 | ChainLink.Width1 = 1 | |
1056 | ChainLink.TextureLength = 3 | |
1057 | ChainLink.Attachment0 = B | |
1058 | ChainLink.Attachment1 = A | |
1059 | ChainLink.CurveSize0 = 2 | |
1060 | ChainLink.CurveSize1 = 2 | |
1061 | ChainLink.FaceCamera = true | |
1062 | ChainLink.Transparency = NumberSequence.new(0) | |
1063 | local A = IT("Attachment",Torso) | |
1064 | A.Position = VT(1.3,-0.85,0) | |
1065 | A.Orientation = VT(-0.098, -89.999, 0.227) | |
1066 | local B = IT("Attachment",Torso) | |
1067 | B.Position = VT(-1,2,0) | |
1068 | B.Orientation = VT(-88.911, -68.808, 158.782) | |
1069 | local ChainLink = IT("Beam",Torso) | |
1070 | ChainLink.Texture = "rbxassetid://73042633" | |
1071 | ChainLink.Color = ColorSequence.new(C3(0,0,255)) | |
1072 | ChainLink.TextureSpeed = 1 | |
1073 | ChainLink.FaceCamera = true | |
1074 | ChainLink.Width0 = 1 | |
1075 | ChainLink.Width1 = 1 | |
1076 | ChainLink.TextureLength = 3 | |
1077 | ChainLink.Attachment0 = A | |
1078 | ChainLink.Attachment1 = B | |
1079 | ChainLink.CurveSize0 = 1.3 | |
1080 | ChainLink.CurveSize1 = 1.3 | |
1081 | ChainLink.FaceCamera = true | |
1082 | ChainLink.Transparency = NumberSequence.new(0) | |
1083 | local ChainLink = IT("Beam",Torso) | |
1084 | ChainLink.Texture = "rbxassetid://73042633" | |
1085 | ChainLink.Color = ColorSequence.new(C3(0,0,255)) | |
1086 | ChainLink.TextureSpeed = 1 | |
1087 | ChainLink.FaceCamera = true | |
1088 | ChainLink.Width0 = 1 | |
1089 | ChainLink.Width1 = 1 | |
1090 | ChainLink.TextureLength = 3 | |
1091 | ChainLink.Attachment0 = B | |
1092 | ChainLink.Attachment1 = A | |
1093 | ChainLink.CurveSize0 = 1.5 | |
1094 | ChainLink.CurveSize1 = 1.5 | |
1095 | ChainLink.FaceCamera = true | |
1096 | ChainLink.Transparency = NumberSequence.new(0) | |
1097 | ||
1098 | local A = IT("Attachment",LeftBarrel) | |
1099 | A.Position = VT(0,-2.5,0) | |
1100 | local B = IT("Attachment",LeftBarrel) | |
1101 | B.Position = VT(0,2.5,0) | |
1102 | local Trail = IT("Trail",LeftBarrel) | |
1103 | Trail.Attachment0 = A | |
1104 | Trail.Attachment1 = B | |
1105 | Trail.Lifetime = 0.5 | |
1106 | Trail.Color = ColorSequence.new(BRICKC"Really blue".Color) | |
1107 | Trail.Transparency = NumberSequence.new(0, 1) | |
1108 | Trail.Enabled = true | |
1109 | ------------------------------------------------------------- | |
1110 | local A = IT("Attachment",RightBarrel) | |
1111 | A.Position = VT(0,-2.5,0) | |
1112 | local B = IT("Attachment",RightBarrel) | |
1113 | B.Position = VT(0,2.5,0) | |
1114 | local Trail = IT("Trail",RightBarrel) | |
1115 | Trail.Attachment0 = A | |
1116 | Trail.Attachment1 = B | |
1117 | Trail.Lifetime = 0.5 | |
1118 | Trail.Color = ColorSequence.new(BRICKC"Really blue".Color) | |
1119 | Trail.Transparency = NumberSequence.new(0, 1) | |
1120 | Trail.Enabled = true | |
1121 | ||
1122 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = RightLeg, Emit = 100, Offset = 360, Enabled = true}) | |
1123 | PRT.LockedToPart = true | |
1124 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = LeftLeg, Emit = 100, Offset = 360, Enabled = true}) | |
1125 | PRT.LockedToPart = true | |
1126 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.3, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = true}) | |
1127 | PRT.LockedToPart = true | |
1128 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = RightArm, Emit = 100, Offset = 360, Enabled = true}) | |
1129 | PRT.LockedToPart = true | |
1130 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = LeftArm, Emit = 100, Offset = 360, Enabled = true}) | |
1131 | PRT.LockedToPart = true | |
1132 | for _, c in pairs(Character:GetDescendants()) do | |
1133 | if c and c.Parent then | |
1134 | if c.Name == "Handle" and c.Parent.ClassName == "Accessory" then | |
1135 | local ACCESSORY = c.Parent | |
1136 | c.Parent = Character | |
1137 | if c then | |
1138 | if c:FindFirstChild("HatAttachment") or c:FindFirstChild("FaceFrontAttachment") or c:FindFirstChild("HairAttachment") then | |
1139 | weldBetween(Head,c) | |
1140 | else | |
1141 | weldBetween(Torso,c) | |
1142 | end | |
1143 | end | |
1144 | ACCESSORY:remove() | |
1145 | elseif c.Parent.ClassName ~= "Accessory" and c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
1146 | c.Material = "Neon" | |
1147 | c.Color = C3(0,0,0) | |
1148 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1149 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1150 | end | |
1151 | if c == Head then | |
1152 | if c:FindFirstChild("face") then | |
1153 | c.face:remove() | |
1154 | end | |
1155 | end | |
1156 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
1157 | c.Color = C3(0,0,255) | |
1158 | c.Material = "Neon" | |
1159 | elseif c.ClassName == "CharacterMesh" or c.Name == "Body Colors" then | |
1160 | c:remove() | |
1161 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
1162 | c:remove() | |
1163 | end | |
1164 | end | |
1165 | end | |
1166 | local BODY = {} | |
1167 | for _, c in pairs(Character:GetDescendants()) do | |
1168 | if c:IsA("BasePart") and c.Name ~= "Handle" then | |
1169 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
1170 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1171 | end | |
1172 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name}) | |
1173 | elseif c:IsA("JointInstance") then | |
1174 | table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil}) | |
1175 | end | |
1176 | end | |
1177 | function refit() | |
1178 | Character.Parent = workspace | |
1179 | for e = 1, #BODY do | |
1180 | if BODY[e] ~= nil then | |
1181 | local STUFF = BODY[e] | |
1182 | local PART = STUFF[1] | |
1183 | local PARENT = STUFF[2] | |
1184 | local MATERIAL = STUFF[3] | |
1185 | local COLOR = STUFF[4] | |
1186 | local TRANSPARENCY = STUFF[5] | |
1187 | --local SIZE = STUFF[6] | |
1188 | local NAME = STUFF[7] | |
1189 | if PART.ClassName == "Part" and PART ~= RootPart then | |
1190 | PART.Material = MATERIAL | |
1191 | PART.Transparency = TRANSPARENCY | |
1192 | PART.Name = NAME | |
1193 | end | |
1194 | if PART.Parent ~= PARENT then | |
1195 | Humanoid:remove() | |
1196 | PART.Parent = PARENT | |
1197 | Humanoid = IT("Humanoid",Character) | |
1198 | end | |
1199 | end | |
1200 | end | |
1201 | end | |
1202 | ||
1203 | local SKILLTEXTCOLOR = C3(0,0,255) | |
1204 | local SKILLFONT = "Fantasy" | |
1205 | local SKILLTEXTSIZE = 6 | |
1206 | ||
1207 | Humanoid.Died:connect(function() | |
1208 | refit() | |
1209 | end) | |
1210 | ||
1211 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
1212 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
1213 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
1214 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
1215 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
1216 | local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.85, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame") | |
1217 | local SKILL7FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.85, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame") | |
1218 | ||
1219 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Fire", SKILLTEXTCOLOR, SKILLTEXTSIZE-1, SKILLFONT, 0, 2, 0, "Text 1") | |
1220 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Lift", SKILLTEXTCOLOR, SKILLTEXTSIZE-1, SKILLFONT, 0, 2, 0, "Text 2") | |
1221 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Cleave", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3") | |
1222 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Lock n' load", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4") | |
1223 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Morning Star", SKILLTEXTCOLOR, SKILLTEXTSIZE+1, SKILLFONT, 0, 2, 0, "Text 5") | |
1224 | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[G] Deathbound", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 6") | |
1225 | local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[CLICK] Execute", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 7") | |
1226 | ||
1227 | --//=================================\\ | |
1228 | --|| DAMAGE FUNCTIONS | |
1229 | --\\=================================// | |
1230 | ||
1231 | function StatLabel(CFRAME, TEXT, COLOR) | |
1232 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really blue", "Effect", VT()) | |
1233 | STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5))) | |
1234 | local BODYGYRO = IT("BodyGyro", STATPART) | |
1235 | game:GetService("Debris"):AddItem(STATPART ,5) | |
1236 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) | |
1237 | BILLBOARDGUI.Adornee = STATPART | |
1238 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
1239 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
1240 | BILLBOARDGUI.AlwaysOnTop = false | |
1241 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
1242 | TEXTLABEL.BackgroundTransparency = 1 | |
1243 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
1244 | TEXTLABEL.Text = TEXT | |
1245 | TEXTLABEL.Font = SKILLFONT | |
1246 | TEXTLABEL.FontSize="Size42" | |
1247 | TEXTLABEL.TextColor3 = COLOR | |
1248 | TEXTLABEL.TextStrokeTransparency = 0 | |
1249 | TEXTLABEL.TextScaled = true | |
1250 | TEXTLABEL.TextWrapped = true | |
1251 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
1252 | for i = 1, 50 do | |
1253 | Swait() | |
1254 | STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2) | |
1255 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50) | |
1256 | TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency | |
1257 | end | |
1258 | THEPART.Parent = nil | |
1259 | end),STATPART, TEXTLABEL) | |
1260 | end | |
1261 | ||
1262 | --//=================================\\ | |
1263 | --|| DAMAGING | |
1264 | --\\=================================// | |
1265 | ||
1266 | function Kill(Char) | |
1267 | local NewCharacter = IT("Model",Effects) | |
1268 | NewCharacter.Name = "Ow im ded ;-;" | |
1269 | for _, c in pairs(Char:GetDescendants()) do | |
1270 | if c:IsA("BasePart") and c.Transparency == 0 then | |
1271 | if c.Parent == Char then | |
1272 | getbloody(c,5) | |
1273 | end | |
1274 | c:BreakJoints() | |
1275 | c.Material = "Glass" | |
1276 | c.Color = C3(0.5,0,0) | |
1277 | c.CanCollide = true | |
1278 | c.Transparency = 0.3 | |
1279 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1280 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1281 | end | |
1282 | if c.Name == "Head" then | |
1283 | c:ClearAllChildren() | |
1284 | c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y) | |
1285 | end | |
1286 | if c.ClassName == "MeshPart" then | |
1287 | c.TextureID = "" | |
1288 | end | |
1289 | if c:FindFirstChildOfClass("BodyPosition") then | |
1290 | c:FindFirstChildOfClass("BodyPosition"):remove() | |
1291 | end | |
1292 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
1293 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
1294 | end | |
1295 | c.Parent = NewCharacter | |
1296 | c.Name = "DeadPart" | |
1297 | c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15 | |
1298 | c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45)) | |
1299 | end | |
1300 | end | |
1301 | Char:remove() | |
1302 | Debris:AddItem(NewCharacter,5) | |
1303 | end | |
1304 | ||
1305 | function ApplyAoE(POSITION,RANGE,BRUTAL) | |
1306 | local CHILDREN = workspace:GetDescendants() | |
1307 | for index, CHILD in pairs(CHILDREN) do | |
1308 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1309 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1310 | if HUM then | |
1311 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1312 | if TORSO then | |
1313 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1314 | if BRUTAL == true then | |
1315 | Kill(CHILD) | |
1316 | else | |
1317 | CHILD:BreakJoints() | |
1318 | end | |
1319 | end | |
1320 | end | |
1321 | end | |
1322 | end | |
1323 | end | |
1324 | end | |
1325 | ||
1326 | function BulletDetection(FROM,TO,BRUTAL) | |
1327 | local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character) | |
1328 | coroutine.resume(coroutine.create(function() | |
1329 | if AIMHIT ~= nil then | |
1330 | if AIMHIT.Parent ~= Character then | |
1331 | if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then | |
1332 | if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") then | |
1333 | if BRUTAL == true then | |
1334 | Kill(AIMHIT.Parent) | |
1335 | else | |
1336 | getbloody(AIMHIT,15) | |
1337 | AIMHIT.Parent:BreakJoints() | |
1338 | if AIMHIT.Name == "Head" then | |
1339 | AIMHIT.Name = "HEADSHOT" | |
1340 | AIMHIT:remove() | |
1341 | end | |
1342 | end | |
1343 | else | |
1344 | if BRUTAL == true then | |
1345 | Kill(AIMHIT.Parent.Parent) | |
1346 | else | |
1347 | AIMHIT.Parent.Parent:BreakJoints() | |
1348 | end | |
1349 | end | |
1350 | end | |
1351 | end | |
1352 | end | |
1353 | end)) | |
1354 | SpawnTrail(FROM,AIMPOS) | |
1355 | return AIMHIT,AIMPOS,NORMAL | |
1356 | end | |
1357 | ||
1358 | --//=================================\\ | |
1359 | --|| ATTACK FUNCTIONS AND STUFF | |
1360 | --\\=================================// | |
1361 | ||
1362 | function Unload() | |
1363 | ATTACK = true | |
1364 | Rooted = false | |
1365 | repeat | |
1366 | local GYRO = IT("BodyGyro",RootPart) | |
1367 | GYRO.D = 175 | |
1368 | GYRO.P = 20000 | |
1369 | GYRO.MaxTorque = VT(0,40000,0) | |
1370 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1371 | if COMBO == 1 then | |
1372 | COMBO = 2 | |
1373 | for i=0, 0, 0.1 / Animation_Speed do | |
1374 | Swait() | |
1375 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1376 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) | |
1377 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) | |
1378 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1379 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1380 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1381 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1382 | end | |
1383 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame, MoveToPos = LeftHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(0,0,255), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1384 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,255), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1385 | CreateSound(268761947, LeftHole, 7, 1, false) | |
1386 | BulletDetection(LeftHole.Position,Mouse.Hit.p,false) | |
1387 | for i=0, 0, 0.1 / Animation_Speed do | |
1388 | Swait() | |
1389 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) | |
1390 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) | |
1391 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1392 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1393 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1394 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1395 | end | |
1396 | elseif COMBO == 2 then | |
1397 | COMBO = 1 | |
1398 | for i=0, 0.1, 0.1 / Animation_Speed do | |
1399 | Swait() | |
1400 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1401 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed) | |
1402 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-50)), 1 / Animation_Speed) | |
1403 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1404 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1405 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1406 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1407 | end | |
1408 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = RightHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,255), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1409 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,255), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1410 | CreateSound(268761947, RightHole, 7, 1, false) | |
1411 | BulletDetection(RightHole.Position,Mouse.Hit.p,false) | |
1412 | for i=0, 0.1, 0.1 / Animation_Speed do | |
1413 | Swait() | |
1414 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed) | |
1415 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-50)), 1 / Animation_Speed) | |
1416 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1417 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1418 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1419 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1420 | end | |
1421 | end | |
1422 | GYRO:remove() | |
1423 | until KEYHOLD == false | |
1424 | ATTACK = false | |
1425 | Rooted = false | |
1426 | end | |
1427 | function Psyo() | |
1428 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
1429 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
1430 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") | |
1431 | if TORSO and HUM.Health > 0 then | |
1432 | ATTACK = true | |
1433 | Rooted = false | |
1434 | local GYRO = IT("BodyGyro",RootPart) | |
1435 | GYRO.D = 275 | |
1436 | GYRO.P = 20000 | |
1437 | GYRO.MaxTorque = VT(0,40000,0) | |
1438 | for i=0, 0.8, 0.1 / Animation_Speed do | |
1439 | Swait() | |
1440 | GYRO.cframe = CF(RootPart.Position,TORSO.Position) | |
1441 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1442 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1443 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1444 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1445 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1446 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1447 | end | |
1448 | local MAGIC = ParticleEmitter({Speed = 5, Drag = 3, Size1 = 1.7, Size2 = 0, Lifetime1 = 1, Lifetime2 = 3, Parent = TORSO, Emit = 100, Offset = 360, Enabled = true}) | |
1449 | MAGIC.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)}) | |
1450 | local grav = Instance.new("BodyPosition",TORSO) | |
1451 | grav.D = 1500 | |
1452 | grav.P = 20000 | |
1453 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1454 | grav.position = TORSO.Position+VT(0,15,0) | |
1455 | Debris:AddItem(grav,10) | |
1456 | Debris:AddItem(MAGIC,10) | |
1457 | CreateSound(429459101, Torso, 7, 1, false) | |
1458 | CreateSound(429459101, TORSO, 7, 1, false) | |
1459 | for i=0, 1, 0.1 / Animation_Speed do | |
1460 | Swait() | |
1461 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1462 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1463 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(-45), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1464 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(125), RAD(45), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1465 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1466 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1467 | end | |
1468 | GYRO:remove() | |
1469 | ATTACK = false | |
1470 | Rooted = false | |
1471 | end | |
1472 | end | |
1473 | end | |
1474 | function Cleave() | |
1475 | ATTACK = true | |
1476 | Rooted = false | |
1477 | local TARGET = nil | |
1478 | local TORS = nil | |
1479 | local GYRO = IT("BodyGyro",RootPart) | |
1480 | GYRO.D = 175 | |
1481 | GYRO.P = 20000 | |
1482 | GYRO.MaxTorque = VT(0,40000,0) | |
1483 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1484 | local RANGE = 5 | |
1485 | CreateSound(541909867, Torso, 7, 1, false) | |
1486 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(12,0.5,12), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,255), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1487 | for i=0, 1, 0.1 / Animation_Speed do | |
1488 | Swait() | |
1489 | RootPart.CFrame = RootPart.CFrame * CF(0,0,-2) | |
1490 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1491 | local CHILDREN = workspace:GetDescendants() | |
1492 | for index, CHILD in pairs(CHILDREN) do | |
1493 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1494 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1495 | if HUM then | |
1496 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1497 | if TORSO then | |
1498 | if (TORSO.Position - LeftHole.Position).Magnitude <= RANGE + TORSO.Size.Magnitude/5 then | |
1499 | RANGE = (TORSO.Position - LeftHole.Position).Magnitude | |
1500 | TARGET = HUM | |
1501 | TORS = TORSO | |
1502 | end | |
1503 | end | |
1504 | end | |
1505 | end | |
1506 | end | |
1507 | if TARGET then | |
1508 | break | |
1509 | end | |
1510 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-80)), 1 / Animation_Speed) | |
1511 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(80)), 1 / Animation_Speed) | |
1512 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1513 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1514 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1515 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1516 | end | |
1517 | GYRO:remove() | |
1518 | if TORS and TARGET then | |
1519 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 1, false) | |
1520 | Rooted = true | |
1521 | local BODYPOSITION = IT("BodyPosition", TORS) | |
1522 | BODYPOSITION.P = 2000 | |
1523 | BODYPOSITION.D = 100 | |
1524 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
1525 | for i=0, 1, 0.1 / Animation_Speed do | |
1526 | Swait() | |
1527 | TORS.CFrame = LeftHole.CFrame * CF(0,TORS.Size.Z/2,0) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
1528 | BODYPOSITION.Position = TORS.Position | |
1529 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) | |
1530 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) | |
1531 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1532 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(145), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1533 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1534 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1535 | end | |
1536 | for i=0, 0.4, 0.1 / Animation_Speed do | |
1537 | Swait() | |
1538 | TORS.CFrame = LeftHole.CFrame * CF(0,TORS.Size.Z/2,0) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
1539 | BODYPOSITION.Position = TORS.Position | |
1540 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) | |
1541 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) | |
1542 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(145), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1543 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(145), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1544 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1545 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1546 | end | |
1547 | local LOOP = 0 | |
1548 | local LOOP2 = 0 | |
1549 | for i=0, 5, 0.1 / Animation_Speed do | |
1550 | Swait() | |
1551 | LOOP = LOOP + 1 | |
1552 | TORS.Anchored = true | |
1553 | LOOP2 = LOOP2 + 1 | |
1554 | if LOOP2 >= 5 then | |
1555 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = RightHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,255), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1556 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,255), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1557 | CreateSound(268761947, RightHole, 7, 1, false) | |
1558 | SpawnTrail(RightHole.Position,RightHole.CFrame*CF(0,500,0).p) | |
1559 | LOOP2 = 0 | |
1560 | getbloody(TORS,1) | |
1561 | end | |
1562 | TORS.CFrame = LeftHole.CFrame * CF(0,TORS.Size.Z/2,0) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
1563 | BODYPOSITION.Position = TORS.Position | |
1564 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) | |
1565 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) | |
1566 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(145 + 2 * SIN(LOOP / 12)), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1567 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(145), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1568 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1569 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1570 | end | |
1571 | BODYPOSITION:remove() | |
1572 | if TORS then | |
1573 | TORS.Anchored = false | |
1574 | Kill(TORS.Parent) | |
1575 | end | |
1576 | end | |
1577 | ATTACK = false | |
1578 | Rooted = false | |
1579 | end | |
1580 | function Lock_n_Load() | |
1581 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
1582 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
1583 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") | |
1584 | if TORSO and HUM.Health > 0 then | |
1585 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 7, 1, false) | |
1586 | ATTACK = true | |
1587 | Rooted = true | |
1588 | local GYRO = IT("BodyGyro",RootPart) | |
1589 | GYRO.D = 175 | |
1590 | GYRO.P = 20000 | |
1591 | GYRO.MaxTorque = VT(0,40000,0) | |
1592 | if COMBO == 1 then | |
1593 | COMBO = 2 | |
1594 | for i=0, 1, 0.1 / Animation_Speed do | |
1595 | Swait() | |
1596 | GYRO.cframe = CF(RootPart.Position,TORSO.Position) | |
1597 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) | |
1598 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) | |
1599 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1600 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1601 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1602 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1603 | end | |
1604 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame, MoveToPos = LeftHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(0,0,255), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1605 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,255), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1606 | CreateSound(268761947, LeftHole, 7, 1, false) | |
1607 | BulletDetection(LeftHole.Position,TORSO.Position,false) | |
1608 | for i=0, 0.4, 0.1 / Animation_Speed do | |
1609 | Swait() | |
1610 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) | |
1611 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) | |
1612 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1613 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1614 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1615 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1616 | end | |
1617 | elseif COMBO == 2 then | |
1618 | COMBO = 1 | |
1619 | for i=0, 1, 0.1 / Animation_Speed do | |
1620 | Swait() | |
1621 | GYRO.cframe = CF(RootPart.Position,TORSO.Position) | |
1622 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed) | |
1623 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-50)), 1 / Animation_Speed) | |
1624 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1625 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1626 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1627 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1628 | end | |
1629 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = RightHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,255), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1630 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,255), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1631 | CreateSound(268761947, RightHole, 7, 1, false) | |
1632 | BulletDetection(RightHole.Position,TORSO.Position,false) | |
1633 | for i=0, 0.4, 0.1 / Animation_Speed do | |
1634 | Swait() | |
1635 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed) | |
1636 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-50)), 1 / Animation_Speed) | |
1637 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1638 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1639 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1640 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1641 | end | |
1642 | end | |
1643 | GYRO:remove() | |
1644 | ATTACK = false | |
1645 | Rooted = false | |
1646 | end | |
1647 | end | |
1648 | end | |
1649 | function Morning_Star() | |
1650 | ATTACK = true | |
1651 | Rooted = true | |
1652 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 7, 1, false) | |
1653 | for i=0, 1, 0.1 / Animation_Speed do | |
1654 | Swait() | |
1655 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1656 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1657 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1658 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1659 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1660 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1661 | end | |
1662 | coroutine.resume(coroutine.create(function() | |
1663 | local POS = Mouse.Hit.p | |
1664 | local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Really blue", "Strike", VT(0,2000,0)) | |
1665 | MakeForm(RAY,"Cyl") | |
1666 | local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really blue", "Strike", VT(0,0,0)) | |
1667 | MakeForm(SPHERE,"Ball") | |
1668 | local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really blue", "Strike", VT(0,0,0)) | |
1669 | MakeForm(SHIELD,"Ball") | |
1670 | SHIELD.CFrame = CF(POS) | |
1671 | RAY.CFrame = CF(POS) | |
1672 | SPHERE.CFrame = CF(POS) | |
1673 | CreateSound(440145570, SPHERE, 10, 0.8, false) | |
1674 | CreateSound(415700134, SPHERE, 10, 0.8, false) | |
1675 | for i = 1, 200 do | |
1676 | Swait() | |
1677 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(0,0,255), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1678 | RAY.Size = RAY.Size + VT(0.05,0,0.05) | |
1679 | SPHERE.Size = SPHERE.Size + VT(2,2,2) | |
1680 | SHIELD.Size = SPHERE.Size + VT(3,3,3) | |
1681 | ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true) | |
1682 | end | |
1683 | for i = 1, 45 do | |
1684 | Swait() | |
1685 | RAY.Transparency = RAY.Transparency + 1/45 | |
1686 | SPHERE.Transparency = RAY.Transparency | |
1687 | SHIELD.Transparency = SPHERE.Transparency + 1/45 | |
1688 | end | |
1689 | RAY:remove() | |
1690 | SHIELD:remove() | |
1691 | SPHERE:remove() | |
1692 | end)) | |
1693 | for i=0, 1, 0.1 / Animation_Speed do | |
1694 | Swait() | |
1695 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1696 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1697 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1698 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1699 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1700 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1701 | end | |
1702 | ATTACK = false | |
1703 | Rooted = false | |
1704 | end | |
1705 | function Deathbound() | |
1706 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 1, false) | |
1707 | ATTACK = true | |
1708 | Rooted = true | |
1709 | for i=0, 1, 0.1 / Animation_Speed do | |
1710 | Swait() | |
1711 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1712 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1713 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1714 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1715 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1716 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1717 | end | |
1718 | local DONE = false | |
1719 | local GATE = nil | |
1720 | local GATESPIN = true | |
1721 | coroutine.resume(coroutine.create(function() | |
1722 | repeat | |
1723 | Swait() | |
1724 | if GATE ~= nil then | |
1725 | GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-3), RAD(0)) | |
1726 | end | |
1727 | until GATESPIN == false | |
1728 | end)) | |
1729 | coroutine.resume(coroutine.create(function() | |
1730 | repeat | |
1731 | Swait() | |
1732 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.2 - 0.25 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1733 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1734 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1735 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1736 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1737 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1738 | until DONE == true | |
1739 | Swait(50) | |
1740 | for i = 1, 35 do | |
1741 | Swait(4) | |
1742 | local FIRED = false | |
1743 | local CHILDREN = workspace:GetDescendants() | |
1744 | for index, CHILD in pairs(CHILDREN) do | |
1745 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1746 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1747 | if HUM then | |
1748 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1749 | if TORSO then | |
1750 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
1751 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
1752 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
1753 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,255), SoundID = 268761947, SoundPitch = 1.5, SoundVolume = 6}) | |
1754 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,255), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1755 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
1756 | Kill(CHILD) | |
1757 | FIRED = true | |
1758 | break | |
1759 | end | |
1760 | end | |
1761 | end | |
1762 | end | |
1763 | end | |
1764 | if FIRED == false then | |
1765 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
1766 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,255), SoundID = 268761947, SoundPitch = 1, SoundVolume = 6}) | |
1767 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,255), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1768 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
1769 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
1770 | if HITBOD ~= nil then | |
1771 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
1772 | Kill(HITBOD.Parent) | |
1773 | end | |
1774 | end | |
1775 | end | |
1776 | end | |
1777 | for i = 1, 45 do | |
1778 | Swait() | |
1779 | GATE.Size = GATE.Size - VT(3,0,3) | |
1780 | end | |
1781 | GATESPIN = false | |
1782 | GATE:remove() | |
1783 | end)) | |
1784 | Swait(15) | |
1785 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
1786 | GATE = CreatePart(3, Effects, "Neon", 0, 1, "Really blue", "Gate", VT(0,0,0)) | |
1787 | local DECAL = IT("Decal",GATE) | |
1788 | DECAL.Texture = "http://www.roblox.com/asset/?id=70345333" | |
1789 | DECAL.Face = "Top" | |
1790 | GATE.CFrame = CF(HITPOS) | |
1791 | CreateSound(160772554, GATE, 7, 1.3, false) | |
1792 | for i = 1, 45 do | |
1793 | Swait() | |
1794 | GATE.Size = GATE.Size + VT(3,0,3) | |
1795 | end | |
1796 | CreateSound(268761947, RightHole, 7, 1, false) | |
1797 | CreateSound(268761947, LeftHole, 7, 1, false) | |
1798 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,255), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1799 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,255), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1800 | ATTACK = false | |
1801 | Rooted = false | |
1802 | DONE = true | |
1803 | end | |
1804 | function Execute() | |
1805 | ATTACK = true | |
1806 | Rooted = false | |
1807 | local Part = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Part", VT(0,1,4),false) | |
1808 | Part.Color = C3(0,0,0) | |
1809 | MakeForm(Part,"Wedge") | |
1810 | Part.CanCollide = true | |
1811 | CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, Part, CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(135)) *CF(0, 0.5, 0), CF(0, 0, 0)) | |
1812 | for i=0, 1, 0.1 / Animation_Speed do | |
1813 | Swait() | |
1814 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) | |
1815 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) | |
1816 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1817 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1818 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1819 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1820 | end | |
1821 | Trail.Enabled = true | |
1822 | CreateSound(541909867, RightBarrel, 7, 1, false) | |
1823 | local TOCH = Part.Touched:Connect(function(hit) | |
1824 | if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent ~= Character then | |
1825 | Kill(hit.Parent) | |
1826 | end | |
1827 | end) | |
1828 | for i=0, 0.35, 0.1 / Animation_Speed do | |
1829 | Swait() | |
1830 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed) | |
1831 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1832 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.25, -0.3) * ANGLES(RAD(50), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1833 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1834 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1835 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1836 | end | |
1837 | TOCH:disconnect() | |
1838 | Trail.Enabled = true | |
1839 | for i=0, 0.35, 0.1 / Animation_Speed do | |
1840 | Swait() | |
1841 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(60)), 1 / Animation_Speed) | |
1842 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-55)), 1 / Animation_Speed) | |
1843 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.25, -0.3) * ANGLES(RAD(50), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1844 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1845 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1846 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1847 | end | |
1848 | Part:remove() | |
1849 | ATTACK = false | |
1850 | Rooted = false | |
1851 | end | |
1852 | ||
1853 | --//=================================\\ | |
1854 | --|| ASSIGN THINGS TO KEYS | |
1855 | --\\=================================// | |
1856 | ||
1857 | function MouseDown(Mouse) | |
1858 | if ATTACK == false then | |
1859 | Execute() | |
1860 | end | |
1861 | end | |
1862 | ||
1863 | function MouseUp(Mouse) | |
1864 | HOLD = false | |
1865 | end | |
1866 | ||
1867 | function KeyDown(Key) | |
1868 | KEYHOLD = true | |
1869 | if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then | |
1870 | if Key == "z" and ATTACK == false then | |
1871 | Unload() | |
1872 | ||
1873 | elseif Key == "b" and ATTACK == false then | |
1874 | Psyo() | |
1875 | ||
1876 | elseif Key == "c" and ATTACK == false then | |
1877 | Cleave() | |
1878 | ||
1879 | elseif Key == "v" and ATTACK == false then | |
1880 | Lock_n_Load() | |
1881 | ||
1882 | elseif Key == "g" and ATTACK == false then | |
1883 | Deathbound() | |
1884 | ||
1885 | elseif Key == "x" and ATTACK == false then | |
1886 | Morning_Star() | |
1887 | ||
1888 | elseif Key == "t" then | |
1889 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 1, false) | |
1890 | elseif Key == "1" and ATTACK == false then | |
1891 | if CHOICE ~= 1 then | |
1892 | CHOICE = 1 | |
1893 | sick:Play() | |
1894 | end | |
1895 | elseif Key == "2" and ATTACK == false then | |
1896 | if CHOICE ~= 2 then | |
1897 | CHOICE = 2 | |
1898 | sick:Play() | |
1899 | end | |
1900 | elseif Key == "3" and ATTACK == false then | |
1901 | if CHOICE ~= 3 then | |
1902 | CHOICE = 3 | |
1903 | sick:Play() | |
1904 | end | |
1905 | elseif Key == "4" and ATTACK == false then | |
1906 | if CHOICE ~= 4 then | |
1907 | CHOICE = 4 | |
1908 | sick:Play() | |
1909 | end | |
1910 | end | |
1911 | end | |
1912 | end | |
1913 | ||
1914 | function KeyUp(Key) | |
1915 | if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then | |
1916 | KEYHOLD = false | |
1917 | end | |
1918 | end | |
1919 | ||
1920 | Mouse.Button1Down:connect(function(NEWKEY) | |
1921 | MouseDown(NEWKEY) | |
1922 | end) | |
1923 | Mouse.Button1Up:connect(function(NEWKEY) | |
1924 | MouseUp(NEWKEY) | |
1925 | end) | |
1926 | Mouse.KeyDown:connect(function(NEWKEY) | |
1927 | KeyDown(NEWKEY) | |
1928 | end) | |
1929 | Mouse.KeyUp:connect(function(NEWKEY) | |
1930 | KeyUp(NEWKEY) | |
1931 | end) | |
1932 | ||
1933 | --//=================================\\ | |
1934 | --\\=================================// | |
1935 | ||
1936 | ||
1937 | function unanchor() | |
1938 | if UNANCHOR == true then | |
1939 | g = Character:GetChildren() | |
1940 | for i = 1, #g do | |
1941 | if g[i].ClassName == "Part" then | |
1942 | g[i].Anchored = false | |
1943 | end | |
1944 | end | |
1945 | end | |
1946 | end | |
1947 | ||
1948 | ||
1949 | --//=================================\\ | |
1950 | --|| WRAP THE WHOLE SCRIPT UP | |
1951 | --\\=================================// | |
1952 | ||
1953 | Humanoid.Changed:connect(function(Jump) | |
1954 | if Jump == "Jump" and (Disable_Jump == true) then | |
1955 | Humanoid.Jump = false | |
1956 | end | |
1957 | end) | |
1958 | ||
1959 | while true do | |
1960 | Swait() | |
1961 | Humanoid.HipHeight = 1.5 | |
1962 | script.Parent = WEAPONGUI | |
1963 | ANIMATE.Parent = nil | |
1964 | if Humanoid then | |
1965 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
1966 | IDLEANIMATION:Play() | |
1967 | end | |
1968 | SINE = SINE + CHANGE | |
1969 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1970 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1971 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
1972 | if ATTACK == false then | |
1973 | if TORSOVELOCITY < 1 then | |
1974 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed) | |
1975 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
1976 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1977 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1978 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1979 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1980 | elseif TORSOVELOCITY > 1 then | |
1981 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed) | |
1982 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
1983 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1984 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1985 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1986 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1987 | end | |
1988 | end | |
1989 | RightArmGrasp.C0 = Clerp(RightArmGrasp.C0, CF(0, -0.815+0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(90-4.5 * SIN(SINE / 12)), RAD(-1.5 * SIN(SINE / 12)), RAD(0)), 1 / Animation_Speed) | |
1990 | LeftArmGraps.C0 = Clerp(LeftArmGraps.C0, CF(0, -0.815+0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(90-4.5 * SIN(SINE / 12)), RAD(1.5 * SIN(SINE / 12)), RAD(0)), 1 / Animation_Speed) | |
1991 | unanchor() | |
1992 | Humanoid.MaxHealth = "inf" | |
1993 | Humanoid.Health = "inf" | |
1994 | if Rooted == false then | |
1995 | Disable_Jump = false | |
1996 | Humanoid.WalkSpeed = Speed | |
1997 | elseif Rooted == true then | |
1998 | Disable_Jump = true | |
1999 | Humanoid.WalkSpeed = 0 | |
2000 | end | |
2001 | for _, c in pairs(Character:GetDescendants()) do | |
2002 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
2003 | c.Material = "Neon" | |
2004 | c.Color = C3(0,0,0) | |
2005 | if c:FindFirstChildOfClass("SpecialMesh") then | |
2006 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
2007 | end | |
2008 | if c == Head then | |
2009 | if c:FindFirstChild("face") then | |
2010 | c.face:remove() | |
2011 | end | |
2012 | end | |
2013 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
2014 | c.Color = C3(0,0,255) | |
2015 | c.Material = "Neon" | |
2016 | elseif c.ClassName == "CharacterMesh" or c.Name == "Body Colors" then | |
2017 | c:remove() | |
2018 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
2019 | c:remove() | |
2020 | end | |
2021 | end | |
2022 | refit() | |
2023 | Humanoid.Name = "Deadeyes" | |
2024 | sick.Parent = Torso | |
2025 | sick:resume() | |
2026 | sick.Volume = 5 | |
2027 | sick.Pitch = 1 | |
2028 | sick.SoundId = "rbxassetid://"..SONGS[CHOICE] | |
2029 | if Head:FindFirstChildOfClass("Sound") then | |
2030 | Head:FindFirstChildOfClass("Sound"):remove() | |
2031 | end | |
2032 | end | |
2033 | ||
2034 | --//=================================\\ | |
2035 | --\\=================================// | |
2036 | ||
2037 | ||
2038 | ||
2039 | ||
2040 | ||
2041 | --//====================================================\\-- | |
2042 | --|| END OF SCRIPT | |
2043 | --\\====================================================//-- |