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