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