SHOW:
|
|
- or go back to the newest paste.
1 | - | local Player = game:GetService("Players").LUCAS_KENJK2 --<=== Replace With Your Name |
1 | + | local Player = game:GetService("Players").lafur2 --<=== Replace With Your Name |
2 | ||
3 | ||
4 | local Mouse,mouse,UserInputService,ContextActionService | |
5 | do | |
6 | script.Parent = Player.Character | |
7 | local CAS = {Actions={}} | |
8 | local Event = Instance.new("RemoteEvent") | |
9 | Event.Name = "UserInput_Event" | |
10 | Event.Parent = Player.Character | |
11 | local fakeEvent = function() | |
12 | local t = {_fakeEvent=true} | |
13 | t.Connect = function(self,f)self.Function=f end | |
14 | t.connect = t.Connect | |
15 | return t | |
16 | end | |
17 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
18 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
19 | function CAS:BindAction(name,fun,touch,...) | |
20 | CAS.Actions[name] = {Name=name,Function=fun,Keys={...}} | |
21 | end | |
22 | function CAS:UnbindAction(name) | |
23 | CAS.Actions[name] = nil | |
24 | end | |
25 | local function te(self,ev,...) | |
26 | local t = m[ev] | |
27 | if t and t._fakeEvent and t.Function then | |
28 | t.Function(...) | |
29 | end | |
30 | end | |
31 | m.TrigEvent = te | |
32 | UIS.TrigEvent = te | |
33 | Event.OnServerEvent:Connect(function(plr,io) | |
34 | if plr~=Player then return end | |
35 | if io.isMouse then | |
36 | m.Target = io.Target | |
37 | m.Hit = io.Hit | |
38 | elseif io.UserInputType == Enum.UserInputType.MouseButton1 then | |
39 | if io.UserInputState == Enum.UserInputState.Begin then | |
40 | m:TrigEvent("Button1Down") | |
41 | else | |
42 | m:TrigEvent("Button1Up") | |
43 | end | |
44 | else | |
45 | for n,t in pairs(CAS.Actions) do | |
46 | for _,k in pairs(t.Keys) do | |
47 | if k==io.KeyCode then | |
48 | t.Function(t.Name,io.UserInputState,io) | |
49 | end | |
50 | end | |
51 | end | |
52 | if io.UserInputState == Enum.UserInputState.Begin then | |
53 | m:TrigEvent("KeyDown",io.KeyCode.Name:lower()) | |
54 | UIS:TrigEvent("InputBegan",io,false) | |
55 | else | |
56 | m:TrigEvent("KeyUp",io.KeyCode.Name:lower()) | |
57 | UIS:TrigEvent("InputEnded",io,false) | |
58 | end | |
59 | end | |
60 | end) | |
61 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
62 | end | |
63 | ||
64 | ||
65 | --//====================================================\\-- | |
66 | --|| CREATED BY IGNORANTROJO | |
67 | --\\====================================================//-- | |
68 | --ATP SOLDIER | |
69 | --Script: 0000019 | |
70 | --How many scripts did i make? | |
71 | --damn. | |
72 | --[[ | |
73 | TODO: | |
74 | --Blood when hit (idea by nebu)-- | |
75 | --forcefield-- | |
76 | --make it so you can actually get damaged lollll-- | |
77 | --more guns-- | |
78 | goggle color modes | |
79 | --]] | |
80 | --[[UPDATE LOG (LAST VERSION): | |
81 | --ADDED MORE MODES ON THE NUCLEAR SIDE | |
82 | --ADDED CHAT FUNCTIONS | |
83 | --ADDED CHAT FUNCTION GUI | |
84 | --]] | |
85 | ||
86 | wait(0.2) | |
87 | ||
88 | - | Player = game:GetService("Players").LUCAS_KENJK2 |
88 | + | Player = game:GetService("Players").lafur2 |
89 | Cam = workspace.CurrentCamera | |
90 | Backpack = Player.Backpack | |
91 | Character = Player.Character | |
92 | Humanoid = Character.Humanoid | |
93 | RootPart = Character["HumanoidRootPart"] | |
94 | Torso = Character["Torso"] | |
95 | Head = Character["Head"] | |
96 | RightArm = Character["Right Arm"] | |
97 | LeftArm = Character["Left Arm"] | |
98 | RightLeg = Character["Right Leg"] | |
99 | LeftLeg = Character["Left Leg"] | |
100 | RootJoint = RootPart["RootJoint"] | |
101 | Neck = Torso["Neck"] | |
102 | RightShoulder = Torso["Right Shoulder"] | |
103 | LeftShoulder = Torso["Left Shoulder"] | |
104 | RightHip = Torso["Right Hip"] | |
105 | LeftHip = Torso["Left Hip"] | |
106 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
107 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
108 | LH=Torso["Left Hip"] | |
109 | RH=Torso["Right Hip"] | |
110 | local TIME = 0 | |
111 | local sick = Instance.new("Sound",RootPart) | |
112 | - | plr = game:GetService("Players").LUCAS_KENJK2 |
112 | + | plr = game:GetService("Players").lafur2 |
113 | char = plr.Character | |
114 | ch = plr.Character | |
115 | hum = char.Humanoid | |
116 | local cam = game.Workspace.CurrentCamera | |
117 | Camera = cam | |
118 | local CamInterrupt = false | |
119 | local TwoD = false | |
120 | local TargetInfo = {nil, nil} | |
121 | cam.CameraType = "Custom" | |
122 | t = char.Torso | |
123 | h = char.Head | |
124 | ra = char["Right Arm"] | |
125 | la = char["Left Arm"] | |
126 | rl = char["Right Leg"] | |
127 | ll = char["Left Leg"] | |
128 | tors = char.Torso | |
129 | lleg = char["Left Leg"] | |
130 | root = char.HumanoidRootPart | |
131 | hed = char.Head | |
132 | rleg = char["Right Leg"] | |
133 | rarm = char["Right Arm"] | |
134 | larm = char["Left Arm"] | |
135 | radian = math.rad | |
136 | random = math.random | |
137 | Vec3 = Vector3.new | |
138 | Inst = Instance.new | |
139 | cFrame = CFrame.new | |
140 | Euler = CFrame.fromEulerAnglesXYZ | |
141 | vt = Vector3.new | |
142 | bc = BrickColor.new | |
143 | br = BrickColor.random | |
144 | it = Instance.new | |
145 | cf = CFrame.new | |
146 | IT = Instance.new | |
147 | CF = CFrame.new | |
148 | VT = Vector3.new | |
149 | RAD = math.rad | |
150 | C3 = Color3.new | |
151 | UD2 = UDim2.new | |
152 | BRICKC = BrickColor.new | |
153 | ANGLES = CFrame.Angles | |
154 | EULER = CFrame.fromEulerAnglesXYZ | |
155 | COS = math.cos | |
156 | ACOS = math.acos | |
157 | SIN = math.sin | |
158 | ASIN = math.asin | |
159 | ABS = math.abs | |
160 | MRANDOM = math.random | |
161 | FLOOR = math.floor | |
162 | RSH=ch.Torso["Right Shoulder"] | |
163 | LSH=ch.Torso["Left Shoulder"] | |
164 | vt=Vector3.new | |
165 | cf=CFrame.new | |
166 | euler=CFrame.fromEulerAnglesXYZ | |
167 | angles=CFrame.Angles | |
168 | cloaked=false | |
169 | RootCF=euler(-1.57,0,3.14) | |
170 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
171 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
172 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
173 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
174 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
175 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
176 | -- | |
177 | RSH.Parent=nil | |
178 | LSH.Parent=nil | |
179 | -- | |
180 | RW.Name="Right Shoulder" | |
181 | RW.Part0=ch.Torso | |
182 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
183 | RW.C1=cf(0, 0.5, 0) | |
184 | RW.Part1=ch["Right Arm"] | |
185 | RW.Parent=ch.Torso | |
186 | -- | |
187 | LW.Name="Left Shoulder" | |
188 | LW.Part0=ch.Torso | |
189 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
190 | LW.C1=cf(0, 0.5, 0) | |
191 | LW.Part1=ch["Left Arm"] | |
192 | LW.Parent=ch.Torso | |
193 | CF = CFrame.new | |
194 | angles = CFrame.Angles | |
195 | attack = false | |
196 | Euler = CFrame.fromEulerAnglesXYZ | |
197 | Rad = math.rad | |
198 | IT = Instance.new | |
199 | BrickC = BrickColor.new | |
200 | Cos = math.cos | |
201 | Acos = math.acos | |
202 | Sin = math.sin | |
203 | Asin = math.asin | |
204 | Abs = math.abs | |
205 | Mrandom = math.random | |
206 | Floor = math.floor | |
207 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
208 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
209 | Humanoid.MaxHealth = "3700" | |
210 | Humanoid.Health = "3700" | |
211 | --//=================================\\ | |
212 | --|| USEFUL VALUES | |
213 | --\\=================================// | |
214 | local change = 1 | |
215 | local SONG = 1175569393 | |
216 | local sine = 0 | |
217 | local Nuclear = false | |
218 | local flying = false | |
219 | Animation_Speed = 3 | |
220 | local FORCERESET = false | |
221 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
222 | local Speed = 16 | |
223 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
224 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
225 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
226 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
227 | local DAMAGEMULTIPLIER = 1 | |
228 | local ANIM = "Idle" | |
229 | local ATTACK = false | |
230 | local EQUIPPED = false | |
231 | local HOLD = false | |
232 | local COMBO = 1 | |
233 | local Rooted = false | |
234 | local SINE = 0 | |
235 | local KEYHOLD = false | |
236 | local CHANGE = 2 / Animation_Speed | |
237 | local WALKINGANIM = false | |
238 | local VALUE1 = false | |
239 | local VALUE2 = false | |
240 | local ROBLOXIDLEANIMATION = IT("Animation") | |
241 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
242 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
243 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
244 | local kek = IT("Model") | |
245 | kek.Name = "Adds" | |
246 | local Weapon = IT("Model") | |
247 | Weapon.Name = "Adds" | |
248 | local Gun = IT("Model") | |
249 | Gun.Name = "Adds" | |
250 | local SMG = IT("Model") | |
251 | SMG.Name = "Adds" | |
252 | local SMG2 = IT("Model") | |
253 | SMG2.Name = "Adds" | |
254 | local SMG3 = IT("Model") | |
255 | SMG3.Name = "Adds" | |
256 | local Shotgun = IT("Model") | |
257 | Shotgun.Name = "Adds" | |
258 | local A47 = IT("Model") | |
259 | A47.Name = "Adds" | |
260 | local Supressor = IT("Model") | |
261 | Supressor.Name = "Adds" | |
262 | local knif = IT("Model") | |
263 | knif.Name = "Adds" | |
264 | local DE = IT("Model") | |
265 | DE.Name = "Adds" | |
266 | local AUG = IT("Model") | |
267 | AUG.Name = "Adds" | |
268 | local AWP = IT("Model") | |
269 | AWP.Name = "Adds" | |
270 | local R8RA = IT("Model") | |
271 | R8RA.Name = "Adds" | |
272 | local AR = IT("Model") | |
273 | AR.Name = "Adds" | |
274 | local Effects = IT("Folder", Weapon) | |
275 | Effects.Name = "Effects" | |
276 | local ANIMATOR = Humanoid.Animator | |
277 | local ANIMATE = Character:FindFirstChild("Animate") | |
278 | local UNANCHOR = true | |
279 | local TOBANISH = {} | |
280 | local CLOCKTARGET = nil | |
281 | local CLOCKSPEED = 2.5 | |
282 | local CLOCKLOOP = 0 | |
283 | local SIZE = 1 | |
284 | local Mode = "Normal" | |
285 | --//=================================\\ | |
286 | --\\=================================// | |
287 | ||
288 | --//=================================\\ | |
289 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
290 | --\\=================================// | |
291 | ||
292 | ArtificialHB = Instance.new("BindableEvent", script) | |
293 | ArtificialHB.Name = "ArtificialHB" | |
294 | ||
295 | script:WaitForChild("ArtificialHB") | |
296 | ||
297 | frame = Frame_Speed | |
298 | tf = 0 | |
299 | allowframeloss = false | |
300 | tossremainder = false | |
301 | lastframe = tick() | |
302 | script.ArtificialHB:Fire() | |
303 | ||
304 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
305 | tf = tf + s | |
306 | if tf >= frame then | |
307 | if allowframeloss then | |
308 | script.ArtificialHB:Fire() | |
309 | lastframe = tick() | |
310 | else | |
311 | for i = 1, math.floor(tf / frame) do | |
312 | script.ArtificialHB:Fire() | |
313 | end | |
314 | lastframe = tick() | |
315 | end | |
316 | if tossremainder then | |
317 | tf = 0 | |
318 | else | |
319 | tf = tf - frame * math.floor(tf / frame) | |
320 | end | |
321 | end | |
322 | end) | |
323 | ||
324 | --//=================================\\ | |
325 | --\\=================================// | |
326 | ||
327 | --//=================================\\ | |
328 | --|| SOME FUNCTIONS | |
329 | --\\=================================// | |
330 | ||
331 | function clerp(a,b,t) | |
332 | local qa = {QuaternionFromCFrame(a)} | |
333 | local qb = {QuaternionFromCFrame(b)} | |
334 | local ax, ay, az = a.x, a.y, a.z | |
335 | local bx, by, bz = b.x, b.y, b.z | |
336 | local _t = 1-t | |
337 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
338 | end | |
339 | ||
340 | function QuaternionFromCFrame(cf) | |
341 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
342 | local trace = m00 + m11 + m22 | |
343 | if trace > 0 then | |
344 | local s = math.sqrt(1 + trace) | |
345 | local recip = 0.5/s | |
346 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
347 | else | |
348 | local i = 0 | |
349 | if m11 > m00 then | |
350 | i = 1 | |
351 | end | |
352 | if m22 > (i == 0 and m00 or m11) then | |
353 | i = 2 | |
354 | end | |
355 | if i == 0 then | |
356 | local s = math.sqrt(m00-m11-m22+1) | |
357 | local recip = 0.5/s | |
358 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
359 | elseif i == 1 then | |
360 | local s = math.sqrt(m11-m22-m00+1) | |
361 | local recip = 0.5/s | |
362 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
363 | elseif i == 2 then | |
364 | local s = math.sqrt(m22-m00-m11+1) | |
365 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
366 | end | |
367 | end | |
368 | end | |
369 | ||
370 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
371 | local xs, ys, zs = x + x, y + y, z + z | |
372 | local wx, wy, wz = w*xs, w*ys, w*zs | |
373 | local xx = x*xs | |
374 | local xy = x*ys | |
375 | local xz = x*zs | |
376 | local yy = y*ys | |
377 | local yz = y*zs | |
378 | local zz = z*zs | |
379 | 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)) | |
380 | end | |
381 | ||
382 | ||
383 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
384 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
385 | end | |
386 | ||
387 | function PositiveAngle(NUMBER) | |
388 | if NUMBER >= 0 then | |
389 | NUMBER = 0 | |
390 | end | |
391 | return NUMBER | |
392 | end | |
393 | ||
394 | function NegativeAngle(NUMBER) | |
395 | if NUMBER <= 0 then | |
396 | NUMBER = 0 | |
397 | end | |
398 | return NUMBER | |
399 | end | |
400 | ||
401 | function Swait(NUMBER) | |
402 | if NUMBER == 0 or NUMBER == nil then | |
403 | ArtificialHB.Event:wait() | |
404 | else | |
405 | for i = 1, NUMBER do | |
406 | ArtificialHB.Event:wait() | |
407 | end | |
408 | end | |
409 | end | |
410 | ||
411 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
412 | local NEWMESH = IT(MESH) | |
413 | if MESH == "SpecialMesh" then | |
414 | NEWMESH.MeshType = MESHTYPE | |
415 | if MESHID ~= "nil" and MESHID ~= "" then | |
416 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
417 | end | |
418 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
419 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
420 | end | |
421 | end | |
422 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
423 | NEWMESH.Scale = SCALE | |
424 | NEWMESH.Parent = PARENT | |
425 | return NEWMESH | |
426 | end | |
427 | local Create = LoadLibrary("RbxUtility").Create | |
428 | ||
429 | CFuncs = { | |
430 | ["Part"] = { | |
431 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
432 | local Part = Create("Part"){ | |
433 | Parent = Parent, | |
434 | Reflectance = Reflectance, | |
435 | Transparency = Transparency, | |
436 | CanCollide = false, | |
437 | Locked = true, | |
438 | BrickColor = BrickColor.new(tostring(BColor)), | |
439 | Name = Name, | |
440 | Size = Size, | |
441 | Material = Material, | |
442 | } | |
443 | RemoveOutlines(Part) | |
444 | return Part | |
445 | end; | |
446 | }; | |
447 | ||
448 | ["Mesh"] = { | |
449 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
450 | local Msh = Create(Mesh){ | |
451 | Parent = Part, | |
452 | Offset = OffSet, | |
453 | Scale = Scale, | |
454 | } | |
455 | if Mesh == "SpecialMesh" then | |
456 | Msh.MeshType = MeshType | |
457 | Msh.MeshId = MeshId | |
458 | end | |
459 | return Msh | |
460 | end; | |
461 | }; | |
462 | ||
463 | ["Mesh"] = { | |
464 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
465 | local Msh = Create(Mesh){ | |
466 | Parent = Part, | |
467 | Offset = OffSet, | |
468 | Scale = Scale, | |
469 | } | |
470 | if Mesh == "SpecialMesh" then | |
471 | Msh.MeshType = MeshType | |
472 | Msh.MeshId = MeshId | |
473 | end | |
474 | return Msh | |
475 | end; | |
476 | }; | |
477 | ||
478 | ["Weld"] = { | |
479 | Create = function(Parent, Part0, Part1, C0, C1) | |
480 | local Weld = Create("Weld"){ | |
481 | Parent = Parent, | |
482 | Part0 = Part0, | |
483 | Part1 = Part1, | |
484 | C0 = C0, | |
485 | C1 = C1, | |
486 | } | |
487 | return Weld | |
488 | end; | |
489 | }; | |
490 | ||
491 | ["Sound"] = { | |
492 | Create = function(id, par, vol, pit) | |
493 | coroutine.resume(coroutine.create(function() | |
494 | local S = Create("Sound"){ | |
495 | Volume = vol, | |
496 | Name = "EffectSoundo", | |
497 | Pitch = pit or 1, | |
498 | SoundId = id, | |
499 | Parent = par or workspace, | |
500 | } | |
501 | wait() | |
502 | S:play() | |
503 | game:GetService("Debris"):AddItem(S, 10) | |
504 | end)) | |
505 | end; | |
506 | }; | |
507 | ||
508 | ["TimeSound"] = { | |
509 | Create = function(id, par, vol, pit, timepos) | |
510 | coroutine.resume(coroutine.create(function() | |
511 | local S = Create("Sound"){ | |
512 | Volume = vol, | |
513 | Name = "EffectSoundo", | |
514 | Pitch = pit or 1, | |
515 | SoundId = id, | |
516 | TimePosition = timepos, | |
517 | Parent = par or workspace, | |
518 | } | |
519 | wait() | |
520 | S:play() | |
521 | game:GetService("Debris"):AddItem(S, 10) | |
522 | end)) | |
523 | end; | |
524 | }; | |
525 | ["EchoSound"] = { | |
526 | Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl) | |
527 | coroutine.resume(coroutine.create(function() | |
528 | local Sas = Create("Sound"){ | |
529 | Volume = vol, | |
530 | Name = "EffectSoundo", | |
531 | Pitch = pit or 1, | |
532 | SoundId = id, | |
533 | TimePosition = timepos, | |
534 | Parent = par or workspace, | |
535 | } | |
536 | local E = Create("EchoSoundEffect"){ | |
537 | Delay = echodelay, | |
538 | Name = "Echo", | |
539 | Feedback = fedb, | |
540 | DryLevel = dryl, | |
541 | Parent = Sas, | |
542 | } | |
543 | wait() | |
544 | Sas:play() | |
545 | game:GetService("Debris"):AddItem(Sas, delays) | |
546 | end)) | |
547 | end; | |
548 | }; | |
549 | ||
550 | ["LongSound"] = { | |
551 | Create = function(id, par, vol, pit) | |
552 | coroutine.resume(coroutine.create(function() | |
553 | local S = Create("Sound"){ | |
554 | Volume = vol, | |
555 | Pitch = pit or 1, | |
556 | SoundId = id, | |
557 | Parent = par or workspace, | |
558 | } | |
559 | wait() | |
560 | S:play() | |
561 | game:GetService("Debris"):AddItem(S, 60) | |
562 | end)) | |
563 | end; | |
564 | }; | |
565 | ||
566 | ["ParticleEmitter"] = { | |
567 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
568 | local fp = Create("ParticleEmitter"){ | |
569 | Parent = Parent, | |
570 | Color = ColorSequence.new(Color1, Color2), | |
571 | LightEmission = LightEmission, | |
572 | Size = Size, | |
573 | Texture = Texture, | |
574 | Transparency = Transparency, | |
575 | ZOffset = ZOffset, | |
576 | Acceleration = Accel, | |
577 | Drag = Drag, | |
578 | LockedToPart = LockedToPart, | |
579 | VelocityInheritance = VelocityInheritance, | |
580 | EmissionDirection = EmissionDirection, | |
581 | Enabled = Enabled, | |
582 | Lifetime = LifeTime, | |
583 | Rate = Rate, | |
584 | Rotation = Rotation, | |
585 | RotSpeed = RotSpeed, | |
586 | Speed = Speed, | |
587 | VelocitySpread = VelocitySpread, | |
588 | } | |
589 | return fp | |
590 | end; | |
591 | }; | |
592 | ||
593 | CreateTemplate = { | |
594 | ||
595 | }; | |
596 | } | |
597 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
598 | local NEWPART = IT("Part") | |
599 | NEWPART.formFactor = FORMFACTOR | |
600 | NEWPART.Reflectance = REFLECTANCE | |
601 | NEWPART.Transparency = TRANSPARENCY | |
602 | NEWPART.CanCollide = false | |
603 | NEWPART.Locked = true | |
604 | NEWPART.Anchored = true | |
605 | if ANCHOR == false then | |
606 | NEWPART.Anchored = false | |
607 | end | |
608 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
609 | NEWPART.Name = NAME | |
610 | NEWPART.Size = SIZE | |
611 | NEWPART.Position = Torso.Position | |
612 | NEWPART.Material = MATERIAL | |
613 | NEWPART:BreakJoints() | |
614 | NEWPART.Parent = PARENT | |
615 | return NEWPART | |
616 | end | |
617 | ||
618 | local function weldBetween(a, b) | |
619 | local weldd = Instance.new("ManualWeld") | |
620 | weldd.Part0 = a | |
621 | weldd.Part1 = b | |
622 | weldd.C0 = CFrame.new() | |
623 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
624 | weldd.Parent = a | |
625 | return weldd | |
626 | end | |
627 | ||
628 | ||
629 | function QuaternionFromCFrame(cf) | |
630 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
631 | local trace = m00 + m11 + m22 | |
632 | if trace > 0 then | |
633 | local s = math.sqrt(1 + trace) | |
634 | local recip = 0.5 / s | |
635 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
636 | else | |
637 | local i = 0 | |
638 | if m11 > m00 then | |
639 | i = 1 | |
640 | end | |
641 | if m22 > (i == 0 and m00 or m11) then | |
642 | i = 2 | |
643 | end | |
644 | if i == 0 then | |
645 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
646 | local recip = 0.5 / s | |
647 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
648 | elseif i == 1 then | |
649 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
650 | local recip = 0.5 / s | |
651 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
652 | elseif i == 2 then | |
653 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
654 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
655 | end | |
656 | end | |
657 | end | |
658 | ||
659 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
660 | local xs, ys, zs = x + x, y + y, z + z | |
661 | local wx, wy, wz = w * xs, w * ys, w * zs | |
662 | local xx = x * xs | |
663 | local xy = x * ys | |
664 | local xz = x * zs | |
665 | local yy = y * ys | |
666 | local yz = y * zs | |
667 | local zz = z * zs | |
668 | 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)) | |
669 | end | |
670 | function swait(num) | |
671 | if num==0 or num==nil then | |
672 | game:service'RunService'.Stepped:wait(0) | |
673 | else | |
674 | for i=0,num do | |
675 | game:service'RunService'.Stepped:wait(0) | |
676 | end | |
677 | end | |
678 | end | |
679 | function QuaternionSlerp(a, b, t) | |
680 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
681 | local startInterp, finishInterp; | |
682 | if cosTheta >= 0.0001 then | |
683 | if (1 - cosTheta) > 0.0001 then | |
684 | local theta = ACOS(cosTheta) | |
685 | local invSinTheta = 1 / SIN(theta) | |
686 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
687 | finishInterp = SIN(t * theta) * invSinTheta | |
688 | else | |
689 | startInterp = 1 - t | |
690 | finishInterp = t | |
691 | end | |
692 | else | |
693 | if (1 + cosTheta) > 0.0001 then | |
694 | local theta = ACOS(-cosTheta) | |
695 | local invSinTheta = 1 / SIN(theta) | |
696 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
697 | finishInterp = SIN(t * theta) * invSinTheta | |
698 | else | |
699 | startInterp = t - 1 | |
700 | finishInterp = t | |
701 | end | |
702 | end | |
703 | 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 | |
704 | end | |
705 | ||
706 | function Clerp(a, b, t) | |
707 | local qa = {QuaternionFromCFrame(a)} | |
708 | local qb = {QuaternionFromCFrame(b)} | |
709 | local ax, ay, az = a.x, a.y, a.z | |
710 | local bx, by, bz = b.x, b.y, b.z | |
711 | local _t = 1 - t | |
712 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
713 | end | |
714 | ||
715 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
716 | local frame = IT("Frame") | |
717 | frame.BackgroundTransparency = TRANSPARENCY | |
718 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
719 | frame.Position = POSITION | |
720 | frame.Size = SIZE | |
721 | frame.BackgroundColor3 = COLOR | |
722 | frame.BorderColor3 = BORDERCOLOR | |
723 | frame.Name = NAME | |
724 | frame.Parent = PARENT | |
725 | return frame | |
726 | end | |
727 | ||
728 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
729 | local label = IT("TextLabel") | |
730 | label.BackgroundTransparency = 1 | |
731 | label.Size = UD2(1, 0, 1, 0) | |
732 | label.Position = UD2(0, 0, 0, 0) | |
733 | label.TextColor3 = TEXTCOLOR | |
734 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
735 | label.TextTransparency = TRANSPARENCY | |
736 | label.FontSize = TEXTFONTSIZE | |
737 | label.Font = TEXTFONT | |
738 | label.BorderSizePixel = BORDERSIZEPIXEL | |
739 | label.TextScaled = false | |
740 | label.Text = TEXT | |
741 | label.Name = NAME | |
742 | label.Parent = PARENT | |
743 | return label | |
744 | end | |
745 | ||
746 | function NoOutlines(PART) | |
747 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
748 | end | |
749 | ||
750 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
751 | local NEWWELD = IT(TYPE) | |
752 | NEWWELD.Part0 = PART0 | |
753 | NEWWELD.Part1 = PART1 | |
754 | NEWWELD.C0 = C0 | |
755 | NEWWELD.C1 = C1 | |
756 | NEWWELD.Parent = PARENT | |
757 | return NEWWELD | |
758 | end | |
759 | ||
760 | local S = IT("Sound") | |
761 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
762 | local NEWSOUND = nil | |
763 | coroutine.resume(coroutine.create(function() | |
764 | NEWSOUND = S:Clone() | |
765 | NEWSOUND.Parent = PARENT | |
766 | NEWSOUND.Volume = VOLUME | |
767 | NEWSOUND.Pitch = PITCH | |
768 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
769 | NEWSOUND:play() | |
770 | if DOESLOOP == true then | |
771 | NEWSOUND.Looped = true | |
772 | else | |
773 | repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT | |
774 | NEWSOUND:remove() | |
775 | end | |
776 | end)) | |
777 | return NEWSOUND | |
778 | end | |
779 | ||
780 | function CFrameFromTopBack(at, top, back) | |
781 | local right = top:Cross(back) | |
782 | 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) | |
783 | end | |
784 | ||
785 | --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}) | |
786 | function WACKYEFFECT(Table) | |
787 | local TYPE = (Table.EffectType or "Sphere") | |
788 | local SIZE = (Table.Size or VT(1,1,1)) | |
789 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
790 | local TRANSPARENCY = (Table.Transparency or 0) | |
791 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
792 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
793 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
794 | local ROTATION1 = (Table.RotationX or 0) | |
795 | local ROTATION2 = (Table.RotationY or 0) | |
796 | local ROTATION3 = (Table.RotationZ or 0) | |
797 | local MATERIAL = (Table.Material or "Neon") | |
798 | local COLOR = (Table.Color or C3(1,1,1)) | |
799 | local TIME = (Table.Time or 45) | |
800 | local SOUNDID = (Table.SoundID or nil) | |
801 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
802 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
803 | coroutine.resume(coroutine.create(function() | |
804 | local PLAYSSOUND = false | |
805 | local SOUND = nil | |
806 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
807 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
808 | PLAYSSOUND = true | |
809 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
810 | end | |
811 | EFFECT.Color = COLOR | |
812 | local MSH = nil | |
813 | if TYPE == "Sphere" then | |
814 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
815 | elseif TYPE == "Block" then | |
816 | MSH = IT("BlockMesh",EFFECT) | |
817 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
818 | elseif TYPE == "Wave" then | |
819 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
820 | elseif TYPE == "Ring" then | |
821 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
822 | elseif TYPE == "Slash" then | |
823 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
824 | elseif TYPE == "Round Slash" then | |
825 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
826 | elseif TYPE == "Swirl" then | |
827 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
828 | elseif TYPE == "Skull" then | |
829 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
830 | elseif TYPE == "Crystal" then | |
831 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
832 | end | |
833 | if MSH ~= nil then | |
834 | local MOVESPEED = nil | |
835 | if MOVEDIRECTION ~= nil then | |
836 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
837 | end | |
838 | local GROWTH = SIZE - ENDSIZE | |
839 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
840 | if TYPE == "Block" then | |
841 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
842 | else | |
843 | EFFECT.CFrame = CFRAME | |
844 | end | |
845 | for LOOP = 1, TIME+1 do | |
846 | Swait() | |
847 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
848 | if TYPE == "Wave" then | |
849 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
850 | end | |
851 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
852 | if TYPE == "Block" then | |
853 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
854 | else | |
855 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
856 | end | |
857 | if MOVEDIRECTION ~= nil then | |
858 | local ORI = EFFECT.Orientation | |
859 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
860 | EFFECT.Orientation = ORI | |
861 | end | |
862 | end | |
863 | if PLAYSSOUND == false then | |
864 | EFFECT:remove() | |
865 | else | |
866 | SOUND.Stopped:Connect(function() | |
867 | EFFECT:remove() | |
868 | end) | |
869 | end | |
870 | else | |
871 | if PLAYSSOUND == false then | |
872 | EFFECT:remove() | |
873 | else | |
874 | repeat Swait() until SOUND.Playing == false | |
875 | EFFECT:remove() | |
876 | end | |
877 | end | |
878 | end)) | |
879 | end | |
880 | ||
881 | function CharacterFade(COLOR,TIMER,MOVEDIRECTION,PARENT) | |
882 | coroutine.resume(coroutine.create(function() | |
883 | local FADE = IT("Model",Effects) | |
884 | if PARENT ~= nil then | |
885 | FADE.Parent = PARENT | |
886 | end | |
887 | FADE.Name = "FadingEffect" | |
888 | for _, c in pairs(Character:GetChildren()) do | |
889 | if c.ClassName == "Part" then | |
890 | c.CanCollide = false | |
891 | local FADER = CreatePart(3, FADE, "Neon", 0, 0.75, BRICKC("Pearl"), c.Name, c.Size, true) | |
892 | FADER.CFrame = c.CFrame | |
893 | FADER.Color = COLOR | |
894 | if FADER.Name == "Head" then | |
895 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FADER | |
896 | elseif FADER.Name == "HumanoidRootPart" then | |
897 | FADE.PrimaryPart = FADER | |
898 | FADER.Transparency = 1 | |
899 | end | |
900 | end | |
901 | end | |
902 | local TRANS = 0.25/TIMER | |
903 | local DIST = nil | |
904 | if MOVEDIRECTION ~= nil then | |
905 | DIST = (FADE.PrimaryPart.Position - MOVEDIRECTION).Magnitude | |
906 | end | |
907 | for i = 1, TIMER do | |
908 | Swait() | |
909 | for _, c in pairs(FADE:GetChildren()) do | |
910 | if c.ClassName == "Part" then | |
911 | c.Transparency = c.Transparency + TRANS | |
912 | end | |
913 | end | |
914 | if MOVEDIRECTION ~= nil then | |
915 | local ORI = FADE.PrimaryPart.Orientation | |
916 | FADE:SetPrimaryPartCFrame(CF(CF(FADE.PrimaryPart.Position,MOVEDIRECTION)*CF(0,0,-DIST/TIMER).p) * ANGLES(RAD(ORI.X), RAD(ORI.Y), RAD(ORI.Z))) | |
917 | end | |
918 | end | |
919 | FADE:remove() | |
920 | end)) | |
921 | end | |
922 | ||
923 | function R_RANDOM(CFRAME,DIST) | |
924 | return CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-DIST) | |
925 | end | |
926 | ||
927 | function MakeForm(PART,TYPE) | |
928 | if TYPE == "Cyl" then | |
929 | local MSH = IT("CylinderMesh",PART) | |
930 | elseif TYPE == "Ball" then | |
931 | local MSH = IT("SpecialMesh",PART) | |
932 | MSH.MeshType = "Sphere" | |
933 | elseif TYPE == "Wedge" then | |
934 | local MSH = IT("SpecialMesh",PART) | |
935 | MSH.MeshType = "Wedge" | |
936 | end | |
937 | end | |
938 | ||
939 | function SpawnTrail(FROM,TO,BIG) | |
940 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0)) | |
941 | MakeForm(TRAIL,"Cyl") | |
942 | local DIST = (FROM - TO).Magnitude | |
943 | if BIG == true then | |
944 | TRAIL.Size = VT(0.5,DIST,0.5) | |
945 | else | |
946 | TRAIL.Size = VT(0.25,DIST,0.25) | |
947 | end | |
948 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
949 | coroutine.resume(coroutine.create(function() | |
950 | for i = 1, 5 do | |
951 | Swait() | |
952 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
953 | end | |
954 | TRAIL:remove() | |
955 | end)) | |
956 | end | |
957 | ||
958 | Debris = game:GetService("Debris") | |
959 | ||
960 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
961 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
962 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
963 | end | |
964 | ||
965 | function turnto(position) | |
966 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
967 | end | |
968 | ||
969 | --//=================================\\ | |
970 | --|| WEAPONS/MISC CREATION | |
971 | --\\=================================// | |
972 | ||
973 | title = [[ | |
974 | ||
975 | // C H A T L I S T \\ | |
976 | AAAA | |
977 | I CANT BELIEVE YOUVE DONE THIS | |
978 | DS | |
979 | HEX | |
980 | TOPHAT | |
981 | NOHATS | |
982 | I CAN DO ANYTHING | |
983 | ah yes | |
984 | SIT | |
985 | NOSIT | |
986 | /e time (timeposition) | |
987 | /e play (id) | |
988 | thats how mafia works | |
989 | curb | |
990 | GET REKT FOOL | |
991 | ||
992 | [E] Open/Close CHAT GUI | |
993 | ||
994 | GUI made by @Kyutatsuki#9221 | |
995 | ]] | |
996 | backgroundcolortitle = C3(0.1,0.1,0) | |
997 | bordercolortitle = C3(1,1,0) | |
998 | GUI = Instance.new("ScreenGui", Player.PlayerGui) | |
999 | GUI.Name = "BlackHoleKyutatsukiGui" | |
1000 | textlabel = Instance.new("TextLabel",GUI) | |
1001 | textlabel.AnchorPoint = Vector2.new(1,1) | |
1002 | textlabel.Position = UDim2.new(1,500+5,1,-5) | |
1003 | textlabel.Size = UDim2.new(0,500,0,400) | |
1004 | textlabel.BorderSizePixel = 5 | |
1005 | textlabel.BorderColor3 = bordercolortitle | |
1006 | textlabel.BackgroundColor3 = backgroundcolortitle | |
1007 | textlabel.BackgroundTransparency = 0.1 | |
1008 | textlabel.TextTransparency = 0.1 | |
1009 | textlabel.TextColor3 = C3(1,1,0) | |
1010 | textlabel.TextScaled = true | |
1011 | textlabel.TextYAlignment = Enum.TextYAlignment.Center | |
1012 | textlabel.Font = Enum.Font.SciFi | |
1013 | textlabel.Text = title | |
1014 | ||
1015 | guiopen = false | |
1016 | debouncebutton = false | |
1017 | function openhelp() | |
1018 | if debouncebutton == false then | |
1019 | if guiopen == false then | |
1020 | debouncebutton = true | |
1021 | textlabel:TweenPosition(UDim2.new(1,0-5,1,-5),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,0.2) | |
1022 | guiopen = true | |
1023 | wait(0.2) | |
1024 | else | |
1025 | debouncebutton = true | |
1026 | textlabel:TweenPosition(UDim2.new(1,500+5,1,-5),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,0.2) | |
1027 | guiopen = false | |
1028 | wait(0.2) | |
1029 | end | |
1030 | end | |
1031 | debouncebutton = false | |
1032 | end | |
1033 | openhelp() | |
1034 | ||
1035 | Mouse.KeyDown:connect(function(key) | |
1036 | if key == "e" then | |
1037 | openhelp() | |
1038 | end | |
1039 | end) | |
1040 | ||
1041 | if Character:FindFirstChild("Shirt") then | |
1042 | Character.Shirt:Destroy() | |
1043 | end | |
1044 | if Character:FindFirstChild("Pants") then | |
1045 | Character.Pants:Destroy() | |
1046 | end | |
1047 | ||
1048 | for i,v in pairs(Character:children()) do | |
1049 | if v:IsA("Accessory") then | |
1050 | v:Destroy() | |
1051 | end | |
1052 | end | |
1053 | ||
1054 | ||
1055 | Player_Size = 1 --Size of the player. | |
1056 | ||
1057 | ||
1058 | local Shirto = Instance.new("Shirt") | |
1059 | Shirto.Name = "S" | |
1060 | Shirto.ShirtTemplate = "rbxassetid://787796132" | |
1061 | Shirto.Parent = Character | |
1062 | ||
1063 | local Panto = Instance.new("Pants") | |
1064 | Panto.Name = "S" | |
1065 | Panto.PantsTemplate = "rbxassetid://844190661" | |
1066 | Panto.Parent = Character | |
1067 | New = function(Object, Parent, Name, Data) | |
1068 | local Object = Instance.new(Object) | |
1069 | for Index, Value in pairs(Data or {}) do | |
1070 | Object[Index] = Value | |
1071 | end | |
1072 | Object.Parent = Parent | |
1073 | Object.Name = Name | |
1074 | return Object | |
1075 | end | |
1076 | ||
1077 | --[[ | |
1078 | tommygun = Instance.new("Part",Character) | |
1079 | tommygun.Size = Vector3.new(2,2,2) | |
1080 | tommygun.CFrame = RightArm.CFrame | |
1081 | tommygun.CanCollide = false | |
1082 | tommygunweld = Instance.new("Weld",tommygun) | |
1083 | tommygunweld.Part0 = tommygun | |
1084 | tommygunweld.Part1 = RightArm | |
1085 | tommygunweld.C0 = tommygun.CFrame:inverse() * RightArm.CFrame * CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0) | |
1086 | mtommygun = Instance.new("SpecialMesh", tommygun) | |
1087 | mtommygun.MeshType = "FileMesh" | |
1088 | mtommygun.Scale = Vector3.new(1, 1, 1) | |
1089 | mtommygun.MeshId,mtommygun.TextureId = 'http://www.roblox.com/asset/?id=116679805','http://www.roblox.com/asset/?id=116679995' | |
1090 | tommygunammo = Instance.new("Part",Character) | |
1091 | tommygunammo.Size = Vector3.new(2,2,2) | |
1092 | tommygunammo.CFrame = tommygun.CFrame | |
1093 | tommygunammo.CanCollide = false | |
1094 | tommygunammoweld = Instance.new("Weld",tommygunammo) | |
1095 | tommygunammoweld.Part0 = tommygunammo | |
1096 | tommygunammoweld.Part1 = tommygun | |
1097 | tommygunammoweld.C0 = tommygun.CFrame:inverse() * tommygun.CFrame * CFrame.new(0,.4,.25) * CFrame.Angles(math.rad(0),math.rad(0),0) | |
1098 | mtommygunammo = Instance.new("SpecialMesh", tommygunammo) | |
1099 | mtommygunammo.MeshType = "FileMesh" | |
1100 | mtommygunammo.Scale = Vector3.new(1, 1, 1) | |
1101 | mtommygunammo.MeshId,mtommygunammo.TextureId = 'http://www.roblox.com/asset/?id=116740155','http://www.roblox.com/asset/?id=116679995' | |
1102 | ]]-- | |
1103 | ||
1104 | local AK = CreatePart(3, A47, "Neon", 0, 0, "Really black", "Gun", VT(1, 0.8, 3),false) | |
1105 | CreateMesh("SpecialMesh", AK, "FileMesh", "430309675", "430310377", VT(0.01, 0.01, 0.01), VT(0,0,0)) | |
1106 | --CreateMesh("SpecialMesh", AK, "FileMesh", "430054350", "430310377", VT(1, 1, 1), VT(0,0,0)) | |
1107 | local AKWELD = CreateWeldOrSnapOrMotor("Weld", AK, RightArm, AK, CFrame.new(0,-1.8,0.25) * CFrame.Angles(math.rad(270),math.rad(180),0), CF(0, 0, 0)) | |
1108 | local AH = CreatePart(3, A47, "SmoothPlastic", 0, 1, "Really black", "Handle", VT(0, 0, 0),false) | |
1109 | local AHW = CreateWeldOrSnapOrMotor("Weld", AH, RightArm, AH, CF(0 * Player_Size, -5.6 * Player_Size, -0.6 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(135)), CF(0, 0, 0)) | |
1110 | ||
1111 | AKMMO2 = Instance.new("Part",A47) | |
1112 | AKMMO2.Size = Vector3.new(2,2,2) | |
1113 | AKMMO2.CFrame = AK.CFrame | |
1114 | AKMMO2.CanCollide = false | |
1115 | AKMO = Instance.new("Weld",AKMMO2) | |
1116 | AKMO.Part0 = AKMMO2 | |
1117 | AKMO.Part1 = AK | |
1118 | AKMO.C0 = AK.CFrame:inverse() * AK.CFrame * CFrame.new(0,.4,.25) * CFrame.Angles(math.rad(0),math.rad(0),0) | |
1119 | AKMMO = Instance.new("SpecialMesh", AKMMO2) | |
1120 | AKMMO.MeshType = "FileMesh" | |
1121 | AKMMO.Scale = Vector3.new(0.01, 0.01, 0.01) | |
1122 | AKMMO.MeshId,AKMMO.TextureId = 'http://www.roblox.com/asset/?id=430310311','http://www.roblox.com/asset/?id=430310377' | |
1123 | ||
1124 | --[[ | |
1125 | Shotii = New("Model",Character,"Shotii",{}) | |
1126 | SHandaru = New("Part",Shotii,"SHandaru",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.299999952, 0.299999923, 0.299999803),CFrame = CFrame.new(82.7000122, 8.4184885, -48.6482887, 0, 0, 1, -0.173647001, 0.984807968, 0, -0.984807968, -0.173647001, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
1127 | Mesh = New("SpecialMesh",SHandaru,"Mesh",{Scale = Vector3.new(0.00200000019, 0.00200000019, 0.00200000019),MeshId = "rbxassetid://450250994",TextureId = "rbxassetid://450251128",MeshType = Enum.MeshType.FileMesh,}) | |
1128 | Weld = New("ManualWeld",SHandaru,"Weld",{Part0 = SHandaru,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, 0, -0.173647001, -0.984807968, 0, 0.984807968, -0.173647001, 1, 0, 0),C1 = CFrame.new(0.292991638, -7.6862278, -0.349998474, 0.984807849, -0.030152997, -0.171009988, 0.173647955, 0.17100893, 0.969846547, 4.55671426e-07, -0.984807968, 0.173646942),}) | |
1129 | SShot = New("Part",Shotii,"SShot",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.299999952, 0.299999923, 0.299999803),CFrame = CFrame.new(82.7000122, 8.3150301, -54.4179688, 0, 0, 1, -0.173647001, 0.984807968, 0, -0.984807968, -0.173647001, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
1130 | Weld = New("ManualWeld",SShot,"Weld",{Part0 = SShot,Part1 = SHandaru,C0 = CFrame.new(0, 0, 0, 0, -0.173647001, -0.984807968, 0, 0.984807968, -0.173647001, 1, 0, 0),C1 = CFrame.new(5.69999313, 0.900001526, 0, 0, -0.173647001, -0.984807968, 0, 0.984807968, -0.173647001, 1, 0, 0),}) | |
1131 | SSExit = New("Part",Shotii,"SSExit",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.299999952, 0.299999923, 0.299999803),CFrame = CFrame.new(83.0000076, 9.67517471, -46.1282616, 0, 0, 1, -0.173647001, 0.984807968, 0, -0.984807968, -0.173647001, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
1132 | Weld = New("ManualWeld",SSExit,"Weld",{Part0 = SSExit,Part1 = SHandaru,C0 = CFrame.new(0, 0, 0, 0, -0.173647001, -0.984807968, 0, 0.984807968, -0.173647001, 1, 0, 0),C1 = CFrame.new(-2.69996262, 0.799999237, 0.299995422, 0, -0.173647001, -0.984807968, 0, 0.984807968, -0.173647001, 1, 0, 0),}) | |
1133 | SHandaru.Transparency = 1]]-- | |
1134 | local AWH = CreatePart(3, AWP, "Neon", 0, 0, "Really black", "Gun", VT(1, 0.8, 3),false) | |
1135 | CreateMesh("SpecialMesh", AWH, "FileMesh", "504829483", "504829510", VT(0.01, 0.01, 0.01), VT(0,0,0)) | |
1136 | local AWW = CreateWeldOrSnapOrMotor("Weld", AWH, RightArm, AWH, CFrame.new(0,-1.8,-0.1) * CFrame.Angles(math.rad(270),math.rad(180),0), CF(0, 0, 0)) | |
1137 | ||
1138 | --[[ | |
1139 | ||
1140 | local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Eye", Vector3.new(0.375,0.375,0.385),false) | |
1141 | local weld = CreateWeldOrSnapOrMotor("Weld", part, Head, part, CF(-0.21,0.25,-0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1142 | ||
1143 | local CLOCKWORK = CreatePart(3, Character, "Neon", 0, 0, "New Yeller", "Eye", Vector3.new(0.25,0.25,0.26),false) | |
1144 | local weld = CreateWeldOrSnapOrMotor("Weld", CLOCKWORK, Head, CLOCKWORK, CF(-0.21,0.25,-0.5785) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1145 | ]]-- | |
1146 | ||
1147 | local assault = CreatePart(3, AR, "Neon", 0, 0, "Really black", "assault", VT(1, 0.8, 3),false) | |
1148 | CreateMesh("SpecialMesh", assault, "FileMesh", "537039121", "537039226", VT(0.3, 0.3, 0.3), VT(0,0,0)) | |
1149 | local rifweld = CreateWeldOrSnapOrMotor("Weld", assault, RightArm, assault, CFrame.new(0,-1.8,-.05) * CFrame.Angles(math.rad(270),math.rad(0),0), CF(0, 0, 0)) | |
1150 | local EAE = CreatePart(3, AR, "SmoothPlastic", 0, 1, "Really black", "Handle", VT(0, 0, 0),false) | |
1151 | local EAES = CreateWeldOrSnapOrMotor("Weld", EAE, RightArm, EAE, CF(0 * Player_Size, -5.15* Player_Size, -0.6 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(135)), CF(0, 0, 0)) | |
1152 | ||
1153 | --[[ | |
1154 | local GunModel = Instance.new("Part", Character)--Shotgun) | |
1155 | GunModel.Name = "Pistol" | |
1156 | GunModel.Shape = Enum.PartType.Ball | |
1157 | GunModel.CanCollide = false | |
1158 | GunModel.BrickColor = BrickColor.new("Medium stone grey") | |
1159 | GunModel.Transparency = 1 | |
1160 | GunModel.Material = "Grass" | |
1161 | GunModel.Size = Vector3.new(0.01, 0.01, 0.01) | |
1162 | GunModel.TopSurface = Enum.SurfaceType.Smooth | |
1163 | GunModel.BottomSurface = Enum.SurfaceType.Smooth | |
1164 | local Weld = Instance.new("Weld", GunModel) | |
1165 | Weld.Part0 = RightArm | |
1166 | Weld.Part1 = GunModel | |
1167 | Weld.C1 = CFrame.new(0, -0.3, -1.4) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(180)) | |
1168 | GunModelMesh = Instance.new("FileMesh", GunModel) | |
1169 | GunModelMesh.MeshId = "http://www.roblox.com/asset/?id=450250994" | |
1170 | GunModelMesh.TextureId = "http://www.roblox.com/asset/?id=450251128" | |
1171 | GunModelMesh.Scale = Vector3.new(0.035, 0.02, 0.02) | |
1172 | ]]-- | |
1173 | ||
1174 | local UGB = CreatePart(3, AUG, "Neon", 0, 0, "Really black", "Gun", VT(1, 0.8, 3),false) | |
1175 | CreateMesh("SpecialMesh", UGB, "FileMesh", "431717702", "431717780", VT(0.08, 0.08, 0.08), VT(0,0,0)) | |
1176 | local UGW = CreateWeldOrSnapOrMotor("Weld", UGB, RightArm, UGB, CFrame.new(0,-1.8,0.25) * CFrame.Angles(math.rad(270),math.rad(180),0), CF(0, 0, 0)) | |
1177 | ||
1178 | ||
1179 | local SGUN = CreatePart(3, Shotgun, "Neon", 0, 0, "Really black", "Gun", VT(1, 0.8, 3),false) | |
1180 | CreateMesh("SpecialMesh", SGUN, "FileMesh", "450250994", "450251128", VT(0.002, 0.002, 0.002), VT(0,0,0)) | |
1181 | local GUNWELD = CreateWeldOrSnapOrMotor("Weld", SGUN, RightArm, SGUN, CF(-0.45,-1.4,0.1) * ANGLES(RAD(-90), RAD(110), RAD(0)), CF(0, 0, 0)) | |
1182 | ||
1183 | local Barrel = CreatePart(3, Shotgun, "SmoothPlastic", 0, 1, "Really black", "Handle", VT(0, 0, 0),false) | |
1184 | local BarrelWeld = CreateWeldOrSnapOrMotor("Weld", Barrel, RightArm, Barrel, CF(0 * Player_Size, -4.6 * Player_Size, -0.6 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(135)), CF(0, 0, 0)) | |
1185 | ||
1186 | local OUTSIDE = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Eye", Vector3.new(0.395,0.485,0.405),false) | |
1187 | local weld = CreateWeldOrSnapOrMotor("Weld", OUTSIDE, Head, OUTSIDE, CF(0.18,0.05,-0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1188 | ||
1189 | local CLOCKWORK2 = CreatePart(3, Character, "Neon", 0, 0, "Bright yellow", "Eye", Vector3.new(0.29,0.37,0.30),false) | |
1190 | local weld = CreateWeldOrSnapOrMotor("Weld", CLOCKWORK2, Head, CLOCKWORK2, CF(0.18,0.05,-0.5785) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1191 | MakeForm(OUTSIDE,"Cyl") | |
1192 | MakeForm(CLOCKWORK2,"Cyl") | |
1193 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Eye", Vector3.new(1.3,0.225,1.3),false) | |
1194 | local weld = CreateWeldOrSnapOrMotor("Weld", BELT, Head, BELT, CF(0,0.05,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1195 | MakeForm(BELT,"Cyl") | |
1196 | ||
1197 | local BC = char["Body Colors"] | |
1198 | BC.HeadColor = BrickColor.new("Light stone grey") | |
1199 | BC.LeftArmColor = BrickColor.new("Light stone grey") | |
1200 | BC.LeftLegColor = BrickColor.new("Light stone grey") | |
1201 | BC.RightArmColor = BrickColor.new("Light stone grey") | |
1202 | BC.RightLegColor = BrickColor.new("Light stone grey") | |
1203 | BC.TorsoColor = BrickColor.new("Light stone grey") | |
1204 | ||
1205 | local kek9= CreatePart(3, kek, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0, 0, 0),false) | |
1206 | local kek9M = CreateMesh("SpecialMesh", kek9, "FileMesh", "742046473", "742046691", VT(0.002, 0.002, 0.002), VT(0,0, 0)) | |
1207 | local kek9W = CreateWeldOrSnapOrMotor("Weld", kek9, RightArm, kek9, CF(0 * Player_Size, -1.6 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(270), RAD(180), RAD(0)), CF(0, 0, 0)) | |
1208 | ||
1209 | local kepoint = CreatePart(3, kek, "SmoothPlastic", 0, 1, "Really black", "Handle", VT(0, 0, 0),false) | |
1210 | local kepointweld = CreateWeldOrSnapOrMotor("Weld", kepoint, RightArm, kepoint, CF(0 * Player_Size, -2.6 * Player_Size, -0.6 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(135)), CF(0, 0, 0)) | |
1211 | ||
1212 | ||
1213 | local Gun = CreatePart(3, Gun, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0, 0, 0),false) | |
1214 | --local HandleMesh = CreateMesh("SpecialMesh", Gun, "FileMesh", "72012879", "72012859", VT(2,2,2), VT(0,0, 0)) | |
1215 | local HandleMesh = CreateMesh("SpecialMesh", Gun, "FileMesh", "430348960", "430888952", VT(0.002, 0.002, 0.002), VT(0,0, 0)) | |
1216 | --local Weld = CreateWeldOrSnapOrMotor("Weld", Gun, RightArm, Gun, CF(0 * Player_Size, -1.6 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1217 | local Weld = CreateWeldOrSnapOrMotor("Weld", Gun, RightArm, Gun, CF(0 * Player_Size, -1.6 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(270), RAD(180), RAD(0)), CF(0, 0, 0)) | |
1218 | ||
1219 | local GunPoint = CreatePart(3, Gun, "SmoothPlastic", 0, 1, "Really black", "Handle", VT(0, 0, 0),false) | |
1220 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", GunPoint, RightArm, GunPoint, CF(0 * Player_Size, -2.6 * Player_Size, -0.6 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(135)), CF(0, 0, 0)) | |
1221 | ||
1222 | ||
1223 | local S2S = CreatePart(3, Supressor, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0, 0, 0),false) | |
1224 | local HandleMesh = CreateMesh("SpecialMesh", S2S, "FileMesh", "430884744", "430888952", VT(0.002, 0.002, 0.002), VT(0,0, 0)) | |
1225 | local Weld = CreateWeldOrSnapOrMotor("Weld", S2S, Gun, S2S, CF(0 * Player_Size, 0.45 * Player_Size, 1.725 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(135)), CF(0, 0, 0)) | |
1226 | ||
1227 | --GunModelMesh.MeshId = "http://www.roblox.com/asset/?id=0" | |
1228 | local SSDE = CreatePart(3, SMG, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0, 0, 0),false) | |
1229 | local HandleMesh = CreateMesh("SpecialMesh", SSDE, "FileMesh", "453175434", "453175461", VT(0.02, 0.02, 0.02), VT(0,0, 0)) | |
1230 | local Weld = CreateWeldOrSnapOrMotor("Weld", SSDE, RightArm, SSDE, CF(0 * Player_Size, -1.6 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(270), RAD(180), RAD(0)), CF(0, 0, 0)) | |
1231 | ||
1232 | local Flare = CreatePart(3, SMG, "SmoothPlastic", 0, 1, "Really black", "Handle", VT(0, 0, 0),false) | |
1233 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", Flare, RightArm, Flare, CF(0 * Player_Size, -2.6 * Player_Size, -0.6 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(135)), CF(0, 0, 0)) | |
1234 | ||
1235 | local SSDE2 = CreatePart(3, SMG, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0, 0, 0),false) | |
1236 | local HandleMesh2 = CreateMesh("SpecialMesh", SSDE2, "FileMesh", "453175434", "453175461", VT(0.02, 0.02, 0.02), VT(0,0, 0)) | |
1237 | local Weld2 = CreateWeldOrSnapOrMotor("Weld", SSDE2, LeftArm, SSDE2, CF(0 * Player_Size, -1.6 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(270), RAD(180), RAD(0)), CF(0, 0, 0)) | |
1238 | ||
1239 | local Flare2 = CreatePart(3, SMG, "SmoothPlastic", 0, 1, "Really black", "Handle", VT(0, 0, 0),false) | |
1240 | local Handle2 = CreateWeldOrSnapOrMotor("Weld", Flare2, LeftArm, Flare2, CF(0 * Player_Size, -2.6 * Player_Size, -0.6 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(135)), CF(0, 0, 0)) | |
1241 | ||
1242 | local KL2 = CreatePart(3, knif, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0, 0, 0),false) | |
1243 | local KLM = CreateMesh("SpecialMesh", KL2, "FileMesh", "437420170", "437420120", VT(0.3, 0.3, 0.3), VT(0,0, 0)) | |
1244 | local KLW = CreateWeldOrSnapOrMotor("Weld", KL2, RightArm, KL2, CF(0 * Player_Size, -1 * Player_Size, -1 * Player_Size) * ANGLES(RAD(270), RAD(180), RAD(0)), CF(0, 0, 0)) | |
1245 | ||
1246 | local R8A = CreatePart(3, R8RA, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0, 0, 0),false) | |
1247 | local R8M = CreateMesh("SpecialMesh", R8A, "FileMesh", "541863381", "541863491", VT(0.3, 0.3, 0.3), VT(0,0, 0)) | |
1248 | --local R8W = CreateWeldOrSnapOrMotor("Weld", R8A, RightArm, R8A, CF(0 * Player_Size, -1.6 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1249 | local R8W = CreateWeldOrSnapOrMotor("Weld", R8A, RightArm, R8A, CF(0.2 * Player_Size, -1.6 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(-90), RAD(-20), RAD(0)), CF(0, 0, 0)) | |
1250 | ||
1251 | local REVOLV = CreatePart(3, R8RA, "SmoothPlastic", 0, 1, "Really black", "Handle", VT(0, 0, 0),false) | |
1252 | local HOLEWELD = CreateWeldOrSnapOrMotor("Weld", REVOLV, RightArm, REVOLV, CF(0 * Player_Size, -2.6 * Player_Size, -0.6 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(135)), CF(0, 0, 0)) | |
1253 | ||
1254 | ||
1255 | local DEAGLE = CreatePart(3, DE, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0, 0, 0),false) | |
1256 | local DEAGLEMESH = CreateMesh("SpecialMesh", DEAGLE, "FileMesh", "441587064", "441587082", VT(0.03, 0.03, 0.03), VT(0,0, 0)) | |
1257 | local DEAGLEWeld = CreateWeldOrSnapOrMotor("Weld", DEAGLE, RightArm, DEAGLE, CF(0 * Player_Size, -1.6 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(270), RAD(180), RAD(0)), CF(0, 0, 0)) | |
1258 | ||
1259 | local JUAND = CreatePart(3, DE, "SmoothPlastic", 0, 1, "Really black", "Handle", VT(0, 0, 0),false) | |
1260 | local JUANDW = CreateWeldOrSnapOrMotor("Weld", JUAND, RightArm, JUAND, CF(0 * Player_Size, -2.6 * Player_Size, -0.6 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(135)), CF(0, 0, 0)) | |
1261 | ||
1262 | ||
1263 | ||
1264 | ||
1265 | local SOL = CreatePart(3, SMG2, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0, 0, 0),false) | |
1266 | local SOLM = CreateMesh("SpecialMesh", SOL, "FileMesh", "540384540", "540384666", VT(0.2, 0.2, 0.2), VT(0,0, 0)) | |
1267 | local SOLW = CreateWeldOrSnapOrMotor("Weld", SOL, RightArm, SOL, CF(0 * Player_Size, -1.6 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(270), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1268 | ||
1269 | local VOL = CreatePart(3, SMG2, "SmoothPlastic", 0, 1, "Really black", "Handle", VT(0, 0, 0),false) | |
1270 | local HENDLE = CreateWeldOrSnapOrMotor("Weld", VOL, RightArm, VOL, CF(0 * Player_Size, -2.6 * Player_Size, -0.6 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(135)), CF(0, 0, 0)) | |
1271 | ||
1272 | local SOL2 = CreatePart(3, SMG2, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0, 0, 0),false) | |
1273 | local SOLM2 = CreateMesh("SpecialMesh", SOL2, "FileMesh", "540384540", "540384666", VT(0.2, 0.2, 0.2), VT(0,0, 0)) | |
1274 | local SOLW2 = CreateWeldOrSnapOrMotor("Weld", SOL2, LeftArm, SOL2, CF(0 * Player_Size, -1.6 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(270), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1275 | ||
1276 | local VOL2 = CreatePart(3, SMG2, "SmoothPlastic", 0, 1, "Really black", "Handle", VT(0, 0, 0),false) | |
1277 | local HENDLE2 = CreateWeldOrSnapOrMotor("Weld", VOL2, LeftArm, VOL2, CF(0 * Player_Size, -2.6 * Player_Size, -0.6 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(135)), CF(0, 0, 0)) | |
1278 | ||
1279 | ||
1280 | ||
1281 | ||
1282 | ||
1283 | ||
1284 | ||
1285 | ||
1286 | local MAC = CreatePart(3, SMG3, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0, 0, 0),false) | |
1287 | local MAC2M = CreateMesh("SpecialMesh", MAC, "FileMesh", "431951963", "431951966", VT(0.1, 0.1, 0.1), VT(0,0, 0)) | |
1288 | local MACW = CreateWeldOrSnapOrMotor("Weld", MAC, RightArm, MAC, CF(0 * Player_Size, -1 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(270), RAD(180), RAD(0)), CF(0, 0, 0)) | |
1289 | ||
1290 | local BOI = CreatePart(3, SMG3, "SmoothPlastic", 0, 1, "Really black", "Handle", VT(0, 0, 0),false) | |
1291 | local BAEDF = CreateWeldOrSnapOrMotor("Weld", BOI, RightArm, BOI, CF(0 * Player_Size, -2 * Player_Size, -0.6 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(135)), CF(0, 0, 0)) | |
1292 | ||
1293 | local MAC2 = CreatePart(3, SMG3, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0, 0, 0),false) | |
1294 | local MAC2M = CreateMesh("SpecialMesh", MAC2, "FileMesh", "431951963", "431951966", VT(0.1, 0.1, 0.1), VT(0,0, 0)) | |
1295 | local MAC2W = CreateWeldOrSnapOrMotor("Weld", MAC2, LeftArm, MAC2, CF(0 * Player_Size, -1 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(270), RAD(180), RAD(0)), CF(0, 0, 0)) | |
1296 | ||
1297 | local BOI2 = CreatePart(3, SMG3, "SmoothPlastic", 0, 1, "Really black", "Handle", VT(0, 0, 0),false) | |
1298 | local BAEDF2 = CreateWeldOrSnapOrMotor("Weld", BOI2, LeftArm, BOI2, CF(0 * Player_Size, -2 * Player_Size, -0.6 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(135)), CF(0, 0, 0)) | |
1299 | ||
1300 | ||
1301 | ||
1302 | ||
1303 | DE.Parent = nil | |
1304 | for _, c in pairs(DE:GetChildren()) do | |
1305 | if c.ClassName == "Part" then | |
1306 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1307 | end | |
1308 | end | |
1309 | AWP.Parent = nil | |
1310 | for _, c in pairs(AWP:GetChildren()) do | |
1311 | if c.ClassName == "Part" then | |
1312 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1313 | end | |
1314 | end | |
1315 | ||
1316 | Gun.Parent = nil | |
1317 | for _, c in pairs(Gun:GetChildren()) do | |
1318 | if c.ClassName == "Part" then | |
1319 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1320 | end | |
1321 | end | |
1322 | ||
1323 | Supressor.Parent = nil | |
1324 | for _, c in pairs(Supressor:GetChildren()) do | |
1325 | if c.ClassName == "Part" then | |
1326 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1327 | end | |
1328 | end | |
1329 | ||
1330 | AR.Parent = nil | |
1331 | for _, c in pairs(AR:GetChildren()) do | |
1332 | if c.ClassName == "Part" then | |
1333 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1334 | end | |
1335 | end | |
1336 | ||
1337 | ||
1338 | SMG.Parent = nil | |
1339 | for _, c in pairs(SMG:GetChildren()) do | |
1340 | if c.ClassName == "Part" then | |
1341 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1342 | end | |
1343 | end | |
1344 | ||
1345 | SMG3.Parent = nil | |
1346 | for _, c in pairs(SMG3:GetChildren()) do | |
1347 | if c.ClassName == "Part" then | |
1348 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1349 | end | |
1350 | end | |
1351 | ||
1352 | SMG2.Parent = nil | |
1353 | for _, c in pairs(SMG2:GetChildren()) do | |
1354 | if c.ClassName == "Part" then | |
1355 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1356 | end | |
1357 | end | |
1358 | ||
1359 | Weapon.Parent = Character | |
1360 | for _, c in pairs(Weapon:GetChildren()) do | |
1361 | if c.ClassName == "Part" then | |
1362 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1363 | end | |
1364 | end | |
1365 | ||
1366 | local SKILLTEXTCOLOR = C3(1,1,0) | |
1367 | local SKILLFONT = "SciFi" | |
1368 | local SKILLTEXTSIZE = 7 | |
1369 | --HEALTH FUNCTIONS | |
1370 | Humanoid.Died:connect(function() | |
1371 | for i = 1, 23 do | |
1372 | SprayBlood(Torso.CFrame * CF(0, Torso.Size.Y / 2, 0).p, Torso.CFrame * CF(MRANDOM(-55, 55), MRANDOM(-25, 25), MRANDOM(-55, 55)).p, MRANDOM(12,17)) | |
1373 | end | |
1374 | Character:FindFirstChildOfClass("Humanoid").PlatformStand = true | |
1375 | if Character:findFirstChild("Torso") then | |
1376 | Character.Torso.Velocity = Character.Torso.CFrame.lookVector * 10 | |
1377 | for i,v in pairs(Character.Torso:GetChildren()) do | |
1378 | if v.ClassName == "Motor6D" then | |
1379 | if v.Name == "Neck" then | |
1380 | ||
1381 | else | |
1382 | v:destroy() | |
1383 | end | |
1384 | end | |
1385 | end | |
1386 | end | |
1387 | if Character:findFirstChild("Right Arm") then | |
1388 | local attachment = Instance.new("Attachment", Character.Torso) | |
1389 | attachment.Position = Vector3.new(1, 1, 0) | |
1390 | local ball = Instance.new("BallSocketConstraint", Character) | |
1391 | ball.Attachment0 = Character["Right Arm"].RightShoulderAttachment | |
1392 | ball.Attachment1 = attachment | |
1393 | local collidepartofleftleg = Instance.new("Part", Character.Torso) | |
1394 | collidepartofleftleg.Name = "Bone" | |
1395 | collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8) | |
1396 | collidepartofleftleg.Transparency = 1 | |
1397 | collidepartofleftleg:BreakJoints() | |
1398 | local weeld = Instance.new("Weld", collidepartofleftleg) | |
1399 | weeld.Part0 = Character["Right Arm"] | |
1400 | weeld.Part1 = collidepartofleftleg | |
1401 | weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0) | |
1402 | end | |
1403 | if Character:findFirstChild("Left Arm") then | |
1404 | local attachment = Instance.new("Attachment", Character.Torso) | |
1405 | attachment.Position = Vector3.new(-1, 1, 0) | |
1406 | local ball = Instance.new("BallSocketConstraint", Character) | |
1407 | ball.Attachment0 = attachment | |
1408 | ball.Attachment1 = Character["Left Arm"].LeftShoulderAttachment | |
1409 | local collidepartofleftleg = Instance.new("Part", Character.Torso) | |
1410 | collidepartofleftleg.Name = "Bone" | |
1411 | collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8) | |
1412 | collidepartofleftleg.Transparency = 1 | |
1413 | collidepartofleftleg:BreakJoints() | |
1414 | local weeld = Instance.new("Weld", collidepartofleftleg) | |
1415 | weeld.Part0 = Character["Left Arm"] | |
1416 | weeld.Part1 = collidepartofleftleg | |
1417 | weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0) | |
1418 | end | |
1419 | if Character:findFirstChild("Right Leg") then | |
1420 | local attachment = Instance.new("Attachment", Character.Torso) | |
1421 | attachment.Position = Vector3.new(0.5, -1, 0) | |
1422 | local ball = Instance.new("BallSocketConstraint", Character) | |
1423 | ball.Attachment0 = Character["Right Leg"].RightFootAttachment | |
1424 | ball.Attachment1 = attachment | |
1425 | Character["Right Leg"].RightFootAttachment.Position = Vector3.new(0, 1, 0) | |
1426 | local collidepartofleftleg = Instance.new("Part", Character.Torso) | |
1427 | collidepartofleftleg.Name = "Bone" | |
1428 | collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8) | |
1429 | collidepartofleftleg.Transparency = 1 | |
1430 | collidepartofleftleg:BreakJoints() | |
1431 | local weeld = Instance.new("Weld", collidepartofleftleg) | |
1432 | weeld.Part0 = Character["Right Leg"] | |
1433 | weeld.Part1 = collidepartofleftleg | |
1434 | weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0) | |
1435 | end | |
1436 | if Character:findFirstChild("Left Leg") then | |
1437 | local attachment = Instance.new("Attachment", Character.Torso) | |
1438 | attachment.Position = Vector3.new(-0.5, -1, 0) | |
1439 | local ball = Instance.new("BallSocketConstraint", Character) | |
1440 | ball.Attachment0 = Character["Left Leg"].LeftFootAttachment | |
1441 | ball.Attachment1 = attachment | |
1442 | Character["Left Leg"].LeftFootAttachment.Position = Vector3.new(0, 1, 0) | |
1443 | local collidepartofleftleg = Instance.new("Part", Character.Torso) | |
1444 | collidepartofleftleg.Name = "Bone" | |
1445 | collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8) | |
1446 | collidepartofleftleg.Transparency = 1 | |
1447 | collidepartofleftleg:BreakJoints() | |
1448 | local weeld = Instance.new("Weld", collidepartofleftleg) | |
1449 | weeld.Part0 = Character["Left Leg"] | |
1450 | weeld.Part1 = collidepartofleftleg | |
1451 | weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0) | |
1452 | end | |
1453 | if Character:findFirstChild("Head") then | |
1454 | local attachment = Instance.new("Attachment", Character.Head) | |
1455 | attachment.Position = Vector3.new(0, -0.5, 0) | |
1456 | attachment.Name = "lol" | |
1457 | attachment.Visible = false | |
1458 | Character.Torso.NeckAttachment.Visible = false | |
1459 | Character.Torso.NeckAttachment.Position = Character.Torso.NeckAttachment.Position + Vector3.new(0,0,0) | |
1460 | local ball = Instance.new("BallSocketConstraint", Character) | |
1461 | ball.Attachment0 = Character.Torso.NeckAttachment | |
1462 | ball.Attachment1 = attachment | |
1463 | ball.LimitsEnabled = true | |
1464 | ball.TwistLimitsEnabled = true | |
1465 | ball.UpperAngle = 90 | |
1466 | ball.Restitution = 0.5 | |
1467 | ball.TwistUpperAngle = 180 | |
1468 | ball.TwistLowerAngle = -180 | |
1469 | local collidepartofleftleg = Instance.new("Part", Character.Torso) | |
1470 | collidepartofleftleg.Name = "Bone" | |
1471 | collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7) | |
1472 | collidepartofleftleg.Transparency = 1 | |
1473 | collidepartofleftleg:BreakJoints() | |
1474 | local weeld = Instance.new("Weld", collidepartofleftleg) | |
1475 | weeld.Part0 = collidepartofleftleg | |
1476 | weeld.Part1 = Character["Head"] | |
1477 | if Character.Torso:findFirstChild("Neck") then | |
1478 | Character.Torso.Neck:destroy() | |
1479 | end | |
1480 | end | |
1481 | Character:FindFirstChildOfClass("Humanoid"):SetStateEnabled(Enum.HumanoidStateType.Dead, false) | |
1482 | Character:FindFirstChildOfClass("Humanoid").Health = 0.1 | |
1483 | Character:FindFirstChildOfClass("Humanoid").WalkSpeed = 0 | |
1484 | Character:FindFirstChildOfClass("Humanoid").JumpPower = 0 | |
1485 | end) | |
1486 | ||
1487 | function PuddleOfBlood(Position, MaxDrop, Model, MaxSize) | |
1488 | local HITFLOOR, HITPOS, NORMAL = Raycast(Position, CF(Position, Position + VT(0, -1, 0)).lookVector, MaxDrop, Model) | |
1489 | if HITFLOOR ~= nil and HITFLOOR.Parent ~= Weapon and HITFLOOR.Parent ~= Character then | |
1490 | if HITFLOOR.Name == "BloodPuddle" then | |
1491 | local DIST = (Position - HITFLOOR.Position).Magnitude | |
1492 | if HITFLOOR.Size.Z <= 5 and MaxSize > HITFLOOR.Size.Z or HITFLOOR.Size.Z > 5 and MaxSize > HITFLOOR.Size.Z and DIST < HITFLOOR.Size.Z / 3 then | |
1493 | HITFLOOR.Size = HITFLOOR.Size + VT(0.1, 0, 0.1) | |
1494 | end | |
1495 | elseif HITFLOOR.Anchored == true then | |
1496 | do | |
1497 | local BLOOD = CreatePart(3, Effects, "SmoothPlastic", 0, 0, "New Yeller", "BloodPuddle", VT(2, 0, 2)) | |
1498 | BLOOD.CFrame = CF(HITPOS, HITPOS + NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
1499 | MakeForm(BLOOD, "Cyl") | |
1500 | coroutine.resume(coroutine.create(function() | |
1501 | Swait(75) | |
1502 | while true do | |
1503 | Swait() | |
1504 | BLOOD.Size = BLOOD.Size - VT(0.02, 0, 0.02) | |
1505 | if BLOOD.Size.Z < 0.051 then | |
1506 | BLOOD:remove() | |
1507 | break | |
1508 | end | |
1509 | end | |
1510 | end)) | |
1511 | end | |
1512 | end | |
1513 | end | |
1514 | end | |
1515 | function SprayBlood(POSITION, DIRECTION, BloodSize) | |
1516 | local BLOOD = CreatePart(3, Effects, "SmoothPlastic", 0, 0, "New Yeller", "BloodPuddle", VT(1, 1, 1), false) | |
1517 | BLOOD.CFrame = CF(POSITION) | |
1518 | MakeForm(BLOOD, "Ball") | |
1519 | local bv = Instance.new("BodyVelocity", BLOOD) | |
1520 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
1521 | bv.velocity = CF(POSITION, DIRECTION + VT(MRANDOM(-3, 3) / 30, MRANDOM(-3, 3) / 30, MRANDOM(-3, 3) / 30)).lookVector * 25 | |
1522 | bv.Name = "MOVE" | |
1523 | Debris:AddItem(bv, 0.05) | |
1524 | coroutine.resume(coroutine.create(function() | |
1525 | local HASTOUCHEDGROUND = false | |
1526 | local HIT = BLOOD.Touched:Connect(function(hit) | |
1527 | if hit.Anchored == true then | |
1528 | HASTOUCHEDGROUND = true | |
1529 | PuddleOfBlood(BLOOD.Position + VT(0, 1, 0), 2, BLOOD, BloodSize) | |
1530 | end | |
1531 | end) | |
1532 | wait(5) | |
1533 | if HASTOUCHEDGROUND == false then | |
1534 | BLOOD:remove() | |
1535 | end | |
1536 | end)) | |
1537 | end | |
1538 | ||
1539 | local lastHp=Humanoid.Health | |
1540 | --Thanks nebby ;3 | |
1541 | Humanoid:GetPropertyChangedSignal("Health"):connect(function() | |
1542 | local hp = Humanoid.Health | |
1543 | if(hp<lastHp)then | |
1544 | local lost = lastHp-hp | |
1545 | if lost < 370 then | |
1546 | for i = 1, lost/71 do | |
1547 | SprayBlood(Torso.CFrame * CF(0, Torso.Size.Y / 2, 0).p, Torso.CFrame * CF(MRANDOM(-55, 55), MRANDOM(-25, 25), MRANDOM(-55, 55)).p, lost/57) | |
1548 | end | |
1549 | elseif lost > 370 then | |
1550 | for i = 1, lost/32 do | |
1551 | SprayBlood(Torso.CFrame * CF(0, Torso.Size.Y / 2, 0).p, Torso.CFrame * CF(MRANDOM(-55, 55), MRANDOM(-25, 25), MRANDOM(-55, 55)).p, lost/15) | |
1552 | end | |
1553 | end | |
1554 | --blood depending on the lost amount of HP | |
1555 | end | |
1556 | lastHp=hp | |
1557 | end) | |
1558 | ||
1559 | --//=================================\\ | |
1560 | --|| DAMAGING | |
1561 | --\\=================================// | |
1562 | function sphere(bonuspeed,type,pos,scale,value,color) | |
1563 | local type = type | |
1564 | local rng = Instance.new("Part", char) | |
1565 | rng.Anchored = true | |
1566 | if ModeOfGlitch ~= 9 then | |
1567 | rng.BrickColor = color | |
1568 | elseif ModeOfGlitch == 9 then | |
1569 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
1570 | end | |
1571 | rng.CanCollide = false | |
1572 | rng.FormFactor = 3 | |
1573 | rng.Name = "Ring" | |
1574 | rng.Material = "Neon" | |
1575 | rng.Size = Vector3.new(1, 1, 1) | |
1576 | rng.Transparency = 0 | |
1577 | rng.TopSurface = 0 | |
1578 | rng.BottomSurface = 0 | |
1579 | rng.CFrame = pos | |
1580 | local rngm = Instance.new("SpecialMesh", rng) | |
1581 | rngm.MeshType = "Sphere" | |
1582 | rngm.Scale = scale | |
1583 | if rainbowmode == true then | |
1584 | rng.Color = Color3.new(r/255,g/255,b/255) | |
1585 | end | |
1586 | if ModeOfGlitch == 9 then | |
1587 | coroutine.resume(coroutine.create(function() | |
1588 | while true do | |
1589 | swait() | |
1590 | if rng.Parent ~= nil then | |
1591 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
1592 | else | |
1593 | break | |
1594 | end | |
1595 | end | |
1596 | end)) | |
1597 | end | |
1598 | local scaler2 = 1 | |
1599 | if type == "Add" then | |
1600 | scaler2 = 1*value | |
1601 | elseif type == "Divide" then | |
1602 | scaler2 = 1/value | |
1603 | end | |
1604 | coroutine.resume(coroutine.create(function() | |
1605 | for i = 0,10/bonuspeed,0.1 do | |
1606 | swait() | |
1607 | if rainbowmode == true then | |
1608 | rng.Color = Color3.new(r/255,g/255,b/255) | |
1609 | end | |
1610 | if type == "Add" then | |
1611 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
1612 | elseif type == "Divide" then | |
1613 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
1614 | end | |
1615 | if chaosmode == true then | |
1616 | rng.BrickColor = BrickColor.random() | |
1617 | end | |
1618 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
1619 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
1620 | end | |
1621 | rng:Destroy() | |
1622 | end)) | |
1623 | end | |
1624 | ||
1625 | function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color) | |
1626 | local type = type | |
1627 | local rng = Instance.new("Part", char) | |
1628 | rng.Anchored = true | |
1629 | if ModeOfGlitch ~= 9 then | |
1630 | rng.BrickColor = color | |
1631 | elseif ModeOfGlitch == 9 then | |
1632 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
1633 | end | |
1634 | rng.CanCollide = false | |
1635 | rng.FormFactor = 3 | |
1636 | rng.Name = "Ring" | |
1637 | rng.Material = "Neon" | |
1638 | rng.Size = Vector3.new(1, 1, 1) | |
1639 | rng.Transparency = 0 | |
1640 | rng.TopSurface = 0 | |
1641 | rng.BottomSurface = 0 | |
1642 | rng.CFrame = pos | |
1643 | local rngm = Instance.new("SpecialMesh", rng) | |
1644 | rngm.MeshType = "Sphere" | |
1645 | rngm.Scale = scale | |
1646 | local scaler2 = 1 | |
1647 | local scaler2b = 1 | |
1648 | local scaler2c = 1 | |
1649 | if type == "Add" then | |
1650 | scaler2 = 1*value | |
1651 | scaler2b = 1*value2 | |
1652 | scaler2c = 1*value3 | |
1653 | elseif type == "Divide" then | |
1654 | scaler2 = 1/value | |
1655 | scaler2b = 1/value2 | |
1656 | scaler2c = 1/value3 | |
1657 | end | |
1658 | if ModeOfGlitch == 9 then | |
1659 | coroutine.resume(coroutine.create(function() | |
1660 | while true do | |
1661 | swait() | |
1662 | if rng.Parent ~= nil then | |
1663 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
1664 | else | |
1665 | break | |
1666 | end | |
1667 | end | |
1668 | end)) | |
1669 | end | |
1670 | coroutine.resume(coroutine.create(function() | |
1671 | for i = 0,10/bonuspeed,0.1 do | |
1672 | swait() | |
1673 | if type == "Add" then | |
1674 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
1675 | scaler2b = scaler2b - 0.01*value/bonuspeed | |
1676 | scaler2c = scaler2c - 0.01*value/bonuspeed | |
1677 | elseif type == "Divide" then | |
1678 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
1679 | scaler2b = scaler2b - 0.01/value*bonuspeed | |
1680 | scaler2c = scaler2c - 0.01/value*bonuspeed | |
1681 | end | |
1682 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
1683 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed) | |
1684 | end | |
1685 | rng:Destroy() | |
1686 | end)) | |
1687 | end | |
1688 | ||
1689 | function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
1690 | local type = type | |
1691 | local rng = Instance.new("Part", char) | |
1692 | rng.Anchored = true | |
1693 | rng.BrickColor = color | |
1694 | rng.CanCollide = false | |
1695 | rng.FormFactor = 3 | |
1696 | rng.Name = "Ring" | |
1697 | rng.Material = "Neon" | |
1698 | rng.Size = Vector3.new(1, 1, 1) | |
1699 | rng.Transparency = 0 | |
1700 | rng.TopSurface = 0 | |
1701 | rng.BottomSurface = 0 | |
1702 | rng.CFrame = pos | |
1703 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
1704 | local rngm = Instance.new("SpecialMesh", rng) | |
1705 | rngm.MeshType = "Brick" | |
1706 | rngm.Scale = vt(x1,y1,z1) | |
1707 | if rainbowmode == true then | |
1708 | rng.Color = Color3.new(r/255,g/255,b/255) | |
1709 | end | |
1710 | local scaler2 = 1 | |
1711 | local speeder = FastSpeed/10 | |
1712 | if type == "Add" then | |
1713 | scaler2 = 1*value | |
1714 | elseif type == "Divide" then | |
1715 | scaler2 = 1/value | |
1716 | end | |
1717 | coroutine.resume(coroutine.create(function() | |
1718 | for i = 0,10/bonuspeed,0.1 do | |
1719 | swait() | |
1720 | if rainbowmode == true then | |
1721 | rng.Color = Color3.new(r/255,g/255,b/255) | |
1722 | end | |
1723 | if type == "Add" then | |
1724 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
1725 | elseif type == "Divide" then | |
1726 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
1727 | end | |
1728 | if chaosmode == true then | |
1729 | rng.BrickColor = BrickColor.random() | |
1730 | end | |
1731 | speeder = speeder - 0.01*FastSpeed*bonuspeed/10 | |
1732 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
1733 | --rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
1734 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
1735 | end | |
1736 | rng:Destroy() | |
1737 | end)) | |
1738 | end | |
1739 | ||
1740 | function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
1741 | local type = type | |
1742 | local rng = Instance.new("Part", char) | |
1743 | rng.Anchored = true | |
1744 | rng.BrickColor = color | |
1745 | rng.CanCollide = false | |
1746 | rng.FormFactor = 3 | |
1747 | rng.Name = "Ring" | |
1748 | rng.Material = "Neon" | |
1749 | rng.Size = Vector3.new(1, 1, 1) | |
1750 | rng.Transparency = 0 | |
1751 | rng.TopSurface = 0 | |
1752 | rng.BottomSurface = 0 | |
1753 | rng.CFrame = pos | |
1754 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
1755 | local rngm = Instance.new("SpecialMesh", rng) | |
1756 | rngm.MeshType = "Brick" | |
1757 | rngm.Scale = vt(x1,y1,z1) | |
1758 | if rainbowmode == true then | |
1759 | rng.Color = Color3.new(r/255,g/255,b/255) | |
1760 | end | |
1761 | local scaler2 = 1 | |
1762 | local speeder = FastSpeed/10 | |
1763 | if type == "Add" then | |
1764 | scaler2 = 1*value | |
1765 | elseif type == "Divide" then | |
1766 | scaler2 = 1/value | |
1767 | end | |
1768 | coroutine.resume(coroutine.create(function() | |
1769 | for i = 0,10/bonuspeed,0.1 do | |
1770 | swait() | |
1771 | if rainbowmode == true then | |
1772 | rng.Color = Color3.new(r/255,g/255,b/255) | |
1773 | end | |
1774 | if type == "Add" then | |
1775 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
1776 | elseif type == "Divide" then | |
1777 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
1778 | end | |
1779 | if chaosmode == true then | |
1780 | rng.BrickColor = BrickColor.random() | |
1781 | end | |
1782 | speeder = speeder - 0.01*FastSpeed*bonuspeed/10 | |
1783 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
1784 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
1785 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
1786 | end | |
1787 | rng:Destroy() | |
1788 | end)) | |
1789 | end | |
1790 | ||
1791 | function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
1792 | local type = type | |
1793 | local rng = Instance.new("Part", char) | |
1794 | rng.Anchored = true | |
1795 | rng.BrickColor = color | |
1796 | rng.CanCollide = false | |
1797 | rng.FormFactor = 3 | |
1798 | rng.Name = "Ring" | |
1799 | rng.Material = "Neon" | |
1800 | rng.Size = Vector3.new(1, 1, 1) | |
1801 | rng.Transparency = 0 | |
1802 | rng.TopSurface = 0 | |
1803 | rng.BottomSurface = 0 | |
1804 | rng.CFrame = pos | |
1805 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
1806 | local rngm = Instance.new("SpecialMesh", rng) | |
1807 | rngm.MeshType = "Brick" | |
1808 | rngm.Scale = vt(x1,y1,z1) | |
1809 | if rainbowmode == true then | |
1810 | rng.Color = Color3.new(r/255,g/255,b/255) | |
1811 | end | |
1812 | local scaler2 = 0 | |
1813 | local speeder = FastSpeed/10 | |
1814 | if type == "Add" then | |
1815 | scaler2 = 1*value | |
1816 | elseif type == "Divide" then | |
1817 | scaler2 = 1/value | |
1818 | end | |
1819 | coroutine.resume(coroutine.create(function() | |
1820 | for i = 0,10/bonuspeed,0.1 do | |
1821 | swait() | |
1822 | if rainbowmode == true then | |
1823 | rng.Color = Color3.new(r/255,g/255,b/255) | |
1824 | end | |
1825 | if type == "Add" then | |
1826 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
1827 | elseif type == "Divide" then | |
1828 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
1829 | end | |
1830 | if chaosmode == true then | |
1831 | rng.BrickColor = BrickColor.random() | |
1832 | end | |
1833 | speeder = speeder + 0.01*FastSpeed*bonuspeed/10 | |
1834 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
1835 | --rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
1836 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
1837 | end | |
1838 | rng:Destroy() | |
1839 | end)) | |
1840 | end | |
1841 | ||
1842 | function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
1843 | local type = type | |
1844 | local rng = Instance.new("Part", char) | |
1845 | rng.Anchored = true | |
1846 | if ModeOfGlitch ~= 9 then | |
1847 | rng.BrickColor = color | |
1848 | elseif ModeOfGlitch == 9 then | |
1849 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
1850 | end | |
1851 | rng.CanCollide = false | |
1852 | rng.FormFactor = 3 | |
1853 | rng.Name = "Ring" | |
1854 | rng.Material = "Neon" | |
1855 | rng.Size = Vector3.new(1, 1, 1) | |
1856 | rng.Transparency = 0 | |
1857 | rng.TopSurface = 0 | |
1858 | rng.BottomSurface = 0 | |
1859 | rng.CFrame = pos | |
1860 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
1861 | local rngm = Instance.new("SpecialMesh", rng) | |
1862 | rngm.MeshType = "Sphere" | |
1863 | rngm.Scale = vt(x1,y1,z1) | |
1864 | if rainbowmode == true then | |
1865 | rng.Color = Color3.new(r/255,g/255,b/255) | |
1866 | end | |
1867 | if ModeOfGlitch == 9 then | |
1868 | coroutine.resume(coroutine.create(function() | |
1869 | while true do | |
1870 | swait() | |
1871 | if rng.Parent ~= nil then | |
1872 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
1873 | else | |
1874 | break | |
1875 | end | |
1876 | end | |
1877 | end)) | |
1878 | end | |
1879 | local scaler2 = 1 | |
1880 | local speeder = FastSpeed | |
1881 | if type == "Add" then | |
1882 | scaler2 = 1*value | |
1883 | elseif type == "Divide" then | |
1884 | scaler2 = 1/value | |
1885 | end | |
1886 | coroutine.resume(coroutine.create(function() | |
1887 | for i = 0,10/bonuspeed,0.1 do | |
1888 | swait() | |
1889 | if rainbowmode == true then | |
1890 | rng.Color = Color3.new(r/255,g/255,b/255) | |
1891 | end | |
1892 | if type == "Add" then | |
1893 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
1894 | elseif type == "Divide" then | |
1895 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
1896 | end | |
1897 | if chaosmode == true then | |
1898 | rng.BrickColor = BrickColor.random() | |
1899 | end | |
1900 | speeder = speeder - 0.01*FastSpeed*bonuspeed | |
1901 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
1902 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
1903 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
1904 | end | |
1905 | rng:Destroy() | |
1906 | end)) | |
1907 | end | |
1908 | ||
1909 | ||
1910 | function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
1911 | local type = type | |
1912 | local rng = Instance.new("Part", char) | |
1913 | rng.Anchored = true | |
1914 | if ModeOfGlitch ~= 9 then | |
1915 | rng.BrickColor = color | |
1916 | elseif ModeOfGlitch == 9 then | |
1917 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
1918 | end | |
1919 | rng.CanCollide = false | |
1920 | rng.FormFactor = 3 | |
1921 | rng.Name = "Ring" | |
1922 | rng.Material = "Neon" | |
1923 | rng.Size = Vector3.new(1, 1, 1) | |
1924 | rng.Transparency = 1 | |
1925 | rng.TopSurface = 0 | |
1926 | rng.BottomSurface = 0 | |
1927 | rng.CFrame = pos | |
1928 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
1929 | local rngm = Instance.new("SpecialMesh", rng) | |
1930 | rngm.MeshType = "Sphere" | |
1931 | rngm.Scale = vt(x1,y1,z1) | |
1932 | if rainbowmode == true then | |
1933 | rng.Color = Color3.new(r/255,g/255,b/255) | |
1934 | end | |
1935 | if ModeOfGlitch == 9 then | |
1936 | coroutine.resume(coroutine.create(function() | |
1937 | while true do | |
1938 | swait() | |
1939 | if rng.Parent ~= nil then | |
1940 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
1941 | else | |
1942 | break | |
1943 | end | |
1944 | end | |
1945 | end)) | |
1946 | end | |
1947 | local scaler2 = 1 | |
1948 | local speeder = FastSpeed | |
1949 | if type == "Add" then | |
1950 | scaler2 = 1*value | |
1951 | elseif type == "Divide" then | |
1952 | scaler2 = 1/value | |
1953 | end | |
1954 | coroutine.resume(coroutine.create(function() | |
1955 | for i = 0,10/bonuspeed,0.1 do | |
1956 | swait() | |
1957 | if rainbowmode == true then | |
1958 | rng.Color = Color3.new(r/255,g/255,b/255) | |
1959 | end | |
1960 | if type == "Add" then | |
1961 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
1962 | elseif type == "Divide" then | |
1963 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
1964 | end | |
1965 | if chaosmode == true then | |
1966 | rng.BrickColor = BrickColor.random() | |
1967 | end | |
1968 | speeder = speeder - 0.01*FastSpeed*bonuspeed | |
1969 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
1970 | rng.Transparency = rng.Transparency - 0.01*bonuspeed | |
1971 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
1972 | end | |
1973 | rng:Destroy() | |
1974 | end)) | |
1975 | end | |
1976 | --//=================================\\ | |
1977 | --|| ATTACK FUNCTIONS AND STUFF | |
1978 | --\\=================================// | |
1979 | ||
1980 | function chatfunc(text,color,typet,font,timeex) | |
1981 | local chat = coroutine.wrap(function() | |
1982 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
1983 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
1984 | end | |
1985 | local naeeym2 = Instance.new("BillboardGui",Character) | |
1986 | naeeym2.Size = UDim2.new(0,100,0,40) | |
1987 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
1988 | naeeym2.Adornee = Character.Head | |
1989 | naeeym2.Name = "TalkingBillBoard" | |
1990 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
1991 | tecks2.BackgroundTransparency = 1 | |
1992 | tecks2.BorderSizePixel = 0 | |
1993 | tecks2.Text = "" | |
1994 | tecks2.Font = font | |
1995 | tecks2.TextSize = 30 | |
1996 | tecks2.TextStrokeTransparency = 0 | |
1997 | tecks2.TextColor3 = color | |
1998 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
1999 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
2000 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
2001 | tecks3.BackgroundTransparency = 1 | |
2002 | tecks3.BorderSizePixel = 0 | |
2003 | tecks3.Text = "" | |
2004 | tecks3.Font = font | |
2005 | tecks3.TextSize = 30 | |
2006 | tecks3.TextStrokeTransparency = 0 | |
2007 | if typet == "Inverted" then | |
2008 | tecks3.TextColor3 = Color3.new(0,0,0) | |
2009 | tecks3.TextStrokeColor3 = color | |
2010 | elseif typet == "Normal" then | |
2011 | tecks3.TextColor3 = color | |
2012 | tecks3.TextStrokeColor3 = Color3.new(0,0,0) | |
2013 | end | |
2014 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
2015 | coroutine.resume(coroutine.create(function() | |
2016 | while true do | |
2017 | swait(1) | |
2018 | end | |
2019 | end)) | |
2020 | for i = 0, 74*timeex do | |
2021 | swait() | |
2022 | tecks2.Text = text | |
2023 | tecks3.Text = text | |
2024 | end | |
2025 | local randomrot = math.random(1,2) | |
2026 | if randomrot == 1 then | |
2027 | for i = 1, 50 do | |
2028 | swait() | |
2029 | tecks2.Text = text | |
2030 | tecks3.Text = text | |
2031 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
2032 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
2033 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
2034 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
2035 | end | |
2036 | elseif randomrot == 2 then | |
2037 | for i = 1, 50 do | |
2038 | swait() | |
2039 | tecks2.Text = text | |
2040 | tecks3.Text = text | |
2041 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
2042 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
2043 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
2044 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
2045 | end | |
2046 | end | |
2047 | naeeym2:Destroy() | |
2048 | end) | |
2049 | chat() | |
2050 | end | |
2051 | ||
2052 | ||
2053 | ||
2054 | ||
2055 | function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color) | |
2056 | local type = type | |
2057 | local rotenable = rotatingop | |
2058 | local rng = Instance.new("Part", char) | |
2059 | rng.Anchored = true | |
2060 | rng.BrickColor = color | |
2061 | rng.CanCollide = false | |
2062 | rng.FormFactor = 3 | |
2063 | rng.Name = "Ring" | |
2064 | rng.Material = "Neon" | |
2065 | rng.Size = Vector3.new(1, 1, 1) | |
2066 | rng.Transparency = 0 | |
2067 | if typeoftrans == "In" then | |
2068 | rng.Transparency = 1 | |
2069 | end | |
2070 | rng.TopSurface = 0 | |
2071 | rng.BottomSurface = 0 | |
2072 | rng.CFrame = pos | |
2073 | local rngm = Instance.new("SpecialMesh", rng) | |
2074 | rngm.MeshType = "FileMesh" | |
2075 | if typeofshape == "Normal" then | |
2076 | rngm.MeshId = "rbxassetid://662586858" | |
2077 | elseif typeofshape == "Round" then | |
2078 | rngm.MeshId = "rbxassetid://662585058" | |
2079 | end | |
2080 | rngm.Scale = scale | |
2081 | local scaler2 = 1/10 | |
2082 | if type == "Add" then | |
2083 | scaler2 = 1*value/10 | |
2084 | elseif type == "Divide" then | |
2085 | scaler2 = 1/value/10 | |
2086 | end | |
2087 | local randomrot = math.random(1,2) | |
2088 | coroutine.resume(coroutine.create(function() | |
2089 | for i = 0,10/bonuspeed,0.1 do | |
2090 | swait() | |
2091 | if type == "Add" then | |
2092 | scaler2 = scaler2 - 0.01*value/bonuspeed/10 | |
2093 | elseif type == "Divide" then | |
2094 | scaler2 = scaler2 - 0.01/value*bonuspeed/10 | |
2095 | end | |
2096 | if rotenable == true then | |
2097 | if randomrot == 1 then | |
2098 | rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0) | |
2099 | elseif randomrot == 2 then | |
2100 | rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0) | |
2101 | end | |
2102 | end | |
2103 | if typeoftrans == "Out" then | |
2104 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2105 | elseif typeoftrans == "In" then | |
2106 | rng.Transparency = rng.Transparency - 0.01*bonuspeed | |
2107 | end | |
2108 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10) | |
2109 | end | |
2110 | rng:Destroy() | |
2111 | end)) | |
2112 | end | |
2113 | ||
2114 | local MAINRUINCOLOR = BrickColor.new("New Yeller") | |
2115 | ||
2116 | ||
2117 | ||
2118 | ||
2119 | ||
2120 | NEWS4 = Instance.new("Sound", tors) --O NO | |
2121 | NEWS4.SoundId = "http://www.roblox.com/asset/?id=374091819" | |
2122 | NEWS4.Volume = 100 | |
2123 | NEWS4.Pitch = 1 | |
2124 | NEWS4.Looped = false | |
2125 | NEWS4.TimePosition = 1 | |
2126 | function die() | |
2127 | ATTACK = true | |
2128 | Humanoid.WalkSpeed = 0 | |
2129 | NEWS4:Play() | |
2130 | repeat | |
2131 | NEWS4.Parent = Torso | |
2132 | Swait() | |
2133 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2134 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(math.random(-360,360)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2135 | RW.C0 = Clerp(RW.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(math.random(-360,360)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2136 | LW.C0 = Clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(math.random(-360,360)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2137 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2138 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0 * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2139 | until NEWS4.Playing == false | |
2140 | ATTACK = false | |
2141 | Humanoid.WalkSpeed = 75 | |
2142 | ATTACK = false | |
2143 | Humanoid.WalkSpeed = 75 | |
2144 | end | |
2145 | --[[ | |
2146 | local dancing = false | |
2147 | Mouse.KeyDown:connect(function(Press) | |
2148 | Press=Press:lower() | |
2149 | if Press=='h' then | |
2150 | if dancing then | |
2151 | dancing = false | |
2152 | else | |
2153 | dancing = true | |
2154 | Speed = 0 | |
2155 | change = .5 | |
2156 | ATTACK = true | |
2157 | jellyfishjam = Instance.new("Sound",Torso) | |
2158 | jellyfishjam.SoundId = "rbxassetid://840189092" | |
2159 | jellyfishjam.Volume = 8 | |
2160 | jellyfishjam.Looped = true | |
2161 | jellyfishjam.TimePosition = 14.8 | |
2162 | jellyfishjam:Play() | |
2163 | coroutine.wrap(function() | |
2164 | while dancing do | |
2165 | for i = 1, 15 do | |
2166 | if not dancing then break end | |
2167 | RootJoint.C0 = RootJoint.C0:Lerp(CFrame.new(.5,-.4 + .1 * math.sin(sine/4),0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/8)),math.rad(20)),.25) | |
2168 | RW.C0 = RW.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.3) | |
2169 | LW.C0 = LW.C0:lerp(CFrame.new(.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(-50 - 3 * math.sin(sine/12)),math.rad(-3 + 1 * math.sin(sine/12))), .3) | |
2170 | RH.C0 = RH.C0:lerp(CFrame.new(0.25, 2.05,-0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-35)), 0.25) | |
2171 | LH.C0 = LH.C0:lerp(CFrame.new(0.31, 2.05,-0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(14)), 0.25) | |
2172 | swait() | |
2173 | end | |
2174 | for i = 1, 15 do | |
2175 | if not dancing then break end | |
2176 | RootJoint.C0 = RootJoint.C0:Lerp(CFrame.new(0,-.1 * math.sin(sine/4),0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/8)),math.rad(0)),.25) | |
2177 | RW.C0 = RW.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.3) | |
2178 | LW.C0 = LW.C0:lerp(CFrame.new(.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(-50 - 3 * math.sin(sine/12)),math.rad(-3 + 1 * math.sin(sine/12))), .3) | |
2179 | RH.C0 = RH.C0:lerp(CFrame.new(-0.25, .7,1.5) * CFrame.Angles(math.rad(72), math.rad(25), math.rad(-2)), 0.25) | |
2180 | LH.C0 = LH.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10)), 0.25) | |
2181 | swait() | |
2182 | end | |
2183 | for i = 1, 15 do | |
2184 | if not dancing then break end | |
2185 | RootJoint.C0 = RootJoint.C0:Lerp(CFrame.new(-.5,-.4 + .1 * math.sin(sine/4),0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/8)),math.rad(-20)),.25) | |
2186 | RW.C0 = RW.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.3) | |
2187 | LW.C0 = LW.C0:lerp(CFrame.new(.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(-50 - 3 * math.sin(sine/12)),math.rad(-3 + 1 * math.sin(sine/12))), .3) | |
2188 | RH.C0 = RH.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10)), 0.25) | |
2189 | LH.C0 = LH.C0:lerp(CFrame.new(-0.25, 2.05,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(35)), 0.25) | |
2190 | swait() | |
2191 | end | |
2192 | for i = 1, 15 do | |
2193 | if not dancing then break end | |
2194 | RootJoint.C0 = RootJoint.C0:Lerp(CFrame.new(-.5,-.1,0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/8)),math.rad(0)),.25) | |
2195 | RW.C0 = RW.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.3) | |
2196 | LW.C0 = LW.C0:lerp(CFrame.new(.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(-50 - 3 * math.sin(sine/12)),math.rad(-3 + 1 * math.sin(sine/12))), .3) | |
2197 | RH.C0 = RH.C0:lerp(CFrame.new(-0.31, 2.05,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-14)), 0.3) | |
2198 | LH.C0 = LH.C0:lerp(CFrame.new(0.25, .7,1.5) * CFrame.Angles(math.rad(72), math.rad(-25), math.rad(-2)), 0.25) | |
2199 | swait() | |
2200 | end | |
2201 | swait() | |
2202 | end | |
2203 | Speed = 26 | |
2204 | jellyfishjam:Remove() | |
2205 | ATTACK = false | |
2206 | end)() | |
2207 | end | |
2208 | end | |
2209 | end) | |
2210 | --]] | |
2211 | thonks = Instance.new("Sound", tors) --wat? | |
2212 | thonks.SoundId = "http://www.roblox.com/asset/?id=1532157598" | |
2213 | thonks.Volume = 10 | |
2214 | thonks.Pitch = 1 | |
2215 | thonks.Looped = false | |
2216 | thonks.TimePosition = 0 | |
2217 | ||
2218 | function thonki() | |
2219 | ATTACK = true | |
2220 | Character.Head.face.Texture = "rbxassetid://1528105298" | |
2221 | thonks:Play() | |
2222 | repeat | |
2223 | for i = 0,8.3,0.1 do | |
2224 | swait() | |
2225 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(90)), 0.7) | |
2226 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-30), Rad(0), Rad(0)), 0.7) | |
2227 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.7) | |
2228 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.7) | |
2229 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(-.6), Rad(0)), 0.7) | |
2230 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-45), Rad(-.6), Rad(136 - 4.5 * Sin(sine / 20))), 0.7) | |
2231 | end | |
2232 | until thonks.Playing == false | |
2233 | thonks:Stop() | |
2234 | ATTACK = false | |
2235 | hum.WalkSpeed = 40 | |
2236 | end | |
2237 | so = function(id,par,vol,pit) | |
2238 | coroutine.resume(coroutine.create(function() | |
2239 | local sou = Instance.new("Sound",par or workspace) | |
2240 | sou.Volume=vol | |
2241 | sou.Pitch=pit or 1 | |
2242 | sou.SoundId=id | |
2243 | swait() | |
2244 | sou:play() | |
2245 | game:GetService("Debris"):AddItem(sou,6) | |
2246 | end)) | |
2247 | end | |
2248 | Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
2249 | if hit.Parent==nil then | |
2250 | return | |
2251 | end | |
2252 | h=hit.Parent:FindFirstChild("Humanoid") | |
2253 | for _,v in pairs(hit.Parent:children()) do | |
2254 | if v:IsA("Humanoid") then | |
2255 | h=v | |
2256 | end | |
2257 | end | |
2258 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then | |
2259 | h=hit.Parent.Parent:FindFirstChild("Humanoid") | |
2260 | end | |
2261 | if hit.Parent.className=="Hat" then | |
2262 | hit=hit.Parent.Parent:findFirstChild("Head") | |
2263 | end | |
2264 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
2265 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end | |
2266 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
2267 | return | |
2268 | end]] | |
2269 | -- hs(hit,1.2) | |
2270 | c=Instance.new("ObjectValue") | |
2271 | c.Name="creator" | |
2272 | c.Value=Player | |
2273 | c.Parent=h | |
2274 | game:GetService("Debris"):AddItem(c,.5) | |
2275 | Damage=math.random(minim,maxim) | |
2276 | -- h:TakeDamage(Damage) | |
2277 | blocked=false | |
2278 | block=hit.Parent:findFirstChild("Block") | |
2279 | if block~=nil then | |
2280 | print(block.className) | |
2281 | if block.className=="NumberValue" then | |
2282 | if block.Value>0 then | |
2283 | blocked=true | |
2284 | if decreaseblock==nil then | |
2285 | block.Value=block.Value-1 | |
2286 | end | |
2287 | end | |
2288 | end | |
2289 | if block.className=="IntValue" then | |
2290 | if block.Value>0 then | |
2291 | blocked=true | |
2292 | if decreaseblock~=nil then | |
2293 | block.Value=block.Value-1 | |
2294 | end | |
2295 | end | |
2296 | end | |
2297 | end | |
2298 | if blocked==false then | |
2299 | -- h:TakeDamage(Damage) | |
2300 | h.Health=h.Health-Damage | |
2301 | --showDamage(hit.Parent,Damage,.5,BrickColor.new("Really red")) | |
2302 | else | |
2303 | h.Health=h.Health-(Damage/2) | |
2304 | -- showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue")) | |
2305 | end | |
2306 | if Type=="Knockdown" then | |
2307 | hum=hit.Parent.Humanoid | |
2308 | hum.PlatformStand=true | |
2309 | coroutine.resume(coroutine.create(function(HHumanoid) | |
2310 | swait(1) | |
2311 | HHumanoid.PlatformStand=false | |
2312 | end),hum) | |
2313 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
2314 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
2315 | local bodvol=Instance.new("BodyVelocity") | |
2316 | bodvol.velocity=angle*knockback | |
2317 | bodvol.P=5000 | |
2318 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
2319 | bodvol.Parent=hit | |
2320 | rl=Instance.new("BodyAngularVelocity") | |
2321 | rl.P=3000 | |
2322 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
2323 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
2324 | rl.Parent=hit | |
2325 | game:GetService("Debris"):AddItem(bodvol,.5) | |
2326 | game:GetService("Debris"):AddItem(rl,.5) | |
2327 | elseif Type=="Normal" then | |
2328 | vp=Instance.new("BodyVelocity") | |
2329 | vp.P=500 | |
2330 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
2331 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
2332 | if KnockbackType==1 then | |
2333 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
2334 | elseif KnockbackType==2 then | |
2335 | vp.velocity=Property.CFrame.lookVector*knockback | |
2336 | end | |
2337 | if knockback>0 then | |
2338 | vp.Parent=hit.Parent.Torso | |
2339 | end | |
2340 | game:GetService("Debris"):AddItem(vp,.5) | |
2341 | elseif Type=="Up" then | |
2342 | local bodyVelocity=Instance.new("BodyVelocity") | |
2343 | bodyVelocity.velocity=vt(0,60,0) | |
2344 | bodyVelocity.P=5000 | |
2345 | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
2346 | bodyVelocity.Parent=hit | |
2347 | game:GetService("Debris"):AddItem(bodyVelocity,1) | |
2348 | rl=Instance.new("BodyAngularVelocity") | |
2349 | rl.P=3000 | |
2350 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
2351 | rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30)) | |
2352 | rl.Parent=hit | |
2353 | game:GetService("Debris"):AddItem(rl,.5) | |
2354 | elseif Type=="Snare" then | |
2355 | bp=Instance.new("BodyPosition") | |
2356 | bp.P=2000 | |
2357 | bp.D=100 | |
2358 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
2359 | bp.position=hit.Parent.Torso.Position | |
2360 | bp.Parent=hit.Parent.Torso | |
2361 | game:GetService("Debris"):AddItem(bp,1) | |
2362 | elseif Type=="Target" then | |
2363 | if Targetting==false then | |
2364 | ZTarget=hit.Parent.Torso | |
2365 | coroutine.resume(coroutine.create(function(Part) | |
2366 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
2367 | swait(5) | |
2368 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
2369 | end),ZTarget) | |
2370 | TargHum=ZTarget.Parent:findFirstChild("Humanoid") | |
2371 | targetgui=Instance.new("BillboardGui") | |
2372 | targetgui.Parent=ZTarget | |
2373 | targetgui.Size=UDim2.new(10,100,10,100) | |
2374 | targ=Instance.new("ImageLabel") | |
2375 | targ.Parent=targetgui | |
2376 | targ.BackgroundTransparency=1 | |
2377 | targ.Image="rbxassetid://4834067" | |
2378 | targ.Size=UDim2.new(1,0,1,0) | |
2379 | cam.CameraType="Scriptable" | |
2380 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
2381 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
2382 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
2383 | Targetting=true | |
2384 | RocketTarget=ZTarget | |
2385 | for i=1,Property do | |
2386 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
2387 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
2388 | swait() | |
2389 | end | |
2390 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
2391 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
2392 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
2393 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
2394 | end | |
2395 | Targetting=false | |
2396 | RocketTarget=nil | |
2397 | targetgui.Parent=nil | |
2398 | cam.CameraType="Custom" | |
2399 | end | |
2400 | end | |
2401 | debounce=Instance.new("BoolValue") | |
2402 | debounce.Name="DebounceHit" | |
2403 | debounce.Parent=hit.Parent | |
2404 | debounce.Value=true | |
2405 | game:GetService("Debris"):AddItem(debounce,Delay) | |
2406 | c=Instance.new("ObjectValue") | |
2407 | c.Name="creator" | |
2408 | c.Value=Player | |
2409 | c.Parent=h | |
2410 | game:GetService("Debris"):AddItem(c,.5) | |
2411 | CRIT=false | |
2412 | hitDeb=true | |
2413 | AttackPos=6 | |
2414 | end | |
2415 | end | |
2416 | function shoot() | |
2417 | ATTACK = true | |
2418 | for i = 0,2,0.1 do | |
2419 | swait() | |
2420 | turnto(Mouse.Hit.p) | |
2421 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
2422 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.3) | |
2423 | RW.C0=clerp(RW.C0,cf(1.5,0.5 - 0.075 * math.cos(sine / 18),0)*angles(math.rad(8 + 8 * math.cos(sine / 35)),math.rad(0 + 2 * math.cos(sine / 31)),math.rad(90 + 4 * math.cos(sine / 22))),.1) | |
2424 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25)), 0.3) | |
2425 | end | |
2426 | so("http://roblox.com/asset/?id=231897565",GunPoint,60,1) | |
2427 | local lb = Instance.new("Part") | |
2428 | lb.Parent = char | |
2429 | lb.Material = "Neon" | |
2430 | lb.Color = BrickColor.new("New Yeller").Color | |
2431 | lb.CanCollide = false | |
2432 | lb.Shape = "Ball" | |
2433 | lb.CFrame = GunPoint.CFrame | |
2434 | lb.Anchored = true | |
2435 | lb.Transparency = 0 | |
2436 | lb.Size = vt(0.6,0.6,0.6) | |
2437 | local thing = Instance.new("SpecialMesh",lb) | |
2438 | thing.MeshType = "Sphere" | |
2439 | for i = 0, 1 do | |
2440 | slash(10,5,true,"Round","Add","Out",GunPoint.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.002,0.01),math.random(5,25)/250,BrickColor.new("White")) | |
2441 | end | |
2442 | -- + root.CFrame.lookVector*12 | |
2443 | sphere2(10,"Add",GunPoint.CFrame,vt(0.125,0.125,0.125),0.1,0.1,0.1,BrickColor.new("New Yeller"),Color3.new(1,1,0)) | |
2444 | -- + root.CFrame.lookVector*12 | |
2445 | local b = Instance.new("Part") | |
2446 | b.Parent = char | |
2447 | b.Material = "Neon" | |
2448 | b.Color = BrickColor.new("New Yeller").Color | |
2449 | b.CanCollide = false | |
2450 | b.Shape = "Ball" | |
2451 | b.CFrame = GunPoint.CFrame | |
2452 | b.Anchored = true | |
2453 | b.Transparency = 0 | |
2454 | b.Size = vt(1,1,1) | |
2455 | local z = Instance.new("SpecialMesh",b) | |
2456 | z.MeshType = "Sphere" | |
2457 | local hitted = false | |
2458 | lb.Anchored = false | |
2459 | local bv = Instance.new("BodyVelocity") | |
2460 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2461 | bv.velocity = Mouse.Hit.lookVector *150 | |
2462 | bv.Parent = lb | |
2463 | game:GetService("Debris"):AddItem(lb, 19) | |
2464 | lb.Touched:connect(function(hit) Damagefunc(hit,33,74,math.random(10,20),"Normal",RootPart,.2,1) end) | |
2465 | for i = 0,2,0.1 do | |
2466 | swait() | |
2467 | turnto(Mouse.Hit.p) | |
2468 | z.Scale = z.Scale + vt(0.1,0.1,0.1) | |
2469 | b.Transparency = b.Transparency + 0.05 | |
2470 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
2471 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.3) | |
2472 | RW.C0=clerp(RW.C0,cf(1.5,0.5 - 0.075 * math.cos(sine / 18),0)*angles(math.rad(8 + 8 * math.cos(sine / 35)),math.rad(0 + 2 * math.cos(sine / 31)),math.rad(120 + 4 * math.cos(sine / 22))),.1) | |
2473 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25)), 0.3) | |
2474 | end | |
2475 | ATTACK = false | |
2476 | b:Destroy() | |
2477 | wait(10) | |
2478 | lb:Destroy() | |
2479 | end | |
2480 | ||
2481 | ||
2482 | function shoots() | |
2483 | ATTACK = true | |
2484 | for i = 0,1.2,0.1 do | |
2485 | swait() | |
2486 | turnto(Mouse.Hit.p) | |
2487 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(65)),.3) | |
2488 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-65)),.3) | |
2489 | RW.C0=clerp(RW.C0,cf(1.5,0.5 - 0.075 * math.cos(sine / 18),0)*angles(math.rad(35 + 8 * math.cos(sine / 35)),math.rad(0 + 2 * math.cos(sine / 31)),math.rad(90 + 4 * math.cos(sine / 22))),.1) | |
2490 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25)), 0.3) | |
2491 | end | |
2492 | so("http://roblox.com/asset/?id=235099882",GunPoint,60,1) | |
2493 | local lb = Instance.new("Part") | |
2494 | lb.Parent = char | |
2495 | lb.Material = "Neon" | |
2496 | lb.Color = BrickColor.new("New Yeller").Color | |
2497 | lb.CanCollide = false | |
2498 | lb.Shape = "Ball" | |
2499 | lb.CFrame = GunPoint.CFrame | |
2500 | lb.Anchored = true | |
2501 | lb.Transparency = 0 | |
2502 | lb.Size = vt(0.6,0.6,0.6) | |
2503 | local thing = Instance.new("SpecialMesh",lb) | |
2504 | thing.MeshType = "Sphere" | |
2505 | --for i = 0, 1 do | |
2506 | --slash(10,5,true,"Round","Add","Out",GunPoint.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.002,0.01),math.random(5,25)/250,BrickColor.new("White")) | |
2507 | --end | |
2508 | -- + root.CFrame.lookVector*12 | |
2509 | --sphere2(10,"Add",GunPoint.CFrame,vt(0.125,0.125,0.125),0.1,0.1,0.1,BrickColor.new("New Yeller"),Color3.new(1,1,0)) | |
2510 | -- + root.CFrame.lookVector*12 | |
2511 | local b = Instance.new("Part") | |
2512 | b.Parent = char | |
2513 | b.Material = "Neon" | |
2514 | b.Color = BrickColor.new("New Yeller").Color | |
2515 | b.CanCollide = false | |
2516 | b.Shape = "Ball" | |
2517 | b.CFrame = GunPoint.CFrame | |
2518 | b.Anchored = true | |
2519 | b.Transparency = 0 | |
2520 | b.Size = vt(1,1,1) | |
2521 | local z = Instance.new("SpecialMesh",b) | |
2522 | z.MeshType = "Sphere" | |
2523 | local hitted = false | |
2524 | lb.Anchored = false | |
2525 | local bv = Instance.new("BodyVelocity") | |
2526 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2527 | bv.velocity = Mouse.Hit.lookVector *150 | |
2528 | bv.Parent = lb | |
2529 | game:GetService("Debris"):AddItem(lb, 19) | |
2530 | lb.Touched:connect(function(hit) Damagefunc(hit,27,67,math.random(10,20),"Normal",RootPart,.2,1) end) | |
2531 | for i = 0,1.65,0.1 do | |
2532 | swait() | |
2533 | turnto(Mouse.Hit.p) | |
2534 | z.Scale = z.Scale + vt(0.1,0.1,0.1) | |
2535 | b.Transparency = b.Transparency + 0.05 | |
2536 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(65)),.3) | |
2537 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-65)),.3) | |
2538 | RW.C0=clerp(RW.C0,cf(1.5,0.5 - 0.075 * math.cos(sine / 18),0)*angles(math.rad(35 + 8 * math.cos(sine / 35)),math.rad(0 + 2 * math.cos(sine / 31)),math.rad(120 + 4 * math.cos(sine / 22))),.1) | |
2539 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25)), 0.3) | |
2540 | end | |
2541 | ATTACK = false | |
2542 | b:Destroy() | |
2543 | wait(10) | |
2544 | lb:Destroy() | |
2545 | end | |
2546 | ||
2547 | ||
2548 | function deag() | |
2549 | ATTACK = true | |
2550 | for i = 0,0.9,0.1 do | |
2551 | swait() | |
2552 | turnto(Mouse.Hit.p) | |
2553 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(65)),.3) | |
2554 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-65)),.3) | |
2555 | RW.C0=clerp(RW.C0,cf(1.5,0.5 - 0.075 * math.cos(sine / 18),0)*angles(math.rad(35 + 8 * math.cos(sine / 35)),math.rad(0 + 2 * math.cos(sine / 31)),math.rad(90 + 4 * math.cos(sine / 22))),.1) | |
2556 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25)), 0.3) | |
2557 | end | |
2558 | so("http://roblox.com/asset/?id=131205975",JUAND,60,1) | |
2559 | local lb = Instance.new("Part") | |
2560 | lb.Parent = char | |
2561 | lb.Material = "Neon" | |
2562 | lb.Color = BrickColor.new("New Yeller").Color | |
2563 | lb.CanCollide = false | |
2564 | lb.Shape = "Ball" | |
2565 | lb.CFrame = JUAND.CFrame | |
2566 | lb.Anchored = true | |
2567 | lb.Transparency = 0 | |
2568 | lb.Size = vt(0.6,0.6,0.6) | |
2569 | local thing = Instance.new("SpecialMesh",lb) | |
2570 | thing.MeshType = "Sphere" | |
2571 | for i = 0, 1 do | |
2572 | slash(10,5,true,"Round","Add","Out",JUAND.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.002,0.01),math.random(5,25)/250,BrickColor.new("White")) | |
2573 | end | |
2574 | -- + root.CFrame.lookVector*12 | |
2575 | sphere2(10,"Add",JUAND.CFrame,vt(0.125,0.125,0.125),0.1,0.1,0.1,BrickColor.new("New Yeller"),Color3.new(1,1,0)) | |
2576 | -- + root.CFrame.lookVector*12 | |
2577 | local b = Instance.new("Part") | |
2578 | b.Parent = char | |
2579 | b.Material = "Neon" | |
2580 | b.Color = BrickColor.new("New Yeller").Color | |
2581 | b.CanCollide = false | |
2582 | b.Shape = "Ball" | |
2583 | b.CFrame = JUAND.CFrame | |
2584 | b.Anchored = true | |
2585 | b.Transparency = 0 | |
2586 | b.Size = vt(1,1,1) | |
2587 | local z = Instance.new("SpecialMesh",b) | |
2588 | z.MeshType = "Sphere" | |
2589 | local hitted = false | |
2590 | lb.Anchored = false | |
2591 | local bv = Instance.new("BodyVelocity") | |
2592 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2593 | bv.velocity = Mouse.Hit.lookVector *150 | |
2594 | bv.Parent = lb | |
2595 | game:GetService("Debris"):AddItem(lb, 19) | |
2596 | lb.Touched:connect(function(hit) Damagefunc(hit,450,740,math.random(10,20),"Normal",RootPart,.2,1) end) | |
2597 | for i = 0,1.15,0.1 do | |
2598 | swait() | |
2599 | turnto(Mouse.Hit.p) | |
2600 | z.Scale = z.Scale + vt(0.1,0.1,0.1) | |
2601 | b.Transparency = b.Transparency + 0.05 | |
2602 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(65)),.3) | |
2603 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-65)),.3) | |
2604 | RW.C0=clerp(RW.C0,cf(1.5,0.5 - 0.075 * math.cos(sine / 18),0)*angles(math.rad(35 + 8 * math.cos(sine / 35)),math.rad(0 + 2 * math.cos(sine / 31)),math.rad(120 + 4 * math.cos(sine / 22))),.1) | |
2605 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25)), 0.3) | |
2606 | end | |
2607 | ATTACK = false | |
2608 | b:Destroy() | |
2609 | wait(10) | |
2610 | lb:Destroy() | |
2611 | end | |
2612 | ||
2613 | local animationspeed = 2 | |
2614 | --local SwordThing = false | |
2615 | --local change = 2 / animationspeed | |
2616 | it = Instance.new | |
2617 | vt = Vector3.new | |
2618 | cf = CFrame.new | |
2619 | rad = math.rad | |
2620 | euler = CFrame.fromEulerAnglesXYZ | |
2621 | angles = CFrame.Angles | |
2622 | --[[ | |
2623 | necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
2624 | RootCF = angles(rad(-90), 0, rad(180)) | |
2625 | ]]-- | |
2626 | local PlayerSize = 1 | |
2627 | local RWC0 = cf(-0.5, 0, 0) * angles(rad(0), rad(90), rad(0)) | |
2628 | local LWC0 = cf(0.5, 0, 0) * angles(rad(0), rad(-90), rad(0)) | |
2629 | bestmatess = Instance.new("Sound", Torso) | |
2630 | bestmatess.Volume = 14 | |
2631 | bestmatess.TimePosition = 0 | |
2632 | bestmatess.Pitch = 1 | |
2633 | bestmatess.SoundId = "rbxassetid://780906273" | |
2634 | bestmatess.Looped = true | |
2635 | ||
2636 | clerp2 = function(a, b, t) | |
2637 | return a:lerp(b, t) | |
2638 | end | |
2639 | -- local sine = 0 | |
2640 | local bestmate = false | |
2641 | function bestmatesA() | |
2642 | if bestmate == false then | |
2643 | ATTACK = true | |
2644 | bestmate = true | |
2645 | --Humanoid.WalkSpeed = 3 | |
2646 | --Humanoid.JumpPower = 10 | |
2647 | ||
2648 | bestmatess:Play() | |
2649 | while bestmate == true do | |
2650 | change = 0.8 | |
2651 | Swait() | |
2652 | RH.C0=clerp(RH.C0,cf(1,-1 - 2.2 * math.cos(sine / 8),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
2653 | LH.C0=clerp(LH.C0,cf(-1,-1 - 2.2 * math.cos(sine / 8),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
2654 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 2.2 * math.cos(sine / 8))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
2655 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
2656 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 8),0)*angles(math.rad(90-36*SIN(SINE/8)),math.rad(0),math.rad(0)),.1) | |
2657 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.05 * math.cos(sine / 8),0)*angles(math.rad(90-36*SIN(SINE/8)),math.rad(0),math.rad(0)),.1) | |
2658 | end | |
2659 | elseif bestmate == true then | |
2660 | ATTACK = false | |
2661 | bestmate = false | |
2662 | change = 1 | |
2663 | --Humanoid.WalkSpeed = 5 | |
2664 | --Humanoid.JumpPower = 60 | |
2665 | bestmatess:Stop() | |
2666 | end | |
2667 | end | |
2668 | cheeki = Instance.new("Sound", Torso) | |
2669 | cheeki.Volume = 24 | |
2670 | cheeki.TimePosition = 0 | |
2671 | cheeki.Pitch = 1 | |
2672 | cheeki.SoundId = "rbxassetid://800064337" | |
2673 | cheeki.Looped = true | |
2674 | function cheekibreeki() | |
2675 | if bestmate == false then | |
2676 | ATTACK = true | |
2677 | bestmate = true | |
2678 | cheeki:Play() | |
2679 | while bestmate == true do | |
2680 | change = 0.8 | |
2681 | Swait() | |
2682 | RootJoint.C0 = clerp2(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.25 - 0.125 * math.cos((sine) / 4) * PlayerSize) * angles(rad(0), rad(5 * math.cos((sine) / 8)), rad(0)), 1 / animationspeed) | |
2683 | Neck.C0 = clerp2(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(5 * math.sin((sine) / 8)), rad(0)), 1 / animationspeed) | |
2684 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 8),0)*angles(math.rad(90-36*SIN(sine/8)),math.rad(0),math.rad(0)),.1) | |
2685 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.05 * math.cos(sine / 8),0)*angles(math.rad(90-36*SIN(sine/8)),math.rad(0),math.rad(0)),.1) | |
2686 | RightHip.C0 = clerp2(RightHip.C0, cf(1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 - 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(87.5), rad(0)) * angles(rad(-5 + 10 * math.cos((sine) / 8)), rad(0), rad(30 - 50 * math.cos((sine) / 8))), 1 / animationspeed) | |
2687 | LeftHip.C0 = clerp2(LeftHip.C0, cf(-1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 + 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(-87.5), rad(0)) * angles(rad(-5 - 10 * math.cos((sine) / 8)), rad(0), rad(-30 - 50 * math.cos((sine) / 8))), 1 / animationspeed) | |
2688 | end | |
2689 | elseif bestmate == true then | |
2690 | ATTACK = false | |
2691 | change = 1 | |
2692 | bestmate = false | |
2693 | cheeki:Stop() | |
2694 | end | |
2695 | end | |
2696 | ||
2697 | ||
2698 | crab = Instance.new("Sound", Torso) | |
2699 | crab.Volume = 14 | |
2700 | crab.TimePosition = 0 | |
2701 | crab.Pitch = 1 | |
2702 | crab.SoundId = "rbxassetid://2410799757" | |
2703 | crab.Looped = true | |
2704 | ||
2705 | function bestmatesB() | |
2706 | if bestmate == false then | |
2707 | ATTACK = true | |
2708 | bestmate = true | |
2709 | --Humanoid.WalkSpeed = 3 | |
2710 | --Humanoid.JumpPower = 10 | |
2711 | crab.TimePosition = 0 | |
2712 | crab:Play() | |
2713 | while bestmate == true do | |
2714 | change = 0.8 | |
2715 | Swait() | |
2716 | RH.C0=clerp(RH.C0,cf(1,-1 - 2.2 * math.cos(sine / 8),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
2717 | LH.C0=clerp(LH.C0,cf(-1,-1 - 2.2 * math.cos(sine / 8),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
2718 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 2.2 * math.cos(sine / 8))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
2719 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
2720 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 8),0)*angles(math.rad(90-66*SIN(SINE/6)),math.rad(0),math.rad(0)),.1) | |
2721 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.05 * math.cos(sine / 8),0)*angles(math.rad(90+66*SIN(SINE/6)),math.rad(0),math.rad(0)),.1) | |
2722 | end | |
2723 | elseif bestmate == true then | |
2724 | ATTACK = false | |
2725 | bestmate = false | |
2726 | change = 1 | |
2727 | --Humanoid.WalkSpeed = 5 | |
2728 | --Humanoid.JumpPower = 60 | |
2729 | crab:Stop() | |
2730 | end | |
2731 | end | |
2732 | ||
2733 | function SmgTest3() | |
2734 | ATTACK = true | |
2735 | --Rooted = false | |
2736 | for i=0, 0.25, 0.1 / Animation_Speed do | |
2737 | Swait() | |
2738 | turnto(Mouse.Hit.p) | |
2739 | --[[RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
2740 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
2741 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2742 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2743 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2744 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2745 | --]] | |
2746 | end | |
2747 | repeat | |
2748 | for i = 0,0.05,0.1 do | |
2749 | swait() | |
2750 | turnto(Mouse.Hit.p) | |
2751 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2752 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
2753 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(0)),.1) | |
2754 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.3) | |
2755 | end | |
2756 | so("http://roblox.com/asset/?id=188904253",BOI,60,1) | |
2757 | so("http://roblox.com/asset/?id=188904253",BOI2,60,1) | |
2758 | local lb = Instance.new("Part") | |
2759 | lb.Parent = char | |
2760 | lb.Material = "Neon" | |
2761 | lb.Color = BrickColor.new("New Yeller").Color | |
2762 | lb.CanCollide = false | |
2763 | lb.Shape = "Ball" | |
2764 | lb.CFrame = BOI.CFrame | |
2765 | lb.Anchored = true | |
2766 | lb.Transparency = 0 | |
2767 | lb.Size = vt(0.6,0.6,0.6) | |
2768 | local thing = Instance.new("SpecialMesh",lb) | |
2769 | thing.MeshType = "Sphere" | |
2770 | --for i = 0, 1 do | |
2771 | --slash(10,5,true,"Round","Add","Out",GunPoint.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.002,0.01),math.random(5,25)/250,BrickColor.new("White")) | |
2772 | --end | |
2773 | -- + root.CFrame.lookVector*12 | |
2774 | --sphere2(10,"Add",GunPoint.CFrame,vt(0.125,0.125,0.125),0.1,0.1,0.1,BrickColor.new("New Yeller"),Color3.new(1,1,0)) | |
2775 | -- + root.CFrame.lookVector*12 | |
2776 | local b = Instance.new("Part") | |
2777 | b.Parent = char | |
2778 | b.Material = "Neon" | |
2779 | b.Color = BrickColor.new("New Yeller").Color | |
2780 | b.CanCollide = false | |
2781 | b.Shape = "Ball" | |
2782 | b.CFrame = BOI.CFrame | |
2783 | b.Anchored = true | |
2784 | b.Transparency = 0 | |
2785 | b.Size = vt(1,1,1) | |
2786 | local z = Instance.new("SpecialMesh",b) | |
2787 | z.MeshType = "Sphere" | |
2788 | local hitted = false | |
2789 | lb.Anchored = false | |
2790 | local bv = Instance.new("BodyVelocity") | |
2791 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2792 | bv.velocity = Mouse.Hit.lookVector *150 | |
2793 | bv.Parent = lb | |
2794 | ||
2795 | local lb2 = Instance.new("Part") | |
2796 | lb2.Parent = char | |
2797 | lb2.Material = "Neon" | |
2798 | lb2.Color = BrickColor.new("New Yeller").Color | |
2799 | lb2.CanCollide = false | |
2800 | lb2.Shape = "Ball" | |
2801 | lb2.CFrame = BOI2.CFrame | |
2802 | lb2.Anchored = true | |
2803 | lb2.Transparency = 0 | |
2804 | lb2.Size = vt(0.6,0.6,0.6) | |
2805 | local thing = Instance.new("SpecialMesh",lb2) | |
2806 | thing.MeshType = "Sphere" | |
2807 | --for i = 0, 1 do | |
2808 | --slash(10,5,true,"Round","Add","Out",GunPoint.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.002,0.01),math.random(5,25)/250,BrickColor.new("White")) | |
2809 | --end | |
2810 | -- + root.CFrame.lookVector*12 | |
2811 | --sphere2(10,"Add",GunPoint.CFrame,vt(0.125,0.125,0.125),0.1,0.1,0.1,BrickColor.new("New Yeller"),Color3.new(1,1,0)) | |
2812 | -- + root.CFrame.lookVector*12 | |
2813 | local b2 = Instance.new("Part") | |
2814 | b2.Parent = char | |
2815 | b2.Material = "Neon" | |
2816 | b2.Color = BrickColor.new("New Yeller").Color | |
2817 | b2.CanCollide = false | |
2818 | b2.Shape = "Ball" | |
2819 | b2.CFrame = BOI2.CFrame | |
2820 | b2.Anchored = true | |
2821 | b2.Transparency = 0 | |
2822 | b2.Size = vt(1,1,1) | |
2823 | local z = Instance.new("SpecialMesh",b2) | |
2824 | z.MeshType = "Sphere" | |
2825 | --local hitted = false | |
2826 | lb2.Anchored = false | |
2827 | local bv2 = Instance.new("BodyVelocity") | |
2828 | bv2.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2829 | bv2.velocity = Mouse.Hit.lookVector *150 | |
2830 | bv2.Parent = lb2 | |
2831 | lb.Touched:connect(function(hit) Damagefunc(hit,33,74,math.random(10,20),"Normal",RootPart,.2,1) end) | |
2832 | lb2.Touched:connect(function(hit) Damagefunc(hit,33,74,math.random(10,20),"Normal",RootPart,.2,1) end) | |
2833 | for i = 0,0.1,0.1 do | |
2834 | swait() | |
2835 | turnto(Mouse.Hit.p) | |
2836 | z.Scale = z.Scale + vt(0.1,0.1,0.1) | |
2837 | b.Transparency = b.Transparency + 0.05 | |
2838 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2839 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
2840 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(0)),.1) | |
2841 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.3) | |
2842 | end | |
2843 | game:GetService("Debris"):AddItem(lb, 19) | |
2844 | game:GetService("Debris"):AddItem(lb2, 19) | |
2845 | game:GetService("Debris"):AddItem(bv, 20) | |
2846 | game:GetService("Debris"):AddItem(bv2, 20) | |
2847 | b:Destroy() | |
2848 | b2:Destroy() | |
2849 | --wait(10) | |
2850 | --lb:Destroy() | |
2851 | --lb2:Destroy() | |
2852 | until HOLD == false | |
2853 | ATTACK = false | |
2854 | --Rooted = false | |
2855 | end | |
2856 | ||
2857 | ||
2858 | function SmgTest2() | |
2859 | ATTACK = true | |
2860 | --Rooted = false | |
2861 | for i=0, 0.25, 0.1 / Animation_Speed do | |
2862 | Swait() | |
2863 | turnto(Mouse.Hit.p) | |
2864 | --[[RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
2865 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
2866 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2867 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2868 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2869 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2870 | --]] | |
2871 | end | |
2872 | repeat | |
2873 | for i = 0,0.1,0.1 do | |
2874 | swait() | |
2875 | turnto(Mouse.Hit.p) | |
2876 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2877 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
2878 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(0)),.1) | |
2879 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.3) | |
2880 | end | |
2881 | so("http://roblox.com/asset/?id=2484694762",VOL,60,1) | |
2882 | so("http://roblox.com/asset/?id=2484694762",VOL2,60,1) | |
2883 | local lb = Instance.new("Part") | |
2884 | lb.Parent = char | |
2885 | lb.Material = "Neon" | |
2886 | lb.Color = BrickColor.new("New Yeller").Color | |
2887 | lb.CanCollide = false | |
2888 | lb.Shape = "Ball" | |
2889 | lb.CFrame = VOL.CFrame | |
2890 | lb.Anchored = true | |
2891 | lb.Transparency = 0 | |
2892 | lb.Size = vt(0.6,0.6,0.6) | |
2893 | local thing = Instance.new("SpecialMesh",lb) | |
2894 | thing.MeshType = "Sphere" | |
2895 | --for i = 0, 1 do | |
2896 | --slash(10,5,true,"Round","Add","Out",GunPoint.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.002,0.01),math.random(5,25)/250,BrickColor.new("White")) | |
2897 | --end | |
2898 | -- + root.CFrame.lookVector*12 | |
2899 | --sphere2(10,"Add",GunPoint.CFrame,vt(0.125,0.125,0.125),0.1,0.1,0.1,BrickColor.new("New Yeller"),Color3.new(1,1,0)) | |
2900 | -- + root.CFrame.lookVector*12 | |
2901 | local b = Instance.new("Part") | |
2902 | b.Parent = char | |
2903 | b.Material = "Neon" | |
2904 | b.Color = BrickColor.new("New Yeller").Color | |
2905 | b.CanCollide = false | |
2906 | b.Shape = "Ball" | |
2907 | b.CFrame = VOL.CFrame | |
2908 | b.Anchored = true | |
2909 | b.Transparency = 0 | |
2910 | b.Size = vt(1,1,1) | |
2911 | local z = Instance.new("SpecialMesh",b) | |
2912 | z.MeshType = "Sphere" | |
2913 | local hitted = false | |
2914 | lb.Anchored = false | |
2915 | local bv = Instance.new("BodyVelocity") | |
2916 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2917 | bv.velocity = Mouse.Hit.lookVector *150 | |
2918 | bv.Parent = lb | |
2919 | ||
2920 | local lb2 = Instance.new("Part") | |
2921 | lb2.Parent = char | |
2922 | lb2.Material = "Neon" | |
2923 | lb2.Color = BrickColor.new("New Yeller").Color | |
2924 | lb2.CanCollide = false | |
2925 | lb2.Shape = "Ball" | |
2926 | lb2.CFrame = VOL2.CFrame | |
2927 | lb2.Anchored = true | |
2928 | lb2.Transparency = 0 | |
2929 | lb2.Size = vt(0.6,0.6,0.6) | |
2930 | local thing = Instance.new("SpecialMesh",lb2) | |
2931 | thing.MeshType = "Sphere" | |
2932 | --for i = 0, 1 do | |
2933 | --slash(10,5,true,"Round","Add","Out",GunPoint.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.002,0.01),math.random(5,25)/250,BrickColor.new("White")) | |
2934 | --end | |
2935 | -- + root.CFrame.lookVector*12 | |
2936 | --sphere2(10,"Add",GunPoint.CFrame,vt(0.125,0.125,0.125),0.1,0.1,0.1,BrickColor.new("New Yeller"),Color3.new(1,1,0)) | |
2937 | -- + root.CFrame.lookVector*12 | |
2938 | local b2 = Instance.new("Part") | |
2939 | b2.Parent = char | |
2940 | b2.Material = "Neon" | |
2941 | b2.Color = BrickColor.new("New Yeller").Color | |
2942 | b2.CanCollide = false | |
2943 | b2.Shape = "Ball" | |
2944 | b2.CFrame = VOL2.CFrame | |
2945 | b2.Anchored = true | |
2946 | b2.Transparency = 0 | |
2947 | b2.Size = vt(1,1,1) | |
2948 | local z = Instance.new("SpecialMesh",b2) | |
2949 | z.MeshType = "Sphere" | |
2950 | --local hitted = false | |
2951 | lb2.Anchored = false | |
2952 | local bv2 = Instance.new("BodyVelocity") | |
2953 | bv2.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2954 | bv2.velocity = Mouse.Hit.lookVector *150 | |
2955 | bv2.Parent = lb2 | |
2956 | lb.Touched:connect(function(hit) Damagefunc(hit,33,74,math.random(10,20),"Normal",RootPart,.2,1) end) | |
2957 | lb2.Touched:connect(function(hit) Damagefunc(hit,33,74,math.random(10,20),"Normal",RootPart,.2,1) end) | |
2958 | for i = 0,0.15,0.1 do | |
2959 | swait() | |
2960 | turnto(Mouse.Hit.p) | |
2961 | z.Scale = z.Scale + vt(0.1,0.1,0.1) | |
2962 | b.Transparency = b.Transparency + 0.05 | |
2963 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2964 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
2965 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(0)),.1) | |
2966 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.3) | |
2967 | end | |
2968 | game:GetService("Debris"):AddItem(lb, 19) | |
2969 | game:GetService("Debris"):AddItem(lb2, 19) | |
2970 | game:GetService("Debris"):AddItem(bv, 20) | |
2971 | game:GetService("Debris"):AddItem(bv2, 20) | |
2972 | b:Destroy() | |
2973 | b2:Destroy() | |
2974 | --wait(10) | |
2975 | --lb:Destroy() | |
2976 | --lb2:Destroy() | |
2977 | until HOLD == false | |
2978 | ATTACK = false | |
2979 | --Rooted = false | |
2980 | end | |
2981 | ||
2982 | ||
2983 | --[[ | |
2984 | wat = Instance.new("Sound", Torso) | |
2985 | wat.Volume = 14 | |
2986 | wat.TimePosition = 0 | |
2987 | wat.Pitch = 1 | |
2988 | wat.SoundId = "rbxassetid://2095995144" | |
2989 | wat.Looped = false | |
2990 | ||
2991 | function watde() | |
2992 | ATTACK = true | |
2993 | wat:Play() | |
2994 | chatfunc("wat.",C3(1,1,0),"Normal","SciFi",2) | |
2995 | wait(2) | |
2996 | ATTACK = false | |
2997 | end]]-- | |
2998 | ||
2999 | function SmgTest() | |
3000 | ATTACK = true | |
3001 | --Rooted = false | |
3002 | for i=0, 0.25, 0.1 / Animation_Speed do | |
3003 | Swait() | |
3004 | turnto(Mouse.Hit.p) | |
3005 | --[[RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
3006 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
3007 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
3008 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
3009 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3010 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3011 | --]] | |
3012 | end | |
3013 | repeat | |
3014 | for i = 0,0.3,0.1 do | |
3015 | swait() | |
3016 | turnto(Mouse.Hit.p) | |
3017 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
3018 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
3019 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(0)),.1) | |
3020 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.3) | |
3021 | end | |
3022 | so("http://roblox.com/asset/?id=2484694762",Flare,60,1) | |
3023 | so("http://roblox.com/asset/?id=2484694762",Flare2,60,1) | |
3024 | local lb = Instance.new("Part") | |
3025 | lb.Parent = char | |
3026 | lb.Material = "Neon" | |
3027 | lb.Color = BrickColor.new("New Yeller").Color | |
3028 | lb.CanCollide = false | |
3029 | lb.Shape = "Ball" | |
3030 | lb.CFrame = Flare.CFrame | |
3031 | lb.Anchored = true | |
3032 | lb.Transparency = 0 | |
3033 | lb.Size = vt(0.6,0.6,0.6) | |
3034 | local thing = Instance.new("SpecialMesh",lb) | |
3035 | thing.MeshType = "Sphere" | |
3036 | --for i = 0, 1 do | |
3037 | --slash(10,5,true,"Round","Add","Out",GunPoint.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.002,0.01),math.random(5,25)/250,BrickColor.new("White")) | |
3038 | --end | |
3039 | -- + root.CFrame.lookVector*12 | |
3040 | --sphere2(10,"Add",GunPoint.CFrame,vt(0.125,0.125,0.125),0.1,0.1,0.1,BrickColor.new("New Yeller"),Color3.new(1,1,0)) | |
3041 | -- + root.CFrame.lookVector*12 | |
3042 | local b = Instance.new("Part") | |
3043 | b.Parent = char | |
3044 | b.Material = "Neon" | |
3045 | b.Color = BrickColor.new("New Yeller").Color | |
3046 | b.CanCollide = false | |
3047 | b.Shape = "Ball" | |
3048 | b.CFrame = Flare.CFrame | |
3049 | b.Anchored = true | |
3050 | b.Transparency = 0 | |
3051 | b.Size = vt(1,1,1) | |
3052 | local z = Instance.new("SpecialMesh",b) | |
3053 | z.MeshType = "Sphere" | |
3054 | local hitted = false | |
3055 | lb.Anchored = false | |
3056 | local bv = Instance.new("BodyVelocity") | |
3057 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3058 | bv.velocity = Mouse.Hit.lookVector *150 | |
3059 | bv.Parent = lb | |
3060 | ||
3061 | local lb2 = Instance.new("Part") | |
3062 | lb2.Parent = char | |
3063 | lb2.Material = "Neon" | |
3064 | lb2.Color = BrickColor.new("New Yeller").Color | |
3065 | lb2.CanCollide = false | |
3066 | lb2.Shape = "Ball" | |
3067 | lb2.CFrame = Flare2.CFrame | |
3068 | lb2.Anchored = true | |
3069 | lb2.Transparency = 0 | |
3070 | lb2.Size = vt(0.6,0.6,0.6) | |
3071 | local thing = Instance.new("SpecialMesh",lb2) | |
3072 | thing.MeshType = "Sphere" | |
3073 | --for i = 0, 1 do | |
3074 | --slash(10,5,true,"Round","Add","Out",GunPoint.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.002,0.01),math.random(5,25)/250,BrickColor.new("White")) | |
3075 | --end | |
3076 | -- + root.CFrame.lookVector*12 | |
3077 | --sphere2(10,"Add",GunPoint.CFrame,vt(0.125,0.125,0.125),0.1,0.1,0.1,BrickColor.new("New Yeller"),Color3.new(1,1,0)) | |
3078 | -- + root.CFrame.lookVector*12 | |
3079 | local b2 = Instance.new("Part") | |
3080 | b2.Parent = char | |
3081 | b2.Material = "Neon" | |
3082 | b2.Color = BrickColor.new("New Yeller").Color | |
3083 | b2.CanCollide = false | |
3084 | b2.Shape = "Ball" | |
3085 | b2.CFrame = Flare2.CFrame | |
3086 | b2.Anchored = true | |
3087 | b2.Transparency = 0 | |
3088 | b2.Size = vt(1,1,1) | |
3089 | local z = Instance.new("SpecialMesh",b2) | |
3090 | z.MeshType = "Sphere" | |
3091 | --local hitted = false | |
3092 | lb2.Anchored = false | |
3093 | local bv2 = Instance.new("BodyVelocity") | |
3094 | bv2.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3095 | bv2.velocity = Mouse.Hit.lookVector *150 | |
3096 | bv2.Parent = lb2 | |
3097 | lb.Touched:connect(function(hit) Damagefunc(hit,33,74,math.random(10,20),"Normal",RootPart,.2,1) end) | |
3098 | lb2.Touched:connect(function(hit) Damagefunc(hit,33,74,math.random(10,20),"Normal",RootPart,.2,1) end) | |
3099 | for i = 0,0.4,0.1 do | |
3100 | swait() | |
3101 | turnto(Mouse.Hit.p) | |
3102 | z.Scale = z.Scale + vt(0.1,0.1,0.1) | |
3103 | b.Transparency = b.Transparency + 0.05 | |
3104 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
3105 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
3106 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(0)),.1) | |
3107 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.3) | |
3108 | end | |
3109 | game:GetService("Debris"):AddItem(lb, 19) | |
3110 | game:GetService("Debris"):AddItem(lb2, 19) | |
3111 | game:GetService("Debris"):AddItem(bv, 20) | |
3112 | game:GetService("Debris"):AddItem(bv2, 20) | |
3113 | b:Destroy() | |
3114 | b2:Destroy() | |
3115 | --wait(10) | |
3116 | --lb:Destroy() | |
3117 | --lb2:Destroy() | |
3118 | until HOLD == false | |
3119 | ATTACK = false | |
3120 | --Rooted = false | |
3121 | end | |
3122 | ||
3123 | ||
3124 | function AUGShoot() | |
3125 | ATTACK = true | |
3126 | --Rooted = false | |
3127 | for i=0, 0.25, 0.1 / Animation_Speed do | |
3128 | Swait() | |
3129 | turnto(Mouse.Hit.p) | |
3130 | --[[RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
3131 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
3132 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
3133 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
3134 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3135 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3136 | --]] | |
3137 | end | |
3138 | repeat | |
3139 | for i = 0,0.15,0.1 do | |
3140 | swait() | |
3141 | turnto(Mouse.Hit.p) | |
3142 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
3143 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
3144 | RW.C0 = clerp(RW.C0, CFrame.new(1.25, 1, 0.7) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.3) | |
3145 | LW.C0 = clerp(LW.C0, CFrame.new(-0.15, 0.5, -0.65) * angles(math.rad(90), math.rad(12), math.rad(50)), 0.3) | |
3146 | end | |
3147 | so("http://roblox.com/asset/?id=297606774",UGB,60,1) | |
3148 | --so("http://roblox.com/asset/?id=165946560",Flare2,60,1) | |
3149 | local lb = Instance.new("Part") | |
3150 | lb.Parent = char | |
3151 | lb.Material = "Neon" | |
3152 | lb.Color = BrickColor.new("New Yeller").Color | |
3153 | lb.CanCollide = false | |
3154 | lb.Shape = "Ball" | |
3155 | lb.CFrame = UGB.CFrame | |
3156 | lb.Anchored = true | |
3157 | lb.Transparency = 0 | |
3158 | lb.Size = vt(0.45,1,0.45) | |
3159 | local thing = Instance.new("SpecialMesh",lb) | |
3160 | thing.MeshType = "Sphere" | |
3161 | --for i = 0, 1 do | |
3162 | --slash(10,5,true,"Round","Add","Out",GunPoint.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.002,0.01),math.random(5,25)/250,BrickColor.new("White")) | |
3163 | --end | |
3164 | -- + root.CFrame.lookVector*12 | |
3165 | --sphere2(10,"Add",GunPoint.CFrame,vt(0.125,0.125,0.125),0.1,0.1,0.1,BrickColor.new("New Yeller"),Color3.new(1,1,0)) | |
3166 | -- + root.CFrame.lookVector*12 | |
3167 | local b = Instance.new("Part") | |
3168 | b.Parent = char | |
3169 | b.Material = "Neon" | |
3170 | b.Color = BrickColor.new("New Yeller").Color | |
3171 | b.CanCollide = false | |
3172 | b.Shape = "Ball" | |
3173 | b.CFrame = UGB.CFrame | |
3174 | b.Anchored = true | |
3175 | b.Transparency = 0 | |
3176 | b.Size = vt(1,1,1) | |
3177 | local z = Instance.new("SpecialMesh",b) | |
3178 | z.MeshType = "Sphere" | |
3179 | local hitted = false | |
3180 | lb.Anchored = false | |
3181 | local bv = Instance.new("BodyVelocity") | |
3182 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3183 | bv.velocity = Mouse.Hit.lookVector *150 | |
3184 | bv.Parent = lb | |
3185 | --[[ | |
3186 | local lb2 = Instance.new("Part") | |
3187 | lb2.Parent = char | |
3188 | lb2.Material = "Neon" | |
3189 | lb2.Color = BrickColor.new("New Yeller").Color | |
3190 | lb2.CanCollide = false | |
3191 | lb2.Shape = "Ball" | |
3192 | lb2.CFrame = Flare2.CFrame | |
3193 | lb2.Anchored = true | |
3194 | lb2.Transparency = 0 | |
3195 | lb2.Size = vt(0.6,0.6,0.6) | |
3196 | local thing = Instance.new("SpecialMesh",lb2) | |
3197 | thing.MeshType = "Sphere" | |
3198 | --for i = 0, 1 do | |
3199 | --slash(10,5,true,"Round","Add","Out",GunPoint.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.002,0.01),math.random(5,25)/250,BrickColor.new("White")) | |
3200 | --end | |
3201 | -- + root.CFrame.lookVector*12 | |
3202 | --sphere2(10,"Add",GunPoint.CFrame,vt(0.125,0.125,0.125),0.1,0.1,0.1,BrickColor.new("New Yeller"),Color3.new(1,1,0)) | |
3203 | -- + root.CFrame.lookVector*12 | |
3204 | local b2 = Instance.new("Part") | |
3205 | b2.Parent = char | |
3206 | b2.Material = "Neon" | |
3207 | b2.Color = BrickColor.new("New Yeller").Color | |
3208 | b2.CanCollide = false | |
3209 | b2.Shape = "Ball" | |
3210 | b2.CFrame = Flare2.CFrame | |
3211 | b2.Anchored = true | |
3212 | b2.Transparency = 0 | |
3213 | b2.Size = vt(1,1,1) | |
3214 | local z = Instance.new("SpecialMesh",b2) | |
3215 | z.MeshType = "Sphere" | |
3216 | --local hitted = false | |
3217 | lb2.Anchored = false | |
3218 | local bv2 = Instance.new("BodyVelocity") | |
3219 | bv2.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3220 | bv2.velocity = Mouse.Hit.lookVector *150 | |
3221 | bv2.Parent = lb2]]-- | |
3222 | lb.Touched:connect(function(hit) Damagefunc(hit,12,43,math.random(10,20),"Normal",RootPart,.2,1) end) | |
3223 | --lb2.Touched:connect(function(hit) Damagefunc(hit,33,74,math.random(10,20),"Normal",RootPart,.2,1) end) | |
3224 | for i = 0,0.2,0.1 do | |
3225 | swait() | |
3226 | turnto(Mouse.Hit.p) | |
3227 | z.Scale = z.Scale + vt(0.1,0.1,0.1) | |
3228 | b.Transparency = b.Transparency + 0.05 | |
3229 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
3230 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
3231 | RW.C0 = clerp(RW.C0, CFrame.new(1.25, 1, 0.2) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.3) | |
3232 | LW.C0 = clerp(LW.C0, CFrame.new(-0.15, 0.5, -0.15) * angles(math.rad(90), math.rad(12), math.rad(50)), 0.3) | |
3233 | end | |
3234 | game:GetService("Debris"):AddItem(lb, 19) | |
3235 | --game:GetService("Debris"):AddItem(lb2, 19) | |
3236 | game:GetService("Debris"):AddItem(bv, 20) | |
3237 | --game:GetService("Debris"):AddItem(bv2, 20) | |
3238 | b:Destroy() | |
3239 | --b2:Destroy() | |
3240 | --wait(10) | |
3241 | --lb:Destroy() | |
3242 | --lb2:Destroy() | |
3243 | until HOLD == false | |
3244 | ATTACK = false | |
3245 | --Rooted = false | |
3246 | end | |
3247 | ||
3248 | function AEA() | |
3249 | ATTACK = true | |
3250 | --Rooted = false | |
3251 | for i=0, 0.25, 0.1 / Animation_Speed do | |
3252 | Swait() | |
3253 | turnto(Mouse.Hit.p) | |
3254 | --[[RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
3255 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
3256 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
3257 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
3258 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3259 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3260 | --]] | |
3261 | end | |
3262 | repeat | |
3263 | for i = 0,0.45,0.1 do | |
3264 | swait() | |
3265 | turnto(Mouse.Hit.p) | |
3266 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
3267 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
3268 | RW.C0 = clerp(RW.C0, CFrame.new(1.25, 1, 0.7) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.3) | |
3269 | LW.C0 = clerp(LW.C0, CFrame.new(-0.15, 0.5, -0.65) * angles(math.rad(90), math.rad(12), math.rad(50)), 0.3) | |
3270 | end | |
3271 | so("http://roblox.com/asset/?id=2550005685",EAE,60,1) | |
3272 | --so("http://roblox.com/asset/?id=165946560",Flare2,60,1) | |
3273 | local lb = Instance.new("Part") | |
3274 | lb.Parent = char | |
3275 | lb.Material = "Neon" | |
3276 | lb.Color = BrickColor.new("New Yeller").Color | |
3277 | lb.CanCollide = false | |
3278 | lb.Shape = "Ball" | |
3279 | lb.CFrame = EAE.CFrame | |
3280 | lb.Anchored = true | |
3281 | lb.Transparency = 0 | |
3282 | lb.Size = vt(0.45,1,0.45) | |
3283 | local thing = Instance.new("SpecialMesh",lb) | |
3284 | thing.MeshType = "Sphere" | |
3285 | --for i = 0, 1 do | |
3286 | --slash(10,5,true,"Round","Add","Out",GunPoint.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.002,0.01),math.random(5,25)/250,BrickColor.new("White")) | |
3287 | --end | |
3288 | -- + root.CFrame.lookVector*12 | |
3289 | --sphere2(10,"Add",GunPoint.CFrame,vt(0.125,0.125,0.125),0.1,0.1,0.1,BrickColor.new("New Yeller"),Color3.new(1,1,0)) | |
3290 | -- + root.CFrame.lookVector*12 | |
3291 | local b = Instance.new("Part") | |
3292 | b.Parent = char | |
3293 | b.Material = "Neon" | |
3294 | b.Color = BrickColor.new("New Yeller").Color | |
3295 | b.CanCollide = false | |
3296 | b.Shape = "Ball" | |
3297 | b.CFrame = EAE.CFrame | |
3298 | b.Anchored = true | |
3299 | b.Transparency = 0 | |
3300 | b.Size = vt(1,1,1) | |
3301 | local z = Instance.new("SpecialMesh",b) | |
3302 | z.MeshType = "Sphere" | |
3303 | local hitted = false | |
3304 | lb.Anchored = false | |
3305 | local bv = Instance.new("BodyVelocity") | |
3306 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3307 | bv.velocity = Mouse.Hit.lookVector *150 | |
3308 | bv.Parent = lb | |
3309 | --[[ | |
3310 | local lb2 = Instance.new("Part") | |
3311 | lb2.Parent = char | |
3312 | lb2.Material = "Neon" | |
3313 | lb2.Color = BrickColor.new("New Yeller").Color | |
3314 | lb2.CanCollide = false | |
3315 | lb2.Shape = "Ball" | |
3316 | lb2.CFrame = Flare2.CFrame | |
3317 | lb2.Anchored = true | |
3318 | lb2.Transparency = 0 | |
3319 | lb2.Size = vt(0.6,0.6,0.6) | |
3320 | local thing = Instance.new("SpecialMesh",lb2) | |
3321 | thing.MeshType = "Sphere" | |
3322 | --for i = 0, 1 do | |
3323 | --slash(10,5,true,"Round","Add","Out",GunPoint.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.002,0.01),math.random(5,25)/250,BrickColor.new("White")) | |
3324 | --end | |
3325 | -- + root.CFrame.lookVector*12 | |
3326 | --sphere2(10,"Add",GunPoint.CFrame,vt(0.125,0.125,0.125),0.1,0.1,0.1,BrickColor.new("New Yeller"),Color3.new(1,1,0)) | |
3327 | -- + root.CFrame.lookVector*12 | |
3328 | local b2 = Instance.new("Part") | |
3329 | b2.Parent = char | |
3330 | b2.Material = "Neon" | |
3331 | b2.Color = BrickColor.new("New Yeller").Color | |
3332 | b2.CanCollide = false | |
3333 | b2.Shape = "Ball" | |
3334 | b2.CFrame = Flare2.CFrame | |
3335 | b2.Anchored = true | |
3336 | b2.Transparency = 0 | |
3337 | b2.Size = vt(1,1,1) | |
3338 | local z = Instance.new("SpecialMesh",b2) | |
3339 | z.MeshType = "Sphere" | |
3340 | --local hitted = false | |
3341 | lb2.Anchored = false | |
3342 | local bv2 = Instance.new("BodyVelocity") | |
3343 | bv2.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3344 | bv2.velocity = Mouse.Hit.lookVector *150 | |
3345 | bv2.Parent = lb2]]-- | |
3346 | lb.Touched:connect(function(hit) Damagefunc(hit,12,75,math.random(10,20),"Normal",RootPart,.2,1) end) | |
3347 | --lb2.Touched:connect(function(hit) Damagefunc(hit,33,74,math.random(10,20),"Normal",RootPart,.2,1) end) | |
3348 | for i = 0,0.525,0.1 do | |
3349 | swait() | |
3350 | turnto(Mouse.Hit.p) | |
3351 | z.Scale = z.Scale + vt(0.1,0.1,0.1) | |
3352 | b.Transparency = b.Transparency + 0.05 | |
3353 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
3354 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
3355 | RW.C0 = clerp(RW.C0, CFrame.new(1.25, 1, 0.2) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.3) | |
3356 | LW.C0 = clerp(LW.C0, CFrame.new(-0.15, 0.5, -0.15) * angles(math.rad(90), math.rad(12), math.rad(50)), 0.3) | |
3357 | end | |
3358 | game:GetService("Debris"):AddItem(lb, 19) | |
3359 | --game:GetService("Debris"):AddItem(lb2, 19) | |
3360 | game:GetService("Debris"):AddItem(bv, 20) | |
3361 | --game:GetService("Debris"):AddItem(bv2, 20) | |
3362 | b:Destroy() | |
3363 | --b2:Destroy() | |
3364 | --wait(10) | |
3365 | --lb:Destroy() | |
3366 | --lb2:Destroy() | |
3367 | until HOLD == false | |
3368 | ATTACK = false | |
3369 | --Rooted = false | |
3370 | end | |
3371 | ||
3372 | function AKS() | |
3373 | ATTACK = true | |
3374 | --Rooted = false | |
3375 | for i=0, 0.25, 0.1 / Animation_Speed do | |
3376 | Swait() | |
3377 | turnto(Mouse.Hit.p) | |
3378 | --[[RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
3379 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
3380 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
3381 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
3382 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3383 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3384 | --]] | |
3385 | end | |
3386 | repeat | |
3387 | for i = 0,0.15,0.1 do | |
3388 | swait() | |
3389 | turnto(Mouse.Hit.p) | |
3390 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
3391 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
3392 | RW.C0 = clerp(RW.C0, CFrame.new(1.25, 1, 0.7) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.3) | |
3393 | LW.C0 = clerp(LW.C0, CFrame.new(-0.15, 0.5, -0.65) * angles(math.rad(90), math.rad(12), math.rad(50)), 0.3) | |
3394 | end | |
3395 | so("http://roblox.com/asset/?id=168436671",AH,60,1) | |
3396 | --so("http://roblox.com/asset/?id=165946560",Flare2,60,1) | |
3397 | local lb = Instance.new("Part") | |
3398 | lb.Parent = char | |
3399 | lb.Material = "Neon" | |
3400 | lb.Color = BrickColor.new("New Yeller").Color | |
3401 | lb.CanCollide = false | |
3402 | lb.Shape = "Ball" | |
3403 | lb.CFrame = AH.CFrame | |
3404 | lb.Anchored = true | |
3405 | lb.Transparency = 0 | |
3406 | lb.Size = vt(0.45,1,0.45) | |
3407 | local thing = Instance.new("SpecialMesh",lb) | |
3408 | thing.MeshType = "Sphere" | |
3409 | --for i = 0, 1 do | |
3410 | --slash(10,5,true,"Round","Add","Out",GunPoint.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.002,0.01),math.random(5,25)/250,BrickColor.new("White")) | |
3411 | --end | |
3412 | -- + root.CFrame.lookVector*12 | |
3413 | --sphere2(10,"Add",GunPoint.CFrame,vt(0.125,0.125,0.125),0.1,0.1,0.1,BrickColor.new("New Yeller"),Color3.new(1,1,0)) | |
3414 | -- + root.CFrame.lookVector*12 | |
3415 | local b = Instance.new("Part") | |
3416 | b.Parent = char | |
3417 | b.Material = "Neon" | |
3418 | b.Color = BrickColor.new("New Yeller").Color | |
3419 | b.CanCollide = false | |
3420 | b.Shape = "Ball" | |
3421 | b.CFrame = AH.CFrame | |
3422 | b.Anchored = true | |
3423 | b.Transparency = 0 | |
3424 | b.Size = vt(1,1,1) | |
3425 | local z = Instance.new("SpecialMesh",b) | |
3426 | z.MeshType = "Sphere" | |
3427 | local hitted = false | |
3428 | lb.Anchored = false | |
3429 | local bv = Instance.new("BodyVelocity") | |
3430 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3431 | bv.velocity = Mouse.Hit.lookVector *150 | |
3432 | bv.Parent = lb | |
3433 | --[[ | |
3434 | local lb2 = Instance.new("Part") | |
3435 | lb2.Parent = char | |
3436 | lb2.Material = "Neon" | |
3437 | lb2.Color = BrickColor.new("New Yeller").Color | |
3438 | lb2.CanCollide = false | |
3439 | lb2.Shape = "Ball" | |
3440 | lb2.CFrame = Flare2.CFrame | |
3441 | lb2.Anchored = true | |
3442 | lb2.Transparency = 0 | |
3443 | lb2.Size = vt(0.6,0.6,0.6) | |
3444 | local thing = Instance.new("SpecialMesh",lb2) | |
3445 | thing.MeshType = "Sphere" | |
3446 | --for i = 0, 1 do | |
3447 | --slash(10,5,true,"Round","Add","Out",GunPoint.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.002,0.01),math.random(5,25)/250,BrickColor.new("White")) | |
3448 | --end | |
3449 | -- + root.CFrame.lookVector*12 | |
3450 | --sphere2(10,"Add",GunPoint.CFrame,vt(0.125,0.125,0.125),0.1,0.1,0.1,BrickColor.new("New Yeller"),Color3.new(1,1,0)) | |
3451 | -- + root.CFrame.lookVector*12 | |
3452 | local b2 = Instance.new("Part") | |
3453 | b2.Parent = char | |
3454 | b2.Material = "Neon" | |
3455 | b2.Color = BrickColor.new("New Yeller").Color | |
3456 | b2.CanCollide = false | |
3457 | b2.Shape = "Ball" | |
3458 | b2.CFrame = Flare2.CFrame | |
3459 | b2.Anchored = true | |
3460 | b2.Transparency = 0 | |
3461 | b2.Size = vt(1,1,1) | |
3462 | local z = Instance.new("SpecialMesh",b2) | |
3463 | z.MeshType = "Sphere" | |
3464 | --local hitted = false | |
3465 | lb2.Anchored = false | |
3466 | local bv2 = Instance.new("BodyVelocity") | |
3467 | bv2.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3468 | bv2.velocity = Mouse.Hit.lookVector *150 | |
3469 | bv2.Parent = lb2]]-- | |
3470 | lb.Touched:connect(function(hit) Damagefunc(hit,12,75,math.random(10,20),"Normal",RootPart,.2,1) end) | |
3471 | --lb2.Touched:connect(function(hit) Damagefunc(hit,33,74,math.random(10,20),"Normal",RootPart,.2,1) end) | |
3472 | for i = 0,0.2,0.1 do | |
3473 | swait() | |
3474 | turnto(Mouse.Hit.p) | |
3475 | z.Scale = z.Scale + vt(0.1,0.1,0.1) | |
3476 | b.Transparency = b.Transparency + 0.05 | |
3477 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
3478 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
3479 | RW.C0 = clerp(RW.C0, CFrame.new(1.25, 1, 0.2) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.3) | |
3480 | LW.C0 = clerp(LW.C0, CFrame.new(-0.15, 0.5, -0.15) * angles(math.rad(90), math.rad(12), math.rad(50)), 0.3) | |
3481 | end | |
3482 | game:GetService("Debris"):AddItem(lb, 19) | |
3483 | --game:GetService("Debris"):AddItem(lb2, 19) | |
3484 | game:GetService("Debris"):AddItem(bv, 20) | |
3485 | --game:GetService("Debris"):AddItem(bv2, 20) | |
3486 | b:Destroy() | |
3487 | --b2:Destroy() | |
3488 | --wait(10) | |
3489 | --lb:Destroy() | |
3490 | --lb2:Destroy() | |
3491 | until HOLD == false | |
3492 | ATTACK = false | |
3493 | --Rooted = false | |
3494 | end | |
3495 | function nearTorso(pos, dis) | |
3496 | local temp | |
3497 | local distance=dis | |
3498 | for i, v in pairs(workspace:children()) do | |
3499 | if v:isA("Model") then | |
3500 | temp=v:findFirstChild("Torso") | |
3501 | local humanoid=v:findFirstChild("Humanoid") | |
3502 | if temp and humanoid and v~=char and (temp.CFrame.p-pos).magnitude<distance then | |
3503 | distance=(temp.CFrame.p-pos).magnitude | |
3504 | return temp | |
3505 | end | |
3506 | end | |
3507 | end | |
3508 | end | |
3509 | ||
3510 | function Damagefunc2(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
3511 | if hit.Parent == nil then | |
3512 | return | |
3513 | end | |
3514 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
3515 | for _, v in pairs(hit.Parent:children()) do | |
3516 | if v:IsA("Humanoid") then | |
3517 | h = v | |
3518 | end | |
3519 | end | |
3520 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then | |
3521 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
3522 | return | |
3523 | end | |
3524 | local c = Create("ObjectValue")({ | |
3525 | Name = "creator", | |
3526 | Value = plr, | |
3527 | Parent = h | |
3528 | }) | |
3529 | game:GetService("Debris"):AddItem(c, 0.5) | |
3530 | if HitSound ~= nil and HitPitch ~= nil then | |
3531 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
3532 | end | |
3533 | local Damage = math.random(minim, maxim) | |
3534 | local blocked = false | |
3535 | local block = hit.Parent:findFirstChild("Block") | |
3536 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
3537 | blocked = true | |
3538 | block.Value = block.Value - 1 | |
3539 | print(block.Value) | |
3540 | end | |
3541 | if blocked == false then | |
3542 | HitHealth = h.Health | |
3543 | h.MaxHealth = 100 | |
3544 | h.Health = h.Health - Damage | |
3545 | local nTorso=nearTorso(Torso.CFrame.p, 3) | |
3546 | if nTorso then | |
3547 | local offSet=nTorso.CFrame:toObjectSpace(Torso.CFrame) | |
3548 | if offSet.z>0 then | |
3549 | h.Health = h.Health - Damage*MRANDOM(180,560) | |
3550 | end | |
3551 | end | |
3552 | if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then | |
3553 | print("gained kill") | |
3554 | -- dmg(h.Parent) | |
3555 | end | |
3556 | else | |
3557 | h.Health = h.Health - Damage / 2 | |
3558 | end | |
3559 | if Type == "Knockdown" then | |
3560 | local hum = hit.Parent.Humanoid | |
3561 | hum.PlatformStand = true | |
3562 | coroutine.resume(coroutine.create(function(HHumanoid) | |
3563 | swait(1) | |
3564 | HHumanoid.PlatformStand = false | |
3565 | end), hum) | |
3566 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
3567 | local bodvol = Create("BodyVelocity")({ | |
3568 | velocity = angle * knockback, | |
3569 | P = 5000, | |
3570 | maxForce = Vector3.new(8000, 8000, 8000), | |
3571 | Parent = hit | |
3572 | }) | |
3573 | local rl = Create("BodyAngularVelocity")({ | |
3574 | P = 3000, | |
3575 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
3576 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
3577 | Parent = hit | |
3578 | }) | |
3579 | game:GetService("Debris"):AddItem(bodvol, 0.5) | |
3580 | game:GetService("Debris"):AddItem(rl, 0.5) | |
3581 | elseif Type == "Normal" then | |
3582 | local vp = Create("BodyVelocity")({ | |
3583 | P = 500, | |
3584 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
3585 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
3586 | }) | |
3587 | if knockback > 0 then | |
3588 | vp.Parent = hit.Parent.Head | |
3589 | end | |
3590 | game:GetService("Debris"):AddItem(vp, 0.5) | |
3591 | elseif Type == "Up" then | |
3592 | local bodyVelocity = Create("BodyVelocity")({ | |
3593 | velocity = Vector3.new(0, 20, 0), | |
3594 | P = 5000, | |
3595 | maxForce = Vector3.new(8000, 8000, 8000), | |
3596 | Parent = hit | |
3597 | }) | |
3598 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
3599 | local bodyVelocity = Create("BodyVelocity")({ | |
3600 | velocity = Vector3.new(0, 20, 0), | |
3601 | P = 5000, | |
3602 | maxForce = Vector3.new(8000, 8000, 8000), | |
3603 | Parent = hit | |
3604 | }) | |
3605 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
3606 | elseif Type == "Leech" then | |
3607 | local hum = hit.Parent.Humanoid | |
3608 | if hum ~= nil then | |
3609 | for i = 0, 2 do | |
3610 | Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02) | |
3611 | end | |
3612 | Humanoid.Health = Humanoid.Health + 10 | |
3613 | end | |
3614 | elseif Type == "UpKnock" then | |
3615 | local hum = hit.Parent.Humanoid | |
3616 | hum.PlatformStand = true | |
3617 | if hum ~= nil then | |
3618 | hitr = true | |
3619 | end | |
3620 | coroutine.resume(coroutine.create(function(HHumanoid) | |
3621 | swait(5) | |
3622 | HHumanoid.PlatformStand = false | |
3623 | hitr = false | |
3624 | end), hum) | |
3625 | local bodyVelocity = Create("BodyVelocity")({ | |
3626 | velocity = Vector3.new(0, 20, 0), | |
3627 | P = 5000, | |
3628 | maxForce = Vector3.new(8000, 8000, 8000), | |
3629 | Parent = hit | |
3630 | }) | |
3631 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
3632 | local bodyVelocity = Create("BodyVelocity")({ | |
3633 | velocity = Vector3.new(0, 20, 0), | |
3634 | P = 5000, | |
3635 | maxForce = Vector3.new(8000, 8000, 8000), | |
3636 | Parent = hit | |
3637 | }) | |
3638 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
3639 | elseif Type == "Snare" then | |
3640 | local bp = Create("BodyPosition")({ | |
3641 | P = 2000, | |
3642 | D = 100, | |
3643 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
3644 | position = hit.Parent.Torso.Position, | |
3645 | Parent = hit.Parent.Torso | |
3646 | }) | |
3647 | game:GetService("Debris"):AddItem(bp, 1) | |
3648 | elseif Type == "Slashnare" then | |
3649 | Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07) | |
3650 | for i = 1, math.random(4, 5) do | |
3651 | Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02) | |
3652 | end | |
3653 | local bp = Create("BodyPosition")({ | |
3654 | P = 2000, | |
3655 | D = 100, | |
3656 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
3657 | position = hit.Parent.Torso.Position, | |
3658 | Parent = hit.Parent.Torso | |
3659 | }) | |
3660 | game:GetService("Debris"):AddItem(bp, 1) | |
3661 | elseif Type == "Spike" then | |
3662 | --CreateBigIceSword(hit.Parent.Torso.CFrame) | |
3663 | local bp = Create("BodyPosition")({ | |
3664 | P = 2000, | |
3665 | D = 100, | |
3666 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
3667 | position = hit.Parent.Torso.Position, | |
3668 | Parent = hit.Parent.Torso | |
3669 | }) | |
3670 | game:GetService("Debris"):AddItem(bp, 1) | |
3671 | elseif Type == "Freeze" then | |
3672 | local BodPos = Create("BodyPosition")({ | |
3673 | P = 50000, | |
3674 | D = 1000, | |
3675 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
3676 | position = hit.Parent.Torso.Position, | |
3677 | Parent = hit.Parent.Torso | |
3678 | }) | |
3679 | local BodGy = Create("BodyGyro")({ | |
3680 | maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, | |
3681 | P = 20000, | |
3682 | Parent = hit.Parent.Torso, | |
3683 | cframe = hit.Parent.Torso.CFrame | |
3684 | }) | |
3685 | hit.Parent.Torso.Anchored = true | |
3686 | coroutine.resume(coroutine.create(function(Part) | |
3687 | swait(1.5) | |
3688 | Part.Anchored = false | |
3689 | end), hit.Parent.Torso) | |
3690 | game:GetService("Debris"):AddItem(BodPos, 3) | |
3691 | game:GetService("Debris"):AddItem(BodGy, 3) | |
3692 | end | |
3693 | local debounce = Create("BoolValue")({ | |
3694 | Name = "DebounceHit", | |
3695 | Parent = hit.Parent, | |
3696 | Value = true | |
3697 | }) | |
3698 | game:GetService("Debris"):AddItem(debounce, Delay) | |
3699 | c = Instance.new("ObjectValue") | |
3700 | c.Name = "creator" | |
3701 | c.Value = Player | |
3702 | c.Parent = h | |
3703 | game:GetService("Debris"):AddItem(c, 0.5) | |
3704 | end | |
3705 | end | |
3706 | function ShowDamage(Pos, Text, Time, Color) | |
3707 | local Rate = 0.03333333333333333 | |
3708 | local Pos = Pos or Vector3.new(0, 0, 0) | |
3709 | local Text = Text or "" | |
3710 | local Time = Time or 2 | |
3711 | local Color = Color or Color3.new(1, 0, 1) | |
3712 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
3713 | EffectPart.Anchored = true | |
3714 | local BillboardGui = Create("BillboardGui")({ | |
3715 | Size = UDim2.new(3, 0, 3, 0), | |
3716 | Adornee = EffectPart, | |
3717 | Parent = EffectPart | |
3718 | }) | |
3719 | local TextLabel = Create("TextLabel")({ | |
3720 | BackgroundTransparency = 1, | |
3721 | Size = UDim2.new(1, 0, 1, 0), | |
3722 | Text = Text, | |
3723 | TextColor3 = Color, | |
3724 | TextScaled = true, | |
3725 | Font = Enum.Font.ArialBold, | |
3726 | Parent = BillboardGui | |
3727 | }) | |
3728 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
3729 | EffectPart.Parent = game:GetService("Workspace") | |
3730 | delay(0, function() | |
3731 | local Frames = Time / Rate | |
3732 | for Frame = 1, Frames do | |
3733 | wait(Rate) | |
3734 | local Percent = Frame / Frames | |
3735 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
3736 | TextLabel.TextTransparency = Percent | |
3737 | end | |
3738 | if EffectPart and EffectPart.Parent then | |
3739 | EffectPart:Destroy() | |
3740 | end | |
3741 | end) | |
3742 | end | |
3743 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
3744 | for _, c in pairs(workspace:children()) do | |
3745 | local hum = c:findFirstChildOfClass("Humanoid") | |
3746 | if hum ~= nil then | |
3747 | local head = c:findFirstChild("Head") | |
3748 | if head ~= nil then | |
3749 | local targ = head.Position - Part.Position | |
3750 | local mag = targ.magnitude | |
3751 | if magni >= mag and c.Name ~= Player.Name then | |
3752 | Damagefunc2(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
3753 | end | |
3754 | end | |
3755 | end | |
3756 | end | |
3757 | end | |
3758 | ||
3759 | ||
3760 | function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type) | |
3761 | for _, c in pairs(workspace:children()) do | |
3762 | local hum = c:findFirstChild("Humanoid") | |
3763 | if hum ~= nil then | |
3764 | local head = c:findFirstChild("Torso") | |
3765 | if head ~= nil then | |
3766 | local targ = head.Position - Part.Position | |
3767 | local mag = targ.magnitude | |
3768 | if magni >= mag and c.Name ~= Player.Name then | |
3769 | --MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05) | |
3770 | Damagefunc2(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
3771 | end | |
3772 | end | |
3773 | end | |
3774 | end | |
3775 | end | |
3776 | ||
3777 | function attackone() | |
3778 | ATTACK = true | |
3779 | CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1.1) | |
3780 | for i = 0,1,0.25 do | |
3781 | swait() | |
3782 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),1) | |
3783 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(50)),1) | |
3784 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(100)),1) | |
3785 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),1) | |
3786 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0)),1) | |
3787 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1) | |
3788 | end | |
3789 | local hitb = Instance.new("Part", char) | |
3790 | hitb.Anchored = true | |
3791 | hitb.CanCollide = false | |
3792 | hitb.FormFactor = 3 | |
3793 | hitb.Name = "Ring" | |
3794 | hitb.Material = "Neon" | |
3795 | hitb.Size = Vector3.new(1, 1, 1) | |
3796 | hitb.Transparency = 1 | |
3797 | hitb.TopSurface = 0 | |
3798 | hitb.BottomSurface = 0 | |
3799 | hitb.CFrame = root.CFrame + root.CFrame.lookVector*2 | |
3800 | MagniDamage(hitb, 3, 12,32, 0, "Normal") | |
3801 | hitb:Destroy() | |
3802 | for i = 0,1,0.5 do | |
3803 | swait() | |
3804 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.5) | |
3805 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-80)),0.5) | |
3806 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.5) | |
3807 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.5) | |
3808 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0)),0.5) | |
3809 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),0.5) | |
3810 | end | |
3811 | ATTACK = false | |
3812 | end | |
3813 | ||
3814 | function attacktwo() | |
3815 | ATTACK = true | |
3816 | CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1.1) | |
3817 | for i=0,1,.25 do | |
3818 | swait() | |
3819 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.5) | |
3820 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-90)),0.5) | |
3821 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.5) | |
3822 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.5) | |
3823 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(40),math.rad(0)),0.4) | |
3824 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-10)),0.5) | |
3825 | end | |
3826 | local hitb = Instance.new("Part", char) | |
3827 | hitb.Anchored = true | |
3828 | hitb.CanCollide = false | |
3829 | hitb.FormFactor = 3 | |
3830 | hitb.Name = "Ring" | |
3831 | hitb.Material = "Neon" | |
3832 | hitb.Size = Vector3.new(1, 1, 1) | |
3833 | hitb.Transparency = 1 | |
3834 | hitb.TopSurface = 0 | |
3835 | hitb.BottomSurface = 0 | |
3836 | hitb.CFrame = root.CFrame + root.CFrame.lookVector*2 | |
3837 | MagniDamage(hitb, 3, 10,32, 0, "Normal") | |
3838 | hitb:Destroy() | |
3839 | for i = 0,1,0.5 do | |
3840 | swait() | |
3841 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.5) | |
3842 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(90)),0.5) | |
3843 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)),0.5) | |
3844 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)),0.5) | |
3845 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(0)),0.5) | |
3846 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-40),math.rad(-10)),0.5) | |
3847 | end | |
3848 | ATTACK = false | |
3849 | end | |
3850 | ||
3851 | ||
3852 | ||
3853 | local attacktype = 1 | |
3854 | local COMBO = false | |
3855 | function stab() | |
3856 | if attacktype==1 and ATTACK==false and COMBO == false then | |
3857 | attacktype=2 | |
3858 | COMBO = true | |
3859 | attackone() | |
3860 | COMBO = false | |
3861 | elseif attacktype==2 and ATTACK==false and COMBO == false then | |
3862 | attacktype=1 | |
3863 | COMBO = true | |
3864 | attacktwo() | |
3865 | COMBO = false | |
3866 | end | |
3867 | end | |
3868 | Ne = Torso.Neck | |
3869 | local Ammo = 1000 | |
3870 | local Depleted = false | |
3871 | function rayCast(Pos, Dir, Max, Ignore) | |
3872 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
3873 | end | |
3874 | ||
3875 | function DamageASD(hit, damage, cooldown, Color1, Color2, HSound, HPitch) | |
3876 | for i, v in pairs(hit:GetChildren()) do | |
3877 | if v:IsA("Humanoid") and hit.Name ~= Character.Name then | |
3878 | local find = v:FindFirstChild("Hitz") | |
3879 | if not find then | |
3880 | if v.Parent:findFirstChild("Head") then | |
3881 | local BillG = Create("BillboardGui"){ | |
3882 | Parent = v.Parent.Head, | |
3883 | Size = UDim2.new(1, 0, 1, 0), | |
3884 | Adornee = v.Parent.Head, | |
3885 | StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)), | |
3886 | } | |
3887 | local TL = Create("TextLabel"){ | |
3888 | Parent = BillG, | |
3889 | Size = UDim2.new(3, 3, 3, 3), | |
3890 | BackgroundTransparency = 1, | |
3891 | Text = tostring(damage).."-", | |
3892 | TextColor3 = Color1.Color, | |
3893 | TextStrokeColor3 = Color2.Color, | |
3894 | TextStrokeTransparency = 0, | |
3895 | TextXAlignment = Enum.TextXAlignment.Center, | |
3896 | TextYAlignment = Enum.TextYAlignment.Center, | |
3897 | FontSize = Enum.FontSize.Size18, | |
3898 | Font = "SciFi", | |
3899 | } | |
3900 | coroutine.resume(coroutine.create(function() | |
3901 | wait(1) | |
3902 | for i = 0, 1, .1 do | |
3903 | wait(.1) | |
3904 | BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0) | |
3905 | end | |
3906 | BillG:Destroy() | |
3907 | end)) | |
3908 | end | |
3909 | v.Health = v.Health - damage | |
3910 | local bool = Create("BoolValue"){ | |
3911 | Parent = v, | |
3912 | Name = 'Hitz', | |
3913 | } | |
3914 | if HSound ~= nil and HPitch ~= nil then | |
3915 | CreateSound(HSound, hit, 1, HPitch) | |
3916 | end | |
3917 | game:GetService("Debris"):AddItem(bool, cooldown) | |
3918 | end | |
3919 | end | |
3920 | end | |
3921 | end | |
3922 | ||
3923 | function MagnitudeDamageB(Part, magni, mindam, maxdam, Color1, Color2, HitSound) | |
3924 | for _, c in pairs(workspace:children()) do | |
3925 | local hum = c:findFirstChild("Humanoid") | |
3926 | if hum ~= nil then | |
3927 | local head = c:findFirstChild("Torso") | |
3928 | if head ~= nil then | |
3929 | local targ = head.Position - Part.Position | |
3930 | local mag = targ.magnitude | |
3931 | if mag <= magni and c.Name ~= Player.Name then | |
3932 | DamageASD(head.Parent, math.random(mindam, maxdam), 0, Color1, Color2, HitSound, 1) | |
3933 | end | |
3934 | end | |
3935 | end | |
3936 | end | |
3937 | end | |
3938 | Effects2 = { } | |
3939 | function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
3940 | local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2)) | |
3941 | prt.Anchored = true | |
3942 | prt.CFrame = cframe | |
3943 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
3944 | game:GetService("Debris"):AddItem(prt, 2) | |
3945 | Effects2[#Effects2 + 1] = { | |
3946 | prt, | |
3947 | "Cylinder", | |
3948 | delay, | |
3949 | x3, | |
3950 | y3, | |
3951 | z3 | |
3952 | } | |
3953 | end | |
3954 | function Shoot(asd, spread1, spread2) | |
3955 | local MainPos = asd.Position | |
3956 | local MainPos2 = Mouse.Hit.p | |
3957 | local spread = Vector3.new((math.random(-spread1, 0) + math.random()) * spread2, (math.random(-spread1, 0) + math.random()) * spread2, (math.random(-spread1, 0) + math.random()) * spread2) * (asd.Position - Mouse.Hit.p).magnitude / 100 | |
3958 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2 + spread) | |
3959 | num = 30 | |
3960 | Ammo = Ammo - 1 | |
3961 | print(Ammo) | |
3962 | if Ammo == 0 then | |
3963 | Depleted = true | |
3964 | end | |
3965 | coroutine.resume(coroutine.create(function(Spreaded) | |
3966 | repeat | |
3967 | wait() | |
3968 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, 50, Character.HumanoidRootPart.Parent) | |
3969 | local TheHit = Mouse.Hit.p | |
3970 | local mag = (MainPos - pos).magnitude | |
3971 | CylinderEffect(BrickColor.new("New Yeller"), CFrame.new((MainPos + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 3, mag * 5, 3, .5, 1, .5, 0.2) | |
3972 | MainPos = MainPos + (MouseLook.lookVector * 50) | |
3973 | num = num - 1 | |
3974 | if hit ~= nil then | |
3975 | num = 0 | |
3976 | local ref = CreatePart(3, workspace, "Neon", 0, 1, BrickColor.new("Dark stone grey"), "Reference", Vector3.new()) | |
3977 | ref.Anchored = true | |
3978 | ref.CFrame = CFrame.new(pos) | |
3979 | MagnitudeDamageB(ref, 5, 999999999, 999999999, BrickColor.new("Maroon"), BrickColor.new("Really red") , "rbxassetid://199149297") | |
3980 | game:GetService("Debris"):AddItem(ref, 1) | |
3981 | end | |
3982 | until num <= 0 | |
3983 | end)) | |
3984 | end | |
3985 | function CreateSound2(id, par, vol, pit) | |
3986 | coroutine.resume(coroutine.create(function() | |
3987 | local sou = Create("Sound"){ | |
3988 | Parent = par or workspace, | |
3989 | Volume = vol, | |
3990 | Pitch = pit or 1, | |
3991 | SoundId = id, | |
3992 | } | |
3993 | wait() | |
3994 | sou:play() | |
3995 | end)) | |
3996 | end | |
3997 | function Fire() | |
3998 | ATTACK = true | |
3999 | CreateSound2("rbxassetid://132572951", AWH, 10, .9) | |
4000 | CreateSound2("rbxassetid://130767489", AWH, 70.7, 1.2) | |
4001 | Shoot(AWH, 0, 0) | |
4002 | for i = 0, 1, 0.2 do | |
4003 | wait() | |
4004 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
4005 | Ne.C0 = clerp(Ne.C0, NECKC0 * CFrame.Angles(math.rad(5), math.rad(-10), math.rad(90)), .3) | |
4006 | RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(90), math.rad(-20), math.rad(-90)), .5) | |
4007 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.7, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(140)), .5) | |
4008 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
4009 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
4010 | end | |
4011 | for i = 0, 1, 0.1 do | |
4012 | wait() | |
4013 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
4014 | Ne.C0 = clerp(Ne.C0, NECKC0 * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .3) | |
4015 | RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .3) | |
4016 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .3) | |
4017 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
4018 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
4019 | end | |
4020 | for i = 0, 1, 0.1 do | |
4021 | wait() | |
4022 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
4023 | Ne.C0 = clerp(Ne.C0, NECKC0 * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3) | |
4024 | RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .3) | |
4025 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3) | |
4026 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
4027 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
4028 | end | |
4029 | CreateSound2("rbxassetid://146740582", AWH, 70.7, 1) | |
4030 | for i = 0, 1, 0.1 do | |
4031 | wait() | |
4032 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
4033 | Ne.C0 = clerp(Ne.C0, NECKC0 * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3) | |
4034 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .5) | |
4035 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3) | |
4036 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
4037 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
4038 | end | |
4039 | for i = 0, 1, 0.1 do | |
4040 | wait() | |
4041 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
4042 | Ne.C0 = clerp(Ne.C0, NECKC0 * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3) | |
4043 | RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .5) | |
4044 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3) | |
4045 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
4046 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
4047 | end | |
4048 | for i = 0, 1, 0.3 do | |
4049 | wait() | |
4050 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
4051 | Ne.C0 = clerp(Ne.C0, NECKC0 * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4) | |
4052 | RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4) | |
4053 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4) | |
4054 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
4055 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
4056 | end | |
4057 | ATTACK = false | |
4058 | end | |
4059 | ||
4060 | function R8AS() | |
4061 | ATTACK = true | |
4062 | --Rooted = false | |
4063 | for i=0, 0.5, 0.1 / Animation_Speed do | |
4064 | Swait() | |
4065 | turnto(Mouse.Hit.p) | |
4066 | --[[RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
4067 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
4068 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
4069 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
4070 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
4071 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
4072 | --]] | |
4073 | end | |
4074 | repeat | |
4075 | for i = 0,0.76,0.1 do | |
4076 | swait() | |
4077 | turnto(Mouse.Hit.p) | |
4078 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
4079 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
4080 | RW.C0=clerp(RW.C0,cf(0.8,0.5 + 0.1 * math.cos(sine / 28),-.75)*angles(math.rad(90),math.rad(0),math.rad(-30)),.1) | |
4081 | LW.C0=clerp(LW.C0,cf(-0.8,0.5 + 0.1 * math.cos(sine / 28),-0.75)*angles(math.rad(90),math.rad(0),math.rad(30)),.1) | |
4082 | end | |
4083 | for i = 0,1.98,0.1 do | |
4084 | swait() | |
4085 | turnto(Mouse.Hit.p) | |
4086 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
4087 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
4088 | RW.C0=clerp(RW.C0,cf(0.8,0.5 + 0.1 * math.cos(sine / 28),-.65)*angles(math.rad(90),math.rad(0),math.rad(-30)),.1) | |
4089 | LW.C0=clerp(LW.C0,cf(-0.8,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(90),math.rad(0),math.rad(30)),.1) | |
4090 | end | |
4091 | so("http://roblox.com/asset/?id=360648134",REVOLV,60,1) | |
4092 | --so("http://roblox.com/asset/?id=165946560",Flare2,60,1) | |
4093 | local lb = Instance.new("Part") | |
4094 | lb.Parent = char | |
4095 | lb.Material = "Neon" | |
4096 | lb.Color = BrickColor.new("New Yeller").Color | |
4097 | lb.CanCollide = false | |
4098 | lb.Shape = "Ball" | |
4099 | lb.CFrame = REVOLV.CFrame | |
4100 | lb.Anchored = true | |
4101 | lb.Transparency = 0 | |
4102 | lb.Size = vt(0.45,1,0.45) | |
4103 | local thing = Instance.new("SpecialMesh",lb) | |
4104 | thing.MeshType = "Sphere" | |
4105 | --for i = 0, 1 do | |
4106 | --slash(10,5,true,"Round","Add","Out",GunPoint.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.002,0.01),math.random(5,25)/250,BrickColor.new("White")) | |
4107 | --end | |
4108 | -- + root.CFrame.lookVector*12 | |
4109 | --sphere2(10,"Add",GunPoint.CFrame,vt(0.125,0.125,0.125),0.1,0.1,0.1,BrickColor.new("New Yeller"),Color3.new(1,1,0)) | |
4110 | -- + root.CFrame.lookVector*12 | |
4111 | local b = Instance.new("Part") | |
4112 | b.Parent = char | |
4113 | b.Material = "Neon" | |
4114 | b.Color = BrickColor.new("New Yeller").Color | |
4115 | b.CanCollide = false | |
4116 | b.Shape = "Ball" | |
4117 | b.CFrame = REVOLV.CFrame | |
4118 | b.Anchored = true | |
4119 | b.Transparency = 0 | |
4120 | b.Size = vt(1,1,1) | |
4121 | local z = Instance.new("SpecialMesh",b) | |
4122 | z.MeshType = "Sphere" | |
4123 | local hitted = false | |
4124 | lb.Anchored = false | |
4125 | local bv = Instance.new("BodyVelocity") | |
4126 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
4127 | bv.velocity = Mouse.Hit.lookVector *150 | |
4128 | bv.Parent = lb | |
4129 | --[[ | |
4130 | local lb2 = Instance.new("Part") | |
4131 | lb2.Parent = char | |
4132 | lb2.Material = "Neon" | |
4133 | lb2.Color = BrickColor.new("New Yeller").Color | |
4134 | lb2.CanCollide = false | |
4135 | lb2.Shape = "Ball" | |
4136 | lb2.CFrame = Flare2.CFrame | |
4137 | lb2.Anchored = true | |
4138 | lb2.Transparency = 0 | |
4139 | lb2.Size = vt(0.6,0.6,0.6) | |
4140 | local thing = Instance.new("SpecialMesh",lb2) | |
4141 | thing.MeshType = "Sphere" | |
4142 | --for i = 0, 1 do | |
4143 | --slash(10,5,true,"Round","Add","Out",GunPoint.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.002,0.01),math.random(5,25)/250,BrickColor.new("White")) | |
4144 | --end | |
4145 | -- + root.CFrame.lookVector*12 | |
4146 | --sphere2(10,"Add",GunPoint.CFrame,vt(0.125,0.125,0.125),0.1,0.1,0.1,BrickColor.new("New Yeller"),Color3.new(1,1,0)) | |
4147 | -- + root.CFrame.lookVector*12 | |
4148 | local b2 = Instance.new("Part") | |
4149 | b2.Parent = char | |
4150 | b2.Material = "Neon" | |
4151 | b2.Color = BrickColor.new("New Yeller").Color | |
4152 | b2.CanCollide = false | |
4153 | b2.Shape = "Ball" | |
4154 | b2.CFrame = Flare2.CFrame | |
4155 | b2.Anchored = true | |
4156 | b2.Transparency = 0 | |
4157 | b2.Size = vt(1,1,1) | |
4158 | local z = Instance.new("SpecialMesh",b2) | |
4159 | z.MeshType = "Sphere" | |
4160 | --local hitted = false | |
4161 | lb2.Anchored = false | |
4162 | local bv2 = Instance.new("BodyVelocity") | |
4163 | bv2.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
4164 | bv2.velocity = Mouse.Hit.lookVector *150 | |
4165 | bv2.Parent = lb2]]-- | |
4166 | lb.Touched:connect(function(hit) Damagefunc(hit,64,250,math.random(10,20),"Normal",RootPart,.2,1) end) | |
4167 | --lb2.Touched:connect(function(hit) Damagefunc(hit,33,74,math.random(10,20),"Normal",RootPart,.2,1) end) | |
4168 | for i = 0,1.7,0.1 do | |
4169 | swait() | |
4170 | turnto(Mouse.Hit.p) | |
4171 | z.Scale = z.Scale + vt(0.1,0.1,0.1) | |
4172 | b.Transparency = b.Transparency + 0.05 | |
4173 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
4174 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
4175 | RW.C0=clerp(RW.C0,cf(0.8,0.5 + 0.1 * math.cos(sine / 28),-.65)*angles(math.rad(120),math.rad(0),math.rad(-30)),.1) | |
4176 | LW.C0=clerp(LW.C0,cf(-0.8,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(120),math.rad(0),math.rad(30)),.1) | |
4177 | end | |
4178 | game:GetService("Debris"):AddItem(lb, 19) | |
4179 | --game:GetService("Debris"):AddItem(lb2, 19) | |
4180 | game:GetService("Debris"):AddItem(bv, 20) | |
4181 | --game:GetService("Debris"):AddItem(bv2, 20) | |
4182 | b:Destroy() | |
4183 | --b2:Destroy() | |
4184 | --wait(10) | |
4185 | --lb:Destroy() | |
4186 | --lb2:Destroy() | |
4187 | until HOLD == false | |
4188 | ATTACK = false | |
4189 | --Rooted = false | |
4190 | end | |
4191 | function nooutline(part) | |
4192 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
4193 | end | |
4194 | ||
4195 | function partB(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
4196 | local fp=it("Part") | |
4197 | fp.formFactor=formfactor | |
4198 | fp.Parent=parent | |
4199 | fp.Reflectance=reflectance | |
4200 | fp.Transparency=transparency | |
4201 | fp.CanCollide=false | |
4202 | fp.Locked=true | |
4203 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
4204 | fp.Name=name | |
4205 | fp.Size=size | |
4206 | fp.Position=Character.Torso.Position | |
4207 | nooutline(fp) | |
4208 | fp.Material=material | |
4209 | fp:BreakJoints() | |
4210 | return fp | |
4211 | end | |
4212 | function partB(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
4213 | local fp = it("Part") | |
4214 | fp.formFactor = formfactor | |
4215 | fp.Parent = parent | |
4216 | fp.Reflectance = reflectance | |
4217 | fp.Transparency = transparency | |
4218 | fp.CanCollide = false | |
4219 | fp.Locked=true | |
4220 | fp.BrickColor = brickcolor | |
4221 | fp.Name = name | |
4222 | fp.Size = size | |
4223 | fp.Position = Torso.Position | |
4224 | nooutline(fp) | |
4225 | fp.Material="Neon" | |
4226 | fp:BreakJoints() | |
4227 | return fp | |
4228 | end | |
4229 | function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
4230 | local prt=partB(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2)) | |
4231 | prt.Anchored=true | |
4232 | prt.CFrame=cframe | |
4233 | msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1)) | |
4234 | game:GetService("Debris"):AddItem(prt,2) | |
4235 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
4236 | for i=0,1,delay do | |
4237 | swait() | |
4238 | Part.CFrame=Part.CFrame | |
4239 | Part.Transparency=i | |
4240 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
4241 | end | |
4242 | Part.Parent=nil | |
4243 | end),prt,msh) | |
4244 | end | |
4245 | ||
4246 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
4247 | local prt=partB(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
4248 | prt.Anchored=true | |
4249 | prt.CFrame=cframe | |
4250 | msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
4251 | game:GetService("Debris"):AddItem(prt,2) | |
4252 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
4253 | for i=0,1,delay do | |
4254 | swait() | |
4255 | Part.CFrame=Part.CFrame | |
4256 | Part.Transparency=i | |
4257 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
4258 | end | |
4259 | Part.Parent=nil | |
4260 | end),prt,msh) | |
4261 | end | |
4262 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
4263 | local mesh=it(Mesh) | |
4264 | mesh.Parent=part | |
4265 | if Mesh=="SpecialMesh" then | |
4266 | mesh.MeshType=meshtype | |
4267 | mesh.MeshId=meshid | |
4268 | end | |
4269 | mesh.Offset=offset | |
4270 | mesh.Scale=scale | |
4271 | return mesh | |
4272 | end | |
4273 | function LaserBarrage(Prt,Parent) | |
4274 | attack=true | |
4275 | --so("BeamLockon",Prt,1,1) | |
4276 | local efprt=partB(3,Parent,0,0.5,BrickColor.new("New Yeller"),"Effect",vt(0.2,0.2,0.2)) | |
4277 | efprt.Anchored=true | |
4278 | local efmsh=mesh("CylinderMesh",efprt,"","",vt(0,0,0),vt(1,1,1)) | |
4279 | spread=vt((math.random(-1,0)+math.random())*7,(math.random(-1,0)+math.random())*7,(math.random(-1,0)+math.random())*7)*(Prt.Position-Mouse.Hit.p).magnitude/100 | |
4280 | --spread=vt(0,0,0) | |
4281 | coroutine.resume(coroutine.create(function(Part,Mesh,Spreaded) | |
4282 | game:GetService("Debris"):AddItem(Part,6) | |
4283 | local TheHit=Mouse.Hit.p | |
4284 | local MouseLook=cf((Prt.Position+TheHit)/2,TheHit+Spreaded) | |
4285 | local hit,pos = rayCast(Prt.Position,MouseLook.lookVector,1000,Parent) | |
4286 | so("Elec",Prt,0.2,1) | |
4287 | local tefprt=partB(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2)) | |
4288 | tefprt.CFrame=cf(pos) | |
4289 | MagicCircle(BrickColor.new("New Yeller"),cf(pos),0.5,0.5,0.5,0.5,0.5,0.5,0.04) | |
4290 | so("Elec",tefprt,0.3,1) | |
4291 | game:GetService("Debris"):AddItem(tefprt,3) | |
4292 | Part.CFrame=CFrame.new((Prt.Position+pos)/2,pos)*angles(1.57,0,0) | |
4293 | if(hit.Parent:findFirstChild("Humanoid")~= nil)then | |
4294 | if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then | |
4295 | hit.Parent.Humanoid:TakeDamage(MRANDOM(36,87)) | |
4296 | end | |
4297 | end | |
4298 | local mag=(Prt.Position-pos).magnitude | |
4299 | MagicCylinder(BrickColor.new("New Yeller"),Part.CFrame,1,mag*5,1,0.5,0,0.5,0.05) | |
4300 | Part.Parent=nil | |
4301 | end),efprt,efmsh,spread) | |
4302 | end | |
4303 | function FireAAAA() | |
4304 | ATTACK=true | |
4305 | ||
4306 | so("http://www.roblox.com/asset/?id=138083993",Barrel,1,1) | |
4307 | for i=0,3,0.3 do | |
4308 | LaserBarrage(Barrel,Shotgun) | |
4309 | end | |
4310 | for i=0,3,0.3 do | |
4311 | swait() | |
4312 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
4313 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
4314 | RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, 0.2) * angles(math.rad(120), math.rad(0), math.rad(-20)), 0.3) | |
4315 | LW.C0 = clerp(LW.C0, CFrame.new(-0.5, 0.5, -1.2) * angles(math.rad(140), math.rad(0), math.rad(40)), 0.3) | |
4316 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
4317 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-10)),.3) | |
4318 | end | |
4319 | for i=0,3,0.3 do | |
4320 | swait() | |
4321 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
4322 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
4323 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0.2) * angles(math.rad(90), math.rad(0), math.rad(-20)), 0.3) | |
4324 | LW.C0 = clerp(LW.C0, CFrame.new(-0.5, 0.5, -1.2) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.3) | |
4325 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
4326 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-10)),.3) | |
4327 | end | |
4328 | for i=0,3,0.3 do | |
4329 | swait() | |
4330 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
4331 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
4332 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(-10)), 0.3) | |
4333 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -1) * angles(math.rad(120), math.rad(0), math.rad(-10)), 0.3) | |
4334 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
4335 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-0)),.3) | |
4336 | end | |
4337 | so("http://www.roblox.com/asset/?id=131072992",Barrel,1,.8) | |
4338 | for i=0,3,0.3 do | |
4339 | swait() | |
4340 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
4341 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
4342 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(-20)), 0.3) | |
4343 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -1) * angles(math.rad(120), math.rad(0), math.rad(20)), 0.3) | |
4344 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
4345 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-0)),.3) | |
4346 | end | |
4347 | for i=0,3,0.3 do | |
4348 | swait() | |
4349 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
4350 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
4351 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(-10)), 0.3) | |
4352 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -1) * angles(math.rad(120), math.rad(0), math.rad(-20)), 0.3) | |
4353 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
4354 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-0)),.3) | |
4355 | end | |
4356 | ||
4357 | ||
4358 | ATTACK=false | |
4359 | end | |
4360 | function bosschatfunc(text,watval) | |
4361 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
4362 | coroutine.resume(coroutine.create(function() | |
4363 | if v.PlayerGui:FindFirstChild("Dialog")~= nil then | |
4364 | v.PlayerGui:FindFirstChild("Dialog"):destroy() | |
4365 | end | |
4366 | local scrg = Instance.new("ScreenGui",v.PlayerGui) | |
4367 | CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1) | |
4368 | scrg.Name = "Dialog" | |
4369 | --gui below | |
4370 | --text below | |
4371 | local txtlb = Instance.new("TextLabel",scrg) | |
4372 | txtlb.Text = "" | |
4373 | txtlb.Font = "Cartoon" | |
4374 | txtlb.TextColor3 = Color3.new(1,1,1) | |
4375 | txtlb.TextStrokeTransparency = 0 | |
4376 | txtlb.BackgroundTransparency = 1 | |
4377 | txtlb.BackgroundColor3 = Color3.new(0,0,0) | |
4378 | txtlb.TextStrokeColor3 = C3(0,0,0) | |
4379 | txtlb.TextScaled = true | |
4380 | txtlb.Size = UDim2.new(1,0,0.25,0) | |
4381 | txtlb.TextXAlignment = "Center" | |
4382 | txtlb.Position = UDim2.new(0,0,0.75 + 1,0) | |
4383 | coroutine.resume(coroutine.create(function() | |
4384 | while true do | |
4385 | swait() | |
4386 | end | |
4387 | end)) | |
4388 | local fvalen = 0.55 | |
4389 | local fval = -0.49 | |
4390 | coroutine.resume(coroutine.create(function() | |
4391 | while true do | |
4392 | swait() | |
4393 | if scrg.Parent ~= nil then | |
4394 | fvalen = fvalen - 0.0001 | |
4395 | elseif scrg.Parent == nil then | |
4396 | break | |
4397 | end | |
4398 | end | |
4399 | end)) | |
4400 | local flol = 1.75 | |
4401 | local flil = 1.6 | |
4402 | coroutine.resume(coroutine.create(function() | |
4403 | for i = 0, 9 do | |
4404 | swait() | |
4405 | fval = fval + 0.05 | |
4406 | flol = flol - 0.1 | |
4407 | flil = flil - 0.1 | |
4408 | txtlb.Text = "" | |
4409 | txtlb.Position = UDim2.new(0,0,flol,0) | |
4410 | end | |
4411 | txtlb.Text = text | |
4412 | wait(watval) | |
4413 | local valinc = 0 | |
4414 | for i = 0, 99 do | |
4415 | swait() | |
4416 | valinc = valinc + 0.0001 | |
4417 | flol = flol + valinc | |
4418 | flil = flil + valinc | |
4419 | txtlb.Rotation = txtlb.Rotation + valinc*20 | |
4420 | txtlb.Position = UDim2.new(0,0,flol,0) | |
4421 | txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01 | |
4422 | txtlb.TextTransparency = txtlb.TextTransparency + 0.01 | |
4423 | txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025 | |
4424 | end | |
4425 | scrg:Destroy() | |
4426 | end)) | |
4427 | end)) | |
4428 | end | |
4429 | end | |
4430 | function mafia() | |
4431 | ATTACK = true | |
4432 | CreateSound2("rbxassetid://2731402002", Character, 100, 1) | |
4433 | bosschatfunc("thats how mafia works",7) | |
4434 | for i = 0,38,0.1 do | |
4435 | swait() | |
4436 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 10),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5.5),math.rad(-1 - 2 * math.cos(sine / 10))),.1) | |
4437 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 10),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(5.5),math.rad(-1 + 2 * math.cos(sine / 10))),.1) | |
4438 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 10),0 + 0.1 * math.cos(sine / 10))*angles(math.rad(1 - 2 * math.cos(sine / 10)),math.rad(0),math.rad(0)),.1) | |
4439 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(3 - 3 * math.cos(sine / 40)),math.rad(0),math.rad(0 - 3 * math.cos(sine / 67))),.1) | |
4440 | RW.C0=clerp(RW.C0,cf(1.5,0.5 - 0.075 * math.cos(sine / 18),0)*angles(math.rad(8 + 8 * math.cos(sine / 35)),math.rad(0 + 2 * math.cos(sine / 31)),math.rad(5 + 4 * math.cos(sine / 32))),.1) | |
4441 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 - 0.075 * math.cos(sine / 18),0)*angles(math.rad(10 + 2 * math.cos(sine / 38)),math.rad(4 - 3 * math.cos(sine / 31)),math.rad(-140 - 2 * math.cos(sine / 25))),.1) | |
4442 | end | |
4443 | ATTACK = false | |
4444 | end | |
4445 | ||
4446 | ||
4447 | function FUCKYOU() | |
4448 | ATTACK = true | |
4449 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25) | |
4450 | for i = 0,6,0.1 do | |
4451 | swait() | |
4452 | sphereMK(2.5,-1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3.5,3.5,45,-0.035,BRICKC'Really red',100) | |
4453 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.2) | |
4454 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.2) | |
4455 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2) | |
4456 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.2) | |
4457 | RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2) | |
4458 | LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2) | |
4459 | end | |
4460 | CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1) | |
4461 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1) | |
4462 | CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1) | |
4463 | CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75) | |
4464 | CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1) | |
4465 | CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1) | |
4466 | CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1) | |
4467 | sick.TimePosition = 5 | |
4468 | SONG = 565439926 | |
4469 | Mode = "INSANE-H" | |
4470 | for i = 0,2,0.1 do | |
4471 | swait() | |
4472 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5) | |
4473 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5) | |
4474 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5) | |
4475 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.5) | |
4476 | RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.5) | |
4477 | LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.5) | |
4478 | end | |
4479 | ATTACK = false | |
4480 | end | |
4481 | --//=================================\\ | |
4482 | --|| ASSIGN THINGS TO KEYS | |
4483 | --\\=================================// | |
4484 | local AddInstance = function(Object, ...) | |
4485 | local Obj = Instance.new(Object) | |
4486 | for i,v in next,(...) do | |
4487 | Obj[i] = v | |
4488 | end | |
4489 | return Obj | |
4490 | end | |
4491 | ||
4492 | local TopHat = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hat", VT(1,1,1),false) | |
4493 | TopHat.Color = C3(0,0,0) | |
4494 | local HatWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, TopHat, CF(0,0.7,0), CF(0, 0, 0)) | |
4495 | CreateMesh("SpecialMesh", TopHat, "FileMesh", "", "", VT(1,1,1)*1.05, VT(0,0,0)) | |
4496 | ||
4497 | local Jevil = false | |
4498 | local SITTING = false | |
4499 | plr.Chatted:connect(function(message) | |
4500 | if message:sub(1,8) == "/e play " then | |
4501 | SONG = message:sub(9) | |
4502 | end | |
4503 | if message:sub(1,6) == "NOHATS" then | |
4504 | if Head:FindFirstChild("Jevil") then | |
4505 | Head.Jevil:Remove() | |
4506 | end | |
4507 | CreateMesh("SpecialMesh", TopHat, "FileMesh", "", "", VT(1,1,1)*1.05, VT(0,0,0)) | |
4508 | end | |
4509 | if message:sub(1,6) == "TOPHAT" then | |
4510 | if Mode ~= "Nuclear" then | |
4511 | CreateMesh("SpecialMesh", TopHat, "FileMesh", "1028713", "46542901", VT(1,1,1)*1.05, VT(0,0,0)) | |
4512 | else | |
4513 | CreateMesh("SpecialMesh", TopHat, "FileMesh", "1028713", "1563327", VT(1,1,1)*1.05, VT(0,0,0)) | |
4514 | end | |
4515 | end | |
4516 | if message:sub(1,17) == "I CAN DO ANYTHING" then | |
4517 | SONG = 2597271983 | |
4518 | if Jevil == false then | |
4519 | Jevil = true | |
4520 | local sound = Instance.new("Sound") | |
4521 | sound.SoundId = "rbxassetid://2544975373" | |
4522 | sound.Volume = 10 | |
4523 | sound.Parent = Head | |
4524 | sound:Play() | |
4525 | local Reaper = AddInstance("Part",{ | |
4526 | Parent = hed, | |
4527 | CFrame = hed.CFrame, | |
4528 | Name = "Jevil", | |
4529 | formFactor = "Symmetric", | |
4530 | Size = Vector3.new(1, 1, 1), | |
4531 | CanCollide = false, | |
4532 | TopSurface = "Smooth", | |
4533 | BottomSurface = "Smooth", | |
4534 | Locked = true, | |
4535 | }) | |
4536 | local Weld = AddInstance("Weld",{ | |
4537 | Parent = Reaper, | |
4538 | Part0 = hed, | |
4539 | C0 = CFrame.new(0, 0.8, 0.4)*CFrame.Angles(0, 0, 0), | |
4540 | Part1 = Reaper, | |
4541 | }) | |
4542 | local Mesh = AddInstance("SpecialMesh",{ | |
4543 | Parent = Reaper, | |
4544 | MeshId = "rbxassetid://193760002", | |
4545 | TextureId = "rbxassetid://89867215", | |
4546 | Scale = Vector3.new(1.1, 1.1, 1.1), | |
4547 | VertexColor = Vector3.new(0.5, 0.5, 0.5), | |
4548 | }) | |
4549 | end | |
4550 | end | |
4551 | if message:sub(1,13) == "GET REKT FOOL" then | |
4552 | CreateSound2("rbxassetid://1292661979", Character, 100, 1) | |
4553 | end | |
4554 | if message:sub(1,3) == "HEX" then | |
4555 | SONG = 1143128932 | |
4556 | end | |
4557 | if message:sub(1,2) == "DS" then | |
4558 | SONG = 1751171913 | |
4559 | end | |
4560 | if message:sub(1,21) == "thats how mafia works" then | |
4561 | mafia() | |
4562 | end | |
4563 | if message:sub(1,3) == "SIT" then | |
4564 | SITTING = true | |
4565 | end | |
4566 | if message:sub(1,5) == "NOSIT" then | |
4567 | SITTING = false | |
4568 | end | |
4569 | if message:sub(1,6) == "ah yes" then | |
4570 | SONG = 243199198 | |
4571 | end | |
4572 | if message:sub(1,30) == "I CANT BELIEVE YOUVE DONE THIS" then | |
4573 | CreateSound2("rbxassetid://527749592", Character, 100, 1) | |
4574 | end | |
4575 | if message:sub(1,4) == "AAAA" then | |
4576 | CreateSound2("rbxassetid://547868092", Character, 100, 1) | |
4577 | end | |
4578 | if message:sub(1,4) == "curb" then | |
4579 | SONG = 434976383 | |
4580 | sick.TimePosition = 0 | |
4581 | end | |
4582 | if message:sub(1,8) == "/e time " then | |
4583 | sick.TimePosition = message:sub(9) | |
4584 | end | |
4585 | end) | |
4586 | ||
4587 | function MouseDown(Mouse) | |
4588 | HOLD = true | |
4589 | if ATTACK == false then | |
4590 | if Mode == "Gun" then | |
4591 | shoot() | |
4592 | elseif Mode == "Gun-S" then | |
4593 | shoots() | |
4594 | elseif Mode == "Shotty" then | |
4595 | FireAAAA() | |
4596 | elseif Mode == "SMG" then | |
4597 | SmgTest() | |
4598 | elseif Mode == "SMG2" then | |
4599 | SmgTest2() | |
4600 | elseif Mode == "SMG3" then | |
4601 | SmgTest3() | |
4602 | elseif Mode == "DE" then | |
4603 | deag() | |
4604 | elseif Mode == "AK" then | |
4605 | AKS() | |
4606 | elseif Mode == "AR" then | |
4607 | AEA() | |
4608 | elseif Mode == "knif" then | |
4609 | stab() | |
4610 | elseif Mode == "AGB" then | |
4611 | AUGShoot() | |
4612 | elseif Mode == "AWP" then | |
4613 | Fire() | |
4614 | elseif Mode == "R8R" then | |
4615 | R8AS() | |
4616 | end | |
4617 | end | |
4618 | end | |
4619 | ||
4620 | function MouseUp(Mouse) | |
4621 | HOLD = false | |
4622 | end | |
4623 | ||
4624 | function KeyDown(Key) | |
4625 | KEYHOLD = true | |
4626 | ||
4627 | if Key == "p" then | |
4628 | bestmatesA() | |
4629 | end | |
4630 | if Key == "y" then | |
4631 | bestmatesB() | |
4632 | end | |
4633 | if Key == "u" then | |
4634 | cheekibreeki() | |
4635 | end | |
4636 | ||
4637 | if Key == "m" and ATTACK == false then | |
4638 | if Mode == "Nuclear" then | |
4639 | -- Nuclear = true | |
4640 | Mode = "Chronos" | |
4641 | SONG = 432493949 | |
4642 | elseif Mode == "Chronos" then | |
4643 | --Nuclear = false | |
4644 | Mode = "Nuclear" | |
4645 | SONG = 566809627 | |
4646 | end | |
4647 | end | |
4648 | ||
4649 | if Key == "n" and ATTACK == false then | |
4650 | if Mode == "Nuclear" then | |
4651 | FUCKYOU() | |
4652 | elseif Mode == "INSANE-H" then | |
4653 | --Nuclear = false | |
4654 | Mode = "Nuclear" | |
4655 | SONG = 566809627 | |
4656 | end | |
4657 | end | |
4658 | ||
4659 | ||
4660 | if Key == "b" and ATTACK == false then | |
4661 | if Mode == "Nuclear" then | |
4662 | sick.TimePosition = 0 | |
4663 | SONG = 2598224585 | |
4664 | Mode = "MARENOL" | |
4665 | elseif Mode == "MARENOL" then | |
4666 | --Nuclear = false | |
4667 | Mode = "Nuclear" | |
4668 | SONG = 566809627 | |
4669 | end | |
4670 | end | |
4671 | ||
4672 | ||
4673 | if Key == "v" and ATTACK == false then | |
4674 | if Mode == "Nuclear" then | |
4675 | SONG = 2297862957 | |
4676 | Mode = "Mutilated" | |
4677 | elseif Mode == "Mutilated" then | |
4678 | --Nuclear = false | |
4679 | Mode = "Nuclear" | |
4680 | SONG = 566809627 | |
4681 | end | |
4682 | end | |
4683 | if Key == "l" and ATTACK == false then | |
4684 | if Mode == "Nuclear" then | |
4685 | SONG = 776030196 | |
4686 | Mode = "S" | |
4687 | elseif Mode == "S" then | |
4688 | --Nuclear = false | |
4689 | Mode = "Nuclear" | |
4690 | SONG = 566809627 | |
4691 | end | |
4692 | end | |
4693 | ||
4694 | ||
4695 | if Key == "k" and ATTACK == false then | |
4696 | if Mode == "Nuclear" then | |
4697 | SONG = 1669069269 | |
4698 | Mode = "PIXEL" | |
4699 | sick.TimePosition = 0 | |
4700 | elseif Mode == "PIXEL" then | |
4701 | --Nuclear = false | |
4702 | Mode = "Nuclear" | |
4703 | SONG = 566809627 | |
4704 | end | |
4705 | end | |
4706 | ||
4707 | if Key == "j" and ATTACK == false then | |
4708 | if Mode == "Nuclear" then | |
4709 | SONG = 1041867225 | |
4710 | Mode = "G" | |
4711 | elseif Mode == "G" then | |
4712 | --Nuclear = false | |
4713 | Mode = "Nuclear" | |
4714 | SONG = 566809627 | |
4715 | end | |
4716 | end | |
4717 | --[[ | |
4718 | if Key == "m" and ATTACK == false then if Key == "c" and ATTACK == false then | |
4719 | if Mode == "Nuclear" then | |
4720 | Mode = "Chronos" | |
4721 | sick.TimePosition = 0 | |
4722 | SONG = 432493949 | |
4723 | elseif Mode == "Chronos" then | |
4724 | Mode = "Nuclear" | |
4725 | SONG = 566809627 | |
4726 | end | |
4727 | end | |
4728 | ]]-- | |
4729 | if Key == "q" and ATTACK == false then | |
4730 | if Nuclear == false and Mode == "Normal" then | |
4731 | Nuclear = true | |
4732 | Mode = "Nuclear" | |
4733 | CLOCKWORK2.BrickColor = BRICKC'Lime green' | |
4734 | --SONG = 566809627 | |
4735 | SONG = 1812212957 | |
4736 | elseif Nuclear == true and Mode == "Nuclear" then | |
4737 | Nuclear = false | |
4738 | Mode = "Normal" | |
4739 | CLOCKWORK2.BrickColor = BRICKC'Bright yellow' | |
4740 | SONG = 1175569393 | |
4741 | end | |
4742 | end | |
4743 | ||
4744 | if Key == "t" then | |
4745 | Humanoid.Health = Humanoid.Health - MRANDOM(78,560) | |
4746 | end | |
4747 | ||
4748 | if Key == "f" and ATTACK == false then | |
4749 | if Mode == "Normal" then | |
4750 | Gun.Parent = Character | |
4751 | Mode = "Gun" | |
4752 | SONG = 1632083717 | |
4753 | elseif Mode == "Gun" then | |
4754 | Gun.Parent = nil | |
4755 | Mode = "Normal" | |
4756 | SONG = 1175569393 | |
4757 | end | |
4758 | end | |
4759 | ||
4760 | if Key == "g" and ATTACK == false then | |
4761 | if Mode == "Gun" then | |
4762 | Mode = "Gun-S" | |
4763 | Supressor.Parent = Character | |
4764 | SONG = 742414504 | |
4765 | elseif Mode == "Gun-S" then | |
4766 | Supressor.Parent = nil | |
4767 | Mode = "Gun" | |
4768 | SONG = 1632083717 | |
4769 | end | |
4770 | end | |
4771 | ||
4772 | if Key == "g" and ATTACK == false then | |
4773 | if Mode == "Normal" then | |
4774 | Mode = "Shotty" | |
4775 | -- SHandaru.Transparency = 0 | |
4776 | Shotgun.Parent = Character | |
4777 | --GunModelMesh.MeshId = "http://www.roblox.com/asset/?id=450250994" | |
4778 | SONG = 1242541615 | |
4779 | elseif Mode == "Shotty" then | |
4780 | Shotgun.Parent = nil | |
4781 | --SHandaru.Transparency = 1 | |
4782 | --GunModelMesh.MeshId = "http://www.roblox.com/asset/?id=0" | |
4783 | Mode = "Normal" | |
4784 | SONG = 1175569393 | |
4785 | end | |
4786 | end | |
4787 | ||
4788 | if Key == "h" and ATTACK == false then | |
4789 | if Mode == "Normal" then | |
4790 | Mode = "SMG" | |
4791 | SMG.Parent = Character | |
4792 | SONG = 1684339203 | |
4793 | elseif Mode == "SMG" then | |
4794 | SMG.Parent = nil | |
4795 | Mode = "Normal" | |
4796 | SONG = 1175569393 | |
4797 | end | |
4798 | end | |
4799 | ||
4800 | if Key == "g" and ATTACK == false then | |
4801 | if Mode == "SMG" then | |
4802 | Mode = "SMG2" | |
4803 | SMG2.Parent = Character | |
4804 | SMG.Parent = nil | |
4805 | SONG = 1846938217 | |
4806 | elseif Mode == "SMG2" then | |
4807 | SMG2.Parent = nil | |
4808 | Mode = "SMG" | |
4809 | SMG.Parent = Character | |
4810 | SONG = 1684339203 | |
4811 | end | |
4812 | end | |
4813 | ||
4814 | if Key == "j" and ATTACK == false then | |
4815 | if Mode == "SMG" then | |
4816 | Mode = "SMG3" | |
4817 | SMG3.Parent = Character | |
4818 | SMG.Parent = nil | |
4819 | SONG = 856927010 | |
4820 | elseif Mode == "SMG3" then | |
4821 | SMG3.Parent = nil | |
4822 | Mode = "SMG" | |
4823 | SMG.Parent = Character | |
4824 | SONG = 1684339203 | |
4825 | end | |
4826 | end | |
4827 | if Key == "k" and ATTACK == false then | |
4828 | if Mode == "Normal" then | |
4829 | Mode = "AK" | |
4830 | A47.Parent = Character | |
4831 | SONG = 468448329 | |
4832 | elseif Mode == "AK" then | |
4833 | A47.Parent = nil | |
4834 | Mode = "Normal" | |
4835 | SONG = 1175569393 | |
4836 | end | |
4837 | end | |
4838 | ||
4839 | ||
4840 | if Key == "j" and ATTACK == false then | |
4841 | if Mode == "Normal" then | |
4842 | Mode = "DE" | |
4843 | DE.Parent = Character | |
4844 | SONG = 1473065092 | |
4845 | elseif Mode == "DE" then | |
4846 | DE.Parent = nil | |
4847 | Mode = "Normal" | |
4848 | SONG = 1175569393 | |
4849 | end | |
4850 | end | |
4851 | ||
4852 | if Key == "l" and ATTACK == false then | |
4853 | if Mode == "Normal" then | |
4854 | Mode = "knif" | |
4855 | knif.Parent = Character | |
4856 | SONG = 1583110657 | |
4857 | elseif Mode == "knif" then | |
4858 | knif.Parent = nil | |
4859 | Mode = "Normal" | |
4860 | SONG = 1175569393 | |
4861 | end | |
4862 | end | |
4863 | if Key == "m" and ATTACK == false then | |
4864 | if Mode == "Normal" then | |
4865 | Mode = "AGB" | |
4866 | AUG.Parent = Character | |
4867 | SONG = 1317272392 | |
4868 | elseif Mode == "AGB" then | |
4869 | AUG.Parent = nil | |
4870 | Mode = "Normal" | |
4871 | SONG = 1175569393 | |
4872 | end | |
4873 | end | |
4874 | ||
4875 | if Key == "n" and ATTACK == false then | |
4876 | if Mode == "Normal" then | |
4877 | Mode = "AWP" | |
4878 | AWP.Parent = Character | |
4879 | SONG = 2191904606 | |
4880 | elseif Mode == "AWP" then | |
4881 | AWP.Parent = nil | |
4882 | Mode = "Normal" | |
4883 | SONG = 1175569393 | |
4884 | end | |
4885 | end | |
4886 | ||
4887 | if Key == "b" and ATTACK == false then | |
4888 | if Mode == "Normal" then | |
4889 | Mode = "R8R" | |
4890 | R8RA.Parent = Character | |
4891 | SONG = 729622879 | |
4892 | elseif Mode == "R8R" then | |
4893 | R8RA.Parent = nil | |
4894 | Mode = "Normal" | |
4895 | SONG = 1175569393 | |
4896 | end | |
4897 | end | |
4898 | ||
4899 | if Key == "v" and ATTACK == false then | |
4900 | if Mode == "Normal" then | |
4901 | Mode = "INSANITY" | |
4902 | SONG = 943961217 | |
4903 | elseif Mode == "INSANITY" then | |
4904 | Mode = "Normal" | |
4905 | SONG = 1175569393 | |
4906 | end | |
4907 | end | |
4908 | ||
4909 | if Key == "c" and ATTACK == false then | |
4910 | if Mode == "Normal" then | |
4911 | Mode = "AR" | |
4912 | AR.Parent = Character | |
4913 | SONG = 1537357758 | |
4914 | elseif Mode == "AR" then | |
4915 | Mode = "Normal" | |
4916 | AR.Parent = nil | |
4917 | SONG = 1175569393 | |
4918 | end | |
4919 | end | |
4920 | end | |
4921 | ||
4922 | function KeyUp(Key) | |
4923 | KEYHOLD = false | |
4924 | end | |
4925 | ||
4926 | Mouse.Button1Down:connect(function(NEWKEY) | |
4927 | MouseDown(NEWKEY) | |
4928 | end) | |
4929 | Mouse.Button1Up:connect(function(NEWKEY) | |
4930 | MouseUp(NEWKEY) | |
4931 | end) | |
4932 | Mouse.KeyDown:connect(function(NEWKEY) | |
4933 | KeyDown(NEWKEY) | |
4934 | end) | |
4935 | Mouse.KeyUp:connect(function(NEWKEY) | |
4936 | KeyUp(NEWKEY) | |
4937 | end) | |
4938 | ||
4939 | --//=================================\\ | |
4940 | --\\=================================// | |
4941 | ||
4942 | ||
4943 | function unanchor() | |
4944 | if UNANCHOR == true then | |
4945 | g = Character:GetChildren() | |
4946 | for i = 1, #g do | |
4947 | if g[i].ClassName == "Part" then | |
4948 | g[i].Anchored = false | |
4949 | end | |
4950 | end | |
4951 | end | |
4952 | end | |
4953 | ||
4954 | ||
4955 | --//=================================\\ | |
4956 | --|| WRAP THE WHOLE SCRIPT UP | |
4957 | --\\=================================// | |
4958 | ||
4959 | Humanoid.Changed:connect(function(Jump) | |
4960 | if Jump == "Jump" and (Disable_Jump == true) then | |
4961 | Humanoid.Jump = false | |
4962 | end | |
4963 | end) | |
4964 | ||
4965 | local CONNECT = nil | |
4966 | Instance.new("ForceField",char).Visible = false | |
4967 | while true do | |
4968 | Swait() | |
4969 | ANIMATE.Parent = nil | |
4970 | if Character:FindFirstChildOfClass("Humanoid") == nil then | |
4971 | Humanoid = IT("Humanoid",Character) | |
4972 | end | |
4973 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
4974 | v:Stop(); | |
4975 | end | |
4976 | SINE = SINE + CHANGE | |
4977 | sine = sine + change | |
4978 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
4979 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
4980 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
4981 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
4982 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
4983 | ANIM = "Jump" | |
4984 | if ATTACK == false then | |
4985 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
4986 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
4987 | RW.C0=clerp(RW.C0,cf(1,0.45 - 0.075 * math.cos(sine / 18),0.5)*angles(math.rad(-26 + 3 * math.cos(sine / 38)),math.rad(0 + 2 * math.cos(sine / 31)),math.rad(-34 + 1 * math.cos(sine / 25))),.1) | |
4988 | LW.C0=clerp(LW.C0,cf(-1,0.45 - 0.075 * math.cos(sine / 18),0.5)*angles(math.rad(-26 + 3 * math.cos(sine / 38)),math.rad(0 - 2 * math.cos(sine / 31)),math.rad(34 - 1 * math.cos(sine / 25))),.1) | |
4989 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
4990 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
4991 | end | |
4992 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
4993 | ANIM = "Fall" | |
4994 | if ATTACK == false then | |
4995 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
4996 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
4997 | RW.C0=clerp(RW.C0,cf(1,0.45 - 0.075 * math.cos(sine / 18),0.5)*angles(math.rad(-26 + 3 * math.cos(sine / 38)),math.rad(0 + 2 * math.cos(sine / 31)),math.rad(-34 + 1 * math.cos(sine / 25))),.1) | |
4998 | LW.C0=clerp(LW.C0,cf(-1,0.45 - 0.075 * math.cos(sine / 18),0.5)*angles(math.rad(-26 + 3 * math.cos(sine / 38)),math.rad(0 - 2 * math.cos(sine / 31)),math.rad(34 - 1 * math.cos(sine / 25))),.1) | |
4999 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
5000 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
5001 | end | |
5002 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
5003 | ANIM = "Idle" | |
5004 | if ATTACK == false then | |
5005 | if Mode == "Gun" then | |
5006 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 20),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5.5),math.rad(-1 - 2 * math.cos(sine / 20))),.1) | |
5007 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 20),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(5.5),math.rad(-1 + 2 * math.cos(sine / 20))),.1) | |
5008 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 20),0 + 0.1 * math.cos(sine / 20))*angles(math.rad(1 - 2 * math.cos(sine / 20)),math.rad(0),math.rad(0)),.1) | |
5009 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(3 - 3 * math.cos(sine / 40)),math.rad(0),math.rad(0 - 3 * math.cos(sine / 67))),.1) | |
5010 | RW.C0=clerp(RW.C0,cf(1.5,0.5 - 0.075 * math.cos(sine / 18),0)*angles(math.rad(8 + 8 * math.cos(sine / 35)),math.rad(0 + 2 * math.cos(sine / 31)),math.rad(14 + 4 * math.cos(sine / 22))),.1) | |
5011 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 - 0.075 * math.cos(sine / 18),0)*angles(math.rad(10 + 2 * math.cos(sine / 38)),math.rad(4 - 3 * math.cos(sine / 31)),math.rad(-7 - 2 * math.cos(sine / 25))),.1) | |
5012 | elseif Mode == "Normal" then | |
5013 | if not SITTING then | |
5014 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 20),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5.5),math.rad(-1 - 2 * math.cos(sine / 20))),.1) | |
5015 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 20),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(5.5),math.rad(-1 + 2 * math.cos(sine / 20))),.1) | |
5016 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 20),0 + 0.1 * math.cos(sine / 20))*angles(math.rad(1 - 2 * math.cos(sine / 20)),math.rad(0),math.rad(0)),.1) | |
5017 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(3 - 3 * math.cos(sine / 40)),math.rad(0),math.rad(0 - 3 * math.cos(sine / 67))),.1) | |
5018 | RW.C0=clerp(RW.C0,cf(1.5,0.5 - 0.075 * math.cos(sine / 18),0)*angles(math.rad(8 + 8 * math.cos(sine / 35)),math.rad(0 + 2 * math.cos(sine / 31)),math.rad(14 + 4 * math.cos(sine / 22))),.1) | |
5019 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 - 0.075 * math.cos(sine / 18),0)*angles(math.rad(10 + 2 * math.cos(sine / 38)),math.rad(4 - 3 * math.cos(sine / 31)),math.rad(-7 - 2 * math.cos(sine / 25))),.1) | |
5020 | else | |
5021 | RW.C0 = clerp(RW.C0, CF(1.5, .5, 0) * angles(math.rad(45), math.rad(-3), math.rad(-10)), 0.1) | |
5022 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(5), math.rad(20)), 0.1) | |
5023 | LH.C0 = clerp(LH.C0, CF(-0.3, -1.5, 0) * angles(math.rad(100), math.rad(0), math.rad(-10)), 0.1) | |
5024 | RH.C0 = clerp(RH.C0, CF(0.3, -1.5, 0) * angles(math.rad(100), math.rad(0), math.rad(10)), 0.1) | |
5025 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.6) * angles(math.rad(10 - 1.8 * math.cos(sine / 32)), math.rad(0), math.rad(0)), 0.1) | |
5026 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(30 - 2.5 * math.cos(sine / 20)), math.rad(0 - 5 * math.cos(sine / 32)), math.rad(0 - 5 * math.cos(sine / 32))), 0.1) | |
5027 | end | |
5028 | elseif Mode == "SMG" then | |
5029 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 20),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5.5),math.rad(-1 - 2 * math.cos(sine / 20))),.1) | |
5030 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 20),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(5.5),math.rad(-1 + 2 * math.cos(sine / 20))),.1) | |
5031 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 20),0 + 0.1 * math.cos(sine / 20))*angles(math.rad(1 - 2 * math.cos(sine / 20)),math.rad(0),math.rad(0)),.1) | |
5032 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(3 - 3 * math.cos(sine / 40)),math.rad(0),math.rad(0 - 3 * math.cos(sine / 67))),.1) | |
5033 | RW.C0=clerp(RW.C0,cf(1.5,0.5 - 0.075 * math.cos(sine / 18),0)*angles(math.rad(170 + 8 * math.cos(sine / 35)),math.rad(0 + 2 * math.cos(sine / 31)),math.rad(14 + 4 * math.cos(sine / 22))),.1) | |
5034 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 - 0.075 * math.cos(sine / 18),0)*angles(math.rad(170 + 2 * math.cos(sine / 38)),math.rad(4 - 3 * math.cos(sine / 31)),math.rad(-7 - 2 * math.cos(sine / 25))),.1) | |
5035 | elseif Mode == "SMG2" then | |
5036 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 20),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5.5),math.rad(-1 - 2 * math.cos(sine / 20))),.1) | |
5037 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 20),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(5.5),math.rad(-1 + 2 * math.cos(sine / 20))),.1) | |
5038 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 20),0 + 0.1 * math.cos(sine / 20))*angles(math.rad(1 - 2 * math.cos(sine / 20)),math.rad(0),math.rad(0)),.1) | |
5039 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(3 - 3 * math.cos(sine / 40)),math.rad(0),math.rad(0 - 3 * math.cos(sine / 67))),.1) | |
5040 | RW.C0=clerp(RW.C0,cf(1.5,0.5 - 0.075 * math.cos(sine / 18),0)*angles(math.rad(170 + 8 * math.cos(sine / 35)),math.rad(0 + 2 * math.cos(sine / 31)),math.rad(14 + 4 * math.cos(sine / 22))),.1) | |
5041 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 - 0.075 * math.cos(sine / 18),0)*angles(math.rad(170 + 2 * math.cos(sine / 38)),math.rad(4 - 3 * math.cos(sine / 31)),math.rad(-7 - 2 * math.cos(sine / 25))),.1) | |
5042 | elseif Mode == "SMG3" then | |
5043 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 20),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5.5),math.rad(-1 - 2 * math.cos(sine / 20))),.1) | |
5044 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 20),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(5.5),math.rad(-1 + 2 * math.cos(sine / 20))),.1) | |
5045 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 20),0 + 0.1 * math.cos(sine / 20))*angles(math.rad(1 - 2 * math.cos(sine / 20)),math.rad(0),math.rad(0)),.1) | |
5046 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(3 - 3 * math.cos(sine / 40)),math.rad(0),math.rad(0 - 3 * math.cos(sine / 67))),.1) | |
5047 | RW.C0=clerp(RW.C0,cf(1.5,0.5 - 0.075 * math.cos(sine / 18),0)*angles(math.rad(150 + 8 * math.cos(sine / 35)),math.rad(0 + 2 * math.cos(sine / 31)),math.rad(14 + 4 * math.cos(sine / 22))),.1) | |
5048 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 - 0.075 * math.cos(sine / 18),0)*angles(math.rad(150 + 2 * math.cos(sine / 38)),math.rad(4 - 3 * math.cos(sine / 31)),math.rad(-7 - 2 * math.cos(sine / 25))),.1) | |
5049 | elseif Mode == "PIXEL" then | |
5050 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1) | |
5051 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1) | |
5052 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1) | |
5053 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(10 + 2 * math.cos(sine / 53))),.1) | |
5054 | RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-33 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-33 + 3 * math.cos(sine / 45))),.1) | |
5055 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(33 - 3 * math.cos(sine / 45))),.1) | |
5056 | elseif Mode == "Gun-S" then | |
5057 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 20),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5.5),math.rad(-1 - 2 * math.cos(sine / 20))),.1) | |
5058 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 20),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(5.5),math.rad(-1 + 2 * math.cos(sine / 20))),.1) | |
5059 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 20),0 + 0.1 * math.cos(sine / 20))*angles(math.rad(1 - 2 * math.cos(sine / 20)),math.rad(0),math.rad(0)),.1) | |
5060 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(3 - 3 * math.cos(sine / 40)),math.rad(0),math.rad(0 - 3 * math.cos(sine / 67))),.1) | |
5061 | RW.C0=clerp(RW.C0,cf(1.5,0.5 - 0.075 * math.cos(sine / 18),0)*angles(math.rad(170 + 8 * math.cos(sine / 35)),math.rad(0 + 2 * math.cos(sine / 31)),math.rad(14 + 4 * math.cos(sine / 22))),.1) | |
5062 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 - 0.075 * math.cos(sine / 18),0)*angles(math.rad(10 + 2 * math.cos(sine / 38)),math.rad(4 - 3 * math.cos(sine / 31)),math.rad(-7 - 2 * math.cos(sine / 25))),.1) | |
5063 | elseif Mode == "DE" then | |
5064 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 20),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5.5),math.rad(-1 - 2 * math.cos(sine / 20))),.1) | |
5065 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 20),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(5.5),math.rad(-1 + 2 * math.cos(sine / 20))),.1) | |
5066 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 20),0 + 0.1 * math.cos(sine / 20))*angles(math.rad(1 - 2 * math.cos(sine / 20)),math.rad(0),math.rad(0)),.1) | |
5067 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(3 - 3 * math.cos(sine / 40)),math.rad(0),math.rad(0 - 3 * math.cos(sine / 67))),.1) | |
5068 | RW.C0=clerp(RW.C0,cf(1.5,0.5 - 0.075 * math.cos(sine / 18),0)*angles(math.rad(30 + 8 * math.cos(sine / 35)),math.rad(0 + 2 * math.cos(sine / 31)),math.rad(14 + 4 * math.cos(sine / 22))),.1) | |
5069 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 - 0.075 * math.cos(sine / 18),0)*angles(math.rad(10 + 2 * math.cos(sine / 38)),math.rad(4 - 3 * math.cos(sine / 31)),math.rad(-7 - 2 * math.cos(sine / 25))),.1) | |
5070 | elseif Mode == "knif" then | |
5071 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 20),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5.5),math.rad(-1 - 2 * math.cos(sine / 20))),.1) | |
5072 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 20),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(5.5),math.rad(-1 + 2 * math.cos(sine / 20))),.1) | |
5073 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 20),0 + 0.1 * math.cos(sine / 20))*angles(math.rad(1 - 2 * math.cos(sine / 20)),math.rad(0),math.rad(0)),.1) | |
5074 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(3 - 3 * math.cos(sine / 40)),math.rad(0),math.rad(0 - 3 * math.cos(sine / 67))),.1) | |
5075 | RW.C0=clerp(RW.C0,cf(1.5,0.5 - 0.075 * math.cos(sine / 18),0)*angles(math.rad(30 + 8 * math.cos(sine / 35)),math.rad(0 + 2 * math.cos(sine / 31)),math.rad(14 + 4 * math.cos(sine / 22))),.1) | |
5076 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 - 0.075 * math.cos(sine / 18),0)*angles(math.rad(10 + 2 * math.cos(sine / 38)),math.rad(4 - 3 * math.cos(sine / 31)),math.rad(-7 - 2 * math.cos(sine / 25))),.1) | |
5077 | elseif Mode == "AGB" then | |
5078 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 20),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5.5),math.rad(-1 - 2 * math.cos(sine / 20))),.1) | |
5079 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 20),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(5.5),math.rad(-1 + 2 * math.cos(sine / 20))),.1) | |
5080 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 20),0 + 0.1 * math.cos(sine / 20))*angles(math.rad(1 - 2 * math.cos(sine / 20)),math.rad(0),math.rad(0)),.1) | |
5081 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(3 - 3 * math.cos(sine / 40)),math.rad(0),math.rad(0 - 3 * math.cos(sine / 67))),.1) | |
5082 | RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.8, 0.7) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.3) | |
5083 | LW.C0 = clerp(LW.C0, CFrame.new(-0.15, 0.5, -0.65) * angles(math.rad(90), math.rad(12), math.rad(50)), 0.3) | |
5084 | elseif Mode == "Shotty" then | |
5085 | RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.8, 0.7) * angles(math.rad(90), math.rad(0), math.rad(15)), 0.3) | |
5086 | LW.C0 = clerp(LW.C0, CFrame.new(-0.15, 0.5, -0.65) * angles(math.rad(90), math.rad(12), math.rad(50)), 0.3) | |
5087 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 20),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3 - 1 * math.cos(sine / 20)),math.rad(-5.5),math.rad(-1 - 2 * math.cos(sine / 20))),.1) | |
5088 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 20),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 20)),math.rad(10),math.rad(-1 + 2 * math.cos(sine / 20))),.1) | |
5089 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 20),0 + 0.1 * math.cos(sine / 20))*angles(math.rad(1 - 2 * math.cos(sine / 20)),math.rad(0),math.rad(-13)),.1) | |
5090 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(12 + 3 * math.cos(sine / 25)),math.rad(-10),math.rad(13 - 3 * math.cos(sine / 67))),.1) | |
5091 | elseif Mode == "AK" then | |
5092 | RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.8, 0.7) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.3) | |
5093 | LW.C0 = clerp(LW.C0, CFrame.new(-0.15, 0.5, -0.65) * angles(math.rad(90), math.rad(12), math.rad(50)), 0.3) | |
5094 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 20),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3 - 1 * math.cos(sine / 20)),math.rad(-5.5),math.rad(-1 - 2 * math.cos(sine / 20))),.1) | |
5095 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 20),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 20)),math.rad(10),math.rad(-1 + 2 * math.cos(sine / 20))),.1) | |
5096 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 20),0 + 0.1 * math.cos(sine / 20))*angles(math.rad(1 - 2 * math.cos(sine / 20)),math.rad(0),math.rad(-13)),.1) | |
5097 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(12 + 3 * math.cos(sine / 25)),math.rad(0),math.rad(13 - 3 * math.cos(sine / 67))),.1) | |
5098 | elseif Mode == "AWP" then | |
5099 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
5100 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
5101 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
5102 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(-40),math.rad(0)),.1) | |
5103 | RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.8 - 0.05 * math.cos(sine / 28), 0.7) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.3) | |
5104 | LW.C0 = clerp(LW.C0, CFrame.new(-0.15, 0.5 - 0.05 * math.cos(sine / 28), -0.65) * angles(math.rad(90), math.rad(12), math.rad(50)), 0.3) | |
5105 | elseif Mode == "R8R" then | |
5106 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
5107 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
5108 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
5109 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
5110 | RW.C0=clerp(RW.C0,cf(0.8,0.5 + 0.1 * math.cos(sine / 28),-.65)*angles(math.rad(90),math.rad(0),math.rad(-30)),.1) | |
5111 | LW.C0=clerp(LW.C0,cf(-0.8,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(90),math.rad(0),math.rad(30)),.1) | |
5112 | elseif Mode == "AR" then | |
5113 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 20),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5.5),math.rad(-1 - 2 * math.cos(sine / 20))),.1) | |
5114 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 20),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(5.5),math.rad(-1 + 2 * math.cos(sine / 20))),.1) | |
5115 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 20),0 + 0.1 * math.cos(sine / 20))*angles(math.rad(1 - 2 * math.cos(sine / 20)),math.rad(0),math.rad(0)),.1) | |
5116 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(3 - 3 * math.cos(sine / 40)),math.rad(0),math.rad(0 - 3 * math.cos(sine / 67))),.1) | |
5117 | RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.8, 0.7) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.3) | |
5118 | LW.C0 = clerp(LW.C0, CFrame.new(-0.15, 0.5, -0.65) * angles(math.rad(90), math.rad(12), math.rad(50)), 0.3) | |
5119 | elseif Mode == "INSANITY" then | |
5120 | if MRANDOM(1,14) == 1 then | |
5121 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(MRANDOM(-34,25), MRANDOM(-25,25), MRANDOM(-25,25)) * angles(Rad(Mrandom(-180,180)), Rad(Mrandom(-180,180)), Rad(Mrandom(-180,180))), 0.15) | |
5122 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * CF(MRANDOM(-34,34), MRANDOM(-25,25), MRANDOM(-25,25)) * angles(Rad(Mrandom(-25,25)), Rad(Mrandom(-165,165)), Rad(Mrandom(-155,155))), 1) | |
5123 | RW.C0 = clerp(RW.C0, CF(MRANDOM(-34,34), MRANDOM(-34,35), MRANDOM(-31,33)) * angles(Rad(Mrandom(-90,90)), Rad(0), Rad(Mrandom(-90,90))), 0.1) | |
5124 | LW.C0 = clerp(LW.C0, CF(MRANDOM(-34,38), MRANDOM(-31,33), MRANDOM(-32,30)) * angles(Rad(Mrandom(-90,90)), Rad(0), Rad(Mrandom(-90,90))), 0.1) | |
5125 | RH.C0 = clerp(RH.C0, CF(MRANDOM(-24,24), MRANDOM(-26,23), MRANDOM(-23,20)) * RHCF * angles(Rad(Mrandom(-90,90)), Rad(0), Rad(Mrandom(-90,90))), 0.15) | |
5126 | LH.C0 = clerp(LH.C0, CF(MRANDOM(-24,24), MRANDOM(-27,23), MRANDOM(-23,23)) * LHCF * angles(Rad(Mrandom(-90,90)), Rad(0), Rad(Mrandom(-90,90))), 0.15) | |
5127 | end | |
5128 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(Mrandom(-90,90)), Rad(0), Rad(Mrandom(-90,90))), 0.15) | |
5129 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(Mrandom(-65,65)), Rad(Mrandom(-65,65)), Rad(Mrandom(-65,65))), 1) | |
5130 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(Mrandom(-90,90)), Rad(0), Rad(Mrandom(-90,90))), 0.1) | |
5131 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(Mrandom(-90,90)), Rad(0), Rad(Mrandom(-90,90))), 0.1) | |
5132 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(Mrandom(-90,90)), Rad(0), Rad(Mrandom(-90,90))), 0.15) | |
5133 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(Mrandom(-90,90)), Rad(0), Rad(Mrandom(-90,90))), 0.15) | |
5134 | elseif Mode == "S" then | |
5135 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 20),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5.5 - 2 * math.cos(sine / 56)),math.rad(-12 - 2 * math.cos(sine / 32))),.1) | |
5136 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 20),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-6),math.rad(22 - 2 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1) | |
5137 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 32),0 + 0.1 * math.cos(sine / 20))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-22 + 2 * math.cos(sine / 56))),.1) | |
5138 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(17 - 2 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 43) - 2 * math.cos(sine / 0.25)),math.rad(6 - 2 * math.cos(sine / 56))),.1) | |
5139 | RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 40),0.45)*angles(math.rad(-30),math.rad(0),math.rad(-30)),.1) | |
5140 | LW.C0=clerp(LW.C0,cf(-0.85,0.49 + 0.05 * math.cos(sine / 40),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 58)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 40))),.1) | |
5141 | elseif Mode == "Nuclear" then | |
5142 | if MRANDOM(1,23) == 1 then | |
5143 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-35,35) - 4 * COS(SINE / 12)), RAD(MRANDOM(-35,35)), RAD(0)), 1.5 / Animation_Speed) | |
5144 | end | |
5145 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 - 0.15 * COS(SINE / 12)) * ANGLES(RAD(0 - 2 * COS(sine / 32)),RAD(0),RAD(0)), 0.15 / Animation_Speed) | |
5146 | Neck.C0 = Clerp(Neck.C0, NECKC0*ANGLES(RAD(19 - 2 * COS(sine / 37)),RAD(0 + 5 * math.cos(sine / 55)),math.rad(0)), 0.15 / Animation_Speed) | |
5147 | WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
5148 | WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
5149 | RW.C0 = Clerp(RW.C0, CF(1.5, 0.5 - 0.15 * COS(SINE / 12), 0)*ANGLES(math.rad(2 + 11 * math.cos(sine / 73)),math.rad(18 - 6 * math.cos(sine / 57)),math.rad(17 + 5 * math.cos(sine / 52))), 0.15 / Animation_Speed) | |
5150 | LW.C0 = Clerp(LW.C0, CF(-1.5,0.5 - 0.15 * COS(SINE / 12),0)*ANGLES(math.rad(2 + 11 * math.cos(sine / 73)),math.rad(-18 + 6 * math.cos(sine / 57)),math.rad(-17 - 1 * math.cos(sine / 52))), 0.15 / Animation_Speed) | |
5151 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
5152 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
5153 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.55,0.55,0.55), Size2 = VT(0.5,3.6,0.5), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10}) | |
5154 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.55,0.55,0.55), Size2 = VT(0.5,3.6,0.5), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10}) | |
5155 | ||
5156 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.55,0.55,0.55), Size2 = VT(0.5,3.6,0.5), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10}) | |
5157 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.55,0.55,0.55), Size2 = VT(0.5,3.6,0.5), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10}) | |
5158 | elseif Mode == "MARENOL" then | |
5159 | if MRANDOM(1,33) == 1 then | |
5160 | CharacterFade(C3(1,0,0),65,R_RANDOM(Torso.CFrame,0.5).p) | |
5161 | end | |
5162 | if MRANDOM(1,23) == 1 then | |
5163 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-75,75) - 4 * COS(SINE / 12)), RAD(MRANDOM(-75,75)), RAD(0)), 1.5 / Animation_Speed) | |
5164 | end | |
5165 | RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),-0.2)*angles(math.rad(130 + 6 * math.cos(sine / 72) + MRANDOM(-20,20)),math.rad(3 - 2 * math.cos(sine / 58) + MRANDOM(-20,20)),math.rad(-38 + 2 * math.cos(sine / 45) + MRANDOM(-20,20))),.1) | |
5166 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.2)*angles(math.rad(130 - 7 * math.cos(sine / 66) + MRANDOM(-20,20)),math.rad(4 - 3 * math.cos(sine / 59) + MRANDOM(-20,20)),math.rad(33 - 4 * math.cos(sine / 45) + MRANDOM(-20,20))),.1) | |
5167 | RootJoint.C0 = clerp2(RootJoint.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -1.6 + 0.1 * Player_Size * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(0)), 0.1) | |
5168 | Neck.C0 = clerp2(Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(30 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.1) | |
5169 | RightHip.C0 = clerp2(RightHip.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(35), Rad(85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(75)), 0.1) | |
5170 | LeftHip.C0 = clerp2(LeftHip.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(35), Rad(-85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(-75)), 0.1) | |
5171 | elseif Mode == "Mutilated" then | |
5172 | if MRANDOM(1,7) == 1 then | |
5173 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-55,55) - 4 * COS(SINE / 12)), RAD(MRANDOM(-55,55)), RAD(0)), 1.5 / Animation_Speed) | |
5174 | end | |
5175 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1) | |
5176 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1) | |
5177 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.02 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(2 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 44))),.1) | |
5178 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1) | |
5179 | RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(79 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-87 + 2 * math.cos(sine / 45))),.1) | |
5180 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(79 - 4 * math.cos(sine / 45))),.1) | |
5181 | elseif Mode == "G" then | |
5182 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 20),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1) | |
5183 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 20),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1) | |
5184 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),-0.1 + 0.1 * math.cos(sine / 20))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1) | |
5185 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(10 + 2 * math.cos(sine / 53))),.1) | |
5186 | RW.C0=clerp(RW.C0,cf(0.75,0.5 + 0.025 * math.cos(sine / 45),-0.75)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-84 + 3 * math.cos(sine / 45))),.1) | |
5187 | LW.C0=clerp(LW.C0,cf(-0.8,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(12 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(87 - 3 * math.cos(sine / 45))),.1) | |
5188 | elseif Mode == "INSANE-H" then | |
5189 | local snap = math.random(1,75) | |
5190 | if snap == 1 then | |
5191 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 + math.random(-60,60)),math.rad(math.random(-60,60)),math.rad(math.random(-60,60))),0.6) | |
5192 | RW.C0=clerp(RW.C0,cf(1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 + 5 * math.cos(sine / 74) + math.random(-60,60)),math.rad(1 - 3 * math.cos(sine / 53) + math.random(-1,1)),math.rad(-15 + 3 * math.cos(sine / 45) + math.random(-60,60))),.6) | |
5193 | LW.C0=clerp(LW.C0,cf(-1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73) + math.random(-60,60)),math.rad(2 - 1 * math.cos(sine / 55) + math.random(-60,60)),math.rad(15 - 3 * math.cos(sine / 45) + math.random(-60,60))),.6) | |
5194 | end | |
5195 | RH.C0=clerp(RH.C0,cf(0,-1.125 - 0.05 * math.cos(sine / 32),-0.6)*angles(math.rad(-105),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-25 + 2 * math.cos(sine / 32))),.1) | |
5196 | LH.C0=clerp(LH.C0,cf(-1,-1.125 - 0.05 * math.cos(sine / 32),-0.6)*angles(math.rad(-105),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-25 + 2 * math.cos(sine / 32))),.1) | |
5197 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.3 + 0.05 * math.cos(sine / 32))*angles(math.rad(7.5 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1) | |
5198 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1) | |
5199 | RW.C0=clerp(RW.C0,cf(1.3,0.5,0)*angles(math.rad(180 + math.random(-9,9)),math.rad(-90 + math.random(-9,9)),math.rad(15 + math.random(-9,9)))*angles(math.rad(-35 + math.random(-9,9)),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.252) + math.random(-9,9)),math.rad(0 + 2.5 * math.cos(sine / 0.123) + math.random(-9,9)),math.rad(5 + 2.5 * math.cos(sine / 0.6) + math.random(-9,9)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25 + math.random(-9,9))),math.rad(0 - 15 * math.cos(sine / 0.465) + math.random(-9,9))),.1) | |
5200 | LW.C0=clerp(LW.C0,cf(-1.3,0.5,0)*angles(math.rad(180 + math.random(-9,9)),math.rad(90 + math.random(-9,9)),math.rad(-15 + math.random(-9,9)))*angles(math.rad(-35 + math.random(-9,9)),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.568) + math.random(-9,9)),math.rad(0 + 2.5 * math.cos(sine / 0.664) + math.random(-9,9)),math.rad(-5 + 2.5 * math.cos(sine / 0.23) + math.random(-9,9)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25) + math.random(-9,9)),math.rad(0 - 15 * math.cos(sine / 0.465) + math.random(-9,9))),.1) | |
5201 | elseif Mode == "Chronos" then | |
5202 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.15 * COS(SINE / 8)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
5203 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(1 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
5204 | RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-33 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-33 + 3 * math.cos(sine / 45))),.1) | |
5205 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(33 - 3 * math.cos(sine / 45))),.1) | |
5206 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 8), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
5207 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / 8), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
5208 | end | |
5209 | end | |
5210 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
5211 | ANIM = "Walk" | |
5212 | if ATTACK == false then | |
5213 | if Mode ~= "SMG" and Mode ~= "knif" and Mode ~= "INSANITY" and Mode ~= "SMG2" and Mode ~= "SMG3" then | |
5214 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15) | |
5215 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-1), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.15) | |
5216 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 15 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
5217 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 15 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
5218 | if Mode ~= "R8R" and Mode ~= "Shotty" then | |
5219 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(56) * Cos(sine / 7) , Rad(10 * Cos(sine / 7)), Rad(6) - ra.RotVelocity.Y / 75), 0.1) | |
5220 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-56) * Cos(sine / 7) , Rad(10 * Cos(sine / 7)) , Rad(-6) + la.RotVelocity.Y / 75), 0.1) | |
5221 | --RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 50 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 4))),.1) | |
5222 | --LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 50 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1) | |
5223 | elseif Mode == "R8R" then | |
5224 | RW.C0=clerp(RW.C0,cf(0.8,0.5 + 0.1 * math.cos(sine / 28),-.65)*angles(math.rad(90),math.rad(0),math.rad(-30)),.1) | |
5225 | LW.C0=clerp(LW.C0,cf(-0.8,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(90),math.rad(0),math.rad(30)),.1) | |
5226 | elseif Mode == "Shotty" then | |
5227 | RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.8, 0.7) * angles(math.rad(90), math.rad(0), math.rad(15)), 0.3) | |
5228 | LW.C0 = clerp(LW.C0, CFrame.new(-0.15, 0.5, -0.65) * angles(math.rad(90), math.rad(12), math.rad(50)), 0.3) | |
5229 | end | |
5230 | else | |
5231 | if Mode ~= "INSANITY" then | |
5232 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(20 - 2.5 * Cos(sine / 3.5)), Rad(0), Rad(0)), 0.15) | |
5233 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20), Rad(0), Rad(0)), 0.3) | |
5234 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.925 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
5235 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.925 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
5236 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-65), Rad(0), Rad(25)), 0.1) | |
5237 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-65), Rad(0), Rad(-25)), 0.1) | |
5238 | else | |
5239 | if MRANDOM(1,12) == 1 then | |
5240 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(MRANDOM(-34,25), MRANDOM(-25,25), MRANDOM(-25,25)) * angles(Rad(Mrandom(-180,180)), Rad(Mrandom(-180,180)), Rad(Mrandom(-180,180))), 0.15) | |
5241 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * CF(MRANDOM(-34,34), MRANDOM(-25,25), MRANDOM(-25,25)) * angles(Rad(Mrandom(-25,25)), Rad(Mrandom(-165,165)), Rad(Mrandom(-155,155))), 1) | |
5242 | RW.C0 = clerp(RW.C0, CF(MRANDOM(-34,34), MRANDOM(-34,35), MRANDOM(-31,33)) * angles(Rad(Mrandom(-90,90)), Rad(0), Rad(Mrandom(-90,90))), 0.1) | |
5243 | LW.C0 = clerp(LW.C0, CF(MRANDOM(-34,38), MRANDOM(-31,33), MRANDOM(-32,30)) * angles(Rad(Mrandom(-90,90)), Rad(0), Rad(Mrandom(-90,90))), 0.1) | |
5244 | RH.C0 = clerp(RH.C0, CF(MRANDOM(-24,24), MRANDOM(-26,23), MRANDOM(-23,20)) * RHCF * angles(Rad(Mrandom(-90,90)), Rad(0), Rad(Mrandom(-90,90))), 0.15) | |
5245 | LH.C0 = clerp(LH.C0, CF(MRANDOM(-24,24), MRANDOM(-27,23), MRANDOM(-23,23)) * LHCF * angles(Rad(Mrandom(-90,90)), Rad(0), Rad(Mrandom(-90,90))), 0.15) | |
5246 | end | |
5247 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(Mrandom(-90,90)), Rad(0), Rad(Mrandom(-90,90))), 0.15) | |
5248 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(Mrandom(-65,65)), Rad(Mrandom(-65,65)), Rad(Mrandom(-65,65))), 1) | |
5249 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(Mrandom(-90,90)), Rad(0), Rad(Mrandom(-90,90))), 0.1) | |
5250 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(Mrandom(-90,90)), Rad(0), Rad(Mrandom(-90,90))), 0.1) | |
5251 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(Mrandom(-90,90)), Rad(0), Rad(Mrandom(-90,90))), 0.15) | |
5252 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(Mrandom(-90,90)), Rad(0), Rad(Mrandom(-90,90))), 0.15) | |
5253 | end | |
5254 | end | |
5255 | end | |
5256 | end | |
5257 | if Mode == "Nuclear" or Mode == "Chronos" then | |
5258 | CLOCKWORK2.BrickColor = BRICKC'Lime green' | |
5259 | elseif Mode == "INSANE-H" or Mode == "MARENOL" then | |
5260 | CLOCKWORK2.Color = C3(MRANDOM(-255,255),0,0) | |
5261 | elseif Mode == "PIXEL" then | |
5262 | CLOCKWORK2.BrickColor = BRICKC'Steel blue' | |
5263 | elseif Mode == "S" then | |
5264 | CLOCKWORK2.BrickColor = BRICKC'Toothpaste' | |
5265 | elseif Mode == "G" then | |
5266 | CLOCKWORK2.BrickColor = BRICKC'Institutional hite' | |
5267 | elseif Mode == "Mutilated" then | |
5268 | CLOCKWORK2.BrickColor = BrickColor.random() | |
5269 | elseif Mode ~= "Nuclear" or Mode ~= "Chronos" or Mode ~= "INSANE-H" or Mode ~= "MARENOL" or Mode ~= "S" or Mode ~= "PIXEL" or Mode ~= "Mutilated" or Mode ~= "G" then | |
5270 | CLOCKWORK2.BrickColor = BRICKC'Bright yellow' | |
5271 | end | |
5272 | if Mode ~= "G" then | |
5273 | CLOCKWORK2.Transparency = 0 | |
5274 | OUTSIDE.Transparency = 0 | |
5275 | BELT.Transparency = 0 | |
5276 | char.Head.Transparency = 0 | |
5277 | char["Left Arm"].Transparency = 0 | |
5278 | char["Left Leg"].Transparency = 0 | |
5279 | char["Right Arm"].Transparency = 0 | |
5280 | char["Right Leg"].Transparency = 0 | |
5281 | char.Torso.Transparency = 0 | |
5282 | else | |
5283 | CLOCKWORK2.Transparency = 0.65 | |
5284 | OUTSIDE.Transparency = 0.65 | |
5285 | BELT.Transparency = 0.65 | |
5286 | char.Head.Transparency = 0.5 | |
5287 | char["Left Arm"].Transparency = 0.65 | |
5288 | char["Left Leg"].Transparency = 0.65 | |
5289 | char["Right Arm"].Transparency = 0.65 | |
5290 | char["Right Leg"].Transparency = 0.65 | |
5291 | char.Torso.Transparency = 0.65 | |
5292 | end | |
5293 | --If your looking in the code, good job, I'll tell you some hints while your there. | |
5294 | --[[ | |
5295 | Theres a hidden thing i HAVENT finished yet that has been a trend in glitchers | |
5296 | and it starts with an N | |
5297 | ||
5298 | Second hint is. | |
5299 | If your gonna look at the attacks i didnt use, This was a edit out of the clockworker script i did. | |
5300 | --]] | |
5301 | if Head:FindFirstChild("face") then | |
5302 | Head.face.Texture = "rbxassetid://2276263" --187019542 | |
5303 | end | |
5304 | if Mode == "Nuclear" then | |
5305 | if ANIM == "Walk" then | |
5306 | WACKYEFFECT({Time = 120, EffectType = "Sphere", Size = VT(5,0.75,5), Size2 = VT(16,0.75,16), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,-3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
5307 | end | |
5308 | if MRANDOM(1,7) == 1 then | |
5309 | WACKYEFFECT({Time = 120, EffectType = "Sphere", Size = VT(0,0.75,0), Size2 = VT(15.5,0.75,15.5), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,-3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
5310 | end | |
5311 | end | |
5312 | --unanchor() | |
5313 | Humanoid.MaxHealth = "3700" | |
5314 | --Humanoid.Health = "3700" | |
5315 | if Mode ~= "SMG" and Mode ~= "DE" and Mode ~= "knif" and Mode ~= "INSANITY" and Mode ~= "SMG2" and Mode ~= "SMG3" then | |
5316 | Speed = 17 | |
5317 | elseif Mode == "SMG" then | |
5318 | Speed = 56 | |
5319 | elseif Mode == "SMG2" then | |
5320 | Speed = 65 | |
5321 | elseif Mode == "SMG3" then | |
5322 | Speed = 69 | |
5323 | elseif Mode == "DE" then | |
5324 | Speed = 26 | |
5325 | elseif Mode == "INSANITY" then | |
5326 | Speed = 36 | |
5327 | elseif Mode == "knif" then | |
5328 | Speed = 46 | |
5329 | end | |
5330 | if Rooted == false then | |
5331 | Disable_Jump = false | |
5332 | Humanoid.WalkSpeed = Speed | |
5333 | elseif Rooted == true then | |
5334 | Disable_Jump = true | |
5335 | Humanoid.WalkSpeed = 0 | |
5336 | end | |
5337 | for i,v in pairs(Character:children()) do | |
5338 | if v:IsA("Accessory") then | |
5339 | v:Destroy() | |
5340 | end | |
5341 | end | |
5342 | if Character:FindFirstChild("Shirt") then | |
5343 | Character.Shirt:Destroy() | |
5344 | end | |
5345 | if Character:FindFirstChild("Pants") then | |
5346 | Character.Pants:Destroy() | |
5347 | end | |
5348 | sick.Playing = true | |
5349 | if sick.Parent ~= RootPart then | |
5350 | sick = IT("Sound",RootPart) | |
5351 | end | |
5352 | sick.Volume = 3.25 | |
5353 | sick.Pitch = 1 | |
5354 | sick.Looped = true | |
5355 | sick.SoundId = "rbxassetid://"..SONG | |
5356 | sick.Name = "hailfireBITCHES" | |
5357 | end | |
5358 | ||
5359 | --//=================================\\ | |
5360 | --\\=================================// | |
5361 | ||
5362 | ||
5363 | ||
5364 | ||
5365 | --//====================================================\\-- | |
5366 | --|| END OF SCRIPT | |
5367 | --\\====================================================//-- |