SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,game,owner = owner,game | |
3 | local RealPlayer = Player | |
4 | do | |
5 | print("FE Compatibility code by Mokiros") | |
6 | local rp = RealPlayer | |
7 | script.Parent = rp.Character | |
8 | ||
9 | --RemoteEvent for communicating | |
10 | local Event = Instance.new("RemoteEvent") | |
11 | Event.Name = "UserInput_Event" | |
12 | ||
13 | --Fake event to make stuff like Mouse.KeyDown work | |
14 | local function fakeEvent() | |
15 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
16 | t.connect = t.Connect | |
17 | return t | |
18 | end | |
19 | ||
20 | --Creating fake input objects with fake variables | |
21 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
22 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
23 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
24 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
25 | end} | |
26 | --Merged 2 functions into one by checking amount of arguments | |
27 | CAS.UnbindAction = CAS.BindAction | |
28 | ||
29 | --This function will trigger the events that have been :Connect()'ed | |
30 | local function te(self,ev,...) | |
31 | local t = m[ev] | |
32 | if t and t._fakeEvent then | |
33 | for _,f in pairs(t.Functions) do | |
34 | f(...) | |
35 | end | |
36 | end | |
37 | end | |
38 | m.TrigEvent = te | |
39 | UIS.TrigEvent = te | |
40 | ||
41 | Event.OnServerEvent:Connect(function(plr,io) | |
42 | if plr~=rp then return end | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | if not io.isMouse then | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | for _,t in pairs(CAS.Actions) do | |
51 | for _,k in pairs(t.Keys) do | |
52 | if k==io.KeyCode then | |
53 | t.Function(t.Name,io.UserInputState,io) | |
54 | end | |
55 | end | |
56 | end | |
57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
59 | end | |
60 | end) | |
61 | Event.Parent = NLS([==[ | |
62 | local Player = game:GetService("Players").LocalPlayer | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
65 | local Mouse = Player:GetMouse() | |
66 | local UIS = game:GetService("UserInputService") | |
67 | local input = function(io,a) | |
68 | if a then return end | |
69 | --Since InputObject is a client-side instance, we create and pass table instead | |
70 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
71 | end | |
72 | UIS.InputBegan:Connect(input) | |
73 | UIS.InputEnded:Connect(input) | |
74 | ||
75 | local h,t | |
76 | --Give the server mouse data 30 times every second, but only if the values changed | |
77 | --If player is not moving their mouse, client won't fire events | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | h,t=Mouse.Hit,Mouse.Target | |
81 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
82 | end | |
83 | end]==],Player.Character) | |
84 | ||
85 | ----Sandboxed game object that allows the usage of client-side methods and services | |
86 | --Real game object | |
87 | local _rg = game | |
88 | ||
89 | --Metatable for fake service | |
90 | local fsmt = { | |
91 | __index = function(self,k) | |
92 | local s = rawget(self,"_RealService") | |
93 | if s then return s[k] end | |
94 | end, | |
95 | __newindex = function(self,k,v) | |
96 | local s = rawget(self,"_RealService") | |
97 | if s then s[k]=v end | |
98 | end, | |
99 | __call = function(self,...) | |
100 | local s = rawget(self,"_RealService") | |
101 | if s then return s(...) end | |
102 | end | |
103 | } | |
104 | local function FakeService(t,RealService) | |
105 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
106 | return setmetatable(t,fsmt) | |
107 | end | |
108 | ||
109 | --Fake game object | |
110 | local g = { | |
111 | GetService = function(self,s) | |
112 | return self[s] | |
113 | end, | |
114 | Players = FakeService({ | |
115 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
116 | },"Players"), | |
117 | UserInputService = FakeService(UIS,"UserInputService"), | |
118 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
119 | } | |
120 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
121 | g.service = g.GetService | |
122 | ||
123 | g.RunService = FakeService({ | |
124 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
125 | BindToRenderStep = function(self,name,_,fun) | |
126 | ||
127 | end, | |
128 | UnbindFromRenderStep = function(self,name) | |
129 | self._btrs[name]:Disconnect() | |
130 | end, | |
131 | },"RunService") | |
132 | ||
133 | setmetatable(g,{ | |
134 | __index=function(self,s) | |
135 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
136 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
137 | end, | |
138 | __newindex = fsmt.__newindex, | |
139 | __call = fsmt.__call | |
140 | }) | |
141 | --Changing owner to fake player object to support owner:GetMouse() | |
142 | game,owner = g,g.Players.LocalPlayer | |
143 | end | |
144 | ||
145 | ----------------------- | |
146 | --[[ Name : RUIN VI]]-- | |
147 | ------------------------------------------------------- | |
148 | --A script By makhail07, 2003boobear and XXUNORIBOASXX. | |
149 | ||
150 | --Discord Creterisk#2958 <- makhail07's discord | |
151 | ||
152 | --NOTE THIS SCRIPT WAS PURELY MADE FROM MY FUCKING IMAGINATION | |
153 | --IF IT HAPPENS TO LOOK LIKE ANOTHER SCRIPT | |
154 | --DONT CALL IT A FUCKING BOOTLEG THANK YOU AND ENJOY THE SCRIPT | |
155 | --YOU FUCKING SKIDS, | |
156 | --For Those who log/decompile this, If you sell or trade this, | |
157 | --and I find out who you are, i will take massive action. | |
158 | --:b: | |
159 | ------------------------------------------------------- | |
160 | ||
161 | local FavIDs = { | |
162 | 340106355, --Nefl Crystals | |
163 | 927529620, --Dimension | |
164 | 876981900, --Fantasy | |
165 | 398987889, --Ordinary Days | |
166 | 1117396305, --Oh wait, it's you. | |
167 | 885996042, --Action Winter Journey | |
168 | 919231299, --Sprawling Idiot Effigy | |
169 | 743466274, --Good Day Sunshine | |
170 | 727411183, --Knife Fight | |
171 | 1402748531, --The Earth Is Counting On You! | |
172 | 595230126 --Robot Language | |
173 | } | |
174 | ||
175 | vt = Vector3.new | |
176 | ||
177 | ||
178 | --The reality of my life isn't real but a Universe -Creterisk | |
179 | --All people can be nice, Even if you don't think so. -2003boobear | |
180 | --The past can be horrible, but the future will be better, so forget the past and move-onward. -XXUNORIBOASXX | |
181 | wait() | |
182 | local plr = owner | |
183 | local char = plr.Character | |
184 | local hum = char.Humanoid | |
185 | local hed = char.Head | |
186 | local root = char.HumanoidRootPart | |
187 | local rootj = root.RootJoint | |
188 | local tors = char.Torso | |
189 | local ra = char["Right Arm"] | |
190 | local la = char["Left Arm"] | |
191 | local rl = char["Right Leg"] | |
192 | local ll = char["Left Leg"] | |
193 | local neck = tors["Neck"] | |
194 | local mouse = plr:GetMouse() | |
195 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
196 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
197 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
198 | local maincolor = BrickColor.new("White") | |
199 | local maincolor2 = Color3.new(255, 255, 255) | |
200 | exploitable = true | |
201 | ------------------------------------------------------- | |
202 | --Start Whitelist and Invincibility-- | |
203 | ------------------------------------------------------- | |
204 | ff = Instance.new("ForceField",char) | |
205 | ff.Visible = false | |
206 | hum.Name = "Base" | |
207 | hum.MaxHealth = 1.0E298 | |
208 | hum.Health = 1.0E298 | |
209 | game:GetService("RunService"):BindToRenderStep("Bbae", 0, function() | |
210 | if hum.Health > 0.1 and hum.Health < 1.0E298 then | |
211 | hum.MaxHealth = 1.0E298 | |
212 | hum.Health = 1.0E298 | |
213 | end | |
214 | end) | |
215 | ------------------------------------------------------- | |
216 | --End Whitelist and Invincibility-- | |
217 | ------------------------------------------------------- | |
218 | ||
219 | warn("Credit to makhail07, 2003boobear and XXUNORIBOASXX and to saba1520 for making this changes") | |
220 | ||
221 | ------------------------------------------------------- | |
222 | --Start Good Stuff-- | |
223 | ------------------------------------------------------- | |
224 | cam = game.Workspace.CurrentCamera | |
225 | CF = CFrame.new | |
226 | VT = Vector3.new | |
227 | angles = CFrame.Angles | |
228 | attack = false | |
229 | Euler = CFrame.fromEulerAnglesXYZ | |
230 | Rad = math.rad | |
231 | IT = Instance.new | |
232 | BrickC = BrickColor.new | |
233 | Cos = math.cos | |
234 | Acos = math.acos | |
235 | Sin = math.sin | |
236 | Asin = math.asin | |
237 | Abs = math.abs | |
238 | Mrandom = math.random | |
239 | Floor = math.floor | |
240 | ------------------------------------------------------- | |
241 | --End Good Stuff-- | |
242 | ------------------------------------------------------- | |
243 | necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
244 | RSH, LSH = nil, nil | |
245 | RW = Instance.new("Weld") | |
246 | LW = Instance.new("Weld") | |
247 | RH = tors["Right Hip"] | |
248 | LH = tors["Left Hip"] | |
249 | RSH = tors["Right Shoulder"] | |
250 | LSH = tors["Left Shoulder"] | |
251 | RSH.Parent = nil | |
252 | LSH.Parent = nil | |
253 | RW.Name = "RW" | |
254 | RW.Part0 = tors | |
255 | RW.C0 = CF(1.5, 0.5, 0) | |
256 | RW.C1 = CF(0, 0.5, 0) | |
257 | RW.Part1 = ra | |
258 | RW.Parent = tors | |
259 | LW.Name = "LW" | |
260 | LW.Part0 = tors | |
261 | LW.C0 = CF(-1.5, 0.5, 0) | |
262 | LW.C1 = CF(0, 0.5, 0) | |
263 | LW.Part1 = la | |
264 | LW.Parent = tors | |
265 | Effects = {} | |
266 | ------------------------------------------------------- | |
267 | --Start HeartBeat-- | |
268 | ------------------------------------------------------- | |
269 | ArtificialHB = Instance.new("BindableEvent", script) | |
270 | ArtificialHB.Name = "Heartbeat" | |
271 | script:WaitForChild("Heartbeat") | |
272 | ||
273 | frame = 1 / 60 | |
274 | tf = 0 | |
275 | allowframeloss = false | |
276 | tossremainder = false | |
277 | ||
278 | ||
279 | lastframe = tick() | |
280 | script.Heartbeat:Fire() | |
281 | ||
282 | ||
283 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
284 | tf = tf + s | |
285 | if tf >= frame then | |
286 | if allowframeloss then | |
287 | script.Heartbeat:Fire() | |
288 | lastframe = tick() | |
289 | else | |
290 | for i = 1, math.floor(tf / frame) do | |
291 | script.Heartbeat:Fire() | |
292 | end | |
293 | lastframe = tick() | |
294 | end | |
295 | if tossremainder then | |
296 | tf = 0 | |
297 | else | |
298 | tf = tf - frame * math.floor(tf / frame) | |
299 | end | |
300 | end | |
301 | end) | |
302 | ------------------------------------------------------- | |
303 | --End HeartBeat-- | |
304 | ------------------------------------------------------- | |
305 | ||
306 | TAUNT = Instance.new("Sound", tors) | |
307 | TAUNT.SoundId = "http://www.roblox.com/asset/?id=1535994137" | |
308 | TAUNT.Volume = 10 | |
309 | TAUNT.Pitch = 1 | |
310 | TAUNT.Looped = false | |
311 | TAUNT.TimePosition = 0.12 | |
312 | ||
313 | BTAUNT = Instance.new("Sound", tors) | |
314 | BTAUNT.SoundId = "http://www.roblox.com/asset/?id=1535995263" | |
315 | BTAUNT.Volume = 10 | |
316 | BTAUNT.Pitch = 1 | |
317 | BTAUNT.Looped = false | |
318 | BTAUNT.TimePosition = 0.2 | |
319 | ||
320 | ITAUNT = Instance.new("Sound", tors) | |
321 | ITAUNT.SoundId = "http://www.roblox.com/asset/?id=1535994669" | |
322 | ITAUNT.Volume = 10 | |
323 | ITAUNT.Pitch = 1 | |
324 | ITAUNT.Looped = false | |
325 | ITAUNT.TimePosition = 0 | |
326 | ||
327 | BATAUNT = Instance.new("Sound", tors) | |
328 | BATAUNT.SoundId = "http://www.roblox.com/asset/?id=132514715" | |
329 | BATAUNT.Volume = 10 | |
330 | BATAUNT.Pitch = 1 | |
331 | BATAUNT.Looped = false | |
332 | BATAUNT.TimePosition = 0 | |
333 | ||
334 | STAUNT2 = Instance.new("Sound", tors) | |
335 | STAUNT2.SoundId = "http://www.roblox.com/asset/?id=132392118" | |
336 | STAUNT2.Volume = 10 | |
337 | STAUNT2.Pitch = 0.8 | |
338 | STAUNT2.Looped = false | |
339 | STAUNT2.TimePosition = 0.05 | |
340 | ||
341 | STAUNT = Instance.new("Sound", tors) | |
342 | STAUNT.SoundId = "http://www.roblox.com/asset/?id=1535994940" | |
343 | STAUNT.Volume = 10 | |
344 | STAUNT.Pitch = 1 | |
345 | STAUNT.Looped = false | |
346 | STAUNT.TimePosition = 0.05 | |
347 | ||
348 | DTAUNT = Instance.new("Sound", tors) | |
349 | DTAUNT.SoundId = "http://www.roblox.com/asset/?id=907333294" | |
350 | DTAUNT.Volume = 10 | |
351 | DTAUNT.Pitch = 1 | |
352 | DTAUNT.Looped = false | |
353 | DTAUNT.TimePosition = 0 | |
354 | ||
355 | LAZOR = Instance.new("Sound", ra) | |
356 | LAZOR.SoundId = "http://www.roblox.com/asset/?id=201858045" | |
357 | LAZOR.Volume = 10 | |
358 | LAZOR.Pitch = 0.7 | |
359 | LAZOR.Looped = false | |
360 | LAZOR.TimePosition = 0 | |
361 | ||
362 | ------------------------------------------------------- | |
363 | --Start Important Functions-- | |
364 | ------------------------------------------------------- | |
365 | function swait(num) | |
366 | if num == 0 or num == nil then | |
367 | game:service("RunService").Stepped:wait(0) | |
368 | else | |
369 | for i = 0, num do | |
370 | game:service("RunService").Stepped:wait(0) | |
371 | end | |
372 | end | |
373 | end | |
374 | function thread(f) | |
375 | coroutine.resume(coroutine.create(f)) | |
376 | end | |
377 | function clerp(a, b, t) | |
378 | local qa = { | |
379 | QuaternionFromCFrame(a) | |
380 | } | |
381 | local qb = { | |
382 | QuaternionFromCFrame(b) | |
383 | } | |
384 | local ax, ay, az = a.x, a.y, a.z | |
385 | local bx, by, bz = b.x, b.y, b.z | |
386 | local _t = 1 - t | |
387 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
388 | end | |
389 | function ShockWave(Part, cframe1, cframe2, Damage, Size) | |
390 | coroutine.resume(coroutine.create(function() | |
391 | local wave = CreatePart(workspace, "Neon", 0, 0, Neoncolor, "Effect", Vector3.new(1, 1, 5)) | |
392 | wave.Anchored = true | |
393 | wave.CFrame = Part.CFrame * cframe1 | |
394 | local Msh = Create("SpecialMesh"){ | |
395 | Parent = wave, | |
396 | MeshType = "Sphere" | |
397 | } | |
398 | Cso("http://roblox.com/asset/?id=300916105", wave, 1, 1.3) | |
399 | for i = 0, 1, 0.2 do | |
400 | wait() | |
401 | local dir = wave.CFrame.lookVector * -1 | |
402 | local pos = rayCast(wave.Position, dir, 5, Character) | |
403 | wave.CFrame = wave.CFrame * cframe2 | |
404 | table.insert(Effects, { | |
405 | wave, | |
406 | "Sphere", | |
407 | 0.01, | |
408 | .03, | |
409 | .03, | |
410 | .03, | |
411 | }) | |
412 | end | |
413 | end)) | |
414 | end | |
415 | ||
416 | function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) --Thanks, Star Glitcher! | |
417 | local type = type | |
418 | local rng = Instance.new("Part", char) | |
419 | rng.Anchored = true | |
420 | rng.BrickColor = color | |
421 | rng.CanCollide = false | |
422 | rng.FormFactor = 3 | |
423 | rng.Name = "Ring" | |
424 | rng.Material = "Neon" | |
425 | rng.Size = Vector3.new(1, 1, 1) | |
426 | rng.Transparency = 0 | |
427 | rng.TopSurface = 0 | |
428 | rng.BottomSurface = 0 | |
429 | rng.CFrame = pos | |
430 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
431 | local rngm = Instance.new("SpecialMesh", rng) | |
432 | rngm.MeshType = "Brick" | |
433 | rngm.Scale = VT(x1,y1,z1) | |
434 | if rainbowmode == true then | |
435 | rng.Color = Color3.new(r/255,g/255,b/255) | |
436 | end | |
437 | local scaler2 = 1 | |
438 | local speeder = FastSpeed/10 | |
439 | if type == "Add" then | |
440 | scaler2 = 1*value | |
441 | elseif type == "Divide" then | |
442 | scaler2 = 1/value | |
443 | end | |
444 | coroutine.resume(coroutine.create(function() | |
445 | for i = 0,10/bonuspeed,0.1 do | |
446 | swait() | |
447 | if type == "Add" then | |
448 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
449 | elseif type == "Divide" then | |
450 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
451 | end | |
452 | speeder = speeder - 0.01*FastSpeed*bonuspeed/10 | |
453 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
454 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
455 | end | |
456 | rng:Destroy() | |
457 | end)) | |
458 | end | |
459 | New = function(Object, Parent, Name, Data) | |
460 | local Object = Instance.new(Object) | |
461 | for Index, Value in pairs(Data or {}) do | |
462 | Object[Index] = Value | |
463 | end | |
464 | Object.Parent = Parent | |
465 | Object.Name = Name | |
466 | return Object | |
467 | end | |
468 | function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color) | |
469 | local type = type | |
470 | local rotenable = rotatingop | |
471 | local rng = Instance.new("Part", char) | |
472 | rng.Anchored = true | |
473 | rng.BrickColor = color | |
474 | rng.CanCollide = false | |
475 | rng.FormFactor = 3 | |
476 | rng.Name = "Ring" | |
477 | rng.Material = "Neon" | |
478 | rng.Size = Vector3.new(1, 1, 1) | |
479 | rng.Transparency = 0 | |
480 | if typeoftrans == "In" then | |
481 | rng.Transparency = 1 | |
482 | end | |
483 | rng.TopSurface = 0 | |
484 | rng.BottomSurface = 0 | |
485 | rng.CFrame = pos | |
486 | local rngm = Instance.new("SpecialMesh", rng) | |
487 | rngm.MeshType = "FileMesh" | |
488 | if typeofshape == "Normal" then | |
489 | rngm.MeshId = "rbxassetid://662586858" | |
490 | elseif typeofshape == "Round" then | |
491 | rngm.MeshId = "rbxassetid://662585058" | |
492 | end | |
493 | rngm.Scale = scale | |
494 | local scaler2 = 1/10 | |
495 | if type == "Add" then | |
496 | scaler2 = 1*value/10 | |
497 | elseif type == "Divide" then | |
498 | scaler2 = 1/value/10 | |
499 | end | |
500 | local randomrot = math.random(1,2) | |
501 | coroutine.resume(coroutine.create(function() | |
502 | for i = 0,10/bonuspeed,0.1 do | |
503 | swait() | |
504 | if type == "Add" then | |
505 | scaler2 = scaler2 - 0.01*value/bonuspeed/10 | |
506 | elseif type == "Divide" then | |
507 | scaler2 = scaler2 - 0.01/value*bonuspeed/10 | |
508 | end | |
509 | if rotenable == true then | |
510 | if randomrot == 1 then | |
511 | rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0) | |
512 | elseif randomrot == 2 then | |
513 | rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0) | |
514 | end | |
515 | end | |
516 | if typeoftrans == "Out" then | |
517 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
518 | elseif typeoftrans == "In" then | |
519 | rng.Transparency = rng.Transparency - 0.01*bonuspeed | |
520 | end | |
521 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10) | |
522 | end | |
523 | rng:Destroy() | |
524 | end)) | |
525 | end | |
526 | function QuaternionFromCFrame(cf) | |
527 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
528 | local trace = m00 + m11 + m22 | |
529 | if trace > 0 then | |
530 | local s = math.sqrt(1 + trace) | |
531 | local recip = 0.5 / s | |
532 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
533 | else | |
534 | local i = 0 | |
535 | if m00 < m11 then | |
536 | i = 1 | |
537 | end | |
538 | if m22 > (i == 0 and m00 or m11) then | |
539 | i = 2 | |
540 | end | |
541 | if i == 0 then | |
542 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
543 | local recip = 0.5 / s | |
544 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
545 | elseif i == 1 then | |
546 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
547 | local recip = 0.5 / s | |
548 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
549 | elseif i == 2 then | |
550 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
551 | local recip = 0.5 / s | |
552 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
553 | end | |
554 | end | |
555 | end | |
556 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
557 | local xs, ys, zs = x + x, y + y, z + z | |
558 | local wx, wy, wz = w * xs, w * ys, w * zs | |
559 | local xx = x * xs | |
560 | local xy = x * ys | |
561 | local xz = x * zs | |
562 | local yy = y * ys | |
563 | local yz = y * zs | |
564 | local zz = z * zs | |
565 | 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)) | |
566 | end | |
567 | function QuaternionSlerp(a, b, t) | |
568 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
569 | local startInterp, finishInterp | |
570 | if cosTheta >= 1.0E-4 then | |
571 | if 1 - cosTheta > 1.0E-4 then | |
572 | local theta = math.acos(cosTheta) | |
573 | local invSinTheta = 1 / Sin(theta) | |
574 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
575 | finishInterp = Sin(t * theta) * invSinTheta | |
576 | else | |
577 | startInterp = 1 - t | |
578 | finishInterp = t | |
579 | end | |
580 | elseif 1 + cosTheta > 1.0E-4 then | |
581 | local theta = math.acos(-cosTheta) | |
582 | local invSinTheta = 1 / Sin(theta) | |
583 | startInterp = Sin((t - 1) * theta) * invSinTheta | |
584 | finishInterp = Sin(t * theta) * invSinTheta | |
585 | else | |
586 | startInterp = t - 1 | |
587 | finishInterp = t | |
588 | end | |
589 | 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 | |
590 | end | |
591 | function rayCast(Position, Direction, Range, Ignore) | |
592 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
593 | end | |
594 | local RbxUtility = LoadLibrary("RbxUtility") | |
595 | local Create = RbxUtility.Create | |
596 | ||
597 | ------------------------------------------------------- | |
598 | --Start Damage Function-- | |
599 | ------------------------------------------------------- | |
600 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
601 | if hit.Parent == nil then | |
602 | return | |
603 | end | |
604 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
605 | for _, v in pairs(hit.Parent:children()) do | |
606 | if v:IsA("Humanoid") then | |
607 | h = v | |
608 | end | |
609 | end | |
610 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then | |
611 | ||
612 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
613 | end | |
614 | ||
615 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
616 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
617 | if hit.Parent.DebounceHit.Value == true then | |
618 | return | |
619 | end | |
620 | end | |
621 | if insta == true then | |
622 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
623 | end | |
624 | local c = Create("ObjectValue"){ | |
625 | Name = "creator", | |
626 | Value = owner, | |
627 | Parent = h, | |
628 | } | |
629 | game:GetService("Debris"):AddItem(c, .5) | |
630 | if HitSound ~= nil and HitPitch ~= nil then | |
631 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
632 | end | |
633 | local Damage = math.random(minim, maxim) | |
634 | local blocked = false | |
635 | local block = hit.Parent:findFirstChild("Block") | |
636 | if block ~= nil then | |
637 | if block.className == "IntValue" then | |
638 | if block.Value > 0 then | |
639 | blocked = true | |
640 | block.Value = block.Value - 1 | |
641 | print(block.Value) | |
642 | end | |
643 | end | |
644 | end | |
645 | if blocked == false then | |
646 | h.Health = h.Health - Damage | |
647 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
648 | else | |
649 | h.Health = h.Health - (Damage / 2) | |
650 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
651 | end | |
652 | if Type == "Knockdown" then | |
653 | local hum = hit.Parent.Humanoid | |
654 | hum.PlatformStand = true | |
655 | coroutine.resume(coroutine.create(function(HHumanoid) | |
656 | swait(1) | |
657 | HHumanoid.PlatformStand = false | |
658 | end), hum) | |
659 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
660 | local bodvol = Create("BodyVelocity"){ | |
661 | velocity = angle * knockback, | |
662 | P = 5000, | |
663 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
664 | Parent = hit, | |
665 | } | |
666 | local rl = Create("BodyAngularVelocity"){ | |
667 | P = 3000, | |
668 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
669 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
670 | Parent = hit, | |
671 | } | |
672 | game:GetService("Debris"):AddItem(bodvol, .5) | |
673 | game:GetService("Debris"):AddItem(rl, .5) | |
674 | elseif Type == "Random Guy" then | |
675 | local vp = Create("BodyVelocity"){ | |
676 | P = 500, | |
677 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
678 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
679 | } | |
680 | if knockback > 0 then | |
681 | vp.Parent = hit.Parent.Torso | |
682 | end | |
683 | game:GetService("Debris"):AddItem(vp, .5) | |
684 | elseif Type == "Up" then | |
685 | local bodyVelocity = Create("BodyVelocity"){ | |
686 | velocity = Vector3.new(0, 20, 0), | |
687 | P = 5000, | |
688 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
689 | Parent = hit, | |
690 | } | |
691 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
692 | elseif Type == "DarkUp" then | |
693 | coroutine.resume(coroutine.create(function() | |
694 | for i = 0, 1, 0.1 do | |
695 | swait() | |
696 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
697 | end | |
698 | end)) | |
699 | local bodyVelocity = Create("BodyVelocity"){ | |
700 | velocity = Vector3.new(0, 20, 0), | |
701 | P = 5000, | |
702 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
703 | Parent = hit, | |
704 | } | |
705 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
706 | elseif Type == "Snare" then | |
707 | local bp = Create("BodyPosition"){ | |
708 | P = 2000, | |
709 | D = 100, | |
710 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
711 | position = hit.Parent.Torso.Position, | |
712 | Parent = hit.Parent.Torso, | |
713 | } | |
714 | game:GetService("Debris"):AddItem(bp, 1) | |
715 | elseif Type == "Freeze" then | |
716 | local BodPos = Create("BodyPosition"){ | |
717 | P = 50000, | |
718 | D = 1000, | |
719 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
720 | position = hit.Parent.Torso.Position, | |
721 | Parent = hit.Parent.Torso, | |
722 | } | |
723 | local BodGy = Create("BodyGyro") { | |
724 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
725 | P = 20e+003, | |
726 | Parent = hit.Parent.Torso, | |
727 | cframe = hit.Parent.Torso.CFrame, | |
728 | } | |
729 | hit.Parent.Torso.Anchored = true | |
730 | coroutine.resume(coroutine.create(function(Part) | |
731 | swait(1.5) | |
732 | Part.Anchored = false | |
733 | end), hit.Parent.Torso) | |
734 | game:GetService("Debris"):AddItem(BodPos, 3) | |
735 | game:GetService("Debris"):AddItem(BodGy, 3) | |
736 | end | |
737 | local debounce = Create("BoolValue"){ | |
738 | Name = "DebounceHit", | |
739 | Parent = hit.Parent, | |
740 | Value = true, | |
741 | } | |
742 | game:GetService("Debris"):AddItem(debounce, Delay) | |
743 | c = Create("ObjectValue"){ | |
744 | Name = "creator", | |
745 | Value = Player, | |
746 | Parent = h, | |
747 | } | |
748 | game:GetService("Debris"):AddItem(c, .5) | |
749 | end | |
750 | end | |
751 | ------------------------------------------------------- | |
752 | --End Damage Function-- | |
753 | ------------------------------------------------------- | |
754 | local DColorsArray ={ColorSequenceKeypoint.new(0, Color3.new(1,0,0)), | |
755 | ColorSequenceKeypoint.new(0.16, Color3.new(1,0,0)), | |
756 | ColorSequenceKeypoint.new(0.32, Color3.new(1,0,0)), | |
757 | ColorSequenceKeypoint.new(0.48, Color3.new(1,0,0)), | |
758 | ColorSequenceKeypoint.new(0.64, Color3.new(1,0,0)), | |
759 | ColorSequenceKeypoint.new(0.80, Color3.new(0,0,0)), | |
760 | ColorSequenceKeypoint.new(0.96, Color3.new(0,0,0)), | |
761 | ColorSequenceKeypoint.new(1, Color3.new(0,0,0))} | |
762 | local DAtch3 = Instance.new("Attachment",ll)DAtch3.Position = Vector3.new(0,1.1,0) | |
763 | local DAtch4 = Instance.new("Attachment",ll)DAtch4.Position = Vector3.new(0,-0.6,0) | |
764 | local DTrail2 = Instance.new("Trail",ll)DTrail2.Attachment0 = DAtch3 DTrail2.Attachment1 = DAtch4 | |
765 | DTrail2.Texture = "rbxassetid://22636887" DTrail2.Lifetime = 0.2 DTrail2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
766 | DTrail2.Color = ColorSequence.new(DColorsArray) DTrail2.LightEmission = 1 | |
767 | DTrail2.Enabled = false | |
768 | local DAtch5 = Instance.new("Attachment",rl)DAtch5.Position = Vector3.new(0,1.1,0) | |
769 | local DAtch6 = Instance.new("Attachment",rl)DAtch6.Position = Vector3.new(0,-0.6,0) | |
770 | local DTrail3 = Instance.new("Trail",rl)DTrail3.Attachment0 = DAtch5 DTrail3.Attachment1 = DAtch6 | |
771 | DTrail3.Texture = "rbxassetid://22636887" DTrail3.Lifetime = 0.2 DTrail3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
772 | DTrail3.Color = ColorSequence.new(DColorsArray) DTrail3.LightEmission = 1 | |
773 | DTrail3.Enabled = false | |
774 | local DAtch7 = Instance.new("Attachment",ra)DAtch7.Position = Vector3.new(0,1.1,0) | |
775 | local DAtch8 = Instance.new("Attachment",ra)DAtch8.Position = Vector3.new(0,-0.6,0) | |
776 | local DTrail4 = Instance.new("Trail",ra)DTrail4.Attachment0 = DAtch7 DTrail4.Attachment1 = DAtch8 | |
777 | DTrail4.Texture = "rbxassetid://22636887" DTrail4.Lifetime = 0.2 DTrail4.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
778 | DTrail4.Color = ColorSequence.new(DColorsArray) DTrail4.LightEmission = 1 | |
779 | DTrail4.Enabled = false | |
780 | local DAtch9 = Instance.new("Attachment",la)DAtch9.Position = Vector3.new(0,1.1,0) | |
781 | local DAtch10 = Instance.new("Attachment",la)DAtch10.Position = Vector3.new(0,-0.6,0) | |
782 | local DTrail5 = Instance.new("Trail",la)DTrail5.Attachment0 = DAtch9 DTrail5.Attachment1 = DAtch10 | |
783 | DTrail5.Texture = "rbxassetid://22636887" DTrail5.Lifetime = 0.2 DTrail5.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
784 | DTrail5.Color = ColorSequence.new(DColorsArray) DTrail5.LightEmission = 1 | |
785 | DTrail5.Enabled = false | |
786 | local DAtch1 = Instance.new("Attachment",Torso)DAtch1.Position = Vector3.new(0,1.1,0) | |
787 | local DAtch2 = Instance.new("Attachment",Torso)DAtch2.Position = Vector3.new(0,-2.5,0) | |
788 | local DTrail = Instance.new("Trail",Torso)DTrail.Attachment0 = DAtch1 DTrail.Attachment1 = DAtch2 | |
789 | DTrail.Texture = "rbxassetid://22636887" DTrail.Lifetime = 0.2 DTrail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
790 | DTrail.Color = ColorSequence.new(DColorsArray) DTrail.LightEmission = 1 | |
791 | DTrail.Enabled = false | |
792 | ------------------------------------------------------- | |
793 | --Start Damage Function Customization-- | |
794 | ------------------------------------------------------- | |
795 | function ShowDamage(Pos, Text, Time, Color) | |
796 | local Rate = (1 / 30) | |
797 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
798 | local Text = (Text or "") | |
799 | local Time = (Time or 2) | |
800 | local Color = (Color or Color3.new(1, 0, 1)) | |
801 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
802 | EffectPart.Anchored = true | |
803 | local BillboardGui = Create("BillboardGui"){ | |
804 | Size = UDim2.new(3, 0, 3, 0), | |
805 | Adornee = EffectPart, | |
806 | Parent = EffectPart, | |
807 | } | |
808 | local TextLabel = Create("TextLabel"){ | |
809 | BackgroundTransparency = 1, | |
810 | Size = UDim2.new(1, 0, 1, 0), | |
811 | Text = Text, | |
812 | Font = "Bodoni", | |
813 | TextColor3 = Color, | |
814 | TextScaled = true, | |
815 | TextStrokeColor3 = Color3.fromRGB(0,0,0), | |
816 | Parent = BillboardGui, | |
817 | } | |
818 | game.Debris:AddItem(EffectPart, (Time)) | |
819 | EffectPart.Parent = game:GetService("Workspace") | |
820 | delay(0, function() | |
821 | local Frames = (Time / Rate) | |
822 | for Frame = 1, Frames do | |
823 | wait(Rate) | |
824 | local Percent = (Frame / Frames) | |
825 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
826 | TextLabel.TextTransparency = Percent | |
827 | end | |
828 | if EffectPart and EffectPart.Parent then | |
829 | EffectPart:Destroy() | |
830 | end | |
831 | end) | |
832 | end | |
833 | ------------------------------------------------------- | |
834 | --End Damage Function Customization-- | |
835 | ------------------------------------------------------- | |
836 | ||
837 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
838 | for _, c in pairs(workspace:children()) do | |
839 | local hum = c:findFirstChild("Humanoid") | |
840 | if hum ~= nil then | |
841 | local head = c:findFirstChild("Head") | |
842 | if head ~= nil then | |
843 | local targ = head.Position - Part.Position | |
844 | local mag = targ.magnitude | |
845 | if magni >= mag and c.Name ~= Player.Name then | |
846 | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2) | |
847 | end | |
848 | end | |
849 | end | |
850 | end | |
851 | end | |
852 | ||
853 | ||
854 | CFuncs = { | |
855 | Part = { | |
856 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
857 | local Part = Create("Part")({ | |
858 | Parent = Parent, | |
859 | Reflectance = Reflectance, | |
860 | Transparency = Transparency, | |
861 | CanCollide = false, | |
862 | Locked = true, | |
863 | BrickColor = BrickColor.new(tostring(BColor)), | |
864 | Name = Name, | |
865 | Size = Size, | |
866 | Material = Material | |
867 | }) | |
868 | RemoveOutlines(Part) | |
869 | return Part | |
870 | end | |
871 | }, | |
872 | Mesh = { | |
873 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
874 | local Msh = Create(Mesh)({ | |
875 | Parent = Part, | |
876 | Offset = OffSet, | |
877 | Scale = Scale | |
878 | }) | |
879 | if Mesh == "SpecialMesh" then | |
880 | Msh.MeshType = MeshType | |
881 | Msh.MeshId = MeshId | |
882 | end | |
883 | return Msh | |
884 | end | |
885 | }, | |
886 | Mesh = { | |
887 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
888 | local Msh = Create(Mesh)({ | |
889 | Parent = Part, | |
890 | Offset = OffSet, | |
891 | Scale = Scale | |
892 | }) | |
893 | if Mesh == "SpecialMesh" then | |
894 | Msh.MeshType = MeshType | |
895 | Msh.MeshId = MeshId | |
896 | end | |
897 | return Msh | |
898 | end | |
899 | }, | |
900 | Weld = { | |
901 | Create = function(Parent, Part0, Part1, C0, C1) | |
902 | local Weld = Create("Weld")({ | |
903 | Parent = Parent, | |
904 | Part0 = Part0, | |
905 | Part1 = Part1, | |
906 | C0 = C0, | |
907 | C1 = C1 | |
908 | }) | |
909 | return Weld | |
910 | end | |
911 | }, | |
912 | Sound = { | |
913 | Create = function(id, par, vol, pit) | |
914 | coroutine.resume(coroutine.create(function() | |
915 | local S = Create("Sound")({ | |
916 | Volume = vol, | |
917 | Pitch = pit or 1, | |
918 | SoundId = id, | |
919 | Parent = par or workspace | |
920 | }) | |
921 | wait() | |
922 | S:play() | |
923 | game:GetService("Debris"):AddItem(S, 6) | |
924 | end)) | |
925 | end | |
926 | }, | |
927 | ParticleEmitter = { | |
928 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
929 | local fp = Create("ParticleEmitter")({ | |
930 | Parent = Parent, | |
931 | Color = ColorSequence.new(Color1, Color2), | |
932 | LightEmission = LightEmission, | |
933 | Size = Size, | |
934 | Texture = Texture, | |
935 | Transparency = Transparency, | |
936 | ZOffset = ZOffset, | |
937 | Acceleration = Accel, | |
938 | Drag = Drag, | |
939 | LockedToPart = LockedToPart, | |
940 | VelocityInheritance = VelocityInheritance, | |
941 | EmissionDirection = EmissionDirection, | |
942 | Enabled = Enabled, | |
943 | Lifetime = LifeTime, | |
944 | Rate = Rate, | |
945 | Rotation = Rotation, | |
946 | RotSpeed = RotSpeed, | |
947 | Speed = Speed, | |
948 | VelocitySpread = VelocitySpread | |
949 | }) | |
950 | return fp | |
951 | end | |
952 | } | |
953 | } | |
954 | function RemoveOutlines(part) | |
955 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
956 | end | |
957 | function CreatePart1(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
958 | local Part = Create("Part")({ | |
959 | formFactor = FormFactor, | |
960 | Parent = Parent, | |
961 | Reflectance = Reflectance, | |
962 | Transparency = Transparency, | |
963 | CanCollide = false, | |
964 | Locked = true, | |
965 | BrickColor = BrickColor.new(tostring(BColor)), | |
966 | Name = Name, | |
967 | Size = Size, | |
968 | Material = Material | |
969 | }) | |
970 | RemoveOutlines(Part) | |
971 | return Part | |
972 | end | |
973 | function CreateMesh1(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
974 | local Msh = Create(Mesh)({ | |
975 | Parent = Part, | |
976 | Offset = OffSet, | |
977 | Scale = Scale | |
978 | }) | |
979 | if Mesh == "SpecialMesh" then | |
980 | Msh.MeshType = MeshType | |
981 | Msh.MeshId = MeshId | |
982 | end | |
983 | return Msh | |
984 | end | |
985 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
986 | local Weld = Create("Weld")({ | |
987 | Parent = Parent, | |
988 | Part0 = Part0, | |
989 | Part1 = Part1, | |
990 | C0 = C0, | |
991 | C1 = C1 | |
992 | }) | |
993 | return Weld | |
994 | end | |
995 | ||
996 | ||
997 | ------------------------------------------------------- | |
998 | --Start Effect Function-- | |
999 | ------------------------------------------------------- | |
1000 | EffectModel = Instance.new("Model", char) | |
1001 | Effects = { | |
1002 | Block = { | |
1003 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
1004 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1005 | prt.Anchored = true | |
1006 | prt.CFrame = cframe | |
1007 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1008 | game:GetService("Debris"):AddItem(prt, 10) | |
1009 | if Type == 1 or Type == nil then | |
1010 | table.insert(Effects, { | |
1011 | prt, | |
1012 | "Block1", | |
1013 | delay, | |
1014 | x3, | |
1015 | y3, | |
1016 | z3, | |
1017 | msh | |
1018 | }) | |
1019 | elseif Type == 2 then | |
1020 | table.insert(Effects, { | |
1021 | prt, | |
1022 | "Block2", | |
1023 | delay, | |
1024 | x3, | |
1025 | y3, | |
1026 | z3, | |
1027 | msh | |
1028 | }) | |
1029 | else | |
1030 | table.insert(Effects, { | |
1031 | prt, | |
1032 | "Block3", | |
1033 | delay, | |
1034 | x3, | |
1035 | y3, | |
1036 | z3, | |
1037 | msh | |
1038 | }) | |
1039 | end | |
1040 | end | |
1041 | }, | |
1042 | Sphere = { | |
1043 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1044 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1045 | prt.Anchored = true | |
1046 | prt.CFrame = cframe | |
1047 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1048 | game:GetService("Debris"):AddItem(prt, 10) | |
1049 | table.insert(Effects, { | |
1050 | prt, | |
1051 | "Cylinder", | |
1052 | delay, | |
1053 | x3, | |
1054 | y3, | |
1055 | z3, | |
1056 | msh | |
1057 | }) | |
1058 | end | |
1059 | }, | |
1060 | Cylinder = { | |
1061 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1062 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1063 | prt.Anchored = true | |
1064 | prt.CFrame = cframe | |
1065 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1066 | game:GetService("Debris"):AddItem(prt, 10) | |
1067 | table.insert(Effects, { | |
1068 | prt, | |
1069 | "Cylinder", | |
1070 | delay, | |
1071 | x3, | |
1072 | y3, | |
1073 | z3, | |
1074 | msh | |
1075 | }) | |
1076 | end | |
1077 | }, | |
1078 | Wave = { | |
1079 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1080 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1081 | prt.Anchored = true | |
1082 | prt.CFrame = cframe | |
1083 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60)) | |
1084 | game:GetService("Debris"):AddItem(prt, 10) | |
1085 | table.insert(Effects, { | |
1086 | prt, | |
1087 | "Cylinder", | |
1088 | delay, | |
1089 | x3 / 60, | |
1090 | y3 / 60, | |
1091 | z3 / 60, | |
1092 | msh | |
1093 | }) | |
1094 | end | |
1095 | }, | |
1096 | Ring = { | |
1097 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1098 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1099 | prt.Anchored = true | |
1100 | prt.CFrame = cframe | |
1101 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1102 | game:GetService("Debris"):AddItem(prt, 10) | |
1103 | table.insert(Effects, { | |
1104 | prt, | |
1105 | "Cylinder", | |
1106 | delay, | |
1107 | x3, | |
1108 | y3, | |
1109 | z3, | |
1110 | msh | |
1111 | }) | |
1112 | end | |
1113 | }, | |
1114 | Break = { | |
1115 | Create = function(brickcolor, cframe, x1, y1, z1) | |
1116 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
1117 | prt.Anchored = true | |
1118 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1119 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1120 | local num = math.random(10, 50) / 1000 | |
1121 | game:GetService("Debris"):AddItem(prt, 10) | |
1122 | table.insert(Effects, { | |
1123 | prt, | |
1124 | "Shatter", | |
1125 | num, | |
1126 | prt.CFrame, | |
1127 | math.random() - math.random(), | |
1128 | 0, | |
1129 | math.random(50, 100) / 100 | |
1130 | }) | |
1131 | end | |
1132 | }, | |
1133 | Spiral = { | |
1134 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1135 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1136 | prt.Anchored = true | |
1137 | prt.CFrame = cframe | |
1138 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1139 | game:GetService("Debris"):AddItem(prt, 10) | |
1140 | table.insert(Effects, { | |
1141 | prt, | |
1142 | "Cylinder", | |
1143 | delay, | |
1144 | x3, | |
1145 | y3, | |
1146 | z3, | |
1147 | msh | |
1148 | }) | |
1149 | end | |
1150 | }, | |
1151 | Push = { | |
1152 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1153 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1154 | prt.Anchored = true | |
1155 | prt.CFrame = cframe | |
1156 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1157 | game:GetService("Debris"):AddItem(prt, 10) | |
1158 | table.insert(Effects, { | |
1159 | prt, | |
1160 | "Cylinder", | |
1161 | delay, | |
1162 | x3, | |
1163 | y3, | |
1164 | z3, | |
1165 | msh | |
1166 | }) | |
1167 | end | |
1168 | } | |
1169 | } | |
1170 | function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size) | |
1171 | local fp = IT("Part") | |
1172 | fp.formFactor = formfactor | |
1173 | fp.Parent = parent | |
1174 | fp.Reflectance = reflectance | |
1175 | fp.Transparency = transparency | |
1176 | fp.CanCollide = false | |
1177 | fp.Locked = true | |
1178 | fp.BrickColor = brickcolor | |
1179 | fp.Name = name | |
1180 | fp.Size = size | |
1181 | fp.Position = tors.Position | |
1182 | RemoveOutlines(fp) | |
1183 | fp.Material = "SmoothPlastic" | |
1184 | fp:BreakJoints() | |
1185 | return fp | |
1186 | end | |
1187 | ||
1188 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
1189 | local mesh = IT(Mesh) | |
1190 | mesh.Parent = part | |
1191 | if Mesh == "SpecialMesh" then | |
1192 | mesh.MeshType = meshtype | |
1193 | if meshid ~= "nil" then | |
1194 | mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid | |
1195 | end | |
1196 | end | |
1197 | mesh.Offset = offset | |
1198 | mesh.Scale = scale | |
1199 | return mesh | |
1200 | end | |
1201 | ||
1202 | function MagicCharge(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType) | |
1203 | local type = type | |
1204 | local rng = Instance.new("Part", char) | |
1205 | rng.Anchored = true | |
1206 | rng.BrickColor = color | |
1207 | rng.CanCollide = false | |
1208 | rng.FormFactor = 3 | |
1209 | rng.Name = "Ring" | |
1210 | rng.Material = "Neon" | |
1211 | rng.Size = Vector3.new(1, 1, 1) | |
1212 | rng.Transparency = 1 | |
1213 | rng.TopSurface = 0 | |
1214 | rng.BottomSurface = 0 | |
1215 | rng.CFrame = pos | |
1216 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
1217 | local rngm = Instance.new("SpecialMesh", rng) | |
1218 | rngm.MeshType = MType | |
1219 | rngm.Scale = Vector3.new(x1, y1, z1) | |
1220 | local scaler2 = 1 | |
1221 | local speeder = FastSpeed | |
1222 | if type == "Add" then | |
1223 | scaler2 = 1 * value | |
1224 | elseif type == "Divide" then | |
1225 | scaler2 = 1 / value | |
1226 | end | |
1227 | coroutine.resume(coroutine.create(function() | |
1228 | for i = 0, 10 / bonuspeed, 0.1 do | |
1229 | swait() | |
1230 | if type == "Add" then | |
1231 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
1232 | elseif type == "Divide" then | |
1233 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
1234 | end | |
1235 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
1236 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
1237 | rng.Transparency = rng.Transparency - 0.01 * bonuspeed | |
1238 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
1239 | end | |
1240 | rng:Destroy() | |
1241 | end)) | |
1242 | end | |
1243 | ||
1244 | function Magic(bonuspeed, type, pos, scale, value, color, MType) | |
1245 | local type = type | |
1246 | local rng = Instance.new("Part", char) | |
1247 | rng.Anchored = true | |
1248 | rng.BrickColor = color | |
1249 | rng.CanCollide = false | |
1250 | rng.FormFactor = 3 | |
1251 | rng.Name = "Ring" | |
1252 | rng.Material = "Neon" | |
1253 | rng.Size = Vector3.new(1, 1, 1) | |
1254 | rng.Transparency = 0 | |
1255 | rng.TopSurface = 0 | |
1256 | rng.BottomSurface = 0 | |
1257 | rng.CFrame = pos | |
1258 | local rngm = Instance.new("SpecialMesh", rng) | |
1259 | rngm.MeshType = MType | |
1260 | rngm.Scale = scale | |
1261 | local scaler2 = 1 | |
1262 | if type == "Add" then | |
1263 | scaler2 = 1 * value | |
1264 | elseif type == "Divide" then | |
1265 | scaler2 = 1 / value | |
1266 | end | |
1267 | coroutine.resume(coroutine.create(function() | |
1268 | for i = 0, 10 / bonuspeed, 0.1 do | |
1269 | swait() | |
1270 | if type == "Add" then | |
1271 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
1272 | elseif type == "Divide" then | |
1273 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
1274 | end | |
1275 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
1276 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
1277 | end | |
1278 | rng:Destroy() | |
1279 | end)) | |
1280 | end | |
1281 | ||
1282 | function Eviscerate(dude) | |
1283 | if dude.Name ~= char then | |
1284 | local bgf = IT("BodyGyro", dude.Head) | |
1285 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
1286 | local val = IT("BoolValue", dude) | |
1287 | val.Name = "IsHit" | |
1288 | local ds = coroutine.wrap(function() | |
1289 | dude:WaitForChild("Head"):BreakJoints() | |
1290 | wait(0.5) | |
1291 | target = nil | |
1292 | coroutine.resume(coroutine.create(function() | |
1293 | for i, v in pairs(dude:GetChildren()) do | |
1294 | if v:IsA("Accessory") then | |
1295 | v:Destroy() | |
1296 | end | |
1297 | if v:IsA("Humanoid") then | |
1298 | v:Destroy() | |
1299 | end | |
1300 | if v:IsA("CharacterMesh") then | |
1301 | v:Destroy() | |
1302 | end | |
1303 | if v:IsA("Model") then | |
1304 | v:Destroy() | |
1305 | end | |
1306 | if v:IsA("Part") or v:IsA("MeshPart") then | |
1307 | for x, o in pairs(v:GetChildren()) do | |
1308 | if o:IsA("Decal") then | |
1309 | o:Destroy() | |
1310 | end | |
1311 | end | |
1312 | coroutine.resume(coroutine.create(function() | |
1313 | v.Material = "Neon" | |
1314 | v.CanCollide = false | |
1315 | local PartEmmit1 = IT("ParticleEmitter", v) | |
1316 | PartEmmit1.LightEmission = 1 | |
1317 | PartEmmit1.Texture = "rbxassetid://284205403" | |
1318 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1319 | PartEmmit1.Rate = 150 | |
1320 | PartEmmit1.Lifetime = NumberRange.new(1) | |
1321 | PartEmmit1.Size = NumberSequence.new({ | |
1322 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
1323 | NumberSequenceKeypoint.new(1, 0, 0) | |
1324 | }) | |
1325 | PartEmmit1.Transparency = NumberSequence.new({ | |
1326 | NumberSequenceKeypoint.new(0, 0, 0), | |
1327 | NumberSequenceKeypoint.new(1, 1, 0) | |
1328 | }) | |
1329 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
1330 | PartEmmit1.VelocitySpread = 30000 | |
1331 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
1332 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
1333 | local BodPoss = IT("BodyPosition", v) | |
1334 | BodPoss.P = 3000 | |
1335 | BodPoss.D = 1000 | |
1336 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
1337 | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
1338 | v.Color = maincolor.Color | |
1339 | coroutine.resume(coroutine.create(function() | |
1340 | for i = 0, 49 do | |
1341 | swait(1) | |
1342 | v.Transparency = v.Transparency + 0.08 | |
1343 | end | |
1344 | wait(0.5) | |
1345 | PartEmmit1.Enabled = false | |
1346 | wait(3) | |
1347 | v:Destroy() | |
1348 | dude:Destroy() | |
1349 | end)) | |
1350 | end)) | |
1351 | end | |
1352 | end | |
1353 | end)) | |
1354 | end) | |
1355 | ds() | |
1356 | end | |
1357 | end | |
1358 | ||
1359 | function FindNearestHead(Position, Distance, SinglePlayer) | |
1360 | if SinglePlayer then | |
1361 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
1362 | end | |
1363 | local List = {} | |
1364 | for i, v in pairs(workspace:GetChildren()) do | |
1365 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then | |
1366 | table.insert(List, v) | |
1367 | end | |
1368 | end | |
1369 | return List | |
1370 | end | |
1371 | ||
1372 | function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType) | |
1373 | local type = type | |
1374 | local rng = Instance.new("Part", char) | |
1375 | rng.Anchored = true | |
1376 | rng.BrickColor = color | |
1377 | rng.CanCollide = false | |
1378 | rng.FormFactor = 3 | |
1379 | rng.Name = "Ring" | |
1380 | rng.Material = "Neon" | |
1381 | rng.Size = Vector3.new(1, 1, 1) | |
1382 | rng.Transparency = 0 | |
1383 | rng.TopSurface = 0 | |
1384 | rng.BottomSurface = 0 | |
1385 | rng.CFrame = pos | |
1386 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
1387 | local rngm = Instance.new("SpecialMesh", rng) | |
1388 | rngm.MeshType = MType | |
1389 | rngm.Scale = Vector3.new(x1, y1, z1) | |
1390 | local scaler2 = 1 | |
1391 | local speeder = FastSpeed | |
1392 | if type == "Add" then | |
1393 | scaler2 = 1 * value | |
1394 | elseif type == "Divide" then | |
1395 | scaler2 = 1 / value | |
1396 | end | |
1397 | coroutine.resume(coroutine.create(function() | |
1398 | for i = 0, 10 / bonuspeed, 0.1 do | |
1399 | swait() | |
1400 | if type == "Add" then | |
1401 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
1402 | elseif type == "Divide" then | |
1403 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
1404 | end | |
1405 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
1406 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
1407 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
1408 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
1409 | end | |
1410 | rng:Destroy() | |
1411 | end)) | |
1412 | end | |
1413 | ||
1414 | function SoulSteal(dude) | |
1415 | if dude.Name ~= char then | |
1416 | local bgf = IT("BodyGyro", dude.Head) | |
1417 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
1418 | local val = IT("BoolValue", dude) | |
1419 | val.Name = "IsHit" | |
1420 | local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart') | |
1421 | local soulst = coroutine.wrap(function() | |
1422 | local soul = Instance.new("Part",dude) | |
1423 | soul.Size = Vector3.new(1,1,1) | |
1424 | soul.CanCollide = false | |
1425 | soul.Anchored = false | |
1426 | soul.Position = torso.Position | |
1427 | soul.Transparency = 1 | |
1428 | local PartEmmit1 = IT("ParticleEmitter", soul) | |
1429 | PartEmmit1.LightEmission = 1 | |
1430 | PartEmmit1.Texture = "rbxassetid://569507414" | |
1431 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1432 | PartEmmit1.Rate = 250 | |
1433 | PartEmmit1.Lifetime = NumberRange.new(1.6) | |
1434 | PartEmmit1.Size = NumberSequence.new({ | |
1435 | NumberSequenceKeypoint.new(0, 1, 0), | |
1436 | NumberSequenceKeypoint.new(1, 0, 0) | |
1437 | }) | |
1438 | PartEmmit1.Transparency = NumberSequence.new({ | |
1439 | NumberSequenceKeypoint.new(0, 0, 0), | |
1440 | NumberSequenceKeypoint.new(1, 1, 0) | |
1441 | }) | |
1442 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
1443 | PartEmmit1.VelocitySpread = 30000 | |
1444 | PartEmmit1.Rotation = NumberRange.new(-360, 360) | |
1445 | PartEmmit1.RotSpeed = NumberRange.new(-360, 360) | |
1446 | local BodPoss = IT("BodyPosition", soul) | |
1447 | BodPoss.P = 3000 | |
1448 | BodPoss.D = 1000 | |
1449 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
1450 | BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
1451 | wait(1.6) | |
1452 | soul.Touched:connect(function(hit) | |
1453 | if hit.Parent == char then | |
1454 | soul:Destroy() | |
1455 | end | |
1456 | end) | |
1457 | wait(1.2) | |
1458 | while soul do | |
1459 | swait() | |
1460 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1461 | BodPoss.Position = tors.Position | |
1462 | end | |
1463 | end) | |
1464 | soulst() | |
1465 | end | |
1466 | end | |
1467 | function FaceMouse() | |
1468 | local Cam = workspace.CurrentCamera | |
1469 | return { | |
1470 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
1471 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
1472 | } | |
1473 | end | |
1474 | ------------------------------------------------------- | |
1475 | --End Effect Function-- | |
1476 | ------------------------------------------------------- | |
1477 | function Cso(ID, PARENT, VOLUME, PITCH) | |
1478 | local NSound = nil | |
1479 | coroutine.resume(coroutine.create(function() | |
1480 | NSound = IT("Sound", PARENT) | |
1481 | NSound.Volume = VOLUME | |
1482 | NSound.Pitch = PITCH | |
1483 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1484 | swait() | |
1485 | NSound:play() | |
1486 | game:GetService("Debris"):AddItem(NSound, 10) | |
1487 | end)) | |
1488 | return NSound | |
1489 | end | |
1490 | function CameraEnshaking(Length, Intensity) | |
1491 | coroutine.resume(coroutine.create(function() | |
1492 | local intensity = 1 * Intensity | |
1493 | local rotM = 0.01 * Intensity | |
1494 | for i = 0, Length, 0.1 do | |
1495 | swait() | |
1496 | intensity = intensity - 0.05 * Intensity / Length | |
1497 | rotM = rotM - 5.0E-4 * Intensity / Length | |
1498 | hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) | |
1499 | cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM) | |
1500 | end | |
1501 | hum.CameraOffset = Vector3.new(0, 0, 0) | |
1502 | end)) | |
1503 | end | |
1504 | function HitboxFunction(Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype) | |
1505 | local Hitboxpart = Instance.new("Part", EffectModel) | |
1506 | RemoveOutlines(Hitboxpart) | |
1507 | Hitboxpart.Size = Vector3.new(siz1, siz2, siz3) | |
1508 | Hitboxpart.CanCollide = false | |
1509 | Hitboxpart.Transparency = 1 | |
1510 | Hitboxpart.Anchored = true | |
1511 | Hitboxpart.CFrame = Pose | |
1512 | game:GetService("Debris"):AddItem(Hitboxpart, lifetime) | |
1513 | MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype) | |
1514 | end | |
1515 | function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
1516 | local prt = CreatePart1(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1517 | prt.Anchored = true | |
1518 | prt.CFrame = cframe | |
1519 | local msh = CreateMesh1("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1520 | game:GetService("Debris"):AddItem(prt, 10) | |
1521 | if Type == 1 or Type == nil then | |
1522 | table.insert(Effects, { | |
1523 | prt, | |
1524 | "Block1", | |
1525 | delay, | |
1526 | x3, | |
1527 | y3, | |
1528 | z3, | |
1529 | msh | |
1530 | }) | |
1531 | elseif Type == 2 then | |
1532 | table.insert(Effects, { | |
1533 | prt, | |
1534 | "Block2", | |
1535 | delay, | |
1536 | x3, | |
1537 | y3, | |
1538 | z3, | |
1539 | msh | |
1540 | }) | |
1541 | elseif Type == 3 then | |
1542 | table.insert(Effects, { | |
1543 | prt, | |
1544 | "Block3", | |
1545 | delay, | |
1546 | x3, | |
1547 | y3, | |
1548 | z3, | |
1549 | msh | |
1550 | }) | |
1551 | end | |
1552 | end | |
1553 | ||
1554 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
1555 | local Part = Create("Part"){ | |
1556 | Parent = Parent, | |
1557 | Reflectance = Reflectance, | |
1558 | Transparency = Transparency, | |
1559 | CanCollide = false, | |
1560 | Locked = true, | |
1561 | BrickColor = BrickColor.new(tostring(BColor)), | |
1562 | Name = Name, | |
1563 | Size = Size, | |
1564 | Material = Material, | |
1565 | } | |
1566 | RemoveOutlines(Part) | |
1567 | return Part | |
1568 | end | |
1569 | ||
1570 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
1571 | local Msh = Create(Mesh){ | |
1572 | Parent = Part, | |
1573 | Offset = OffSet, | |
1574 | Scale = Scale, | |
1575 | } | |
1576 | if Mesh == "SpecialMesh" then | |
1577 | Msh.MeshType = MeshType | |
1578 | Msh.MeshId = MeshId | |
1579 | end | |
1580 | return Msh | |
1581 | end | |
1582 | ||
1583 | function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1584 | local prt = CreatePart(workspace,"Neon",0,0,brickcolor,"Effect", Vector3.new(.5,.5,.5))--part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1585 | prt.Anchored = true | |
1586 | prt.CFrame = cframe | |
1587 | local msh = CreateMesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",Vector3.new(0,0,0),Vector3.new(x1,y1,z1)) | |
1588 | game:GetService("Debris"):AddItem(prt,2) | |
1589 | coroutine.resume(coroutine.create(function(Part,Mesh,num) | |
1590 | for i=0,1,delay do | |
1591 | swait() | |
1592 | Part.Transparency=i | |
1593 | Mesh.Scale=Mesh.Scale + Vector3.new(x3,y3,z3) | |
1594 | end | |
1595 | Part.Parent=nil | |
1596 | end),prt,msh,(math.random(0,1)+math.random())/5) | |
1597 | end | |
1598 | ------------------------------------------------------- | |
1599 | --End Important Functions-- | |
1600 | ------------------------------------------------------- | |
1601 | ||
1602 | ||
1603 | ||
1604 | --[[ | |
1605 | Thanks for using Build-To-Lua by jarredbcv. | |
1606 | ]]-- | |
1607 | ||
1608 | New = function(Object, Parent, Name, Data) | |
1609 | local Object = Instance.new(Object) | |
1610 | for Index, Value in pairs(Data or {}) do | |
1611 | Object[Index] = Value | |
1612 | end | |
1613 | Object.Parent = Parent | |
1614 | Object.Name = Name | |
1615 | return Object | |
1616 | end | |
1617 | ||
1618 | Player = game:GetService("Players").LocalPlayer | |
1619 | PlayerGui = Player.PlayerGui | |
1620 | Cam = workspace.CurrentCamera | |
1621 | Backpack = Player.Backpack | |
1622 | Character = Player.Character | |
1623 | Mouse = Player:GetMouse() | |
1624 | RootPart = Character["HumanoidRootPart"] | |
1625 | Torso = Character["Torso"] | |
1626 | Head = Character["Head"] | |
1627 | RightArm = Character["Right Arm"] | |
1628 | LeftArm = Character["Left Arm"] | |
1629 | RightLeg = Character["Right Leg"] | |
1630 | LeftLeg = Character["Left Leg"] | |
1631 | RootJoint = RootPart["RootJoint"] | |
1632 | Neck = Torso["Neck"] | |
1633 | ||
1634 | IT = Instance.new | |
1635 | CF = CFrame.new | |
1636 | VT = Vector3.new | |
1637 | RAD = math.rad | |
1638 | C3 = Color3.new | |
1639 | UD2 = UDim2.new | |
1640 | BRICKC = BrickColor.new | |
1641 | ANGLES = CFrame.Angles | |
1642 | EULER = CFrame.fromEulerAnglesXYZ | |
1643 | COS = math.cos | |
1644 | ACOS = math.acos | |
1645 | SIN = math.sin | |
1646 | ASIN = math.asin | |
1647 | ABS = math.abs | |
1648 | MRANDOM = math.random | |
1649 | FLOOR = math.floor | |
1650 | ||
1651 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
1652 | WEAPONGUI.Name = "Weapon GUI" | |
1653 | ||
1654 | function CreatePart3(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
1655 | local NEWPART = IT("Part") | |
1656 | NEWPART.formFactor = FORMFACTOR | |
1657 | NEWPART.Reflectance = REFLECTANCE | |
1658 | NEWPART.Transparency = TRANSPARENCY | |
1659 | NEWPART.CanCollide = false | |
1660 | NEWPART.Locked = true | |
1661 | NEWPART.Anchored = true | |
1662 | if ANCHOR == false then | |
1663 | NEWPART.Anchored = false | |
1664 | end | |
1665 | NEWPART.BrickColor = BrickC(tostring(BRICKCOLOR)) | |
1666 | NEWPART.Name = NAME | |
1667 | NEWPART.Size = SIZE | |
1668 | NEWPART.Position = Torso.Position | |
1669 | NEWPART.Material = MATERIAL | |
1670 | NEWPART:BreakJoints() | |
1671 | NEWPART.Parent = PARENT | |
1672 | return NEWPART | |
1673 | end | |
1674 | ||
1675 | function NoOutlines(PART) | |
1676 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
1677 | end | |
1678 | ||
1679 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
1680 | local NEWWELD = IT(TYPE) | |
1681 | NEWWELD.Part0 = PART0 | |
1682 | NEWWELD.Part1 = PART1 | |
1683 | NEWWELD.C0 = C0 | |
1684 | NEWWELD.C1 = C1 | |
1685 | NEWWELD.Parent = PARENT | |
1686 | return NEWWELD | |
1687 | end | |
1688 | ||
1689 | function MakeForm(PART,TYPE) | |
1690 | if TYPE == "Cyl" then | |
1691 | local MSH = IT("CylinderMesh",PART) | |
1692 | elseif TYPE == "Ball" then | |
1693 | local MSH = IT("SpecialMesh",PART) | |
1694 | MSH.MeshType = "Sphere" | |
1695 | elseif TYPE == "Wedge" then | |
1696 | local MSH = IT("SpecialMesh",PART) | |
1697 | MSH.MeshType = "Wedge" | |
1698 | end | |
1699 | end | |
1700 | ||
1701 | ||
1702 | --GAUGNETS AND STUFF-- | |
1703 | ||
1704 | local cn = CFrame.new | |
1705 | NeonColorParts100 = {} | |
1706 | NeonColorParts1000 = {} | |
1707 | local BC = Character["Body Colors"] | |
1708 | ||
1709 | local aa35 = Instance.new("Part") | |
1710 | aa35.Parent = char | |
1711 | aa35.Size = Vector3.new(0.2, 0.2, 0.2) | |
1712 | aa35.Archivable = true | |
1713 | aa35.Transparency = 0 | |
1714 | aa35.Shape = "Ball" | |
1715 | aa35.BrickColor = BrickColor.new("White") | |
1716 | aa35.Material = "Neon" | |
1717 | aa35.CanCollide = false | |
1718 | local mesh = Instance.new("SpecialMesh", aa35) | |
1719 | mesh.MeshType = "Cylinder" | |
1720 | mesh.Scale = Vector3.new(0.50, 5.70, 15) | |
1721 | local weld1en = Instance.new("Weld") | |
1722 | - | weld1en.Parent = hed |
1722 | + | |
1723 | - | weld1en.Part0 = hed |
1723 | + | |
1724 | weld1en.C0 = CFrame.new(0,0,0) * angles(Rad(0),Rad(0),Rad(90)) | |
1725 | ||
1726 | local aa34 = Instance.new("Part") | |
1727 | aa34.Parent = char | |
1728 | aa34.Size = Vector3.new(0.2, 0.2, 0.2) | |
1729 | aa34.Archivable = true | |
1730 | aa34.Transparency = 0 | |
1731 | aa34.Shape = "Ball" | |
1732 | aa34.BrickColor = BrickColor.new("Dark stone grey") | |
1733 | aa34.Material = "Metal" | |
1734 | aa34.CanCollide = false | |
1735 | local mesh = Instance.new("SpecialMesh", aa34) | |
1736 | mesh.MeshType = "Cylinder" | |
1737 | mesh.Scale = Vector3.new(1, 5.70, 15) | |
1738 | local weld1en = Instance.new("Weld") | |
1739 | ||
1740 | weld1en.Part1 = aa34 | |
1741 | - | weld1en.Parent = hed |
1741 | + | |
1742 | - | weld1en.Part0 = hed |
1742 | + | |
1743 | ||
1744 | local aa33 = Instance.new("Part") | |
1745 | aa33.Parent = char | |
1746 | aa33.Size = Vector3.new(0.2, 0.2, 0.2) | |
1747 | aa33.Archivable = true | |
1748 | aa33.Transparency = 0 | |
1749 | aa33.Shape = "Ball" | |
1750 | aa33.BrickColor = BrickColor.new("White") | |
1751 | aa33.Material = "Neon" | |
1752 | aa33.CanCollide = false | |
1753 | local mesh = Instance.new("SpecialMesh", aa33) | |
1754 | mesh.MeshType = "Cylinder" | |
1755 | mesh.Scale = Vector3.new(0.50, 5.70, 15) | |
1756 | local weld1en = Instance.new("Weld") | |
1757 | ||
1758 | weld1en.Part1 = aa33 | |
1759 | weld1en.C1 = CFrame.new(0, 0, -0.065) | |
1760 | - | weld1en.Parent = hed |
1760 | + | |
1761 | - | weld1en.Part0 = hed |
1761 | + | |
1762 | local aa32 = Instance.new("Part") | |
1763 | aa32.Parent = char | |
1764 | aa32.Size = Vector3.new(0.2, 0.2, 0.2) | |
1765 | aa32.Archivable = true | |
1766 | aa32.Transparency = 0 | |
1767 | aa32.Shape = "Ball" | |
1768 | aa32.BrickColor = BrickColor.new("Dark stone grey") | |
1769 | aa32.Material = "Metal" | |
1770 | aa32.CanCollide = false | |
1771 | local mesh = Instance.new("SpecialMesh", aa32) | |
1772 | mesh.MeshType = "Cylinder" | |
1773 | mesh.Scale = Vector3.new(1, 5.70, 15) | |
1774 | local weld1en = Instance.new("Weld") | |
1775 | ||
1776 | weld1en.Part1 = aa32 | |
1777 | weld1en.C1 = CFrame.new(0, 0, -0.06) | |
1778 | weld1en.C0 = CFrame.new(0,0,0) * angles(Rad(0),Rad(0),Rad(90)) | |
1779 | - | weld1en.Parent = hed |
1779 | + | |
1780 | - | weld1en.Part0 = hed |
1780 | + | |
1781 | aa31.Parent = char | |
1782 | aa31.Size = Vector3.new(0.2, 0.2, 0.2) | |
1783 | aa31.Archivable = true | |
1784 | aa31.Transparency = 0 | |
1785 | aa31.Shape = "Ball" | |
1786 | aa31.BrickColor = BrickColor.new("White") | |
1787 | aa31.Material = "Neon" | |
1788 | aa31.CanCollide = false | |
1789 | local mesh = Instance.new("SpecialMesh", aa31) | |
1790 | mesh.MeshType = "Cylinder" | |
1791 | mesh.Scale = Vector3.new(0.50, 5.70, 15) | |
1792 | local weld1en = Instance.new("Weld") | |
1793 | ||
1794 | weld1en.Part1 = aa31 | |
1795 | weld1en.C1 = CFrame.new(0.22, 0, -0.065) | |
1796 | weld1en.C0 = CFrame.new(0,0,0) * angles(Rad(0),Rad(0),Rad(90)) | |
1797 | ||
1798 | - | weld1en.Parent = hed |
1798 | + | |
1799 | - | weld1en.Part0 = hed |
1799 | + | |
1800 | aa30.Size = Vector3.new(0.2, 0.2, 0.2) | |
1801 | aa30.Archivable = true | |
1802 | aa30.Transparency = 0 | |
1803 | aa30.Shape = "Ball" | |
1804 | aa30.BrickColor = BrickColor.new("Dark stone grey") | |
1805 | aa30.Material = "Metal" | |
1806 | aa30.CanCollide = false | |
1807 | local mesh = Instance.new("SpecialMesh", aa30) | |
1808 | mesh.MeshType = "Cylinder" | |
1809 | mesh.Scale = Vector3.new(1, 5.70, 15) | |
1810 | local weld1en = Instance.new("Weld") | |
1811 | ||
1812 | weld1en.Part1 = aa30 | |
1813 | weld1en.C1 = CFrame.new(0.22, 0, -0.06) | |
1814 | weld1en.C0 = CFrame.new(0,0,0) * angles(Rad(0),Rad(0),Rad(90)) | |
1815 | ||
1816 | local aa28 = Instance.new("Part") | |
1817 | - | weld1en.Parent = hed |
1817 | + | |
1818 | - | weld1en.Part0 = hed |
1818 | + | |
1819 | aa28.Archivable = true | |
1820 | aa28.Transparency = 0 | |
1821 | aa28.Shape = "Ball" | |
1822 | aa28.BrickColor = BrickColor.new("White") | |
1823 | aa28.Material = "Neon" | |
1824 | aa28.CanCollide = false | |
1825 | local mesh = Instance.new("SpecialMesh", aa28) | |
1826 | mesh.MeshType = "Cylinder" | |
1827 | mesh.Scale = Vector3.new(0.50, 5.70, 15) | |
1828 | local weld1en = Instance.new("Weld") | |
1829 | ||
1830 | weld1en.Part1 = aa28 | |
1831 | weld1en.C1 = CFrame.new(0.22, 0, 0.065) | |
1832 | weld1en.C0 = CFrame.new(0,0,0) * angles(Rad(0),Rad(0),Rad(90)) | |
1833 | ||
1834 | local aa27 = Instance.new("Part") | |
1835 | aa27.Parent = char | |
1836 | - | weld1en.Parent = hed |
1836 | + | |
1837 | - | weld1en.Part0 = hed |
1837 | + | |
1838 | aa27.Transparency = 0 | |
1839 | aa27.Shape = "Ball" | |
1840 | aa27.BrickColor = BrickColor.new("Dark stone grey") | |
1841 | aa27.Material = "Metal" | |
1842 | aa27.CanCollide = false | |
1843 | local mesh = Instance.new("SpecialMesh", aa27) | |
1844 | mesh.MeshType = "Cylinder" | |
1845 | mesh.Scale = Vector3.new(1, 5.70, 15) | |
1846 | local weld1en = Instance.new("Weld") | |
1847 | ||
1848 | weld1en.Part1 = aa27 | |
1849 | weld1en.C1 = CFrame.new(0.22, 0, 0.06) | |
1850 | weld1en.C0 = CFrame.new(0,0,0) * angles(Rad(0),Rad(0),Rad(90)) | |
1851 | ||
1852 | local aa26 = Instance.new("Part") | |
1853 | aa26.Parent = char | |
1854 | aa26.Size = Vector3.new(0.2, 0.2, 0.2) | |
1855 | - | weld1en.Parent = hed |
1855 | + | |
1856 | - | weld1en.Part0 = hed |
1856 | + | |
1857 | aa26.Shape = "Ball" | |
1858 | aa26.BrickColor = BrickColor.new("White") | |
1859 | aa26.Material = "Neon" | |
1860 | aa26.CanCollide = false | |
1861 | local mesh = Instance.new("SpecialMesh", aa26) | |
1862 | mesh.MeshType = "Cylinder" | |
1863 | mesh.Scale = Vector3.new(0.50, 5.70, 15) | |
1864 | local weld1en = Instance.new("Weld") | |
1865 | ||
1866 | weld1en.Part1 = aa26 | |
1867 | weld1en.C1 = CFrame.new(0, 0, 0.065) | |
1868 | weld1en.C0 = CFrame.new(0,0,0) * angles(Rad(0),Rad(0),Rad(90)) | |
1869 | ||
1870 | local aa25 = Instance.new("Part") | |
1871 | aa25.Parent = char | |
1872 | aa25.Size = Vector3.new(0.2, 0.2, 0.2) | |
1873 | aa25.Archivable = true | |
1874 | - | weld1en.Parent = hed |
1874 | + | |
1875 | - | weld1en.Part0 = hed |
1875 | + | |
1876 | aa25.BrickColor = BrickColor.new("Dark stone grey") | |
1877 | aa25.Material = "Metal" | |
1878 | aa25.CanCollide = false | |
1879 | local mesh = Instance.new("SpecialMesh", aa25) | |
1880 | mesh.MeshType = "Cylinder" | |
1881 | mesh.Scale = Vector3.new(1, 5.70, 15) | |
1882 | local weld1en = Instance.new("Weld") | |
1883 | ||
1884 | weld1en.Part1 = aa25 | |
1885 | weld1en.C1 = CFrame.new(0, 0, 0.06) | |
1886 | weld1en.C0 = CFrame.new(0,0,0) * angles(Rad(0),Rad(0),Rad(90)) | |
1887 | ||
1888 | local aa24 = Instance.new("Part") | |
1889 | aa24.Parent = char | |
1890 | aa24.Size = Vector3.new(0.2, 0.2, 0.2) | |
1891 | aa24.Archivable = true | |
1892 | aa24.Transparency = 0 | |
1893 | - | weld1en.Parent = hed |
1893 | + | |
1894 | - | weld1en.Part0 = hed |
1894 | + | |
1895 | aa24.Material = "Neon" | |
1896 | aa24.CanCollide = false | |
1897 | local mesh = Instance.new("SpecialMesh", aa24) | |
1898 | mesh.MeshType = "Cylinder" | |
1899 | mesh.Scale = Vector3.new(0.50, 5.70, 15) | |
1900 | local weld1en = Instance.new("Weld") | |
1901 | ||
1902 | weld1en.Part1 = aa24 | |
1903 | weld1en.C1 = CFrame.new(-0.22, 0, 0.065) | |
1904 | weld1en.C0 = CFrame.new(0,0,0) * angles(Rad(0),Rad(0),Rad(90)) | |
1905 | ||
1906 | local aa23 = Instance.new("Part") | |
1907 | aa23.Parent = char | |
1908 | aa23.Size = Vector3.new(0.2, 0.2, 0.2) | |
1909 | aa23.Archivable = true | |
1910 | aa23.Transparency = 0 | |
1911 | aa23.Shape = "Ball" | |
1912 | - | weld1en.Parent = hed |
1912 | + | |
1913 | - | weld1en.Part0 = hed |
1913 | + | |
1914 | aa23.CanCollide = false | |
1915 | local mesh = Instance.new("SpecialMesh", aa23) | |
1916 | mesh.MeshType = "Cylinder" | |
1917 | mesh.Scale = Vector3.new(1, 5.70, 15) | |
1918 | local weld1en = Instance.new("Weld") | |
1919 | ||
1920 | weld1en.Part1 = aa23 | |
1921 | weld1en.C1 = CFrame.new(-0.22, 0, 0.06) | |
1922 | weld1en.C0 = CFrame.new(0,0,0) * angles(Rad(0),Rad(0),Rad(90)) | |
1923 | ||
1924 | local aa11 = Instance.new("Part") | |
1925 | aa11.Parent = char | |
1926 | aa11.Size = Vector3.new(0.2, 0.2, 0.2) | |
1927 | aa11.Archivable = true | |
1928 | aa11.Transparency = 0 | |
1929 | aa11.Shape = "Ball" | |
1930 | aa11.BrickColor = BrickColor.new("Dark green") | |
1931 | - | weld1en.Parent = hed |
1931 | + | |
1932 | - | weld1en.Part0 = hed |
1932 | + | |
1933 | local mesh = Instance.new("SpecialMesh", aa11) | |
1934 | mesh.MeshType = "Cylinder" | |
1935 | mesh.Scale = Vector3.new(2.90, 2.90, 2.90) | |
1936 | local weld1en = Instance.new("Weld") | |
1937 | weld1en.Parent = ra | |
1938 | weld1en.Part0 = ra | |
1939 | weld1en.Part1 = aa11 | |
1940 | weld1en.C1 = CFrame.new(-0.40, 0.40, 0) | |
1941 | ||
1942 | local aa10 = Instance.new("Part") | |
1943 | aa10.Parent = char | |
1944 | aa10.Size = Vector3.new(0.2, 0.2, 0.2) | |
1945 | aa10.Archivable = true | |
1946 | aa10.Transparency = 0 | |
1947 | aa10.Shape = "Ball" | |
1948 | aa10.BrickColor = BrickColor.new("Dark stone grey") | |
1949 | aa10.Material = "Metal" | |
1950 | aa10.CanCollide = false | |
1951 | local mesh = Instance.new("SpecialMesh", aa10) | |
1952 | mesh.MeshType = "Cylinder" | |
1953 | mesh.Scale = Vector3.new(3, 3, 3) | |
1954 | local weld1en = Instance.new("Weld") | |
1955 | weld1en.Parent = ra | |
1956 | weld1en.Part0 = ra | |
1957 | weld1en.Part1 = aa10 | |
1958 | weld1en.C1 = CFrame.new(-0.35, 0.40, 0) | |
1959 | ||
1960 | local aa9 = Instance.new("Part") | |
1961 | aa9.Parent = char | |
1962 | aa9.Size = Vector3.new(0.2, 0.2, 0.2) | |
1963 | aa9.Archivable = true | |
1964 | aa9.Transparency = 0 | |
1965 | aa9.Shape = "Ball" | |
1966 | aa9.BrickColor = BrickColor.new("White") | |
1967 | aa9.Material = "Metal" | |
1968 | aa9.CanCollide = false | |
1969 | local mesh = Instance.new("SpecialMesh", aa9) | |
1970 | mesh.MeshType = "Brick" | |
1971 | mesh.Scale = Vector3.new(5.70, 1, 5.70) | |
1972 | local weld1en = Instance.new("Weld") | |
1973 | weld1en.Parent = ra | |
1974 | weld1en.Part0 = ra | |
1975 | weld1en.Part1 = aa9 | |
1976 | weld1en.C1 = CFrame.new(0, -1, 0) | |
1977 | ||
1978 | local aa21 = Instance.new("Part") | |
1979 | aa21.Parent = char | |
1980 | aa21.Size = Vector3.new(0.2, 0.2, 0.2) | |
1981 | aa21.Archivable = true | |
1982 | aa21.Transparency = 0 | |
1983 | aa21.Shape = "Ball" | |
1984 | aa21.BrickColor = BrickColor.new("White") | |
1985 | aa21.Material = "Metal" | |
1986 | aa21.CanCollide = false | |
1987 | local mesh = Instance.new("SpecialMesh", aa21) | |
1988 | mesh.MeshType = "Brick" | |
1989 | mesh.Scale = Vector3.new(5.90, 0.50, 5.90) | |
1990 | local weld1en = Instance.new("Weld") | |
1991 | weld1en.Parent = ra | |
1992 | weld1en.Part0 = ra | |
1993 | weld1en.Part1 = aa21 | |
1994 | weld1en.C1 = CFrame.new(0, 0.95, 0) | |
1995 | ||
1996 | local aa20 = Instance.new("Part") | |
1997 | aa20.Parent = char | |
1998 | aa20.Size = Vector3.new(0.2, 0.2, 0.2) | |
1999 | aa20.Archivable = true | |
2000 | aa20.Transparency = 0 | |
2001 | aa20.Shape = "Ball" | |
2002 | aa20.BrickColor = BrickColor.new("White") | |
2003 | aa20.Material = "Metal" | |
2004 | aa20.CanCollide = false | |
2005 | local mesh = Instance.new("SpecialMesh", aa20) | |
2006 | mesh.MeshType = "Brick" | |
2007 | mesh.Scale = Vector3.new(5.90, 0.50, 5.90) | |
2008 | local weld1en = Instance.new("Weld") | |
2009 | weld1en.Parent = ra | |
2010 | weld1en.Part0 = ra | |
2011 | weld1en.Part1 = aa20 | |
2012 | weld1en.C1 = CFrame.new(0, -0.95, 0) | |
2013 | ||
2014 | ||
2015 | local aa8 = Instance.new("Part") | |
2016 | aa8.Parent = char | |
2017 | aa8.Size = Vector3.new(0.2, 0.2, 0.2) | |
2018 | aa8.Archivable = true | |
2019 | aa8.Transparency = 0 | |
2020 | aa8.Shape = "Ball" | |
2021 | aa8.BrickColor = BrickColor.new("Dark green") | |
2022 | aa8.Material = "Neon" | |
2023 | aa8.CanCollide = false | |
2024 | local mesh = Instance.new("SpecialMesh", aa8) | |
2025 | mesh.MeshType = "Cylinder" | |
2026 | mesh.Scale = Vector3.new(2.90, 2.90, 2.90) | |
2027 | local weld1en = Instance.new("Weld") | |
2028 | weld1en.Parent = ra | |
2029 | weld1en.Part0 = ra | |
2030 | weld1en.Part1 = aa8 | |
2031 | weld1en.C1 = CFrame.new(-0.40, -0.40, 0) | |
2032 | ||
2033 | local aa7 = Instance.new("Part") | |
2034 | aa7.Parent = char | |
2035 | aa7.Size = Vector3.new(0.2, 0.2, 0.2) | |
2036 | aa7.Archivable = true | |
2037 | aa7.Transparency = 0 | |
2038 | aa7.Shape = "Ball" | |
2039 | aa7.BrickColor = BrickColor.new("Dark stone grey") | |
2040 | aa7.Material = "Metal" | |
2041 | aa7.CanCollide = false | |
2042 | local mesh = Instance.new("SpecialMesh", aa7) | |
2043 | mesh.MeshType = "Cylinder" | |
2044 | mesh.Scale = Vector3.new(3, 3, 3) | |
2045 | local weld1en = Instance.new("Weld") | |
2046 | weld1en.Parent = ra | |
2047 | weld1en.Part0 = ra | |
2048 | weld1en.Part1 = aa7 | |
2049 | weld1en.C1 = CFrame.new(-0.35, -0.40, 0) | |
2050 | ||
2051 | local aa13 = Instance.new("Part") | |
2052 | aa13.Parent = char | |
2053 | aa13.Size = Vector3.new(0.2, 0.2, 0.2) | |
2054 | aa13.Archivable = true | |
2055 | aa13.Transparency = 0 | |
2056 | aa13.Shape = "Ball" | |
2057 | aa13.BrickColor = BrickColor.new("White") | |
2058 | aa13.Material = "Neon" | |
2059 | aa13.CanCollide = false | |
2060 | local mesh = Instance.new("SpecialMesh", aa13) | |
2061 | mesh.MeshType = "Brick" | |
2062 | mesh.Scale = Vector3.new(5.30, 0.70, 5.40) | |
2063 | local weld1en = Instance.new("Weld") | |
2064 | weld1en.Parent = ra | |
2065 | weld1en.Part0 = ra | |
2066 | weld1en.Part1 = aa13 | |
2067 | weld1en.C1 = CFrame.new(0, -1.05, 0) | |
2068 | ||
2069 | local aa12 = Instance.new("Part") | |
2070 | aa12.Parent = char | |
2071 | aa12.Size = Vector3.new(0.2, 0.2, 0.2) | |
2072 | aa12.Archivable = true | |
2073 | aa12.Transparency = 0 | |
2074 | aa12.Shape = "Ball" | |
2075 | aa12.BrickColor = BrickColor.new("White") | |
2076 | aa12.Material = "Neon" | |
2077 | aa12.CanCollide = false | |
2078 | local mesh = Instance.new("SpecialMesh", aa12) | |
2079 | mesh.MeshType = "Brick" | |
2080 | mesh.Scale = Vector3.new(5.30, 0.70, 5.40) | |
2081 | local weld1en = Instance.new("Weld") | |
2082 | weld1en.Parent = ra | |
2083 | weld1en.Part0 = ra | |
2084 | weld1en.Part1 = aa12 | |
2085 | weld1en.C1 = CFrame.new(0, 1.05, 0) | |
2086 | ||
2087 | local aa6 = Instance.new("Part") | |
2088 | aa6.Parent = char | |
2089 | aa6.Size = Vector3.new(0.2, 0.2, 0.2) | |
2090 | aa6.Archivable = true | |
2091 | aa6.Transparency = 0 | |
2092 | aa6.Shape = "Ball" | |
2093 | aa6.BrickColor = BrickColor.new("White") | |
2094 | aa6.Material = "Metal" | |
2095 | aa6.CanCollide = false | |
2096 | local mesh = Instance.new("SpecialMesh", aa6) | |
2097 | mesh.MeshType = "Brick" | |
2098 | mesh.Scale = Vector3.new(5.70, 1, 5.70) | |
2099 | local weld1en = Instance.new("Weld") | |
2100 | weld1en.Parent = ra | |
2101 | weld1en.Part0 = ra | |
2102 | weld1en.Part1 = aa6 | |
2103 | weld1en.C1 = CFrame.new(0, 1, 0) | |
2104 | ||
2105 | local aa4 = Instance.new("Part") | |
2106 | aa4.Parent = char | |
2107 | aa4.Size = Vector3.new(0.2, 0.2, 0.2) | |
2108 | aa4.Archivable = true | |
2109 | aa4.Transparency = 0 | |
2110 | aa4.Shape = "Ball" | |
2111 | aa4.BrickColor = maincolor | |
2112 | aa4.Material = "Neon" | |
2113 | aa4.CanCollide = false | |
2114 | local mesh = Instance.new("SpecialMesh", aa4) | |
2115 | mesh.MeshType = "Brick" | |
2116 | mesh.Scale = Vector3.new(1, 10.55, 5.60) | |
2117 | local weld1en = Instance.new("Weld") | |
2118 | weld1en.Parent = ra | |
2119 | weld1en.Part0 = ra | |
2120 | weld1en.Part1 = aa4 | |
2121 | weld1en.C1 = CFrame.new(0, 0, 0) | |
2122 | ||
2123 | local aa5 = Instance.new("Part") | |
2124 | aa5.Parent = char | |
2125 | aa5.Size = Vector3.new(0.2, 0.2, 0.2) | |
2126 | aa5.Archivable = true | |
2127 | aa5.Transparency = 0 | |
2128 | aa5.Shape = "Ball" | |
2129 | aa5.BrickColor = maincolor | |
2130 | aa5.Material = "Neon" | |
2131 | aa5.CanCollide = false | |
2132 | local mesh = Instance.new("SpecialMesh", aa5) | |
2133 | mesh.MeshType = "Brick" | |
2134 | mesh.Scale = Vector3.new(5.60, 10.55, 1) | |
2135 | local weld1en = Instance.new("Weld") | |
2136 | weld1en.Parent = ra | |
2137 | weld1en.Part0 = ra | |
2138 | weld1en.Part1 = aa5 | |
2139 | weld1en.C1 = CFrame.new(0, 0, 0) | |
2140 | ||
2141 | local aa = Instance.new("Part") | |
2142 | aa.Parent = char | |
2143 | aa.Size = Vector3.new(0.2, 10, 20) | |
2144 | aa.Archivable = true | |
2145 | aa.Transparency = 0 | |
2146 | aa.Shape = "Ball" | |
2147 | aa.BrickColor = BrickColor.new("Dark stone grey") | |
2148 | aa.Material = "Metal" | |
2149 | aa.CanCollide = false | |
2150 | local mesh = Instance.new("SpecialMesh", aa) | |
2151 | mesh.MeshType = "Brick" | |
2152 | mesh.Scale = Vector3.new(5.50, 10.50, 5.50) | |
2153 | local weld1en = Instance.new("Weld") | |
2154 | weld1en.Parent = ra | |
2155 | weld1en.Part0 = ra | |
2156 | weld1en.Part1 = aa | |
2157 | weld1en.C1 = CFrame.new(0, 0, 0) | |
2158 | ||
2159 | ||
2160 | --END OF GAUGNETS AND STUFF-- | |
2161 | ||
2162 | local NewInstance = function(instance,parent,properties) | |
2163 | local inst = Instance.new(instance,parent) | |
2164 | if(properties)then | |
2165 | for i,v in next, properties do | |
2166 | pcall(function() inst[i] = v end) | |
2167 | end | |
2168 | end | |
2169 | return inst; | |
2170 | end | |
2171 | ||
2172 | ||
2173 | ArmorColorParts = {} | |
2174 | ArmorColorParts2 = {} | |
2175 | NeonColorParts = {} | |
2176 | local all, last = {}, nil | |
2177 | local all2, last2 = {}, nil | |
2178 | local all3, last3 = {}, nil | |
2179 | local all4, last4 = {}, nil | |
2180 | local all, last = {}, nil | |
2181 | ------------------------------------------------------- | |
2182 | --Start Customization-- | |
2183 | ------------------------------------------------------- | |
2184 | local Player_Size = 1 | |
2185 | if Player_Size ~= 1 then | |
2186 | root.Size = root.Size * Player_Size | |
2187 | tors.Size = tors.Size * Player_Size | |
2188 | hed.Size = hed.Size * Player_Size | |
2189 | ra.Size = ra.Size * Player_Size | |
2190 | la.Size = la.Size * Player_Size | |
2191 | rl.Size = rl.Size * Player_Size | |
2192 | ll.Size = ll.Size * Player_Size | |
2193 | ---------------------------------------------------------------------------------- | |
2194 | rootj.Parent = root | |
2195 | neck.Parent = tors | |
2196 | RW.Parent = tors | |
2197 | LW.Parent = tors | |
2198 | RH.Parent = tors | |
2199 | LH.Parent = tors | |
2200 | ---------------------------------------------------------------------------------- | |
2201 | rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
2202 | rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
2203 | neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)) | |
2204 | neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180)) | |
2205 | RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0 | |
2206 | LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0 | |
2207 | ---------------------------------------------------------------------------------- | |
2208 | RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
2209 | LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
2210 | RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
2211 | LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
2212 | --hat.Parent = Character | |
2213 | end | |
2214 | ---------------------------------------------------------------------------------- | |
2215 | local SONG = 1005328332 | |
2216 | local SONG2 = 0 | |
2217 | local Music = Instance.new("Sound",tors) | |
2218 | Music.Volume = 2.5 | |
2219 | Music.Looped = true | |
2220 | Music.Pitch = 1 --Pitcher | |
2221 | ---------------------------------------------------------------------------------- | |
2222 | local equipped = false | |
2223 | local idle = 0 | |
2224 | local change = 1 | |
2225 | local val = 0 | |
2226 | local toim = 0 | |
2227 | local idleanim = 0.4 | |
2228 | local sine = 0 | |
2229 | local Mode = 1 | |
2230 | ---------------------------------------------------------------------------------- | |
2231 | hum.WalkSpeed = 8 | |
2232 | hum.JumpPower = 57 | |
2233 | hum.Animator.Parent = nil | |
2234 | ------------------------------------------------------- | |
2235 | --End Customization-- | |
2236 | ------------------------------------------------------- | |
2237 | ||
2238 | ||
2239 | ------------------------------------------------------- | |
2240 | --Start Attacks N Stuff-- | |
2241 | ------------------------------------------------------- | |
2242 | it = Instance.new | |
2243 | gui = function(GuiType, parent, text, backtrans, backcol, pos, size) | |
2244 | local gui = IT(GuiType) | |
2245 | gui.Parent = parent | |
2246 | gui.Text = text | |
2247 | gui.BackgroundTransparency = backtrans | |
2248 | gui.BackgroundColor3 = backcol | |
2249 | gui.SizeConstraint = "RelativeXY" | |
2250 | gui.TextXAlignment = "Center" | |
2251 | gui.TextYAlignment = "Center" | |
2252 | gui.Position = pos | |
2253 | gui.Size = size | |
2254 | gui.Font = "SourceSans" | |
2255 | gui.FontSize = "Size14" | |
2256 | gui.TextWrapped = false | |
2257 | gui.TextStrokeTransparency = 0 | |
2258 | gui.TextColor = BrickColor.new("White") | |
2259 | return gui | |
2260 | end | |
2261 | local basgui = it("GuiMain") | |
2262 | basgui.Parent = plr.PlayerGui | |
2263 | basgui.Name = "VISgui" | |
2264 | local fullscreenz = it("Frame") | |
2265 | fullscreenz.Parent = basgui | |
2266 | fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255) | |
2267 | fullscreenz.BackgroundTransparency = 1 | |
2268 | fullscreenz.BorderColor3 = Color3.new(17, 17, 17) | |
2269 | fullscreenz.Size = UDim2.new(1, 0, 1, 0) | |
2270 | fullscreenz.Position = UDim2.new(0, 0, 0, 0) | |
2271 | local imgl2 = Instance.new("ImageLabel",fullscreenz) | |
2272 | imgl2.BackgroundTransparency = 1 | |
2273 | imgl2.BorderSizePixel = 0 | |
2274 | imgl2.ImageTransparency = 0.5 | |
2275 | imgl2.ImageColor3 = BrickColor.new("White").Color | |
2276 | imgl2.Position = UDim2.new(0.86,0,0.78,0) | |
2277 | imgl2.Size = UDim2.new(0,270,0,270) | |
2278 | imgl2.Image = "rbxassetid://320731120" | |
2279 | local techc = imgl2:Clone() | |
2280 | techc.Parent = fullscreenz | |
2281 | techc.ImageTransparency = 0.5 | |
2282 | techc.Size = UDim2.new(0,700,0,700) | |
2283 | techc.Position = UDim2.new(0.75,-50,0.55,-50) | |
2284 | techc.ImageColor3 = BrickColor.new("White").Color | |
2285 | techc.Image = "rbxassetid://521073910" | |
2286 | local ned = Instance.new("TextLabel",fullscreenz) | |
2287 | ned.ZIndex = 2 | |
2288 | ned.Font = "SciFi" | |
2289 | ned.BackgroundTransparency = 1 | |
2290 | ned.BorderSizePixel = 0.65 | |
2291 | ned.Size = UDim2.new(0.4,0,0.2,0) | |
2292 | ned.Position = UDim2.new(0.2,0,0.2,0) | |
2293 | ned.TextColor3 = BrickColor.new("White").Color | |
2294 | ned.TextStrokeColor3 = BrickColor.new("Really black").Color | |
2295 | ned.TextScaled = true | |
2296 | ned.TextStrokeTransparency = 0 | |
2297 | ned.Text = "Neutral" | |
2298 | ned.TextSize = 24 | |
2299 | ned.Rotation = 1 | |
2300 | --ned.TextXAlignment = "Right" | |
2301 | ned.TextYAlignment = "Bottom" | |
2302 | ----------- | |
2303 | local GUIFrame = IT("Frame") | |
2304 | GUIFrame.Parent = Base | |
2305 | GUIFrame.BackgroundColor3 = Color3.new(255, 255, 255) | |
2306 | GUIFrame.BackgroundTransparency = 1 | |
2307 | GUIFrame.BorderColor3 = Color3.new(17, 17, 17) | |
2308 | GUIFrame.Size = UDim2.new(1, 0, 1, 0) | |
2309 | GUIFrame.Position = UDim2.new(0, 0, 0, 0) | |
2310 | --------------------- | |
2311 | ----------------------------- | |
2312 | function resetmode() | |
2313 | Mode = 1 | |
2314 | SONG = 1005328332 | |
2315 | for i, v in pairs(NeonColorParts1000) do | |
2316 | v.BrickColor = BrickC("White") | |
2317 | end | |
2318 | ||
2319 | imgl2.ImageColor3 = BrickC("White").Color | |
2320 | techc.ImageColor3 = BrickC("White").Color | |
2321 | ned.Text = "Neutral" | |
2322 | ned.TextColor3 = BrickC("White").Color | |
2323 | ned.TextStrokeColor3 = BrickC("Really black").Color | |
2324 | end | |
2325 | function Taunt() | |
2326 | attack = true | |
2327 | hum.WalkSpeed = 0 | |
2328 | TAUNT:Play() | |
2329 | repeat | |
2330 | swait() | |
2331 | TAUNT.Parent = tors | |
2332 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(25)), 0.15) | |
2333 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-3 - 1.5 * Cos(sine / 7)), Rad(0), Rad(-25)), 0.3) | |
2334 | RH.C0 = clerp(RH.C0, CF(.8* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, .2* Player_Size) * angles(Rad(0), Rad(45), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15) | |
2335 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15) | |
2336 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.08 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(145), Rad(-20), Rad(25)), 0.1) | |
2337 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.08 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(78 + 3.5 * Cos(sine / 20)), Rad(-25), Rad(-20)), 0.1) | |
2338 | until TAUNT.Playing == false | |
2339 | attack = false | |
2340 | hum.WalkSpeed = 8 | |
2341 | end | |
2342 | function attackone() | |
2343 | attack = true | |
2344 | hum.WalkSpeed = 3.01 | |
2345 | for i = 0, 1.7, 0.1 do | |
2346 | swait() | |
2347 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(-40)), 0.3) | |
2348 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(40)), 0.3) | |
2349 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(-7), Rad(0), Rad(-7)), 0.3) | |
2350 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-65), Rad(0)) * angles(Rad(-10), Rad(0), Rad(-25)), 0.3) | |
2351 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, .3* Player_Size) * angles(Rad(90), Rad(-7.5 * Sin(sine / 20)), Rad(45)), 0.3) | |
2352 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(7.5 * Sin(sine / 20)), Rad(-25)), 0.3) | |
2353 | end | |
2354 | Cso("203426541", ra, 10, 1) | |
2355 | for i, v in pairs(FindNearestHead(ra.CFrame.p, 10)) do | |
2356 | if v:FindFirstChild("Head") then | |
2357 | Eviscerate(v) | |
2358 | SoulSteal(v) | |
2359 | end | |
2360 | end | |
2361 | for i = 0, 1.4, 0.1 do | |
2362 | swait() | |
2363 | BlockEffect(maincolor, ra.CFrame, 21, 41, 21, -2, -3, -2, 0.08, 2) | |
2364 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, -.5, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(5), Rad(0), Rad(55)), 0.3) | |
2365 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(-55)), 0.3) | |
2366 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(0), Rad(87), Rad(0)) * angles(Rad(-30), Rad(0), Rad(15)), 0.3) | |
2367 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.1* Player_Size) * angles(Rad(0), Rad(-87), Rad(0)) * angles(Rad(-5), Rad(0), Rad(9)), 0.3) | |
2368 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.4* Player_Size) * angles(Rad(90), Rad(-7.5 * Sin(sine / 20)), Rad(35)), 0.3) | |
2369 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(7.5 * Sin(sine / 20)), Rad(-25)), 0.3) | |
2370 | end | |
2371 | hum.WalkSpeed = 8 | |
2372 | attack = false | |
2373 | end | |
2374 | function attacktwo() | |
2375 | attack = true | |
2376 | hum.WalkSpeed = 3.01 | |
2377 | for i = 0, 1.7, 0.1 do | |
2378 | swait() | |
2379 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(0)), 0.3) | |
2380 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-5), Rad(0), Rad(0)), 0.3) | |
2381 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(0), Rad(76), Rad(0)) * angles(Rad(-7), Rad(0), Rad(-45)), 0.3) | |
2382 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(0), Rad(-76), Rad(0)) * angles(Rad(-10), Rad(0), Rad(-25)), 0.3) | |
2383 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(10), Rad(-7.5 * Sin(sine / 20)), Rad(8)), 0.3) | |
2384 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(35), Rad(7.5 * Sin(sine / 20)), Rad(-8)), 0.3) | |
2385 | end | |
2386 | Cso("203426541", rl, 10, 1) | |
2387 | for i, v in pairs(FindNearestHead(ra.CFrame.p, 10)) do | |
2388 | if v:FindFirstChild("Head") then | |
2389 | Eviscerate(v) | |
2390 | SoulSteal(v) | |
2391 | end | |
2392 | end | |
2393 | for i = 0, 1.4, 0.1 do | |
2394 | swait() | |
2395 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, -.5, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-25), Rad(0), Rad(0)), 0.3) | |
2396 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(5), Rad(0), Rad(0)), 0.3) | |
2397 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(0), Rad(76), Rad(0)) * angles(Rad(-7), Rad(0), Rad(65)), 0.3) | |
2398 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -1.1 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(0), Rad(-76), Rad(0)) * angles(Rad(-10), Rad(0), Rad(35)), 0.3) | |
2399 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-20), Rad(-7.5 * Sin(sine / 20)), Rad(8)), 0.3) | |
2400 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(7.5 * Sin(sine / 20)), Rad(-8)), 0.3) | |
2401 | end | |
2402 | hum.WalkSpeed = 8 | |
2403 | attack = false | |
2404 | end | |
2405 | function attackthree() | |
2406 | attack = true | |
2407 | hum.WalkSpeed = 3.01 | |
2408 | for i = 0, 1.4, 0.1 do | |
2409 | swait() | |
2410 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-25), Rad(0), Rad(0)), 0.3) | |
2411 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
2412 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(0), Rad(76), Rad(0)) * angles(Rad(-15), Rad(0), Rad(-30)), 0.3) | |
2413 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(0), Rad(-76), Rad(0)) * angles(Rad(-15), Rad(0), Rad(30)), 0.3) | |
2414 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(90), Rad(0), Rad(35)), 0.3) | |
2415 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(90), Rad(0), Rad(-35)), 0.3) | |
2416 | end | |
2417 | Cso("203426541", hed, 10, 1) | |
2418 | for i = 0, 1.7, 0.1 do | |
2419 | swait() | |
2420 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(0)), 0.3) | |
2421 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
2422 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -.1* Player_Size) * angles(Rad(0), Rad(76), Rad(0)) * angles(Rad(-5), Rad(0), Rad(30)), 0.3) | |
2423 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -.1* Player_Size) * angles(Rad(0), Rad(-76), Rad(0)) * angles(Rad(-5), Rad(0), Rad(-30)), 0.3) | |
2424 | RW.C0 = clerp(RW.C0, CF(1.3* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(90), Rad(0), Rad(-35)), 0.3) | |
2425 | LW.C0 = clerp(LW.C0, CF(-1.3* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(90), Rad(0), Rad(35)), 0.3) | |
2426 | end | |
2427 | Cso("260435136", hed, 10, .9) | |
2428 | BlockEffect(maincolor, ra.CFrame * CF(0, -2, 0), 11, 11, 11, 10, 10, 10, 0.04, 1) | |
2429 | BlockEffect(BrickC("Really black"), ra.CFrame * CF(0, -2, 0), 6, 6, 6, 5, 5, 5, 0.04, 1) | |
2430 | for i, v in pairs(FindNearestHead(ra.CFrame.p, 10)) do | |
2431 | if v:FindFirstChild("Head") then | |
2432 | Eviscerate(v) | |
2433 | SoulSteal(v) | |
2434 | end | |
2435 | end | |
2436 | for i = 0, 1.8, 0.1 do | |
2437 | swait() | |
2438 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-25), Rad(0), Rad(0)), 0.2) | |
2439 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.2) | |
2440 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -.1* Player_Size) * angles(Rad(0), Rad(76), Rad(0)) * angles(Rad(-15), Rad(0), Rad(-30)), 0.2) | |
2441 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -.1* Player_Size) * angles(Rad(0), Rad(-76), Rad(0)) * angles(Rad(-15), Rad(0), Rad(30)), 0.2) | |
2442 | RW.C0 = clerp(RW.C0, CF(1.3* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(90), Rad(0), Rad(35)), 0.2) | |
2443 | LW.C0 = clerp(LW.C0, CF(-1.3* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(90), Rad(0), Rad(-35)), 0.2) | |
2444 | end | |
2445 | hum.WalkSpeed = 8 | |
2446 | attack = false | |
2447 | end | |
2448 | function Power_Burst() | |
2449 | hum.WalkSpeed = 4 | |
2450 | attack = true | |
2451 | Cso("163619849", ra, 10, 1.35) | |
2452 | for i = 0,4.3,0.1 do | |
2453 | swait() | |
2454 | PixelBlock(3,1,"Add",ra.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.2,0.2,0.2,0.01,maincolor,0) | |
2455 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-0), Rad(0), Rad(0)), 0.15) | |
2456 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-23 - 2.5 * Sin(sine / 20)), Rad(-0), Rad(-30)), 0.3) | |
2457 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(-2)), 0.15) | |
2458 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(2)), 0.15) | |
2459 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(156), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1) | |
2460 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-25 + 2.5 * Sin(sine / 20))), 0.1) | |
2461 | end | |
2462 | CameraEnshaking(2.5, 20) | |
2463 | Cso("539294959", ra, 10, .9) | |
2464 | BlockEffect(maincolor, ra.CFrame * CF(0, -0, 0), 16, 16, 16, 22, 22, 22, 0.04, 1) | |
2465 | BlockEffect(BrickC("Really black"), ra.CFrame * CF(0, -0, 0), 10, 10, 10, 12, 12, 12, 0.04, 1) | |
2466 | for i, v in pairs(FindNearestHead(ra.CFrame.p, 15)) do | |
2467 | if v:FindFirstChild("Head") then | |
2468 | Eviscerate(v) | |
2469 | SoulSteal(v) | |
2470 | end | |
2471 | end | |
2472 | for i = 0,3,0.1 do | |
2473 | swait() | |
2474 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-0), Rad(0), Rad(0)), 0.15) | |
2475 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-4 - 2.5 * Sin(sine / 20)), Rad(-0), Rad(-30)), 0.3) | |
2476 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(-2)), 0.15) | |
2477 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(2)), 0.15) | |
2478 | RW.C0 = clerp(RW.C0, CF(1.5, 0.01 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(156), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1) | |
2479 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-25 + 2.5 * Sin(sine / 20))), 0.1) | |
2480 | end | |
2481 | hum.WalkSpeed = 8 | |
2482 | attack = false | |
2483 | end | |
2484 | function Magic_Bombs() | |
2485 | attack = true | |
2486 | hum.WalkSpeed = 0 | |
2487 | local GYRO = IT("BodyGyro",root) | |
2488 | GYRO.D = 100 | |
2489 | GYRO.P = 2000 | |
2490 | GYRO.MaxTorque = VT(0,4000000,0) | |
2491 | GYRO.cframe = CF(root.Position,mouse.Hit.p) | |
2492 | for i = 0,3.6,0.1 do | |
2493 | swait() | |
2494 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.2) | |
2495 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-90)), 0.3) | |
2496 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-9), Rad(0), Rad(-10)), 0.15) | |
2497 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-8), Rad(0), Rad(10)), 0.15) | |
2498 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.2) | |
2499 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.2) | |
2500 | end | |
2501 | CameraEnshaking(1, 6) | |
2502 | GYRO:Destroy() | |
2503 | Cso("588734356", Handle, 10, 1.05) | |
2504 | BlockEffect(maincolor, Handle.CFrame * CF(0, -16, 0), 7, 7, 7, 9, 9, 9, 0.07, 1) | |
2505 | BlockEffect(BrickC("Crimson"), Handle.CFrame * CF(0, -16, 0), 2, 2, 2, 4, 4, 4, 0.05, 1) | |
2506 | HitboxFunction(root.CFrame * CF(0, 0, -20), 0.01, 1, 1, 1, 6.5, 14, 24, 2, "Normal") | |
2507 | for i = 0,2,0.1 do | |
2508 | swait() | |
2509 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.2) | |
2510 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-90)), 0.3) | |
2511 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-9), Rad(0), Rad(-10)), 0.15) | |
2512 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-8), Rad(0), Rad(10)), 0.15) | |
2513 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(134)), 0.2) | |
2514 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.2) | |
2515 | end | |
2516 | local GYRO = IT("BodyGyro",root) | |
2517 | GYRO.D = 100 | |
2518 | GYRO.P = 2000 | |
2519 | GYRO.MaxTorque = VT(0,4000000,0) | |
2520 | GYRO.cframe = CF(root.Position,mouse.Hit.p) | |
2521 | for i = 0,2.4,0.1 do | |
2522 | swait() | |
2523 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.15) | |
2524 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-90)), 0.3) | |
2525 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-9), Rad(0), Rad(-10)), 0.15) | |
2526 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-8), Rad(0), Rad(10)), 0.15) | |
2527 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.2) | |
2528 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.2) | |
2529 | end | |
2530 | GYRO:Destroy() | |
2531 | CameraEnshaking(1, 6) | |
2532 | Cso("588734356", Handle, 10, 1.05) | |
2533 | BlockEffect(maincolor, Handle.CFrame * CF(0, -16, 0), 7, 7, 7, 9, 9, 9, 0.07, 1) | |
2534 | BlockEffect(BrickC("Crimson"), Handle.CFrame * CF(0, -16, 0), 2, 2, 2, 4, 4, 4, 0.05, 1) | |
2535 | HitboxFunction(root.CFrame * CF(0, 0, -20), 0.01, 1, 1, 1, 6,5, 14, 24, 2, "Normal") | |
2536 | for i = 0,2,0.1 do | |
2537 | swait() | |
2538 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.15) | |
2539 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-90)), 0.3) | |
2540 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-9), Rad(0), Rad(-10)), 0.15) | |
2541 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-8), Rad(0), Rad(10)), 0.15) | |
2542 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(134)), 0.2) | |
2543 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.2) | |
2544 | end | |
2545 | local GYRO = IT("BodyGyro",root) | |
2546 | GYRO.D = 100 | |
2547 | GYRO.P = 2000 | |
2548 | GYRO.MaxTorque = VT(0,4000000,0) | |
2549 | GYRO.cframe = CF(root.Position,mouse.Hit.p) | |
2550 | for i = 0,2.4,0.1 do | |
2551 | swait() | |
2552 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.15) | |
2553 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-90)), 0.3) | |
2554 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-9), Rad(0), Rad(-10)), 0.15) | |
2555 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-8), Rad(0), Rad(10)), 0.15) | |
2556 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.2) | |
2557 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.2) | |
2558 | end | |
2559 | GYRO:Destroy() | |
2560 | CameraEnshaking(1, 6) | |
2561 | Cso("588734356", Handle, 10, 1.05) | |
2562 | BlockEffect(maincolor, Handle.CFrame * CF(0, -16, 0), 7, 7, 7, 9, 9, 9, 0.07, 1) | |
2563 | BlockEffect(BrickC("Crimson"), Handle.CFrame * CF(0, -16, 0), 2, 2, 2, 4, 4, 4, 0.05, 1) | |
2564 | HitboxFunction(root.CFrame * CF(0, 0, -20), 0.01, 1, 1, 1, 6.5, 14, 24, 2, "Normal") | |
2565 | for i = 0,2,0.1 do | |
2566 | swait() | |
2567 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.15) | |
2568 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-90)), 0.3) | |
2569 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-9), Rad(0), Rad(-10)), 0.15) | |
2570 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-8), Rad(0), Rad(10)), 0.15) | |
2571 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(134)), 0.2) | |
2572 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.2) | |
2573 | end | |
2574 | attack = false | |
2575 | hum.WalkSpeed = 8 | |
2576 | end | |
2577 | function Dangerous_Field() | |
2578 | attack = true | |
2579 | hum.WalkSpeed = 0 | |
2580 | for i = 0,10,0.1 do | |
2581 | swait() | |
2582 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0-255.45*i)), 0.2) | |
2583 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-90)), 0.3) | |
2584 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2), Rad(0), Rad(-2.1)), 0.15) | |
2585 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-8), Rad(0), Rad(10)), 0.15) | |
2586 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(2.1), Rad(0), Rad(90)), 0.2) | |
2587 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(2.1), Rad(0), Rad(-90)), 0.2) | |
2588 | CameraEnshaking(1, 7) | |
2589 | Cso("588734356", Handle, 10, 1.2) | |
2590 | BlockEffect(maincolor, Handle.CFrame * CF(0, -8, 0), 9, 9, 9, 11, 11, 11, 0.07, 1) | |
2591 | BlockEffect(BrickC("Crimson"), Handle.CFrame * CF(0, -8, 0), 3, 3, 3, 5, 5, 5, 0.05, 1) | |
2592 | HitboxFunction(Handle.CFrame * CF(0, 0, -10.3), 0.05, 1, 1, 1, 7.3, 15, 20, 3, "Normal") | |
2593 | HitboxFunction(Handle.CFrame * CF(0, 0, -0), 0.05, 1, 1, 1, 5, 2, 3, 10, "Normal") | |
2594 | end | |
2595 | attack = false | |
2596 | hum.WalkSpeed = 8 | |
2597 | end | |
2598 | ||
2599 | ||
2600 | function NUCLEAR() | |
2601 | attack = true | |
2602 | local orb = Instance.new("Part", char) | |
2603 | orb.Anchored = true | |
2604 | orb.BrickColor = BrickC("Lime green") | |
2605 | orb.CanCollide = false | |
2606 | orb.FormFactor = 3 | |
2607 | orb.Name = "Ring" | |
2608 | orb.Material = "Neon" | |
2609 | orb.Size = Vector3.new(1, 1, 1) | |
2610 | orb.Transparency = 0 | |
2611 | orb.TopSurface = 0 | |
2612 | orb.BottomSurface = 0 | |
2613 | local orbm = Instance.new("SpecialMesh", orb) | |
2614 | orbm.MeshType = "Sphere" | |
2615 | orbm.Name = "SizeMesh" | |
2616 | orbm.Scale = Vector3.new(0, 0, 0) | |
2617 | local scaled = 0.1 | |
2618 | local posid = 0 | |
2619 | Aura(1, 2.5, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 5, 5, 50, -0.05, BrickC("Lime green"), 0, "Sphere") | |
2620 | Aura(2, 5, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 5, 5, 50, -0.05, BrickC("Lime green"), 0, "Sphere") | |
2621 | for i = 0, 12, 0.1 do | |
2622 | swait() | |
2623 | scaled = scaled + 0.001 | |
2624 | posid = posid - scaled | |
2625 | orb.CFrame = ra.CFrame * CF(0, -0.1 + posid / 1.05, 0) | |
2626 | orbm.Scale = orbm.Scale + Vector3.new(scaled, scaled, scaled) | |
2627 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(15), Rad(0), Rad(0)), 0.08) | |
2628 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-10 - 2.5 * Sin(sine / 30)), Rad(-4.5 * Sin(sine / .5)), Rad(15)), 0.08) | |
2629 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(80), Rad(0)) * angles(Rad(-10.5), Rad(0), Rad(20)), 0.08) | |
2630 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-80), Rad(0)) * angles(Rad(-10.5), Rad(0), Rad(-20)), 0.08) | |
2631 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(170), Rad(Mrandom(-15, 15)), Rad(5 - 4.5 * Sin(sine / 20))), 0.1) | |
2632 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(0), Rad(-12 - 5 * Sin(sine / 30))), 0.08) | |
2633 | end | |
2634 | for i = 0, 2, 0.1 do | |
2635 | swait() | |
2636 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(15), Rad(0), Rad(0)), 0.08) | |
2637 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-10 - 2.5 * Sin(sine / 30)), Rad(-4.5 * Sin(sine / .5)), Rad(15)), 0.08) | |
2638 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(80), Rad(0)) * angles(Rad(-10.5), Rad(0), Rad(20)), 0.08) | |
2639 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-80), Rad(0)) * angles(Rad(-10.5), Rad(0), Rad(-20)), 0.08) | |
2640 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(215), Rad(Mrandom(-15, 15)), Rad(5 - 4.5 * Sin(sine / 20))), 0.1) | |
2641 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(0), Rad(-12 - 5 * Sin(sine / 30))), 0.08) | |
2642 | end | |
2643 | coroutine.resume(coroutine.create(function() | |
2644 | orb.Anchored = false | |
2645 | CFuncs.Sound.Create("rbxassetid://907528019", root, 1.85, 1) | |
2646 | local a = Instance.new("Part", workspace) | |
2647 | a.Name = "Direction" | |
2648 | a.Anchored = true | |
2649 | a.BrickColor = BrickC("Lime green") | |
2650 | a.Material = "Neon" | |
2651 | a.Transparency = 1 | |
2652 | a.CanCollide = false | |
2653 | local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 500) | |
2654 | local ignore = orb | |
2655 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
2656 | a.BottomSurface = 10 | |
2657 | a.TopSurface = 10 | |
2658 | local distance = (orb.CFrame.p - position).magnitude | |
2659 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
2660 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
2661 | orb.CFrame = a.CFrame | |
2662 | a:Destroy() | |
2663 | local bv = Instance.new("BodyVelocity") | |
2664 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
2665 | bv.velocity = orb.CFrame.lookVector * 125 | |
2666 | bv.Parent = orb | |
2667 | local hitted = false | |
2668 | game:GetService("Debris"):AddItem(orb, 15) | |
2669 | swait() | |
2670 | local hit = orb.Touched:connect(function(hit) | |
2671 | if hitted == false then | |
2672 | hitted = true | |
2673 | CameraEnshaking(10, 2.5) | |
2674 | CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1) | |
2675 | for i, v in pairs(FindNearestHead(orb.CFrame.p, 25)) do | |
2676 | if v:FindFirstChild("Head") then | |
2677 | Eviscerate(v) | |
2678 | end | |
2679 | end | |
2680 | Magic(1, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickC("Lime green"), "Sphere") | |
2681 | Magic(2, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickC("Lime green"), "Sphere") | |
2682 | for i = 0, 9 do | |
2683 | Aura(1, 2.5, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 5, 5, 50, -0.05, BrickC("Lime green"), 0, "Sphere") | |
2684 | Aura(2, 5, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 5, 5, 50, -0.05, BrickC("Lime green"), 0, "Sphere") | |
2685 | end | |
2686 | orb.Anchored = true | |
2687 | orb.Transparency = 1 | |
2688 | wait(8) | |
2689 | orb:Destroy() | |
2690 | end | |
2691 | end) | |
2692 | end)) | |
2693 | for i = 0, 1, 0.1 do | |
2694 | swait() | |
2695 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(15), Rad(0), Rad(0)), 0.08) | |
2696 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-10 - 2.5 * Sin(sine / 30)), Rad(-4.5 * Sin(sine / .5)), Rad(15)), 0.08) | |
2697 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(80), Rad(0)) * angles(Rad(-10.5), Rad(0), Rad(20)), 0.08) | |
2698 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-80), Rad(0)) * angles(Rad(-10.5), Rad(0), Rad(-20)), 0.08) | |
2699 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(Mrandom(-15, 15)), Rad(5 - 4.5 * Sin(sine / 20))), 0.3) | |
2700 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(0), Rad(-12 - 5 * Sin(sine / 30))), 0.08) | |
2701 | end | |
2702 | attack = false | |
2703 | end | |
2704 | function Shockwave() | |
2705 | attack = true | |
2706 | hum.WalkSpeed = 0 | |
2707 | for i = 0,4,0.1 do | |
2708 | swait() | |
2709 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15) | |
2710 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
2711 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(-20)), 0.15) | |
2712 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(25)), 0.15) | |
2713 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(200), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1) | |
2714 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(200), Rad(0), Rad(-25 + 2.5 * Sin(sine / 20))), 0.1) | |
2715 | end | |
2716 | coroutine.resume(coroutine.create(function() | |
2717 | BlockEffect(maincolor, rl.CFrame * CF(-1, -0, -5), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2718 | BlockEffect(maincolor, rl.CFrame * CF(-3, -0, -5), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2719 | BlockEffect(maincolor, rl.CFrame * CF(2, -0, -5), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2720 | HitboxFunction(rl.CFrame * CF(-1, 0, -7), 0.05, 1, 1, 1, 5, 20, 25, 0, "Snare") | |
2721 | HitboxFunction(rl.CFrame * CF(-3, 0, -7), 0.05, 1, 1, 1, 5, 20, 25, 0, "Snare") | |
2722 | HitboxFunction(rl.CFrame * CF(2, 0, -7), 0.05, 1, 1, 1, 5, 20, 25, 0, "Snare") | |
2723 | CameraEnshaking(1, 7) | |
2724 | wait(0.05) | |
2725 | BlockEffect(maincolor, rl.CFrame * CF(-0.8, -0, -10), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2726 | BlockEffect(maincolor, rl.CFrame * CF(-2.8, -0, -10), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2727 | BlockEffect(maincolor, rl.CFrame * CF(1.8, -0, -10), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2728 | HitboxFunction(rl.CFrame * CF(-0.8, 0, -12), 0.05, 1, 1, 1, 5, 20, 20, 10, "Snare") | |
2729 | HitboxFunction(rl.CFrame * CF(-2.8, 0, -12), 0.05, 1, 1, 1, 5, 20, 25, 10, "Snare") | |
2730 | HitboxFunction(rl.CFrame * CF(1.8, 0, -12), 0.05, 1, 1, 1, 5, 20, 25, 10, "Snare") | |
2731 | CameraEnshaking(1, 7) | |
2732 | wait(0.05) | |
2733 | BlockEffect(maincolor, rl.CFrame * CF(-0.6, -0, -15), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2734 | BlockEffect(maincolor, rl.CFrame * CF(-2.6, -0, -15), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2735 | BlockEffect(maincolor, rl.CFrame * CF(1.6, -0, -15), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2736 | HitboxFunction(rl.CFrame * CF(-0.6, 0, -17), 0.05, 1, 1, 1, 5, 20, 25, 10, "Snare") | |
2737 | HitboxFunction(rl.CFrame * CF(-2.6, 0, -17), 0.05, 1, 1, 1, 5, 20, 25, 10, "Snare") | |
2738 | HitboxFunction(rl.CFrame * CF(1.6, 0, -17), 0.05, 1, 1, 1, 5, 20, 25, 10, "Snare") | |
2739 | CameraEnshaking(1, 7) | |
2740 | wait(0.05) | |
2741 | BlockEffect(maincolor, rl.CFrame * CF(-0.4, -0, -20), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2742 | BlockEffect(maincolor, rl.CFrame * CF(-2.4, -0, -20), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2743 | BlockEffect(maincolor, rl.CFrame * CF(1.4, -0, -20), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2744 | HitboxFunction(rl.CFrame * CF(-0.4, 0, -22), 0.05, 1, 1, 1, 5, 20, 25, 10, "Snare") | |
2745 | HitboxFunction(rl.CFrame * CF(-2.4, 0, -22), 0.05, 1, 1, 1, 5, 20, 25, 10, "Snare") | |
2746 | HitboxFunction(rl.CFrame * CF(1.4, 0, -22), 0.05, 1, 1, 1, 5, 20, 25, 10, "Snare") | |
2747 | CameraEnshaking(1, 7) | |
2748 | wait(0.05) | |
2749 | BlockEffect(maincolor, rl.CFrame * CF(-0.2, -0, -25), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2750 | BlockEffect(maincolor, rl.CFrame * CF(-2.2, -0, -25), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2751 | BlockEffect(maincolor, rl.CFrame * CF(1.2, -0, -25), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2752 | HitboxFunction(rl.CFrame * CF(-0.2, 0, -27), 0.05, 1, 1, 1, 5, 20, 25, 10, "Snare") | |
2753 | HitboxFunction(rl.CFrame * CF(-2.2, 0, -27), 0.05, 1, 1, 1, 5, 20, 25, 10, "Snare") | |
2754 | HitboxFunction(rl.CFrame * CF(1.2, 0, -27), 0.05, 1, 1, 1, 5, 20, 25, 10, "Snare") | |
2755 | CameraEnshaking(1, 7) | |
2756 | wait(0.05) | |
2757 | BlockEffect(maincolor, rl.CFrame * CF(-0, -0, -30), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2758 | BlockEffect(maincolor, rl.CFrame * CF(-2, -0, -30), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2759 | BlockEffect(maincolor, rl.CFrame * CF(1, -0, -30), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2760 | HitboxFunction(rl.CFrame * CF(-0, 0, -32), 0.05, 1, 1, 1, 5, 20, 25, 10, "Snare") | |
2761 | HitboxFunction(rl.CFrame * CF(-2, 0, -32), 0.05, 1, 1, 1, 5, 20, 25, 10, "Snare") | |
2762 | HitboxFunction(rl.CFrame * CF(1, 0, -32), 0.05, 1, 1, 1, 5, 20, 25, 10, "Snare") | |
2763 | CameraEnshaking(1, 7) | |
2764 | end)) | |
2765 | Cso("440145223", Handle, 10, 1.05) | |
2766 | for i = 1,7,0.1 do | |
2767 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.4 + 0.1 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15) | |
2768 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.3) | |
2769 | RH.C0 = clerp(RH.C0, CF(1, .4 - 0.1 * Cos(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(45)), 0.15) | |
2770 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15) | |
2771 | RW.C0 = clerp(RW.C0, CF(1.5, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(25)), 0.1) | |
2772 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(-25)), 0.1) | |
2773 | end | |
2774 | wait(.6) | |
2775 | hum.WalkSpeed = 8 | |
2776 | attack = false | |
2777 | end | |
2778 | function Pulse() | |
2779 | attack = true | |
2780 | hum.WalkSpeed = 0 | |
2781 | local GYRO = IT("BodyGyro",root) | |
2782 | GYRO.D = 100 | |
2783 | GYRO.P = 2000 | |
2784 | GYRO.MaxTorque = VT(0,4000000,0) | |
2785 | GYRO.cframe = CF(root.Position,mouse.Hit.p) | |
2786 | for i = 0,4,0.1 do | |
2787 | swait() | |
2788 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-0), Rad(0), Rad(0)), 0.15) | |
2789 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0 - 2.5 * Sin(sine / 20)), Rad(-0), Rad(0)), 0.3) | |
2790 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(-2)), 0.15) | |
2791 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(2)), 0.15) | |
2792 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(0 - 2.5 * Sin(sine / 20))), 0.1) | |
2793 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-25 + 2.5 * Sin(sine / 20))), 0.1) | |
2794 | end | |
2795 | BlockEffect(maincolor, Handle.CFrame * CF(-0, -5, -0), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2796 | HitboxFunction(Handle.CFrame * CF(-0, -7, -0), 0.05, 1, 1, 1, 5, 30, 40, 0, "Freeze") | |
2797 | CameraEnshaking(1, 25) | |
2798 | BlockEffect(maincolor, Handle.CFrame * CF(-0, -10, -0), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2799 | HitboxFunction(Handle.CFrame * CF(-0, -12, -0), 0.05, 1, 1, 1, 5, 30, 40, 10, "Freeze") | |
2800 | BlockEffect(maincolor, Handle.CFrame * CF(-0, -15, -0), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2801 | HitboxFunction(Handle.CFrame * CF(0, -17, -0), 0.05, 1, 1, 1, 5, 30, 40, 10, "Freeze") | |
2802 | BlockEffect(maincolor, Handle.CFrame * CF(-0, -20, -0), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2803 | HitboxFunction(Handle.CFrame * CF(0, -22, -0), 0.05, 1, 1, 1, 5, 30, 40, 10, "Freeze") | |
2804 | BlockEffect(maincolor, Handle.CFrame * CF(-0, -25, -0), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2805 | HitboxFunction(Handle.CFrame * CF(0, -27, -0), 0.05, 1, 1, 1, 5, 30, 40, 10, "Freeze") | |
2806 | BlockEffect(maincolor, Handle.CFrame * CF(-0, -30, -0), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2807 | HitboxFunction(Handle.CFrame * CF(0, -32, -0), 0.05, 1, 1, 1, 5, 30, 40, 10, "Freeze") | |
2808 | BlockEffect(maincolor, Handle.CFrame * CF(-0, -35, -0), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2809 | HitboxFunction(Handle.CFrame * CF(0, -37, -0), 0.05, 1, 1, 1, 5, 30, 40, 10, "Freeze") | |
2810 | BlockEffect(maincolor, Handle.CFrame * CF(-0, -40, -0), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2811 | HitboxFunction(Handle.CFrame * CF(0, -42, -0), 0.05, 1, 1, 1, 5, 30, 40, 10, "Freeze") | |
2812 | BlockEffect(maincolor, Handle.CFrame * CF(-0, -45, -0), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2813 | HitboxFunction(Handle.CFrame * CF(0, -47, -0), 0.05, 1, 1, 1, 5, 30, 40, 10, "Freeze") | |
2814 | BlockEffect(maincolor, Handle.CFrame * CF(-0, -50, -0), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2815 | HitboxFunction(Handle.CFrame * CF(0, -52, -0), 0.05, 1, 1, 1, 5, 30, 40, 10, "Freeze") | |
2816 | BlockEffect(maincolor, Handle.CFrame * CF(-0, -55, -0), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2817 | HitboxFunction(Handle.CFrame * CF(0, -57, -0), 0.05, 1, 1, 1, 5, 30, 40, 10, "Freeze") | |
2818 | BlockEffect(maincolor, Handle.CFrame * CF(-0, -60, -0), 4, 4, 4, 5, 5, 5, 0.05, 1) | |
2819 | HitboxFunction(Handle.CFrame * CF(0, -62, -0), 0.05, 1, 1, 1, 5, 30, 40, 10, "Freeze") | |
2820 | Cso("440145223", Handle, 10, 1.05) | |
2821 | GYRO:Destroy() | |
2822 | for i = 1,2,0.1 do | |
2823 | swait() | |
2824 | PixelBlock(2,1,"Add",Handle.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.04,0.04,0.04,0.06,maincolor,0) | |
2825 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-0), Rad(0), Rad(0)), 0.15) | |
2826 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0 - 2.5 * Sin(sine / 20)), Rad(-0), Rad(0)), 0.3) | |
2827 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(-2)), 0.15) | |
2828 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(2)), 0.15) | |
2829 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(140), Rad(0), Rad(0 - 2.5 * Sin(sine / 20))), 0.1) | |
2830 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-25 + 2.5 * Sin(sine / 20))), 0.1) | |
2831 | end | |
2832 | hum.WalkSpeed = 8 | |
2833 | attack = false | |
2834 | end | |
2835 | function LAZER() | |
2836 | attack = true | |
2837 | local GYRO = IT("BodyGyro",root) | |
2838 | GYRO.D = 100 | |
2839 | GYRO.P = 2000 | |
2840 | GYRO.MaxTorque = Vector3.new(0,4000000,0) | |
2841 | GYRO.cframe = CF(root.Position,mouse.Hit.p) | |
2842 | ref = New("Part",m,"ref",{Anchored = true, CanCollide = false,Transparency = 1,Size = Vector3.new(0.200000018, 0.299999923, 0.2),Position = mouse.Hit.p,Color = Color3.new(0,0,0),}) | |
2843 | for i = 0,5,0.1 do | |
2844 | swait() | |
2845 | GYRO.cframe = CF(root.Position,mouse.Hit.p) | |
2846 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-0), Rad(0), Rad(0)), 0.15) | |
2847 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0 - 2.5 * Sin(sine / 20)), Rad(-0), Rad(0)), 0.3) | |
2848 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(-2)), 0.15) | |
2849 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(2)), 0.15) | |
2850 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(0 - 2.5 * Sin(sine / 20))), 0.1) | |
2851 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-25 + 2.5 * Sin(sine / 20))), 0.1) | |
2852 | end | |
2853 | local beam = Instance.new("Part", workspace) | |
2854 | beam.BrickColor = BrickColor.new("Deep orange") | |
2855 | beam.FormFactor = "Custom" | |
2856 | beam.Material = "Glass" | |
2857 | beam.Transparency = 0.5 | |
2858 | beam.Anchored = true | |
2859 | beam.Locked = true | |
2860 | beam.CanCollide = false | |
2861 | local distance = (aa12.CFrame.p - mouse.Hit.p).magnitude | |
2862 | beam.Size = Vector3.new(1.05, 1.05, distance) | |
2863 | beam.CFrame = CFrame.new(aa12.CFrame.p, mouse.Hit.p) * CFrame.new(0, 0, -distance / 2) | |
2864 | game:GetService("Debris"):AddItem(beam, 0.14) | |
2865 | BlockEffect(BrickC("Deep orange"), ref.CFrame * CF(0, 0, 0), 25, 25, 25, 15, 15, 15, 0.04, 1) | |
2866 | BlockEffect(BrickC("Deep orange"), ref.CFrame * CF(0, 0, 0), 19, 19, 19, 10, 10, 10, 0.04, 1) | |
2867 | GYRO:Destroy() | |
2868 | for i, v in pairs(FindNearestHead(ref.CFrame.p, 2)) do | |
2869 | if v:FindFirstChild("Torso") then | |
2870 | Eviscerate(v) | |
2871 | end | |
2872 | end | |
2873 | attack = false | |
2874 | end | |
2875 | function Spirit_Beam() | |
2876 | attack = true | |
2877 | hum.WalkSpeed = 0 | |
2878 | local GYRO = IT("BodyGyro",root) | |
2879 | GYRO.D = 100 | |
2880 | GYRO.P = 2000 | |
2881 | GYRO.MaxTorque = VT(0,4000000,0) | |
2882 | GYRO.cframe = CF(root.Position,mouse.Hit.p) | |
2883 | for i = 0,5,0.1 do | |
2884 | swait() | |
2885 | GYRO.cframe = CF(root.Position,mouse.Hit.p) | |
2886 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 1.3 + 0.6 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
2887 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(8 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
2888 | RH.C0 = clerp(RH.C0, CF(1, -0.7 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5 + 3 * Sin(sine / 20)), Rad(0), Rad(10 + 3 * Sin(sine / 20))), 0.15) | |
2889 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5 + 3 * Sin(sine / 20)), Rad(0), Rad(-10 + 3 * Sin(sine / 20))), 0.15) | |
2890 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(-10 * Cos(sine / 20)), Rad(0 - 2.5 * Sin(sine / 20))), 0.1) | |
2891 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(10 * Cos(sine / 20)), Rad(-0 + 2.5 * Sin(sine / 20))), 0.1) | |
2892 | end | |
2893 | ref = New("Part",m,"ref",{Anchored = true, CanCollide = false,Transparency = 1,Size = Vector3.new(0.200000018, 0.299999923, 0.2),Position = mouse.Hit.p,Color = Color3.new(1, 0, 0),}) | |
2894 | HitboxFunction(ref.CFrame * CF(0, -0, -0), 0.01, 1, 1, 1, 4, 25, 50, 1, "Normal") | |
2895 | BlockEffect(maincolor, ref.CFrame * CF(-0, -0, -0), 4, 4, 4, 5, 5, 5, 0.07, 1) | |
2896 | local beam = Instance.new("Part", workspace) | |
2897 | beam.BrickColor = BrickColor.new("Fog") | |
2898 | beam.FormFactor = "Custom" | |
2899 | beam.Material = "Glass" | |
2900 | beam.Transparency = 0.5 | |
2901 | beam.Anchored = true | |
2902 | beam.Locked = true | |
2903 | beam.CanCollide = false | |
2904 | local distance = (Handle.CFrame.p - mouse.Hit.p).magnitude | |
2905 | beam.Size = Vector3.new(1.05, 1.05, distance) | |
2906 | beam.CFrame = CFrame.new(Handle.CFrame.p, mouse.Hit.p) * CFrame.new(0, 0, -distance / 2) | |
2907 | game:GetService("Debris"):AddItem(beam, 0.14) | |
2908 | local sound = Instance.new('Sound',Handle) | |
2909 | sound.SoundId = 'rbxassetid://588697948' | |
2910 | sound.Volume = 7 | |
2911 | sound.EmitterSize = 40 | |
2912 | sound.MaxDistance = 450 | |
2913 | sound:Play() | |
2914 | game:GetService("Debris"):AddItem(beam, sound.TimeLength) | |
2915 | GYRO:Destroy() | |
2916 | PixelBlock(3,1.5,"Add",ref.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,0.5,0.6,maincolor,0) | |
2917 | PixelBlock(3,1.5,"Add",ref.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,0.5,0.6,maincolor,0) | |
2918 | PixelBlock(3,1.5,"Add",ref.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,0.5,0.6,maincolor,0) | |
2919 | PixelBlock(3,1.5,"Add",ref.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,0.5,0.6,maincolor,0) | |
2920 | PixelBlock(3,1.5,"Add",ref.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,0.5,0.6,maincolor,0) | |
2921 | PixelBlock(3,1.5,"Add",ref.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,0.5,0.6,maincolor,0) | |
2922 | PixelBlock(3,1.5,"Add",ref.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,0.5,0.6,maincolor,0) | |
2923 | PixelBlock(3,1.5,"Add",ref.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,0.5,0.6,maincolor,0) | |
2924 | PixelBlock(3,1.5,"Add",ref.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,0.5,0.6,maincolor,0) | |
2925 | PixelBlock(3,1.5,"Add",ref.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,0.5,0.6,maincolor,0) | |
2926 | wait(0.3) | |
2927 | attack = false | |
2928 | hum.WalkSpeed = 8 | |
2929 | ref:Destroy() | |
2930 | end | |
2931 | function Distort() | |
2932 | attack = true | |
2933 | hum.WalkSpeed = 0 | |
2934 | local pos = root.Position | |
2935 | root.CFrame = CF(mouse.Hit.p+Vector3.new(0,3,0),pos) | |
2936 | Cso("261227592", tors, 10, 0.85) | |
2937 | for i = 1,2.5,0.1 do | |
2938 | swait() | |
2939 | rootj.C0 = char.Torso.Neck.C0 * CFrame.Angles(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
2940 | end | |
2941 | attack = false | |
2942 | hum.WalkSpeed = 8 | |
2943 | end | |
2944 | function Ancient_Rage() | |
2945 | attack = true | |
2946 | hum.WalkSpeed = 4 | |
2947 | Cso("907329532", tors, 10, 1.05) | |
2948 | for i = 1,14,0.1 do | |
2949 | swait() | |
2950 | rootj.C0 = char.Torso.Neck.C0 * CFrame.Angles(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
2951 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0 - 2.5 * Sin(sine / 20)), Rad(-0), Rad(0)), 0.3) | |
2952 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(-2)), 0.15) | |
2953 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(2)), 0.15) | |
2954 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(140), Rad(0), Rad(0 - 2.5 * Sin(sine / 20))), 0.1) | |
2955 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-25 + 2.5 * Sin(sine / 20))), 0.1) | |
2956 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 7)) do | |
2957 | if v:FindFirstChild("Head") then | |
2958 | Eviscerate(v) | |
2959 | end | |
2960 | end | |
2961 | end | |
2962 | attack = false | |
2963 | hum.WalkSpeed = 8 | |
2964 | end | |
2965 | function TTTTTTTTTTTaunt() | |
2966 | attack = true | |
2967 | hum.WalkSpeed = 0 | |
2968 | DTAUNT:Play() | |
2969 | repeat | |
2970 | swait() | |
2971 | DTAUNT.Parent = tors | |
2972 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.15) | |
2973 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.3) | |
2974 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.001 * Cos(sine / 20)) * RHCF * angles (math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.15) | |
2975 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.001 * Cos(sine / 20)) * LHCF * angles(math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.15) | |
2976 | RW.C0 = clerp(RW.C0, CF(1.2, 0.5 + 0.05 * Sin(sine / 30), 0.001 * Cos(sine / 20)) * angles (math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.1) | |
2977 | LW.C0 = clerp(LW.C0, CF(-1.2, 0.5 + 0.05 * Sin(sine / 30), 0.001 * Cos(sine / 20)) * angles(math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.1) | |
2978 | until DTAUNT.Playing == false | |
2979 | attack = false | |
2980 | hum.WalkSpeed = 8 | |
2981 | end | |
2982 | function HAAH() | |
2983 | attack = true | |
2984 | hum.WalkSpeed = 0 | |
2985 | Cso("300208779", hed, 10, 1) | |
2986 | for i = 0,9,0.1 do | |
2987 | swait() | |
2988 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 2)) * angles(Rad(-30), Rad(0), Rad(0)), 0.15) | |
2989 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-30 - 2.5 * Sin(sine / 2)), Rad(0), Rad(0)), 0.3) | |
2990 | if Mrandom(1,15) == 1 then | |
2991 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(Mrandom(-15,15)), Rad(Mrandom(-15,15)), Rad(Mrandom(-15,15))), 1) | |
2992 | end | |
2993 | RH.C0 = clerp(RH.C0, CF(1, -1 - 0.1 * Cos(sine / 2), 0.025 * Cos(sine / 2)) * RHCF * angles(Rad(-4.5 - 7.5 * Sin(sine / 2)), Rad(0), Rad(-30)), 0.15) | |
2994 | LH.C0 = clerp(LH.C0, CF(-1, -1 - 0.1 * Cos(sine / 2), 0.025 * Cos(sine / 2)) * LHCF * angles(Rad(-6.5 - 7.5 * Sin(sine / 2)), Rad(0), Rad(30)), 0.15) | |
2995 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 2), 0.025 * Cos(sine / 2)) * angles(Rad(-35 - 7.5 * Sin(sine / 2)), Rad(0), Rad(15 - 7.5 * Sin(sine / 2))), 0.1) | |
2996 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 2), 0.025 * Cos(sine / 2)) * angles(Rad(-35 - 7.5 * Sin(sine / 2)), Rad(0), Rad(-15 - 7.5 * Sin(sine / 2))), 0.1) | |
2997 | end | |
2998 | attack = false | |
2999 | hum.WalkSpeed = 10 | |
3000 | end | |
3001 | function again() | |
3002 | attack = true | |
3003 | hum.WalkSpeed = 0 | |
3004 | ITAUNT:Play() | |
3005 | repeat | |
3006 | swait() | |
3007 | ITAUNT.Parent = tors | |
3008 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.08) | |
3009 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.08) | |
3010 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(80), Rad(0)) * angles(Rad(-10.5), Rad(0), Rad(-25)), 0.08) | |
3011 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-80), Rad(0)) * angles(Rad(-10.5), Rad(0), Rad(20)), 0.08) | |
3012 | RW.C0 = clerp(RW.C0, CF(1.5, 0.8 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(-10 * Cos(sine / 20)), Rad(120 - 2.5 * Sin(sine / 20))), 0.1) | |
3013 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(75), Rad(10 * Cos(sine / 20)), Rad(-0 + 2.5 * Sin(sine / 20))), 0.1) | |
3014 | until ITAUNT.Playing == false | |
3015 | attack = false | |
3016 | hum.WalkSpeed = 8 | |
3017 | end | |
3018 | function LunarSpin() | |
3019 | attack = true | |
3020 | hum.WalkSpeed = 0 | |
3021 | for i = 0,17,0.05 do | |
3022 | CameraEnshaking(1, 5) | |
3023 | MagniDamage(tors, 47, 2, 5, 0, "Normal") | |
3024 | Effects.Spiral.Create(BrickC("Teal"), tors.CFrame * CF(0, 0, 0), 3, 3, 3, 4, 4, 4, 0.03) | |
3025 | Effects.Block.Create(BrickC("Cyan"), ra.CFrame * CF(0, -1, 0), 2, 2, 2, 3, 3, 3, 0.05) | |
3026 | swait() | |
3027 | PixelBlock(1.5,14,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-360,360)),math.rad(math.random(-50,50))),3,3,3,0.3,maincolor,0) | |
3028 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0-255.45*i)), 0.15) | |
3029 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
3030 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
3031 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
3032 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(110)), 0.1) | |
3033 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-110)), 0.1) | |
3034 | end | |
3035 | hum.WalkSpeed = 8 | |
3036 | attack = false | |
3037 | end | |
3038 | function Decapitate() | |
3039 | local target = nil | |
3040 | local targettorso = nil | |
3041 | if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then | |
3042 | if mouse.Target.Parent.Humanoid.PlatformStand == false then | |
3043 | target = mouse.Target.Parent.Humanoid | |
3044 | targettorso = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso") | |
3045 | targethead = mouse.Target.Parent:FindFirstChild("Head") | |
3046 | end | |
3047 | end | |
3048 | if target ~= nil then | |
3049 | targettorso.Anchored = true | |
3050 | attack = true | |
3051 | hum.WalkSpeed = 0 | |
3052 | root.CFrame = targettorso.CFrame * CF(0,0,2.6) | |
3053 | for i = 0,4.2,0.1 do | |
3054 | swait() | |
3055 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-40)), 0.15) | |
3056 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(40)), 0.3) | |
3057 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-9), Rad(0), Rad(-10)), 0.15) | |
3058 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-8), Rad(0), Rad(10)), 0.15) | |
3059 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(115), Rad(0), Rad(35)), 0.1) | |
3060 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1) | |
3061 | end | |
3062 | local ModelHead01 = New("Model", char, "", {}) | |
3063 | local Humanoid01 = New("Humanoid", ModelHead01, "Humanoid", {}) | |
3064 | local Head01 = targethead:Clone() | |
3065 | targethead.Transparency = 1 | |
3066 | Head01.Parent = ModelHead01 | |
3067 | local weldHead01 = Instance.new("Weld") | |
3068 | weldHead01.Parent = Head01 | |
3069 | weldHead01.Part0 = targethead | |
3070 | weldHead01.Part1 = Head01 | |
3071 | weldHead01.C1 = CFrame.new(0, 0, 0) | |
3072 | targethead.face:Remove() | |
3073 | weldHead01.Part0 = ra | |
3074 | weldHead01.C1 = CFrame.new(0, 0, 1.2) * angles(math.rad(90), math.rad(0), math.rad(0)) | |
3075 | targettorso:BreakJoints() | |
3076 | CreateSound("314390675", targettorso, 5, .7) | |
3077 | for i = 0,3.2,0.1 do | |
3078 | swait() | |
3079 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.15) | |
3080 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-90)), 0.3) | |
3081 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15) | |
3082 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(50)), 0.15) | |
3083 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(115), Rad(20), Rad(90)), 0.1) | |
3084 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(-15)), 0.1) | |
3085 | end | |
3086 | for i = 0,4.2,0.1 do | |
3087 | swait() | |
3088 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-40)), 0.15) | |
3089 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(40)), 0.3) | |
3090 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15) | |
3091 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15) | |
3092 | RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(185), Rad(0), Rad(15)), 0.1) | |
3093 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(-15)), 0.1) | |
3094 | end | |
3095 | CreateSound("541909763", targettorso, 5, .8) | |
3096 | weldHead01:Destroy() | |
3097 | Head01.CanCollide = true | |
3098 | local bodyVelocity2 = Create("BodyVelocity")({ | |
3099 | velocity = Vector3.new(0, 10, 0) + root.CFrame.lookVector * 50, | |
3100 | P = 5000, | |
3101 | maxForce = Vector3.new(8000, 8000, 8000), | |
3102 | Parent = Head01 | |
3103 | }) | |
3104 | game:GetService("Debris"):AddItem(bodyVelocity2, 0.05) | |
3105 | for i = 0,6.2,0.1 do | |
3106 | swait() | |
3107 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(40)), 0.15) | |
3108 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.3) | |
3109 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15) | |
3110 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15) | |
3111 | RW.C0 = clerp(RW.C0, CF(1.4, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(-15)), 0.1) | |
3112 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(-15)), 0.1) | |
3113 | end | |
3114 | targettorso.Anchored = false | |
3115 | attack = false | |
3116 | hum.WalkSpeed = 8 | |
3117 | root.CFrame = targettorso.CFrame * CF(0,0,3.4) | |
3118 | end | |
3119 | end | |
3120 | function BalanceSpin() | |
3121 | attack = true | |
3122 | hum.WalkSpeed = 2 | |
3123 | for i = 0,17,0.07 do | |
3124 | CameraEnshaking(1, 5) | |
3125 | MagniDamage(tors, 30, 7, 11, 0, "Normal") | |
3126 | swait() | |
3127 | Aura(5, 0.15, "Add", root.CFrame * CFrame.new(math.random(-25, 25), -6, math.random(-25, 25)) * CFrame.Angles(math.rad(90), 0, 0), 1.5, 1.5, 15, -0.015, maincolor, 0, "Brick") | |
3128 | Aura(5, 0.15, "Add", root.CFrame * CFrame.new(math.random(-25, 25), -6, math.random(-25, 25)) * CFrame.Angles(math.rad(90), 0, 0), 1.5, 1.5, 15, -0.015, BrickColor.new("Black"), 0, "Brick") | |
3129 | Aura(5, 0.15, "Add", root.CFrame * CFrame.new(math.random(-25, 25), -6, math.random(-25, 25)) * CFrame.Angles(math.rad(90), 0, 0), 1.5, 1.5, 15, -0.015, maincolor, 0, "Brick") | |
3130 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0-255.45*i)), 0.15) | |
3131 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
3132 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
3133 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
3134 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(110)), 0.1) | |
3135 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-110)), 0.1) | |
3136 | end | |
3137 | hum.WalkSpeed = 8 | |
3138 | attack = false | |
3139 | end | |
3140 | ||
3141 | function BARK() | |
3142 | attack = true | |
3143 | hum.WalkSpeed = 0 | |
3144 | BATAUNT:Play() | |
3145 | repeat | |
3146 | BATAUNT.Parent = tors | |
3147 | swait() | |
3148 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.5 + 0.02 * Cos(sine / 2)) * angles(Rad(-2), Rad(1), Rad(15)), 0.1) | |
3149 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(19 + 1 * Cos(sine / 25)), Rad(0), Rad(-15)), 0.1) | |
3150 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.35) * angles(Rad(90 - 2 * Cos(sine / 1)), Rad(0), Rad(-50)), 0.1) | |
3151 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.15) * angles(Rad(70 + 2 * Cos(sine / 1)), Rad(-7), Rad(70)), 0.1) | |
3152 | RH.C0 = clerp(RH.C0, CF(1, -0.5 - 0.02 * Cos(sine / 2), -0.2) * RHCF * angles(Rad(-4), Rad(0), Rad(-10 + 0.05 * math.cos(sine / 25))), 0.1) | |
3153 | LH.C0 = clerp(LH.C0, CF(-1, -0.5 - 0.02 * Cos(sine / 2), -0.2) * LHCF * angles(Rad(-4), Rad(0), Rad(10 + 0.05 * Cos(sine / 25))), 0.1) | |
3154 | until BATAUNT.Playing == false | |
3155 | attack = false | |
3156 | hum.WalkSpeed = 8 | |
3157 | end | |
3158 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
3159 | local NSound = nil | |
3160 | coroutine.resume(coroutine.create(function() | |
3161 | NSound = Instance.new("Sound", PARENT) | |
3162 | NSound.Volume = VOLUME | |
3163 | NSound.Pitch = PITCH | |
3164 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
3165 | swait() | |
3166 | NSound:play() | |
3167 | game:GetService("Debris"):AddItem(NSound, 10) | |
3168 | end)) | |
3169 | return NSound | |
3170 | end | |
3171 | function Bark_Splosion() | |
3172 | attack = true | |
3173 | for i = 0,2,0.05 do | |
3174 | swait() | |
3175 | Effects.Block.Create(BrickC("Cool yellow"), ra.CFrame * CF(0, -1, 0), 2, 2, 2, 3, 3, 3, 0.05) | |
3176 | Effects.Block.Create(BrickC("Medium stone grey"), la.CFrame * CF(0, -1, 0), 2, 2, 2, 3, 3, 3, 0.05) | |
3177 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15) | |
3178 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
3179 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(-20)), 0.15) | |
3180 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(25)), 0.15) | |
3181 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(200), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1) | |
3182 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(200), Rad(0), Rad(-25 + 2.5 * Sin(sine / 20))), 0.1) | |
3183 | end | |
3184 | CreateSound("331666100", tors, 10, 1) | |
3185 | Effects.Ring.Create(BrickC("Cool yellow"), root.CFrame * CF(0, -2.3, 0) * angles(Rad(90),Rad(-1),Rad(0)), 2.5, 2.5, 40, 3, 3, 45, 0.01) | |
3186 | MagniDamage(tors, 34, 25, 50, 15, "DarkUp") | |
3187 | CameraEnshaking(1.5, 10) | |
3188 | for i = 1,2,0.1 do | |
3189 | swait() | |
3190 | PixelBlock(2,7,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0) | |
3191 | PixelBlock(1.5,9.5,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0) | |
3192 | PixelBlock(1,12,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0) | |
3193 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.4 + 0.1 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.8) | |
3194 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.9) | |
3195 | RH.C0 = clerp(RH.C0, CF(1, .4 - 0.1 * Cos(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(45)), 0.8) | |
3196 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.8) | |
3197 | RW.C0 = clerp(RW.C0, CF(1.5, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(25)), 0.75) | |
3198 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(-25)), 0.75) | |
3199 | end | |
3200 | wait(.6) | |
3201 | attack = false | |
3202 | end | |
3203 | corrupted = false | |
3204 | function Pixel_Corrupt() | |
3205 | attack = true | |
3206 | corrupted = true | |
3207 | for i = 0,3,0.05 do | |
3208 | swait() | |
3209 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.4 + 0.1 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.8) | |
3210 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.9) | |
3211 | RH.C0 = clerp(RH.C0, CF(1, .4 - 0.1 * Cos(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(45)), 0.8) | |
3212 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.8) | |
3213 | RW.C0 = clerp(RW.C0, CF(1.5, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(25)), 0.75) | |
3214 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(-25)), 0.75) | |
3215 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15) | |
3216 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
3217 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(-20)), 0.15) | |
3218 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(25)), 0.15) | |
3219 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(200), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1) | |
3220 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(200), Rad(0), Rad(-25 + 2.5 * Sin(sine / 20))), 0.1) | |
3221 | end | |
3222 | refa = New("Part",m,"refa",{Anchored = true, CanCollide = false,Transparency = 1,Size = Vector3.new(0.200000018, 0.299999923, 0.2),Position = mouse.Hit.p,Color = Color3.new(1, 0, 0),}) | |
3223 | HitboxFunction(refa.CFrame * CF(0, -0, -0), 0.01, 1, 1, 1, 20, 20, 25, 0, "Normal") | |
3224 | BlockEffect(maincolor, refa.CFrame * CF(-0, -0, -0), 30, 30, 30, 32, 32, 32, 0.07, 1) | |
3225 | CreateSound("331666100", refa, 10, 1) | |
3226 | CameraEnshaking(1.5, 10) | |
3227 | coroutine.resume(coroutine.create(function() | |
3228 | for i = 1,20,0.1 do | |
3229 | swait(5) | |
3230 | PixelBlock(2.5,11,"Add",refa.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,3.5,0.3,maincolor,0) | |
3231 | PixelBlock(2.5,11,"Add",refa.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,3.5,0.3,maincolor,0) | |
3232 | PixelBlock(2.5,11,"Add",refa.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,3.5,0.3,maincolor,0) | |
3233 | PixelBlock(2.5,11,"Add",refa.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,3.5,0.3,maincolor,0) | |
3234 | CreateSound("331666100", refa, 10, 1) | |
3235 | BlockEffect(maincolor, refa.CFrame * CF(-0, -0, -0), 22, 22, 22, 25, 25, 25, 0.041, 1) | |
3236 | HitboxFunction(refa.CFrame * CF(0, -0, -0), 0.01, 1, 1, 1, 21.3, 5, 8, 0, "Normal") | |
3237 | end | |
3238 | refa:Destroy() | |
3239 | corrupted = false | |
3240 | end)) | |
3241 | for i = 1,2.5,0.1 do | |
3242 | swait() | |
3243 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.4) | |
3244 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.6) | |
3245 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(-20)), 0.4) | |
3246 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(25)), 0.4) | |
3247 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(200), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.3) | |
3248 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(200), Rad(0), Rad(-25 + 2.5 * Sin(sine / 20))), 0.3) | |
3249 | end | |
3250 | wait(.3) | |
3251 | attack = false | |
3252 | end | |
3253 | MERKIO = Instance.new("Sound", tors) --why | |
3254 | MERKIO.SoundId = "http://www.roblox.com/asset/?id=791374350" | |
3255 | MERKIO.Volume = 10 | |
3256 | MERKIO.Pitch = 1 | |
3257 | MERKIO.Looped = false | |
3258 | MERKIO.TimePosition = 0 | |
3259 | function URA() | |
3260 | attack = true | |
3261 | MERKIO:Play() | |
3262 | repeat | |
3263 | for i = 0,0.7,0.2 do | |
3264 | swait() | |
3265 | MERKIO.Parent = tors | |
3266 | for i, v in pairs(FindNearestHead(ra.CFrame.p, 10)) do | |
3267 | if v:FindFirstChild("Torso") then | |
3268 | Eviscerate(v) | |
3269 | end | |
3270 | end | |
3271 | for i, v in pairs(FindNearestHead(la.CFrame.p, 10)) do | |
3272 | if v:FindFirstChild("Torso") then | |
3273 | Eviscerate(v) | |
3274 | end | |
3275 | end | |
3276 | Effects.Sphere.Create(maincolor, ra.CFrame * CFrame.new(0,-2,0) , 45, 45, 45, 0.1, 0.1, 0.1, 0.03) | |
3277 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 0) * angles(Rad(0), Rad(0), Rad(10)), 0.8) | |
3278 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.9) | |
3279 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(80), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08) | |
3280 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-80), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08) | |
3281 | RW.C0 = clerp(RW.C0, CF(1.5, 0.7 + 0.1 * Sin(sine / 30), 1) * angles(Rad(90), Rad(0), Rad(-10)), 0.77) | |
3282 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.7 + 0.1 * Sin(sine / 30), -1) * angles(Rad(90), Rad(0), Rad(10)), 0.67) | |
3283 | end | |
3284 | for i = 0,0.7,0.2 do | |
3285 | swait() | |
3286 | MERKIO.Parent = tors | |
3287 | for i, v in pairs(FindNearestHead(ra.CFrame.p, 10)) do | |
3288 | if v:FindFirstChild("Torso") then | |
3289 | Eviscerate(v) | |
3290 | end | |
3291 | end | |
3292 | for i, v in pairs(FindNearestHead(la.CFrame.p, 10)) do | |
3293 | if v:FindFirstChild("Torso") then | |
3294 | Eviscerate(v) | |
3295 | end | |
3296 | end | |
3297 | Effects.Sphere.Create(maincolor, la.CFrame * CFrame.new(0,-2,0) , 45, 45, 45, 0.1, 0.1, 0.1, 0.03) | |
3298 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 0) * angles(Rad(0), Rad(0), Rad(-10)), 0.8) | |
3299 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.9) | |
3300 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(80), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08) | |
3301 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-80), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08) | |
3302 | RW.C0 = clerp(RW.C0, CF(1.5, 0.7 + 0.1 * Sin(sine / 30), -1) * angles(Rad(90), Rad(0), Rad(-10)), 0.77) | |
3303 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.7 + 0.1 * Sin(sine / 30), 1) * angles(Rad(90), Rad(0), Rad(10)), 0.67) | |
3304 | end | |
3305 | until MERKIO.Playing == false | |
3306 | MERKIO:Stop() | |
3307 | attack = false | |
3308 | hum.WalkSpeed = 16 | |
3309 | end | |
3310 | function un_fun() | |
3311 | attack = true | |
3312 | hum.WalkSpeed = 0 | |
3313 | BTAUNT:Play() | |
3314 | repeat | |
3315 | swait() | |
3316 | BTAUNT.Parent = tors | |
3317 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.08) | |
3318 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 2.5 * Sin(sine / 30)), Rad(0), Rad(-2.5 * Cos(sine / 1.5))), 0.08) | |
3319 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(80), Rad(0)) * angles(Rad(-10.5), Rad(-2.5 * Cos(sine / 1.5)), Rad(10)), 0.08) | |
3320 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-80), Rad(0)) * angles(Rad(-10.5), Rad(-2.5 * Cos(sine / 1.5)), Rad(-10)), 0.08) | |
3321 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(210)), 0.08) | |
3322 | LW.C0 = clerp(LW.C0, CF(-1 * Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(43)), 0.08) | |
3323 | until BTAUNT.Playing == false | |
3324 | attack = false | |
3325 | hum.WalkSpeed = 8 | |
3326 | end | |
3327 | function MagicBlock(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
3328 | local prt = part(3, char, 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
3329 | prt.Anchored = true | |
3330 | prt.Material = "Neon" | |
3331 | prt.CFrame = cframe | |
3332 | prt.CFrame = prt.CFrame * Euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
3333 | local msh = mesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
3334 | game:GetService("Debris"):AddItem(prt, 5) | |
3335 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
3336 | for i = 0, 1, delay do | |
3337 | swait() | |
3338 | Part.CFrame = Part.CFrame * Euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
3339 | Part.Transparency = i | |
3340 | Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3) | |
3341 | end | |
3342 | Part.Parent = nil | |
3343 | end), prt, msh) | |
3344 | end | |
3345 | function Ende_der_Weld() | |
3346 | attack = true | |
3347 | for i = 0,7,0.1 do | |
3348 | swait() | |
3349 | BlockEffect(BrickC("Royal purple"), ll.CFrame * CF(0, -1.5, 0), 5, 5, 5, 3, 3, 3, 0.04, 1) | |
3350 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15) | |
3351 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
3352 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(-20)), 0.15) | |
3353 | LH.C0 = clerp(LH.C0, CF(-1, -0.3 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(25)), 0.15) | |
3354 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(135), Rad(0), Rad(-45 - 2.5 * Sin(sine / 20))), 0.1) | |
3355 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(135), Rad(0), Rad(45 + 2.5 * Sin(sine / 20))), 0.1) | |
3356 | end | |
3357 | Cso("438666141", char, 10, 1) | |
3358 | Effects.Sphere.Create(BrickColor.new("Royal purple"), root.CFrame * CF(0, -2.80, 0), 5, 2, 5, 150.6, .4, 150.6, 0.05) | |
3359 | Effects.Wave.Create(BrickColor.new("Royal purple"), root.CFrame * CF(0, -2.80, 0), 1500, 1500, 1500, 250.6, .6, 250.6, 0.05) | |
3360 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 52.5)) do | |
3361 | if v:FindFirstChild("Head") then | |
3362 | Eviscerate(v) | |
3363 | end | |
3364 | end | |
3365 | coroutine.resume(coroutine.create(function() | |
3366 | for i = 0,2.8,0.1 do | |
3367 | swait() | |
3368 | hum.CameraOffset = Vector3.new(Mrandom(-3,3),Mrandom(-3,3),Mrandom(-3,3)) | |
3369 | end | |
3370 | for i = 0,1.8,0.1 do | |
3371 | swait() | |
3372 | hum.CameraOffset = Vector3.new(0,0,0) | |
3373 | end | |
3374 | end)) | |
3375 | for i = 0,3.7,0.1 do | |
3376 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15) | |
3377 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
3378 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(20)), 0.15) | |
3379 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(-25)), 0.15) | |
3380 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-40), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1) | |
3381 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-40), Rad(0), Rad(-25 + 2.5 * Sin(sine / 20))), 0.1) | |
3382 | end | |
3383 | attack = false | |
3384 | end | |
3385 | function thisisit2() | |
3386 | attack = true | |
3387 | hum.WalkSpeed = 0 | |
3388 | STAUNT2:Play() | |
3389 | repeat | |
3390 | swait() | |
3391 | STAUNT2.Parent = tors | |
3392 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 1 + 0.2* Player_Size * Cos(sine / 26)) * angles(Rad(0), Rad(0), Rad(0)), 0.08) | |
3393 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)), 0.08) | |
3394 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.3 - 0.1 * Cos(sine / 20)* Player_Size, -0.5* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08) | |
3395 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08) | |
3396 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1) | |
3397 | LW.C0 = clerp(LW.C0, CF(-0.75, 0.35 + 0.05 * Sin(sine / 12), -0.6) * angles(Rad(0), Rad(0), Rad(92)) * angles(Rad(0), Rad(0), Rad(0)), 0.1) | |
3398 | until STAUNT2.Playing == false | |
3399 | attack = false | |
3400 | hum.WalkSpeed = 8 | |
3401 | end | |
3402 | function thisisit() | |
3403 | attack = true | |
3404 | hum.WalkSpeed = 0 | |
3405 | STAUNT:Play() | |
3406 | repeat | |
3407 | swait() | |
3408 | STAUNT.Parent = tors | |
3409 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.8 + 0.5* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.08) | |
3410 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 30)), Rad(20), Rad(0)), 0.08) | |
3411 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.3 - 0.1 * Cos(sine / 20)* Player_Size, -0.5* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08) | |
3412 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08) | |
3413 | RW.C0 = clerp(RW.C0, CF(1.5, 0.9 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(130)), 0.1) | |
3414 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.9 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-130)), 0.1) | |
3415 | until STAUNT.Playing == false | |
3416 | attack = false | |
3417 | hum.WalkSpeed = 8 | |
3418 | end | |
3419 | function Exploit() | |
3420 | exploitable = false | |
3421 | coroutine.resume(coroutine.create(function() | |
3422 | for i = 1,20,0.1 do | |
3423 | swait() | |
3424 | BlockEffect(maincolor, tors.CFrame * CF(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2)), 4, 4, 4, 0.8, 0.8, 0.8, 0.05, 1) | |
3425 | end | |
3426 | Cso("12222030", tors, 10, 1.05) | |
3427 | BlockEffect(maincolor, tors.CFrame * CF(0, 0, 0), 17, 17, 17, 20, 20, 20, 0.04, 1) | |
3428 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 27)) do | |
3429 | if v:FindFirstChild("Head") then | |
3430 | Eviscerate(v) | |
3431 | SoulSteal(v) | |
3432 | end | |
3433 | end | |
3434 | wait(15) | |
3435 | exploitable = true | |
3436 | end)) | |
3437 | end | |
3438 | DTrail5.Enabled = true | |
3439 | DTrail4.Enabled = true | |
3440 | DTrail3.Enabled = true | |
3441 | DTrail2.Enabled = true | |
3442 | DTrail.Enabled = true | |
3443 | function ASCENTION() | |
3444 | attack = true | |
3445 | hum.WalkSpeed = 0 | |
3446 | Cso("987502413", tors, 10, 1.05) | |
3447 | local vel2 = Instance.new("BodyVelocity",tors) | |
3448 | vel2.Velocity = Vector3.new(0,30,0) | |
3449 | vel2.MaxForce = Vector3.new(10000000,10000000,10000000) | |
3450 | for i = 0,20,0.1 do | |
3451 | HitboxFunction(tors.CFrame * CF(0, -0, -0), 0.01, 1, 1, 1, 7, 10, 20, 20, "Normal") | |
3452 | swait() | |
3453 | BlockEffect(maincolor, ra.CFrame * CF(-0, -1, -0), 4, 4, 4, 5, 5, 5, 0.07, 1) | |
3454 | BlockEffect(maincolor, la.CFrame * CF(-0, -1, -0), 4, 4, 4, 5, 5, 5, 0.07, 1) | |
3455 | CameraEnshaking(1, 4) | |
3456 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0-255.45*i)), 0.15) | |
3457 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
3458 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
3459 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
3460 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.1) | |
3461 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-90)), 0.1) | |
3462 | end | |
3463 | hum.WalkSpeed = 8 | |
3464 | vel2:Destroy() | |
3465 | attack = false | |
3466 | end | |
3467 | function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
3468 | local type = type | |
3469 | local rng = Instance.new("Part", char) | |
3470 | rng.Anchored = true | |
3471 | rng.Color = color | |
3472 | rng.CanCollide = false | |
3473 | rng.FormFactor = 3 | |
3474 | rng.Name = "Ring" | |
3475 | rng.Material = "Neon" | |
3476 | rng.Size = Vector3.new(1, 1, 1) | |
3477 | rng.Transparency = 0 | |
3478 | rng.TopSurface = 0 | |
3479 | rng.BottomSurface = 0 | |
3480 | rng.CFrame = pos | |
3481 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
3482 | local rngm = Instance.new("SpecialMesh", rng) | |
3483 | rngm.MeshType = "Sphere" | |
3484 | rngm.Scale = vt(x1,y1,z1) | |
3485 | if rainbowmode == true then | |
3486 | rng.Color = Color3.new(r/255,g/255,b/255) | |
3487 | end | |
3488 | local scaler2 = 1 | |
3489 | local speeder = FastSpeed | |
3490 | if type == "Add" then | |
3491 | scaler2 = 1*value | |
3492 | elseif type == "Divide" then | |
3493 | scaler2 = 1/value | |
3494 | end | |
3495 | coroutine.resume(coroutine.create(function() | |
3496 | for i = 0,10/bonuspeed,0.1 do | |
3497 | swait() | |
3498 | if rainbowmode == true then | |
3499 | rng.Color = Color3.new(r/255,g/255,b/255) | |
3500 | end | |
3501 | if type == "Add" then | |
3502 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
3503 | elseif type == "Divide" then | |
3504 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
3505 | end | |
3506 | if chaosmode == true then | |
3507 | rng.BrickColor = BrickColor.random() | |
3508 | end | |
3509 | if glitchymode then | |
3510 | local val = math.random(1,255) | |
3511 | local color = Color3.fromRGB(val,val,val) | |
3512 | rng.Color = color | |
3513 | end | |
3514 | speeder = speeder - 0.01*FastSpeed*bonuspeed | |
3515 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
3516 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
3517 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
3518 | end | |
3519 | rng:Destroy() | |
3520 | end)) | |
3521 | end | |
3522 | ||
3523 | function SphereAura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos) | |
3524 | local type = type | |
3525 | local rng = Instance.new("Part", char) | |
3526 | rng.Anchored = true | |
3527 | rng.BrickColor = color | |
3528 | rng.CanCollide = false | |
3529 | rng.FormFactor = 3 | |
3530 | rng.Name = "Ring" | |
3531 | rng.Material = "Neon" | |
3532 | rng.Size = Vector3.new(1, 1, 1) | |
3533 | rng.Transparency = 0 | |
3534 | rng.TopSurface = 0 | |
3535 | rng.BottomSurface = 0 | |
3536 | rng.CFrame = pos | |
3537 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
3538 | local rngm = Instance.new("SpecialMesh", rng) | |
3539 | rngm.MeshType = "Sphere" | |
3540 | rngm.Scale = Vector3.new(x1, y1, z1) | |
3541 | local scaler2 = 1 | |
3542 | local speeder = FastSpeed | |
3543 | if type == "Add" then | |
3544 | scaler2 = 1 * value | |
3545 | elseif type == "Divide" then | |
3546 | scaler2 = 1 / value | |
3547 | end | |
3548 | coroutine.resume(coroutine.create(function() | |
3549 | for i = 0, 10 / bonuspeed, 0.1 do | |
3550 | swait() | |
3551 | if type == "Add" then | |
3552 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
3553 | elseif type == "Divide" then | |
3554 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
3555 | end | |
3556 | rng.BrickColor = BrickColor.random() | |
3557 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
3558 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
3559 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
3560 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
3561 | end | |
3562 | rng:Destroy() | |
3563 | end)) | |
3564 | end | |
3565 | ||
3566 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, -.5, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(5), Rad(0), Rad(55)), 0.3) | |
3567 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(-55)), 0.3) | |
3568 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(0), Rad(87), Rad(0)) * angles(Rad(-30), Rad(0), Rad(15)), 0.3) | |
3569 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.1* Player_Size) * angles(Rad(0), Rad(-87), Rad(0)) * angles(Rad(-5), Rad(0), Rad(9)), 0.3) | |
3570 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.4* Player_Size) * angles(Rad(90), Rad(-7.5 * Sin(sine / 20)), Rad(35)), 0.3) | |
3571 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(7.5 * Sin(sine / 20)), Rad(-25)), 0.3) | |
3572 | ||
3573 | function aaa() | |
3574 | attack = true | |
3575 | maincolor = BrickColor.Random() | |
3576 | for i = 0,20,0.1 do | |
3577 | swait() | |
3578 | Effects.Block.Create(BrickColor.Random(), ra.CFrame * CF(0, -1, 0), 2, 2, 2, 3, 3, 3, 0.05) | |
3579 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, -.5, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(5 + Mrandom(-30,30)), Rad(0 + Mrandom(-30,30)), Rad(0 + Mrandom(-30,30))), 0.3) | |
3580 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-30 + Mrandom(-30,30)), Rad(0 + Mrandom(-30,30)), Rad(-55 + Mrandom(-30,30))), 0.3) | |
3581 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(0 + Mrandom(-30,30)), Rad(87 + Mrandom(-30,30)), Rad(0 + Mrandom(-30,30))) * angles(Rad(-30), Rad(0), Rad(15)), 0.3) | |
3582 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.1* Player_Size) * angles(Rad(0 + Mrandom(-30,30)), Rad(-87 + Mrandom(-30,30)), Rad(0 + Mrandom(-30,30))) * angles(Rad(-5), Rad(0), Rad(9)), 0.3) | |
3583 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.4* Player_Size) * angles(Rad(90 + Mrandom(-30,30)), Rad(-7.5 + Mrandom(-30,30)), Rad(35 + Mrandom(-30,30))), 0.3) | |
3584 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25 + Mrandom(-30,30)), Rad(7.5 + Mrandom(-30,30)), Rad(-25 + Mrandom(-30,30))), 0.3) | |
3585 | end | |
3586 | Magic(5, "Add", root.CFrame * CFrame.new(0, 0, 0), Vector3.new(10, 10, 10), 1, maincolor, "Sphere") | |
3587 | Magic(3, "Add", root.CFrame * CFrame.new(0, 0, 0), Vector3.new(20, 20, 20), 1, maincolor, "Sphere") | |
3588 | Magic(1, "Add", root.CFrame * CFrame.new(0, 0, 0), Vector3.new(30, 30, 30), 1, maincolor, "Sphere") | |
3589 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 52.5)) do | |
3590 | if v:FindFirstChild("Head") then | |
3591 | Eviscerate(v) | |
3592 | end | |
3593 | end | |
3594 | maincolor = BrickColor.new("White") | |
3595 | attack = false | |
3596 | end | |
3597 | ||
3598 | function stomp() | |
3599 | attack = true | |
3600 | CreateSound("331666100", char, 10, 1) | |
3601 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
3602 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
3603 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
3604 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
3605 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 35.6, 10.6, 0.05) | |
3606 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -3, 0), 2, 2, 2, 150.6, .4, 150.6, 0.05) | |
3607 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 52.5)) do | |
3608 | if v:FindFirstChild("Head") then | |
3609 | Eviscerate(v) | |
3610 | SoulSteal(v) | |
3611 | end | |
3612 | end | |
3613 | coroutine.resume(coroutine.create(function() | |
3614 | for i = 0,2.8,0.1 do | |
3615 | swait() | |
3616 | hum.CameraOffset = Vector3.new(Mrandom(-3,3),Mrandom(-3,3),Mrandom(-3,3)) | |
3617 | end | |
3618 | for i = 0,1.8,0.1 do | |
3619 | swait() | |
3620 | hum.CameraOffset = Vector3.new(0,0,0) | |
3621 | end | |
3622 | end)) | |
3623 | wait(.6) | |
3624 | attack = false | |
3625 | end | |
3626 | function Painful_Stomp() | |
3627 | attack = true | |
3628 | CreateSound("331666100", char, 10, 1) | |
3629 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
3630 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
3631 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
3632 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
3633 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 35.6, 10.6, 0.05) | |
3634 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -3, 0), 2, 2, 2, 150.6, .4, 150.6, 0.05) | |
3635 | Effects.Ring.Create(BrickColor.Random(), root.CFrame * CF(0, -1.7, 0) * angles(Rad(90),Rad(0),Rad(0)), 2, 2, 2, 8.6, 8.6, 8.6, 0.03) | |
3636 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 52.5)) do | |
3637 | if v:FindFirstChild("Head") then | |
3638 | Eviscerate(v) | |
3639 | end | |
3640 | end | |
3641 | coroutine.resume(coroutine.create(function() | |
3642 | for i = 0,2.8,0.1 do | |
3643 | swait() | |
3644 | hum.CameraOffset = Vector3.new(Mrandom(-3,3),Mrandom(-3,3),Mrandom(-3,3)) | |
3645 | end | |
3646 | for i = 0,1.8,0.1 do | |
3647 | swait() | |
3648 | hum.CameraOffset = Vector3.new(0,0,0) | |
3649 | end | |
3650 | end)) | |
3651 | attack = false | |
3652 | end | |
3653 | ||
3654 | local Hair = Instance.new("Part", char) | |
3655 | Hair.Name = "Hair" | |
3656 | Hair.CanCollide = false | |
3657 | Hair.BrickColor = BrickColor.new("Institutional white") | |
3658 | Hair.Transparency = 0 | |
3659 | Hair.Material = "Plastic" | |
3660 | Hair.Size = Vector3.new(1, 1, 2) | |
3661 | Hair.TopSurface = Enum.SurfaceType.Smooth | |
3662 | Hair.BottomSurface = Enum.SurfaceType.Smooth | |
3663 | ||
3664 | local Weld = Instance.new("Weld", Hair) | |
3665 | Weld.Part0 = hed | |
3666 | Weld.Part1 = Hair | |
3667 | Weld.C1 = CFrame.new(0, -.6, 0) | |
3668 | Weld.C0 = CFrame.Angles(math.rad(0),math.rad(0),0) | |
3669 | ||
3670 | local M2 = Instance.new("SpecialMesh") | |
3671 | M2.Parent = Hair | |
3672 | M2.MeshId = "http://www.roblox.com/asset/?id=13640868" | |
3673 | M2.TextureId = "http://www.roblox.com/asset/?id=18987684" | |
3674 | M2.Scale = Vector3.new(1, 1, 1) | |
3675 | ||
3676 | for i,v in pairs(char:children()) do | |
3677 | if v:IsA("Shirt") and v:IsA("Pants") and v:IsA("Hat") and v:IsA("Accessory") then | |
3678 | v:Remove() | |
3679 | end | |
3680 | end | |
3681 | shirt = Instance.new("Shirt", char) | |
3682 | shirt.Name = "Shirt" | |
3683 | pants = Instance.new("Pants", char) | |
3684 | pants.Name = "Pants" | |
3685 | char.Shirt.ShirtTemplate = "rbxassetid://0" | |
3686 | char.Pants.PantsTemplate = "rbxassetid://0" | |
3687 | ||
3688 | char.Head.face.Texture = "rbxassetid://0" | |
3689 | char.Torso.roblox.Texture = "rbxassetid://0" | |
3690 | ||
3691 | ||
3692 | ------ | |
3693 | local r2,g2,b2=255,0,0 | |
3694 | ||
3695 | local rate = 5--more is faster! | |
3696 | ||
3697 | spawn(function() | |
3698 | while true do | |
3699 | for i=0,255,rate do | |
3700 | g2 = i | |
3701 | wait() | |
3702 | end | |
3703 | for i=255,0,-rate do | |
3704 | r2 = i | |
3705 | wait() | |
3706 | end | |
3707 | for i=0,255,rate do | |
3708 | b2 = i | |
3709 | wait() | |
3710 | end | |
3711 | for i=255,0,-rate do | |
3712 | g2 = i | |
3713 | wait() | |
3714 | end | |
3715 | for i=0,255,rate do | |
3716 | r2 = i | |
3717 | wait() | |
3718 | end | |
3719 | for i=255,0,-rate do | |
3720 | b2 = i | |
3721 | wait() | |
3722 | end | |
3723 | end | |
3724 | end) | |
3725 | ------ | |
3726 | ||
3727 | local r,g,b=255,0,0 | |
3728 | ||
3729 | local rate = 1000--more is faster! | |
3730 | ||
3731 | spawn(function() | |
3732 | while true do | |
3733 | for i=0,255,rate do | |
3734 | g = i | |
3735 | wait() | |
3736 | end | |
3737 | for i=255,0,-rate do | |
3738 | r = i | |
3739 | wait() | |
3740 | end | |
3741 | for i=0,255,rate do | |
3742 | b = i | |
3743 | wait() | |
3744 | end | |
3745 | for i=255,0,-rate do | |
3746 | g = i | |
3747 | wait() | |
3748 | end | |
3749 | for i=0,255,rate do | |
3750 | r = i | |
3751 | wait() | |
3752 | end | |
3753 | for i=255,0,-rate do | |
3754 | b = i | |
3755 | wait() | |
3756 | end | |
3757 | end | |
3758 | end) | |
3759 | ||
3760 | function ByeBye() | |
3761 | local target = nil | |
3762 | local targettorso = nil | |
3763 | if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then | |
3764 | if mouse.Target.Parent.Humanoid.PlatformStand == false then | |
3765 | target = mouse.Target.Parent.Humanoid | |
3766 | targettorso = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso") | |
3767 | targethead = mouse.Target.Parent:FindFirstChild("Head") | |
3768 | end | |
3769 | end | |
3770 | if target ~= nil then | |
3771 | targettorso.Anchored = true | |
3772 | attack = true | |
3773 | hum.WalkSpeed = 0 | |
3774 | root.CFrame = targettorso.CFrame * CF(0,0,2) | |
3775 | for i = 0,4.2,0.1 do | |
3776 | swait() | |
3777 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
3778 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
3779 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15) | |
3780 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15) | |
3781 | RW.C0 = clerp(RW.C0, CF(1.1, 0.7 + 0.05 * Sin(sine / 30), -.6 + 0.025 * Cos(sine / 20)) * angles(Rad(115), Rad(0), Rad(-15)), 0.1) | |
3782 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(-25)), 0.1) | |
3783 | end | |
3784 | local bloody = Instance.new("ParticleEmitter",targettorso) | |
3785 | bloody.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0)) | |
3786 | bloody.LightEmission = .1 | |
3787 | bloody.Size = NumberSequence.new(0.5, 0) | |
3788 | bloody.Texture = "http://www.roblox.com/asset/?ID=602578593" | |
3789 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)}) | |
3790 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
3791 | bloody.Transparency = bbb | |
3792 | bloody.Size = aaa | |
3793 | bloody.ZOffset = -.9 | |
3794 | bloody.Acceleration = Vector3.new(0, -5, 0) | |
3795 | bloody.LockedToPart = false | |
3796 | bloody.Lifetime = NumberRange.new(0.8) | |
3797 | bloody.Rate = 255 | |
3798 | bloody.Rotation = NumberRange.new(-100, 100) | |
3799 | bloody.RotSpeed = NumberRange.new(-100, 100) | |
3800 | bloody.Speed = NumberRange.new(6) | |
3801 | bloody.VelocitySpread = 0 | |
3802 | bloody.Enabled=true | |
3803 | targethead:Remove() | |
3804 | CreateSound("429400881", targettorso, 5, .8) | |
3805 | CreateSound("1093102664", targettorso, 10, 1) | |
3806 | for i = 0,6.2,0.1 do | |
3807 | swait() | |
3808 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(110)), 0.15) | |
3809 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-110)), 0.3) | |
3810 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15) | |
3811 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15) | |
3812 | RW.C0 = clerp(RW.C0, CF(1.3, 0.7 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(100), Rad(0), Rad(-15)), 0.1) | |
3813 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
3814 | end | |
3815 | targettorso.Anchored = false | |
3816 | attack = false | |
3817 | hum.WalkSpeed = 16 | |
3818 | root.CFrame = targettorso.CFrame * CF(0,0,3) | |
3819 | end | |
3820 | end | |
3821 | ||
3822 | local Blood1 = Create("ParticleEmitter")({ | |
3823 | Color = ColorSequence.new(Color3.new(0.7, 0, 0), Color3.new(0.1, 0, 0)), | |
3824 | Transparency = NumberSequence.new(0.1, 1), | |
3825 | Size = NumberSequence.new(0.5, 0), | |
3826 | Texture = "rbxassetid://602578593", | |
3827 | Lifetime = NumberRange.new(0.8), | |
3828 | Rate = 255, | |
3829 | VelocitySpread = 40, | |
3830 | Rotation = NumberRange.new(100), | |
3831 | Speed = NumberRange.new(5), | |
3832 | LightEmission = 0, | |
3833 | LockedToPart = false, | |
3834 | Acceleration = Vector3.new(0, -10, 0), | |
3835 | EmissionDirection = "Bottom" | |
3836 | }) | |
3837 | ||
3838 | function Sayonara() | |
3839 | local target = nil | |
3840 | local targettorso = nil | |
3841 | if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then | |
3842 | if mouse.Target.Parent.Humanoid.PlatformStand == false then | |
3843 | target = mouse.Target.Parent.Humanoid | |
3844 | targettorso = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso") | |
3845 | targethead = mouse.Target.Parent:FindFirstChild("Head") | |
3846 | targetrightarm = mouse.Target.Parent:FindFirstChild("Right Arm") | |
3847 | targetleftarm = mouse.Target.Parent:FindFirstChild("Left Arm") | |
3848 | end | |
3849 | end | |
3850 | if target ~= nil then | |
3851 | targettorso.Anchored = true | |
3852 | attack = true | |
3853 | hum.WalkSpeed = 0 | |
3854 | root.CFrame = targettorso.CFrame * CF(0,0,2.4) | |
3855 | for i = 0,6.2,0.1 do | |
3856 | swait() | |
3857 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.15) | |
3858 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(10), Rad(0)), 0.3) | |
3859 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(10)), 0.15) | |
3860 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-10)), 0.15) | |
3861 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(10)), 0.1) | |
3862 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(-10)), 0.1) | |
3863 | end | |
3864 | do | |
3865 | CreateSound("429400881", targettorso, 5, 1) | |
3866 | local ModelArm02 = New("Model", char, "Arm", {}) | |
3867 | local ModelArm03 = New("Model", char, "Arm", {}) | |
3868 | local Humanoid02 = New("Humanoid", ModelArm02, "Humanoid", {}) | |
3869 | local Humanoid03 = New("Humanoid", ModelArm03, "Humanoid", {}) | |
3870 | local Arm02 = targetleftarm:Clone() | |
3871 | local Arm03 = targetrightarm:Clone() | |
3872 | targetleftarm.Transparency = 1 | |
3873 | targetrightarm.Transparency = 1 | |
3874 | Arm02.Parent = ModelArm02 | |
3875 | Arm03.Parent = ModelArm03 | |
3876 | for i, v in pairs(Arm02:GetChildren()) do | |
3877 | v:Destroy() | |
3878 | end | |
3879 | for i, v in pairs(Arm03:GetChildren()) do | |
3880 | v:Destroy() | |
3881 | end | |
3882 | local weldArm02 = Instance.new("Weld") | |
3883 | weldArm02.Parent = Arm02 | |
3884 | weldArm02.Part0 = targetleftarm | |
3885 | weldArm02.Part1 = Arm02 | |
3886 | weldArm02.C1 = CFrame.new(0, 0, 0) | |
3887 | local weldArm03 = Instance.new("Weld") | |
3888 | weldArm03.Parent = Arm03 | |
3889 | weldArm03.Part0 = targetrightarm | |
3890 | weldArm03.Part1 = Arm03 | |
3891 | weldArm03.C1 = CFrame.new(0, 0, 0) | |
3892 | for i, v in pairs(target:GetChildren()) do | |
3893 | if v:IsA("Shirt") then | |
3894 | v:clone().Parent = ModelArm02 | |
3895 | end | |
3896 | end | |
3897 | for i, v in pairs(target:GetChildren()) do | |
3898 | if v:IsA("Shirt") then | |
3899 | v:clone().Parent = ModelArm03 | |
3900 | end | |
3901 | end | |
3902 | weldArm02.Part0 = la | |
3903 | weldArm02.C1 = CFrame.new(0, 0, 1.2) * angles(math.rad(90), math.rad(0), math.rad(0)) | |
3904 | weldArm03.Part0 = ra | |
3905 | weldArm03.C1 = CFrame.new(0, 0, 1.2) * angles(math.rad(90), math.rad(0), math.rad(0)) | |
3906 | local BE1 = Blood1:Clone() | |
3907 | BE1.Parent = targetleftarm | |
3908 | game:GetService("Debris"):AddItem(BE1, 3) | |
3909 | BE1.Rate = 255 | |
3910 | local BE2 = Blood1:Clone() | |
3911 | BE2.Parent = targetrightarm | |
3912 | game:GetService("Debris"):AddItem(BE2, 3) | |
3913 | BE2.Rate = 255 | |
3914 | for i = 0,6.2,0.1 do | |
3915 | swait() | |
3916 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-10), Rad(0), Rad(0)), 0.15) | |
3917 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
3918 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(-10)), 0.15) | |
3919 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(10)), 0.15) | |
3920 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), .6 + 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(15)), 0.1) | |
3921 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), .6 + 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(-15)), 0.1) | |
3922 | end | |
3923 | for i = 0,6.2,0.1 do | |
3924 | swait() | |
3925 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15) | |
3926 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
3927 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(-20)), 0.15) | |
3928 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(20)), 0.15) | |
3929 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(180), Rad(0), Rad(15)), 0.1) | |
3930 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(180), Rad(0), Rad(-15)), 0.1) | |
3931 | end | |
3932 | CreateSound("541909763", targettorso, 5, .8) | |
3933 | weldArm02:Destroy() | |
3934 | Arm02.CanCollide = true | |
3935 | weldArm03:Destroy() | |
3936 | Arm03.CanCollide = true | |
3937 | local bodyVelocity2 = Create("BodyVelocity")({ | |
3938 | velocity = Vector3.new(0, 10, 0) + root.CFrame.lookVector * 50, | |
3939 | P = 5000, | |
3940 | maxForce = Vector3.new(8000, 8000, 8000), | |
3941 | Parent = Arm02 | |
3942 | }) | |
3943 | local bodyVelocity3 = Create("BodyVelocity")({ | |
3944 | velocity = Vector3.new(0, 10, 0) + root.CFrame.lookVector * 50, | |
3945 | P = 5000, | |
3946 | maxForce = Vector3.new(8000, 8000, 8000), | |
3947 | Parent = Arm03 | |
3948 | }) | |
3949 | game:GetService("Debris"):AddItem(bodyVelocity2, 0.05) | |
3950 | game:GetService("Debris"):AddItem(bodyVelocity3, 0.05) | |
3951 | for i = 0,6.2,0.1 do | |
3952 | swait() | |
3953 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15) | |
3954 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
3955 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(35)), 0.15) | |
3956 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-20)), 0.15) | |
3957 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(95), Rad(0), Rad(15)), 0.1) | |
3958 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(95), Rad(0), Rad(-15)), 0.1) | |
3959 | end | |
3960 | end | |
3961 | targettorso.Anchored = false | |
3962 | attack = false | |
3963 | hum.WalkSpeed = 16 | |
3964 | root.CFrame = targettorso.CFrame * CF(0,0,3.4) | |
3965 | end | |
3966 | end | |
3967 | ||
3968 | function dash() | |
3969 | dashing = true | |
3970 | attack = true | |
3971 | local bv = Instance.new("BodyVelocity") | |
3972 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3973 | bv.velocity = root.CFrame.lookVector*200 | |
3974 | bv.Parent = root | |
3975 | for i = 0,1,0.1 do | |
3976 | swait() | |
3977 | bv.velocity = root.CFrame.lookVector*200 | |
3978 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*CF(0,0,0)* angles(math.rad(50),math.rad(0),math.rad(0)),0.5) | |
3979 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.5) | |
3980 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-80), math.rad(0), math.rad(50)), 0.5) | |
3981 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-80), math.rad(0), math.rad(-50)), 0.5) | |
3982 | RH.C0=clerp(RH.C0,CF(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1) | |
3983 | LH.C0=clerp(LH.C0,CF(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1) | |
3984 | end | |
3985 | bv:Destroy() | |
3986 | attack = false | |
3987 | dashing = false | |
3988 | end | |
3989 | ||
3990 | function Multi_Bombs() | |
3991 | attack = true | |
3992 | hum.WalkSpeed = 3.01 | |
3993 | for i = 0,3,0.1 do | |
3994 | swait() | |
3995 | Effects.Block.Create(BrickC("Dark indigo"), ra.CFrame * CF(0, -1, 0), 2, 2, 2, 3, 3, 3, 0.05) | |
3996 | Effects.Block.Create(BrickC("Dark indigo"), la.CFrame * CF(0, -1, 0), 2, 2, 2, 3, 3, 3, 0.05) | |
3997 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 1.3 + 0.6 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
3998 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
3999 | RH.C0 = clerp(RH.C0, CF(1, -0.5 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5 + 3 * Sin(sine / 20)), Rad(0), Rad(10 + 3 * Sin(sine / 20))), 0.15) | |
4000 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5 + 3 * Sin(sine / 20)), Rad(0), Rad(20 + 3 * Sin(sine / 20))), 0.15) | |
4001 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(-10 * Cos(sine / 20)), Rad(90 - 2.5 * Sin(sine / 20))), 0.1) | |
4002 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(10 * Cos(sine / 20)), Rad(-90 + 2.5 * Sin(sine / 20))), 0.1) | |
4003 | end | |
4004 | Effects.Sphere.Create(BrickC("Dark indigo"), root.CFrame * CF(0, 1, -4), 5, 5, 5, 18, 18, 18, 0.05) | |
4005 | Effects.Sphere.Create(BrickC("Dark indigo"), root.CFrame * CF(0, 1, -4), 5, 5, 5, 14, 14, 14, 0.03) | |
4006 | Effects.Sphere.Create(BrickC("Dark indigo"), root.CFrame * CF(0, 1, -4), 4.5, 4.5, 4.5, 10, 10, 10, 0.05) | |
4007 | Effects.Sphere.Create(BrickC("Dark indigo"), root.CFrame * CF(0, 1, -4), 4.2, 4.2, 4.2, 8, 8, 8, 0.05) | |
4008 | Effects.Sphere.Create(BrickC("Dark indigo"), root.CFrame * CF(0, 1, -4), 5, 5, 5, 11.5, 11.5, 11.5, 0.05) | |
4009 | Effects.Ring.Create(BrickC("Dark indigo"), root.CFrame * CF(0, 0, -4), 3, 3, 3, 3.6, 3.6, 3.6, 0.02) | |
4010 | Effects.Ring.Create(BrickC("Dark indigo"), root.CFrame * CF(0, 0, -4), 2, 2, 2, 3, 3, 3, 0.05) | |
4011 | CreateSound("142070127", tors, 10, 1) | |
4012 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 70)) do | |
4013 | if v:FindFirstChild("Head") then | |
4014 | Eviscerate(v) | |
4015 | end | |
4016 | end | |
4017 | for i = 0,1,0.1 do | |
4018 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 1.3 + 0.6 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
4019 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
4020 | RH.C0 = clerp(RH.C0, CF(1, -0.5 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5 + 3 * Sin(sine / 20)), Rad(0), Rad(10 + 3 * Sin(sine / 20))), 0.15) | |
4021 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5 + 3 * Sin(sine / 20)), Rad(0), Rad(-10 + 3 * Sin(sine / 20))), 0.15) | |
4022 | RW.C0 = clerp(RW.C0, CF(1, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(-10 * Cos(sine / 20)), Rad(-35 - 2.5 * Sin(sine / 20))), 0.1) | |
4023 | LW.C0 = clerp(LW.C0, CF(-1, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(10 * Cos(sine / 20)), Rad(35 + 2.5 * Sin(sine / 20))), 0.1) | |
4024 | end | |
4025 | for i = 0,2,0.1 do | |
4026 | swait() | |
4027 | Effects.Block.Create(BrickC("Dark indigo"), ra.CFrame * CF(0, -1, 0), 2, 2, 2, 3, 3, 3, 0.05) | |
4028 | Effects.Block.Create(BrickC("Dark indigo"), la.CFrame * CF(0, -1, 0), 2, 2, 2, 3, 3, 3, 0.05) | |
4029 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 1.3 + 0.6 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
4030 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
4031 | RH.C0 = clerp(RH.C0, CF(1, -0.5 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5 + 3 * Sin(sine / 20)), Rad(0), Rad(10 + 3 * Sin(sine / 20))), 0.15) | |
4032 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5 + 3 * Sin(sine / 20)), Rad(0), Rad(20 + 3 * Sin(sine / 20))), 0.15) | |
4033 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(-10 * Cos(sine / 20)), Rad(90 - 2.5 * Sin(sine / 20))), 0.1) | |
4034 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(10 * Cos(sine / 20)), Rad(-90 + 2.5 * Sin(sine / 20))), 0.1) | |
4035 | end | |
4036 | Effects.Sphere.Create(BrickC("Dark indigo"), root.CFrame * CF(0, 1, -4), 5, 5, 5, 18, 18, 18, 0.05) | |
4037 | Effects.Sphere.Create(BrickC("Dark indigo"), root.CFrame * CF(0, 1, -4), 5, 5, 5, 14, 14, 14, 0.03) | |
4038 | Effects.Sphere.Create(BrickC("Dark indigo"), root.CFrame * CF(0, 1, -4), 4.5, 4.5, 4.5, 10, 10, 10, 0.05) | |
4039 | Effects.Sphere.Create(BrickC("Dark indigo"), root.CFrame * CF(0, 1, -4), 4.2, 4.2, 4.2, 8, 8, 8, 0.05) | |
4040 | Effects.Sphere.Create(BrickC("Dark indigo"), root.CFrame * CF(0, 1, -4), 5, 5, 5, 11.5, 11.5, 11.5, 0.05) | |
4041 | Effects.Ring.Create(BrickC("Dark indigo"), root.CFrame * CF(0, 0, -4), 3, 3, 3, 3.6, 3.6, 3.6, 0.02) | |
4042 | Effects.Ring.Create(BrickC("Dark indigo"), root.CFrame * CF(0, 0, -4), 2, 2, 2, 3, 3, 3, 0.05) | |
4043 | CreateSound("142070127", tors, 10, 1) | |
4044 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 70)) do | |
4045 | if v:FindFirstChild("Head") then | |
4046 | Eviscerate(v) | |
4047 | end | |
4048 | end | |
4049 | for i = 0,1,0.1 do | |
4050 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 1.3 + 0.6 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
4051 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
4052 | RH.C0 = clerp(RH.C0, CF(1, -0.5 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5 + 3 * Sin(sine / 20)), Rad(0), Rad(10 + 3 * Sin(sine / 20))), 0.15) | |
4053 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5 + 3 * Sin(sine / 20)), Rad(0), Rad(-10 + 3 * Sin(sine / 20))), 0.15) | |
4054 | RW.C0 = clerp(RW.C0, CF(1, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(-10 * Cos(sine / 20)), Rad(-35 - 2.5 * Sin(sine / 20))), 0.1) | |
4055 | LW.C0 = clerp(LW.C0, CF(-1, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(10 * Cos(sine / 20)), Rad(35 + 2.5 * Sin(sine / 20))), 0.1) | |
4056 | end | |
4057 | for i = 0,2,0.1 do | |
4058 | swait() | |
4059 | Effects.Block.Create(BrickC("Dark indigo"), ra.CFrame * CF(0, -1, 0), 2, 2, 2, 3, 3, 3, 0.05) | |
4060 | Effects.Block.Create(BrickC("Dark indigo"), la.CFrame * CF(0, -1, 0), 2, 2, 2, 3, 3, 3, 0.05) | |
4061 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 1.3 + 0.6 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
4062 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
4063 | RH.C0 = clerp(RH.C0, CF(1, -0.5 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5 + 3 * Sin(sine / 20)), Rad(0), Rad(10 + 3 * Sin(sine / 20))), 0.15) | |
4064 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5 + 3 * Sin(sine / 20)), Rad(0), Rad(20 + 3 * Sin(sine / 20))), 0.15) | |
4065 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(-10 * Cos(sine / 20)), Rad(90 - 2.5 * Sin(sine / 20))), 0.1) | |
4066 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(10 * Cos(sine / 20)), Rad(-90 + 2.5 * Sin(sine / 20))), 0.1) | |
4067 | end | |
4068 | Effects.Sphere.Create(BrickC("Dark indigo"), root.CFrame * CF(0, 1, -4), 5, 5, 5, 18, 18, 18, 0.05) | |
4069 | Effects.Sphere.Create(BrickC("Dark indigo"), root.CFrame * CF(0, 1, -4), 5, 5, 5, 14, 14, 14, 0.03) | |
4070 | Effects.Sphere.Create(BrickC("Dark indigo"), root.CFrame * CF(0, 1, -4), 4.5, 4.5, 4.5, 10, 10, 10, 0.05) | |
4071 | Effects.Sphere.Create(BrickC("Dark indigo"), root.CFrame * CF(0, 1, -4), 4.2, 4.2, 4.2, 8, 8, 8, 0.05) | |
4072 | Effects.Sphere.Create(BrickC("Dark indigo"), root.CFrame * CF(0, 1, -4), 5, 5, 5, 11.5, 11.5, 11.5, 0.05) | |
4073 | Effects.Ring.Create(BrickC("Dark indigo"), root.CFrame * CF(0, 0, -4), 3, 3, 3, 3.6, 3.6, 3.6, 0.02) | |
4074 | Effects.Ring.Create(BrickC("Dark indigo"), root.CFrame * CF(0, 0, -4), 2, 2, 2, 3, 3, 3, 0.05) | |
4075 | CreateSound("142070127", tors, 10, 1) | |
4076 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 70)) do | |
4077 | if v:FindFirstChild("Head") then | |
4078 | Eviscerate(v) | |
4079 | end | |
4080 | end | |
4081 | for i = 0,1,0.1 do | |
4082 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 1.3 + 0.6 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
4083 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
4084 | RH.C0 = clerp(RH.C0, CF(1, -0.5 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5 + 3 * Sin(sine / 20)), Rad(0), Rad(10 + 3 * Sin(sine / 20))), 0.15) | |
4085 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5 + 3 * Sin(sine / 20)), Rad(0), Rad(-10 + 3 * Sin(sine / 20))), 0.15) | |
4086 | RW.C0 = clerp(RW.C0, CF(1, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(-10 * Cos(sine / 20)), Rad(-35 - 2.5 * Sin(sine / 20))), 0.1) | |
4087 | LW.C0 = clerp(LW.C0, CF(-1, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(10 * Cos(sine / 20)), Rad(35 + 2.5 * Sin(sine / 20))), 0.1) | |
4088 | end | |
4089 | wait(.6) | |
4090 | attack = false | |
4091 | hum.WalkSpeed = 8 | |
4092 | end | |
4093 | function Universal_Crush() | |
4094 | attack = true | |
4095 | for i = 0,5.2,0.05 do | |
4096 | swait() | |
4097 | Effects.Block.Create(BrickC("Dark indigo"), ra.CFrame * CF(0, -1, 0), 2, 2, 2, 3, 3, 3, 0.05) | |
4098 | Effects.Block.Create(BrickC("Dark indigo"), la.CFrame * CF(0, -1, 0), 2, 2, 2, 3, 3, 3, 0.05) | |
4099 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15) | |
4100 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
4101 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(-20)), 0.15) | |
4102 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(25)), 0.15) | |
4103 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(200), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1) | |
4104 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(200), Rad(0), Rad(-25 + 2.5 * Sin(sine / 20))), 0.1) | |
4105 | end | |
4106 | CreateSound("331666100", tors, 10, 1) | |
4107 | Effects.Ring.Create(BrickC("Dark indigo"), root.CFrame * CF(0, -2.7, 0) * angles(Rad(90),Rad(0),Rad(0)), 14, 14, 14, 16.6, 16.6, 16.6, 0.01) | |
4108 | Effects.Ring.Create(BrickC("Dark indigo"), root.CFrame * CF(0, -2.3, 0) * angles(Rad(90),Rad(0),Rad(0)), 16, 16, 16, 19.6, 19.6, 19.6, 0.01) | |
4109 | Effects.Ring.Create(BrickC("Dark indigo"), root.CFrame * CF(0, -1.7, 0) * angles(Rad(90),Rad(0),Rad(0)), 18, 18, 18, 22.6, 22.6, 22.6, 0.01) | |
4110 | Effects.Ring.Create(BrickC("Dark indigo"), root.CFrame * CF(0, -1.3, 0) * angles(Rad(90),Rad(0),Rad(0)), 20, 20, 20, 25.6, 25, 25, 0.01) | |
4111 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 500)) do | |
4112 | if v:FindFirstChild("Head") then | |
4113 | Eviscerate(v) | |
4114 | end | |
4115 | end | |
4116 | coroutine.resume(coroutine.create(function() | |
4117 | for i = 0,1.8,0.1 do | |
4118 | swait() | |
4119 | hum.CameraOffset = Vector3.new(Mrandom(-3,3),Mrandom(-3,3),Mrandom(-3,3)) | |
4120 | end | |
4121 | for i = 0,1.8,0.1 do | |
4122 | swait() | |
4123 | hum.CameraOffset = Vector3.new(0,0,0) | |
4124 | end | |
4125 | end)) | |
4126 | for i = 1,4.7,0.1 do | |
4127 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.4 + 0.1 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15) | |
4128 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.3) | |
4129 | RH.C0 = clerp(RH.C0, CF(1, .4 - 0.1 * Cos(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(45)), 0.15) | |
4130 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15) | |
4131 | RW.C0 = clerp(RW.C0, CF(1.5, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(25)), 0.1) | |
4132 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(-25)), 0.1) | |
4133 | end | |
4134 | wait(.6) | |
4135 | attack = false | |
4136 | end | |
4137 | ------------------------------------------------------- | |
4138 | --End Attacks N Stuff-- | |
4139 | ------------------------------------------------------- | |
4140 | Sprinting = false | |
4141 | mouse.KeyDown:connect(function(key) | |
4142 | if string.byte(key) == 48 and attack == false and Mode ~= 10 then | |
4143 | Swing = 2 | |
4144 | hum.WalkSpeed = 38.82 | |
4145 | Sprinting = true | |
4146 | end | |
4147 | end) | |
4148 | mouse.KeyUp:connect(function(key) | |
4149 | if string.byte(key) == 48 and attack == false then | |
4150 | Swing = 1 | |
4151 | Sprinting = false | |
4152 | hum.WalkSpeed = 8 | |
4153 | end | |
4154 | end) | |
4155 | mouse.KeyDown:connect(function(key) | |
4156 | if attack == false then | |
4157 | if key == 'q' and Mode == 1 then | |
4158 | Power_Burst() | |
4159 | elseif key == '1' and Mode ~= 2 then | |
4160 | Mode = 2 | |
4161 | SONG = 2145635015 | |
4162 | elseif key == '1' and Mode == 2 then | |
4163 | resetmode() | |
4164 | elseif key == 't' and Mode == 1 then | |
4165 | Taunt() | |
4166 | elseif key == 'q' and Mode == 2 then | |
4167 | Magic_Bombs() | |
4168 | elseif key == 'e' and Mode == 2 then | |
4169 | Dangerous_Field() | |
4170 | elseif key == 'c' and Mode == 2 then | |
4171 | dash() | |
4172 | elseif key == 't' and Mode == 2 then | |
4173 | HAAH() | |
4174 | end | |
4175 | --------------------------------------------------------------------- | |
4176 | if key == 'm' and Mode == 6 and Mode ~= 10 and Sprinting == false then | |
4177 | Mode = 10 | |
4178 | SONG = 1138145518 | |
4179 | elseif key == 'm' and Mode == 10 then | |
4180 | resetmode() | |
4181 | elseif key == 'q' and Mode == 10 then | |
4182 | Decapitate() | |
4183 | elseif key == 'e' and Mode == 10 then | |
4184 | stomp() | |
4185 | elseif key == 'r' and Mode == 10 then | |
4186 | Painful_Stomp() | |
4187 | elseif key == 'c' and Mode == 10 then | |
4188 | dash() | |
4189 | elseif key == 't' and Mode == 10 then | |
4190 | aaa() | |
4191 | end | |
4192 | --------------------------------------------------------------------- | |
4193 | if key == 'g' and Mode ~= 3 then | |
4194 | Mode = 3 | |
4195 | SONG = 0 | |
4196 | ||
4197 | imgl2.ImageColor3 = BrickC("Really red").Color | |
4198 | techc.ImageColor3 = BrickC("Really red").Color | |
4199 | ned.Text = "Rainbow" | |
4200 | for i, v in pairs(NeonColorParts1000) do | |
4201 | v.BrickColor = BrickC("Really red") | |
4202 | end | |
4203 | ned.TextColor3 = BrickC("Really red").Color | |
4204 | ned.TextStrokeColor3 = BrickC("Really black").Color | |
4205 | elseif key == 'c' and Mode == 3 then | |
4206 | dash() | |
4207 | elseif key == 'g' and Mode == 3 then | |
4208 | resetmode() | |
4209 | end | |
4210 | --------------------------------------------------------------------- | |
4211 | if key == 'f' and Mode ~= 6 then | |
4212 | Mode = 6 | |
4213 | SONG = 339568749 | |
4214 | ||
4215 | imgl2.ImageColor3 = BrickC("Really red").Color | |
4216 | techc.ImageColor3 = BrickC("Really red").Color | |
4217 | ned.Text = "Murder" | |
4218 | ned.TextColor3 = BrickC("Really red").Color | |
4219 | ned.TextStrokeColor3 = BrickC("Really black").Color | |
4220 | elseif key == 'f' and Mode == 6 then | |
4221 | resetmode() | |
4222 | elseif key == 'z' and Mode == 6 then | |
4223 | Decapitate() | |
4224 | elseif key == 'x' and Mode == 6 then | |
4225 | Sayonara() | |
4226 | elseif key == 't' and Mode == 6 then | |
4227 | TTTTTTTTTTTaunt() | |
4228 | elseif key == 'e' and Mode == 6 then | |
4229 | dash() | |
4230 | elseif key == 'c' and Mode == 6 then | |
4231 | ByeBye() | |
4232 | end | |
4233 | --------------------------------------------------------------------- | |
4234 | if key == 'b' and Mode == 3 then | |
4235 | Mode = 9990 | |
4236 | SONG = 485554606 | |
4237 | ||
4238 | imgl2.ImageColor3 = BrickC("Really black").Color | |
4239 | techc.ImageColor3 = BrickC("Lime green").Color | |
4240 | ned.Text = "Nuclear" | |
4241 | ned.TextColor3 = BrickC("Really black").Color | |
4242 | ned.TextStrokeColor3 = BrickC("Lime green").Color | |
4243 | ||
4244 | elseif key == 'z' and Mode == 9990 then | |
4245 | NUCLEAR() | |
4246 | elseif key == 'c' and Mode == 9990 then | |
4247 | dash() | |
4248 | elseif key == 'b' and Mode == 9990 then | |
4249 | resetmode() | |
4250 | end | |
4251 | --------------------------------------------------------------------- | |
4252 | if key == 'b' and Mode == 99 then | |
4253 | Mode = 122 | |
4254 | SONG = 285256659 | |
4255 | ||
4256 | imgl2.ImageColor3 = BrickC("White").Color | |
4257 | techc.ImageColor3 = BrickC("Really black").Color | |
4258 | ned.Text = "Fighter" | |
4259 | for i, v in pairs(NeonColorParts1000) do | |
4260 | v.BrickColor = BrickC("Really black") | |
4261 | end | |
4262 | ned.TextColor3 = BrickC("Really black").Color | |
4263 | ned.TextStrokeColor3 = BrickC("White").Color | |
4264 | elseif key == 'z' and Mode == 122 then | |
4265 | URA() | |
4266 | elseif key == 'c' and Mode == 122 then | |
4267 | dash() | |
4268 | elseif key == 'b' and Mode == 122 then | |
4269 | resetmode() | |
4270 | end | |
4271 | --------------------------------------------------------------------- | |
4272 | if key == 'j' and Mode ~= 8 then | |
4273 | Mode = 8 | |
4274 | SONG = 3086889338 | |
4275 | ||
4276 | imgl2.ImageColor3 = BrickC("Dark indigo").Color | |
4277 | techc.ImageColor3 = BrickC("Dark indigo").Color | |
4278 | ned.Text = "Planetary" | |
4279 | ned.TextColor3 = BrickC("Dark indigo").Color | |
4280 | ned.TextStrokeColor3 = BrickC("Dark indigo").Color | |
4281 | elseif key == 'z' and Mode == 8 then | |
4282 | Multi_Bombs() | |
4283 | elseif key == 'x' and Mode == 8 then | |
4284 | Universal_Crush() | |
4285 | elseif key == 't' and Mode == 8 then | |
4286 | thisisit() | |
4287 | elseif key == 'c' and Mode == 8 then | |
4288 | dash() | |
4289 | elseif key == 'j' and Mode == 8 then | |
4290 | resetmode() | |
4291 | end | |
4292 | --------------------------------------------------------------------- | |
4293 | if key == 'm' and Mode == 8 then | |
4294 | Mode = 10000 | |
4295 | SONG = 346191865 | |
4296 | ||
4297 | imgl2.ImageColor3 = BrickC("Really black").Color | |
4298 | techc.ImageColor3 = BrickC("Royal purple").Color | |
4299 | ned.Text = "Void" | |
4300 | ned.TextColor3 = BrickC("Really black").Color | |
4301 | ned.TextStrokeColor3 = BrickC("Royal purple").Color | |
4302 | elseif key == 'z' and Mode == 10000 then | |
4303 | Ende_der_Weld() | |
4304 | elseif key == 'c' and Mode == 10000 then | |
4305 | dash() | |
4306 | elseif key == 'm' and Mode == 10000 then | |
4307 | resetmode() | |
4308 | end | |
4309 | --------------------------------------------------------------------- | |
4310 | if key == 'h' and Mode ~= 99 then | |
4311 | Mode = 99 | |
4312 | SONG = 3210544464 | |
4313 | ||
4314 | imgl2.ImageColor3 = BrickC("Deep orange").Color | |
4315 | ||
4316 | techc.ImageColor3 = BrickC("Deep orange").Color | |
4317 | ned.Text = "Infused" | |
4318 | ned.TextColor3 = BrickC("Deep orange").Color | |
4319 | ned.TextStrokeColor3 = BrickC("Deep orange").Color | |
4320 | elseif key == 'z' and Mode == 99 then | |
4321 | LAZER() | |
4322 | elseif key == 't' and Mode == 99 then | |
4323 | again() | |
4324 | elseif key == 'c' and Mode == 99 then | |
4325 | dash() | |
4326 | elseif key == 'h' and Mode == 99 then | |
4327 | resetmode() | |
4328 | end | |
4329 | --------------------------------------------------------------------- | |
4330 | if key == 'm' and Mode == 1 then | |
4331 | Mode = oof | |
4332 | SONG = 3274989179 | |
4333 | ned.Text = "" | |
4334 | ||
4335 | techc.ImageColor3 = BrickC("Cyan").Color | |
4336 | ned.TextColor3 = BrickC("Cyan").Color | |
4337 | imgl2.ImageColor3 = BrickC("Cyan").Color | |
4338 | ned.TextStrokeColor3 = BrickC("White").Color | |
4339 | for i, v in pairs(NeonColorParts1000) do | |
4340 | v.BrickColor = BrickC("Cyan") | |
4341 | end | |
4342 | elseif key == 'm' and Mode == oof then | |
4343 | resetmode() | |
4344 | elseif key == 'z' and Mode == oof and exploitable == true then | |
4345 | Exploit() | |
4346 | elseif key == 't' and Mode == oof then | |
4347 | thisisit2() | |
4348 | elseif key == 'c' and Mode == oof then | |
4349 | dash() | |
4350 | elseif key == 'x' and Mode == oof then | |
4351 | LunarSpin() | |
4352 | end | |
4353 | end | |
4354 | end) | |
4355 | local Combo = 1 | |
4356 | mouse.Button1Down:connect(function(key) | |
4357 | if attack == false then | |
4358 | if Combo == 1 then | |
4359 | Combo = 2 | |
4360 | attackone() | |
4361 | elseif Combo == 2 then | |
4362 | Combo = 3 | |
4363 | attacktwo() | |
4364 | elseif Combo == 3 then | |
4365 | Combo = 1 | |
4366 | attackthree() | |
4367 | end | |
4368 | end | |
4369 | end) | |
4370 | ||
4371 | ||
4372 | ||
4373 | function newTheme(ID,timepos,pitch,vol) | |
4374 | local kanz = Music | |
4375 | --kanz:Stop() | |
4376 | kanz.Volume = vol | |
4377 | --kanz.TimePosition = timepos | |
4378 | kanz.PlaybackSpeed = pitch | |
4379 | kanz.Pitch = pitch | |
4380 | kanz.SoundId = ID | |
4381 | kanz.Name = "wrecked" | |
4382 | kanz.Looped = true | |
4383 | currentThemePlaying = kanz.SoundId | |
4384 | currentVol = kanz.Volume | |
4385 | currentPitch = kanz.Pitch | |
4386 | --kanz:Play() | |
4387 | --coroutine.resume(coroutine.create(function() | |
4388 | --wait(0.05) | |
4389 | --end)) | |
4390 | end | |
4391 | ||
4392 | ||
4393 | function newThemeCust(ID,timepos,pitch,vol) | |
4394 | local kanz = Music | |
4395 | kanz:Stop() | |
4396 | kanz.Volume = vol | |
4397 | kanz.TimePosition = timepos | |
4398 | kanz.PlaybackSpeed = pitch | |
4399 | kanz.Pitch = pitch | |
4400 | kanz.SoundId = ID | |
4401 | kanz.Name = "wrecked" | |
4402 | kanz.Looped = true | |
4403 | currentThemePlaying = kanz.SoundId | |
4404 | currentVol = kanz.Volume | |
4405 | currentPitch = kanz.Pitch | |
4406 | kanz:Play() | |
4407 | coroutine.resume(coroutine.create(function() | |
4408 | wait(0.05) | |
4409 | end)) | |
4410 | end | |
4411 | ||
4412 | plr.Chatted:connect(function(message) | |
4413 | if Mode == 3 then | |
4414 | if message:sub(1,5) == "play/" then | |
4415 | OVMID = message:sub(6) | |
4416 | newThemeCust("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL) | |
4417 | elseif message:sub(1,6) == "pitch/" then | |
4418 | OVMPIT = message:sub(7) | |
4419 | newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL) | |
4420 | elseif message:sub(1,4) == "vol/" then | |
4421 | OVMVOL = message:sub(5) | |
4422 | newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL) | |
4423 | elseif message:sub(1,7) == "skipto/" then | |
4424 | chatfunc("Skipped to "..message:sub(8).." out of "..math.floor(Music.TimeLength).." seconds.",MAINRUINCOLOR.Color,"Inverted","Arcade",1) | |
4425 | newThemeCust("rbxassetid://"..OVMID,message:sub(8),OVMPIT,OVMVOL) | |
4426 | elseif message:sub(1,9) == "telltime/" then | |
4427 | chatfunc("Current time pos: "..math.floor(Music.TimePosition).." out of "..math.floor(Music.TimeLength).." seconds.",MAINRUINCOLOR.Color,"Inverted","Arcade",1) | |
4428 | end | |
4429 | end | |
4430 | end) | |
4431 | ||
4432 | Music.Name = "musicname" | |
4433 | ||
4434 | Character = plr.Character | |
4435 | Character.ChildRemoved:connect(function(removed) if removed.Name == "musicname" then Music = instanse.new("Sound") end end) | |
4436 | ||
4437 | ||
4438 | ------------------------------------------------------- | |
4439 | --Start Animations-- | |
4440 | ------------------------------------------------------- | |
4441 | while true do | |
4442 | swait() | |
4443 | sine = sine + change | |
4444 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
4445 | local velderp = root.Velocity.y | |
4446 | hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char) | |
4447 | if equipped == true or equipped == false then | |
4448 | if attack == false then | |
4449 | idle = idle + 1 | |
4450 | else | |
4451 | idle = 0 | |
4452 | end | |
4453 | if Mode == 10 then | |
4454 | maincolor = BrickColor.random() | |
4455 | imgl2.ImageColor3 = Color3.fromRGB(r,g,b) | |
4456 | techc.ImageColor3 = Color3.fromRGB(r,g,b) | |
4457 | ned.Text = "InSanE" | |
4458 | ||
4459 | ned.TextColor3 = Color3.fromRGB(r,g,b) | |
4460 | ned.TextStrokeColor3 = Color3.fromRGB(r,g,b) | |
4461 | aa24.BrickColor = BrickColor.random() | |
4462 | aa28.BrickColor = BrickColor.random() | |
4463 | aa26.BrickColor = BrickColor.random() | |
4464 | aa35.BrickColor = BrickColor.random() | |
4465 | aa33.BrickColor = BrickColor.random() | |
4466 | aa31.BrickColor = BrickColor.random() | |
4467 | imgl2.Rotation = math.random(-9, 9) | |
4468 | techc.Rotation = math.random(-9, 9) | |
4469 | ned.Rotation = 0 - 2 * math.cos(sine / 1) | |
4470 | ned.Position = UDim2.new(0.55,0 - 10 * math.cos(sine / 1),0.79,0 - 10 * math.cos(sine / 1)) | |
4471 | hum.WalkSpeed = 8 | |
4472 | aa.BrickColor = BrickColor.new("Dark stone grey") | |
4473 | aa4.BrickColor = BrickColor.random() | |
4474 | aa5.BrickColor = BrickColor.random() | |
4475 | aa8.BrickColor = BrickColor.random() | |
4476 | aa11.BrickColor = BrickColor.random() | |
4477 | aa12.BrickColor = BrickColor.random() | |
4478 | aa13.BrickColor = BrickColor.random() | |
4479 | end | |
4480 | if Mode == 3 then | |
4481 | maincolor = BrickColor.new("Dark red") | |
4482 | imgl2.ImageColor3 = Color3.fromRGB(r2,g2,b2) | |
4483 | techc.ImageColor3 = Color3.fromRGB(r2,g2,b2) | |
4484 | ned.Text = "Rainbow" | |
4485 | ||
4486 | ned.TextColor3 = Color3.fromRGB(r2,g2,b2) | |
4487 | ned.TextStrokeColor3 = Color3.fromRGB(r2,g2,b2) | |
4488 | aa35.Color = Color3.fromRGB(r2,g2,b2) | |
4489 | aa33.Color = Color3.fromRGB(r2,g2,b2) | |
4490 | aa31.Color = Color3.fromRGB(r2,g2,b2) | |
4491 | hum.WalkSpeed = 8 | |
4492 | aa28.Color = Color3.fromRGB(r2,g2,b2) | |
4493 | aa26.Color = Color3.fromRGB(r2,g2,b2) | |
4494 | ||
4495 | aa.BrickColor = BrickColor.new("Dark stone grey") | |
4496 | aa24.Color = Color3.fromRGB(r2,g2,b2) | |
4497 | aa4.Color = Color3.fromRGB(r2,g2,b2) | |
4498 | aa5.Color = Color3.fromRGB(r2,g2,b2) | |
4499 | aa8.Color = Color3.fromRGB(r2,g2,b2) | |
4500 | aa11.Color = Color3.fromRGB(r2,g2,b2) | |
4501 | aa12.Color = Color3.fromRGB(r2,g2,b2) | |
4502 | aa13.Color = Color3.fromRGB(r2,g2,b2) | |
4503 | end | |
4504 | if Mode == oof then | |
4505 | maincolor = BrickColor.new("Cyan") | |
4506 | hum.WalkSpeed = 8 | |
4507 | ||
4508 | aa.BrickColor = BrickColor.new("Dark stone grey") | |
4509 | aa24.BrickColor = BrickColor.new("Cyan") | |
4510 | aa4.BrickColor = BrickColor.new("Cyan") | |
4511 | aa5.BrickColor = BrickColor.new("Cyan") | |
4512 | aa8.BrickColor = BrickColor.new("Cyan") | |
4513 | aa11.BrickColor = BrickColor.new("Cyan") | |
4514 | aa12.BrickColor = BrickColor.new("Cyan") | |
4515 | aa13.BrickColor = BrickColor.new("Cyan") | |
4516 | aa26.BrickColor = BrickColor.new("Cyan") | |
4517 | aa28.BrickColor = BrickColor.new("Cyan") | |
4518 | aa35.BrickColor = BrickColor.new("Cyan") | |
4519 | aa33.BrickColor = BrickColor.new("Cyan") | |
4520 | aa31.BrickColor = BrickColor.new("Cyan") | |
4521 | end | |
4522 | if Mode == 9990 then | |
4523 | maincolor = BrickColor.new("Lime green") | |
4524 | hum.WalkSpeed = 8 | |
4525 | ||
4526 | aa.BrickColor = BrickColor.new("Dark stone grey") | |
4527 | aa4.BrickColor = BrickColor.new("Lime green") | |
4528 | aa5.BrickColor = BrickColor.new("Lime green") | |
4529 | aa8.BrickColor = BrickColor.new("Lime green") | |
4530 | aa11.BrickColor = BrickColor.new("Lime green") | |
4531 | aa12.BrickColor = BrickColor.new("Lime green") | |
4532 | aa13.BrickColor = BrickColor.new("Lime green") | |
4533 | aa24.BrickColor = BrickColor.new("Lime green") | |
4534 | aa26.BrickColor = BrickColor.new("Lime green") | |
4535 | aa28.BrickColor = BrickColor.new("Lime green") | |
4536 | aa35.BrickColor = BrickColor.new("Lime green") | |
4537 | aa33.BrickColor = BrickColor.new("Lime green") | |
4538 | aa31.BrickColor = BrickColor.new("Lime green") | |
4539 | MagicCharge(7, 0, "Add", la.CFrame * CF(0, -1.3, 0) * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 1.5 * math.random(-1.8, 2), -0.005, maincolor, 0, "Sphere") | |
4540 | local A = math.random(1,4) | |
4541 | if A == 1 then | |
4542 | Aura(5, 0.15, "Add", root.CFrame * CFrame.new(math.random(-25, 25), -10, math.random(-25, 25)) * CFrame.Angles(math.rad(90), 0, 0), 1.5, 1.5, 10, -0.015, maincolor, 0, "Brick") | |
4543 | if A == 2 then | |
4544 | Aura(5, 0.15, "Add", root.CFrame * CFrame.new(math.random(-25, 25), -10, math.random(-25, 25)) * CFrame.Angles(math.rad(90), 0, 0), 1.5, 1.5, 10, -0.015, maincolor, 0, "Brick") | |
4545 | end | |
4546 | end | |
4547 | end | |
4548 | if Mode == 6 then | |
4549 | maincolor = BrickColor.new("Really red") | |
4550 | hum.WalkSpeed = 8 | |
4551 | ||
4552 | aa.BrickColor = BrickColor.new("Dark stone grey") | |
4553 | aa4.BrickColor = BrickColor.new("Really red") | |
4554 | aa5.BrickColor = BrickColor.new("Really red") | |
4555 | aa8.BrickColor = BrickColor.new("Really red") | |
4556 | aa11.BrickColor = BrickColor.new("Really red") | |
4557 | aa12.BrickColor = BrickColor.new("Really red") | |
4558 | aa13.BrickColor = BrickColor.new("Really red") | |
4559 | aa24.BrickColor = BrickColor.new("Really red") | |
4560 | aa26.BrickColor = BrickColor.new("Really red") | |
4561 | aa28.BrickColor = BrickColor.new("Really red") | |
4562 | aa35.BrickColor = BrickColor.new("Really red") | |
4563 | aa33.BrickColor = BrickColor.new("Really red") | |
4564 | aa31.BrickColor = BrickColor.new("Really red") | |
4565 | local A = math.random(1,15) | |
4566 | if A == 1 then | |
4567 | Aura(5, 0.15, "Add", root.CFrame * CFrame.new(math.random(-5, 5), -10, math.random(-5, 5)) * CFrame.Angles(math.rad(90), 0, 0), 1.5, 1.5, 10, -0.015, maincolor, 0, "Sphere") | |
4568 | if A == 2 then | |
4569 | Aura(5, 0.15, "Add", root.CFrame * CFrame.new(math.random(-5, 5), -10, math.random(-5, 5)) * CFrame.Angles(math.rad(90), 0, 0), 1.5, 1.5, 10, -0.015, maincolor, 0, "Brick") | |
4570 | end | |
4571 | end | |
4572 | end | |
4573 | if Mode == 8 then | |
4574 | hum.WalkSpeed = 8 | |
4575 | maincolor = BrickColor.new("Dark indigo") | |
4576 | ||
4577 | aa.BrickColor = BrickColor.new("Dark stone grey") | |
4578 | aa4.BrickColor = BrickColor.new("Dark indigo") | |
4579 | aa5.BrickColor = BrickColor.new("Dark indigo") | |
4580 | aa8.BrickColor = BrickColor.new("Dark indigo") | |
4581 | aa11.BrickColor = BrickColor.new("Dark indigo") | |
4582 | aa12.BrickColor = BrickColor.new("Dark indigo") | |
4583 | aa13.BrickColor = BrickColor.new("Dark indigo") | |
4584 | aa24.BrickColor = BrickColor.new("Dark indigo") | |
4585 | aa26.BrickColor = BrickColor.new("Dark indigo") | |
4586 | aa28.BrickColor = BrickColor.new("Dark indigo") | |
4587 | aa35.BrickColor = BrickColor.new("Dark indigo") | |
4588 | aa33.BrickColor = BrickColor.new("Dark indigo") | |
4589 | aa31.BrickColor = BrickColor.new("Dark indigo") | |
4590 | Effects.Wave.Create(BrickColor.new("Dark indigo"), root.CFrame * CF(0, -2.90, 0), 15, 15, 15, 10.6, .1, 10.6, 0.05) | |
4591 | slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),VT(0.01,0.01,0.01),math.random(5,50)/250,BrickColor.new("Dark indigo")) | |
4592 | end | |
4593 | if Mode == 122 then | |
4594 | hum.WalkSpeed = 8 | |
4595 | maincolor = BrickColor.new("White") | |
4596 | ||
4597 | aa.BrickColor = BrickColor.new("Dark stone grey") | |
4598 | aa4.BrickColor = BrickColor.new("White") | |
4599 | aa5.BrickColor = BrickColor.new("Really black") | |
4600 | aa8.BrickColor = BrickColor.new("Really black") | |
4601 | aa11.BrickColor = BrickColor.new("White") | |
4602 | aa12.BrickColor = BrickColor.new("White") | |
4603 | aa13.BrickColor = BrickColor.new("Really black") | |
4604 | aa24.BrickColor = BrickColor.new("Really black") | |
4605 | aa26.BrickColor = BrickColor.new("White") | |
4606 | aa28.BrickColor = BrickColor.new("Really black") | |
4607 | aa35.BrickColor = BrickColor.new("Really black") | |
4608 | aa33.BrickColor = BrickColor.new("White") | |
4609 | aa31.BrickColor = BrickColor.new("Really black") | |
4610 | end | |
4611 | if Mode == 10000 then | |
4612 | hum.WalkSpeed = 8 | |
4613 | maincolor = BrickColor.new("Royal purple") | |
4614 | ||
4615 | aa.BrickColor = BrickColor.new("Dark stone grey") | |
4616 | aa4.BrickColor = BrickColor.new("Royal purple") | |
4617 | aa5.BrickColor = BrickColor.new("Royal purple") | |
4618 | aa8.BrickColor = BrickColor.new("Royal purple") | |
4619 | aa11.BrickColor = BrickColor.new("Royal purple") | |
4620 | aa12.BrickColor = BrickColor.new("Royal purple") | |
4621 | aa13.BrickColor = BrickColor.new("Royal purple") | |
4622 | aa24.BrickColor = BrickColor.new("Royal purple") | |
4623 | aa26.BrickColor = BrickColor.new("Royal purple") | |
4624 | aa28.BrickColor = BrickColor.new("Royal purple") | |
4625 | aa35.BrickColor = BrickColor.new("Royal purple") | |
4626 | aa33.BrickColor = BrickColor.new("Royal purple") | |
4627 | aa31.BrickColor = BrickColor.new("Royal purple") | |
4628 | end | |
4629 | if Mode == 1 then | |
4630 | hum.WalkSpeed = 8 | |
4631 | maincolor = BrickColor.new("White") | |
4632 | ||
4633 | aa.BrickColor = BrickColor.new("Dark stone grey") | |
4634 | aa4.BrickColor = BrickColor.new("White") | |
4635 | aa5.BrickColor = BrickColor.new("White") | |
4636 | aa8.BrickColor = BrickColor.new("White") | |
4637 | aa11.BrickColor = BrickColor.new("White") | |
4638 | aa12.BrickColor = BrickColor.new("White") | |
4639 | aa13.BrickColor = BrickColor.new("White") | |
4640 | aa24.BrickColor = BrickColor.new("White") | |
4641 | aa26.BrickColor = BrickColor.new("White") | |
4642 | aa28.BrickColor = BrickColor.new("White") | |
4643 | aa35.BrickColor = BrickColor.new("White") | |
4644 | aa33.BrickColor = BrickColor.new("White") | |
4645 | aa31.BrickColor = BrickColor.new("White") | |
4646 | end | |
4647 | if Mode == 99 then | |
4648 | hum.WalkSpeed = 100 | |
4649 | maincolor = BrickColor.new("Deep orange") | |
4650 | aa.BrickColor = BrickColor.new("Really black") | |
4651 | aa4.BrickColor = BrickColor.new("Deep orange") | |
4652 | aa5.BrickColor = BrickColor.new("Deep orange") | |
4653 | aa8.BrickColor = BrickColor.new("Deep orange") | |
4654 | aa11.BrickColor = BrickColor.new("Deep orange") | |
4655 | aa12.BrickColor = BrickColor.new("Deep orange") | |
4656 | aa13.BrickColor = BrickColor.new("Deep orange") | |
4657 | aa24.BrickColor = BrickColor.new("Deep orange") | |
4658 | aa26.BrickColor = BrickColor.new("Deep orange") | |
4659 | aa28.BrickColor = BrickColor.new("Deep orange") | |
4660 | aa35.BrickColor = BrickColor.new("Deep orange") | |
4661 | aa33.BrickColor = BrickColor.new("Deep orange") | |
4662 | aa31.BrickColor = BrickColor.new("Deep orange") | |
4663 | end | |
4664 | imgl2.Rotation = techc.Rotation + 0.2 | |
4665 | techc.Rotation = techc.Rotation + 0.2 | |
4666 | ned.Rotation = 0 - 2 * math.cos(sine / 24) | |
4667 | ned.Position = UDim2.new(0.55,0 - 10 * math.cos(sine / 32),0.79,0 - 10 * math.cos(sine / 45)) | |
4668 | if 1 < root.Velocity.y and hitfloor == nil then | |
4669 | Anim = "Jump" | |
4670 | if attack == false then | |
4671 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.08) | |
4672 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.08) | |
4673 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.08) | |
4674 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.08) | |
4675 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.08) | |
4676 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.08) | |
4677 | end | |
4678 | elseif -1 > root.Velocity.y and hitfloor == nil then | |
4679 | Anim = "Fall" | |
4680 | if attack == false then | |
4681 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.08) | |
4682 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.08) | |
4683 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.08) | |
4684 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.08) | |
4685 | 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(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.08) | |
4686 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.08) | |
4687 | end | |
4688 | elseif torvel < 1 and hitfloor ~= nil then | |
4689 | Anim = "Idle" | |
4690 | change = 1 | |
4691 | if attack == false then | |
4692 | if Mode == 1 then --Normal | |
4693 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.08) | |
4694 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 4.5 * Sin(sine / 20)), Rad(0), Rad(5 - 40 * Sin(sine / 20))), 0.08) | |
4695 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(80), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08) | |
4696 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-80), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08) | |
4697 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, -0.6* Player_Size) * angles(Rad(90), Rad(-10), Rad(-90)), 0.08) | |
4698 | LW.C0 = clerp(LW.C0, CF(-1 * Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(43)), 0.08) | |
4699 | elseif Mode == 122 then | |
4700 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.15) | |
4701 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 12.5 * Sin(sine / 12)), Rad(0), Rad(0)), 0.3) | |
4702 | RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15) | |
4703 | LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15) | |
4704 | RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(20), Rad(-.6), Rad(43 + 4.5 * Sin(sine / 12))), 0.1) | |
4705 | LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(20), Rad(-.6), Rad(-43 - 4.5 * Sin(sine / 12))), 0.1) | |
4706 | elseif Mode == oof then --PIXELATED | |
4707 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 1 + 0.2* Player_Size * Cos(sine / 26)) * angles(Rad(0), Rad(0), Rad(0)), 0.08) | |
4708 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)), 0.08) | |
4709 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.3 - 0.1 * Cos(sine / 20)* Player_Size, -0.5* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08) | |
4710 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08) | |
4711 | RW.C0 = clerp(RW.C0, CF(0.75, 0.5 + 0.05 * Sin(sine / 12), -0.7) * angles(Rad(0), Rad(0), Rad(-95)) * angles(Rad(5), Rad(0), Rad(0)), 0.1) | |
4712 | LW.C0 = clerp(LW.C0, CF(-0.75, 0.35 + 0.05 * Sin(sine / 12), -0.6) * angles(Rad(0), Rad(0), Rad(92)) * angles(Rad(0), Rad(0), Rad(0)), 0.1) | |
4713 | elseif Mode == 0 then | |
4714 | rootj.C0 = clerp(rootj.C0,RootCF* CF(0, 0, -1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
4715 | neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(25 + Mrandom(-5,5) - 4 * Cos(sine / 12)), Rad(Mrandom(-5,5)), Rad(0)), 1) | |
4716 | if Mrandom(1,30) == 1 then | |
4717 | neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(0 + Mrandom(-25,25) - 4 * Cos(sine / 12)), Rad(Mrandom(-25,25)), Rad(0)), 0.5) | |
4718 | end | |
4719 | RW.C0 = clerp(RW.C0, CF(.8, 0.5 + 0.05 * Sin(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(-20), Rad(215)), 0.1) | |
4720 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(0), Rad(0), Rad(-12)), 0.15) | |
4721 | RH.C0 = clerp(RH.C0, CF(1, -0.5, -0.5) * angles(Rad(25), Rad(90), Rad(0)) * angles(Rad(-8), Rad(0), Rad(0)), 0.5) | |
4722 | LH.C0 = clerp(LH.C0, CF(-1, -1, -0.01) * angles(Rad(-45), Rad(-90), Rad(0)) * angles(Rad(-8), Rad(0), Rad(0)), 0.5) | |
4723 | elseif Mode == 2 then --Machinery | |
4724 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(20)), 0.08) | |
4725 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(46 - 2.5 * Sin(sine / 30)), Rad(-4.5 * Sin(sine / .5)), Rad(-20 - 4.5 * Sin(sine / .5))), 0.08) | |
4726 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(80), Rad(0)) * angles(Rad(-10.5), Rad(0), Rad(0)), 0.08) | |
4727 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-80), Rad(0)) * angles(Rad(-10.5), Rad(0), Rad(0)), 0.08) | |
4728 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(155), Rad(0), Rad(-45)), 0.08) | |
4729 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(-25)), 0.08) | |
4730 | elseif Mode == 3 then --ICE | |
4731 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -2* Player_Size) * angles(Rad(-30), Rad(0), Rad(0)), 0.1) | |
4732 | neck.C0 = clerp(tors.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) | |
4733 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(90), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08) | |
4734 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-90), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08) | |
4735 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5* Player_Size, 0* Player_Size) * angles(Rad(-50), Rad(0), Rad(0)), 0.1) | |
4736 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5* Player_Size, 0* Player_Size) * angles(Rad(-50), Rad(0), Rad(0)), 0.1) | |
4737 | elseif Mode == 99 then --Infused | |
4738 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.08) | |
4739 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.08) | |
4740 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(80), Rad(0)) * angles(Rad(-10.5), Rad(0), Rad(-25)), 0.08) | |
4741 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-80), Rad(0)) * angles(Rad(-10.5), Rad(0), Rad(20)), 0.08) | |
4742 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -0.35* Player_Size) * angles(Rad(90 - 2.5 * Cos(sine / 20)), Rad(0), Rad(-50)), 0.08) | |
4743 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -0.15* Player_Size) * angles(Rad(70 - 2.5 * Cos(sine / 20)), Rad(0), Rad(70)), 0.08) | |
4744 | elseif Mode == 5 then --Cybernetic | |
4745 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 1 + 0.5 * Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.08) | |
4746 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 30)), Rad(20), Rad(0)), 0.08) | |
4747 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.3 - 0.1 * Cos(sine / 20)* Player_Size, -.4* Player_Size) * angles(Rad(0), Rad(80), Rad(0)) * angles(Rad(-10.5 + 3.5 * Sin(sine / 20)), Rad(0), Rad(-20)), 0.08) | |
4748 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-80), Rad(0)) * angles(Rad(-10.5 + 3.5 * Sin(sine / 20)), Rad(0), Rad(20)), 0.08) | |
4749 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(25 + 10.5 * Sin(sine / 20))), 0.08) | |
4750 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(-25 - 10.5 * Sin(sine / 20))), 0.08) | |
4751 | elseif Mode == 25 then --Spiritual | |
4752 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 1 + 0.5 * Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.08) | |
4753 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 30)), Rad(20), Rad(0)), 0.08) | |
4754 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.3 - 0.1 * Cos(sine / 20)* Player_Size, -.4* Player_Size) * angles(Rad(0), Rad(80), Rad(0)) * angles(Rad(-10.5 + 3.5 * Sin(sine / 20)), Rad(0), Rad(-20)), 0.08) | |
4755 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-80), Rad(0)) * angles(Rad(-10.5 + 3.5 * Sin(sine / 20)), Rad(0), Rad(20)), 0.08) | |
4756 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(25 + 10.5 * Sin(sine / 20))), 0.08) | |
4757 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(-25 - 10.5 * Sin(sine / 20))), 0.08) | |
4758 | elseif Mode == 6 then --Controlled Beyond Recognition | |
4759 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 1 + 0.5 * Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.08) | |
4760 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 30)), Rad(20), Rad(0)), 0.08) | |
4761 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.3 - 0.1 * Cos(sine / 20)* Player_Size, -.4* Player_Size) * angles(Rad(0), Rad(80), Rad(0)) * angles(Rad(-10.5 + 3.5 * Sin(sine / 20)), Rad(0), Rad(-20)), 0.08) | |
4762 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-80), Rad(0)) * angles(Rad(-10.5 + 3.5 * Sin(sine / 20)), Rad(0), Rad(20)), 0.08) | |
4763 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(25 + 10.5 * Sin(sine / 20))), 0.08) | |
4764 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(-25 - 10.5 * Sin(sine / 20))), 0.08) | |
4765 | elseif Mode == 10000 then | |
4766 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.08) | |
4767 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(-10 - 2.5 * Sin(sine/ 20)), Rad(20 * Cos(sine / 20))), 0.3) | |
4768 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(80), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08) | |
4769 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-80), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08) | |
4770 | RW.C0 = clerp(RW.C0, CF(1 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, .6* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(-43)), 0.08) | |
4771 | LW.C0 = clerp(LW.C0, CF(-1 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, .6* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(43)), 0.08) | |
4772 | elseif Mode == 9990 then | |
4773 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(15), Rad(0), Rad(0)), 0.08) | |
4774 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-10 - 2.5 * Sin(sine / 30)), Rad(-4.5 * Sin(sine / .5)), Rad(15)), 0.08) | |
4775 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(80), Rad(0)) * angles(Rad(-10.5), Rad(0), Rad(20)), 0.08) | |
4776 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-80), Rad(0)) * angles(Rad(-10.5), Rad(0), Rad(-20)), 0.08) | |
4777 | RW.C0 = clerp(RW.C0, CF(.8, 0.5 + 0.05 * Sin(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(-20), Rad(215)), 0.1) | |
4778 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(0), Rad(-12 - 5 * Sin(sine / 30))), 0.08) | |
4779 | elseif Mode == 7 or Mode == 9 then --Sucho Wowo --Mr.Balancia | |
4780 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.08) | |
4781 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 2.5 * Sin(sine / 12)), Rad(0), Rad(0)), 0.08) | |
4782 | RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.08) | |
4783 | LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.08) | |
4784 | RW.C0 = clerp(RW.C0, CF(1 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, .6* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(-43)), 0.08) | |
4785 | LW.C0 = clerp(LW.C0, CF(-1 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, .6* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(43)), 0.08) | |
4786 | elseif Mode == 100 then | |
4787 | rootj.C0 = clerp(rootj.C0,RootCF*CF(0 - 0.05 * Cos(sine / 44),0 + 0.03 * Cos(sine / 34),-0.05 + 0.05 * Cos(sine / 28))*angles(Rad(0 - 3 * Cos(sine / 34)),Rad(0 - 5 * Cos(sine / 44)),Rad(-5)), .1) | |
4788 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3) | |
4789 | RH.C0=clerp(RH.C0,CF(1,-1 - 0.05 * Cos(sine / 28) + 0.05 * Cos(sine / 44),0)*angles(Rad(0),Rad(90),Rad(0))*angles(Rad(7 - 5 * Cos(sine / 44)),Rad(0),Rad(-6 - 3 * Cos(sine / 34))), .1) | |
4790 | LH.C0=clerp(LH.C0,CF(-1,-1 - 0.05 * Cos(sine / 28) - 0.05 * Cos(sine / 44),0)*angles(Rad(0),Rad(-90),Rad(0))*angles(Rad(3 + 5 * Cos(sine / 44)),Rad(0),Rad(0 + 3 * Cos(sine / 34))), .1) | |
4791 | RW.C0 = clerp(RW.C0,CF(1,0.5 + 0.1 * Cos(sine / 28),-0.45)*angles(Rad(22 - 3 * Cos(sine / 53)),Rad(0),Rad(-37 + 2 * Cos(sine / 37))), .1) | |
4792 | LW.C0 = clerp(LW.C0,CF(-1,0.5 + 0.1 * Cos(sine / 28),-0.45)*angles(Rad(23 - 2 * Cos(sine / 58)),Rad(0),Rad(38 - 3 * Cos(sine / 57) )), .1) | |
4793 | elseif Mode == 8 then --Lunarist | |
4794 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.8 + 0.5* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.08) | |
4795 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 4.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.08) | |
4796 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.3 - 0.1 * Cos(sine / 20)* Player_Size, -0.5* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08) | |
4797 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08) | |
4798 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.5 + 0.05 * Cos(sine / 12)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(-76)), 0.1) | |
4799 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.5 + 0.05 * Cos(sine / 12)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(56)), 0.1) | |
4800 | elseif Mode == 10 then --INSANITY | |
4801 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.08) | |
4802 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(30 - 2.5 * Sin(sine / 18)), Rad(0), Rad(0)), 0.3) | |
4803 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(80), Rad(0)) * angles(Rad(-10.5), Rad(0), Rad(20)), 0.08) | |
4804 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-80), Rad(0)) * angles(Rad(-10.5), Rad(0), Rad(-20)), 0.08) | |
4805 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 7), 0.025 * Cos(sine / 7)) * angles(Rad(25 + Mrandom(-35,35)), Rad(0 + Mrandom(-35,35)), Rad(5 - 2.5 * Sin(sine / 20) + Mrandom(-35,35))), 0.1) | |
4806 | LW.C0 = clerp(LW.C0, CF(-.8, 0.5 + 0.05 * Sin(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(20), Rad(-215)), 0.1) | |
4807 | end | |
4808 | end | |
4809 | elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then | |
4810 | Anim = "Walk" | |
4811 | change = 1.1 | |
4812 | if attack == false then | |
4813 | if Mode == 6 then | |
4814 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 1 + 0.5 * Player_Size * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15) | |
4815 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
4816 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.3 - 0.1 * Cos(sine / 20)* Player_Size, -.4* Player_Size) * angles(Rad(0), Rad(80), Rad(0)) * angles(Rad(-10.5 + 3.5 * Sin(sine / 20)), Rad(0), Rad(-20)), 0.15) | |
4817 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-80), Rad(0)) * angles(Rad(-10.5 + 3.5 * Sin(sine / 20)), Rad(0), Rad(20)), 0.15) | |
4818 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(25)), 0.1) | |
4819 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(-25)), 0.1) | |
4820 | elseif Mode == oof then --PIXELATED | |
4821 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 1 + 0.2* Player_Size * Cos(sine / 26)) * angles(Rad(20), Rad(0), Rad(0)), 0.08) | |
4822 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)), 0.08) | |
4823 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.3 - 0.1 * Cos(sine / 20)* Player_Size, -0.5* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08) | |
4824 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08) | |
4825 | RW.C0 = clerp(RW.C0, CF(0.75, 0.5 + 0.05 * Sin(sine / 12), -0.7) * angles(Rad(0), Rad(0), Rad(-95)) * angles(Rad(5), Rad(0), Rad(0)), 0.1) | |
4826 | LW.C0 = clerp(LW.C0, CF(-0.75, 0.35 + 0.05 * Sin(sine / 12), -0.6) * angles(Rad(0), Rad(0), Rad(92)) * angles(Rad(0), Rad(0), Rad(0)), 0.1) | |
4827 | elseif Mode == 5 then | |
4828 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.8 + 0.2* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.08) | |
4829 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
4830 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.3 - 0.1 * Cos(sine / 20)* Player_Size, -0.5* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08) | |
4831 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08) | |
4832 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(25)), 0.1) | |
4833 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(-25)), 0.1) | |
4834 | elseif Mode == 25 then | |
4835 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 1 + 0.5 * Player_Size * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15) | |
4836 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
4837 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.3 - 0.1 * Cos(sine / 20)* Player_Size, -.4* Player_Size) * angles(Rad(0), Rad(80), Rad(0)) * angles(Rad(-10.5 + 3.5 * Sin(sine / 20)), Rad(0), Rad(-20)), 0.15) | |
4838 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-80), Rad(0)) * angles(Rad(-10.5 + 3.5 * Sin(sine / 20)), Rad(0), Rad(20)), 0.15) | |
4839 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(25)), 0.1) | |
4840 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(-25)), 0.1) | |
4841 | elseif Mode == 100 then | |
4842 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 1.3 + 0.6 * Cos(sine / 20)) * angles(Rad(30), Rad(0), Rad(0)), 0.15) | |
4843 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
4844 | RH.C0 = clerp(RH.C0, CF(1, -0.5 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5 + 3 * Sin(sine / 20)), Rad(0), Rad(-10 + 3 * Sin(sine / 20))), 0.15) | |
4845 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5 + 3 * Sin(sine / 20)), Rad(0), Rad(10 + 3 * Sin(sine / 20))), 0.15) | |
4846 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-17), Rad(-10 * Cos(sine / 20)), Rad(15 - 2.5 * Sin(sine / 20))), 0.1) | |
4847 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-17), Rad(10 * Cos(sine / 20)), Rad(-15 + 2.5 * Sin(sine / 20))), 0.1) | |
4848 | elseif Mode == 0 then | |
4849 | rootj.C0 = clerp(rootj.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) | |
4850 | neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(25 + Mrandom(-5,5) - 4 * Cos(sine / 12)), Rad(Mrandom(-5,5)), Rad(0)), 0.5) | |
4851 | if Mrandom(1,30) == 1 then | |
4852 | neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(0 + Mrandom(-25,25) - 4 * Cos(sine / 12)), Rad(Mrandom(-25,25)), Rad(0)), 0.5) | |
4853 | end | |
4854 | 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 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
4855 | 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 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
4856 | RW.C0 = clerp(RW.C0, CF(.8, 0.5 + 0.05 * Sin(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(-20), Rad(215)), 0.1) | |
4857 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-37) * Cos(sine / 7) , Rad(0) , Rad(-5) + la.RotVelocity.Y / 75), 0.1) | |
4858 | elseif Mode == 10 then | |
4859 | rootj.C0 = clerp(rootj.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) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15) | |
4860 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(46 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
4861 | 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(-5 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(20)), 0.3) | |
4862 | 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(-5 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(-20)), 0.3) | |
4863 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(25 + 15 * Cos(sine / 7)), Rad(0), Rad(5) - ra.RotVelocity.Y / 75), 0.1) | |
4864 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(25 - 15 * Cos(sine / 7)), Rad(0), Rad(-5) + la.RotVelocity.Y / 75), 0.1) | |
4865 | elseif Mode == 8 then | |
4866 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.8 + 0.2* Player_Size * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.08) | |
4867 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-23 - 4.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.08) | |
4868 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.3 - 0.1 * Cos(sine / 20)* Player_Size, -0.5* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-20)), 0.08) | |
4869 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(20)), 0.08) | |
4870 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-35), Rad(-10 * Cos(sine / 20)), Rad(25 - 2.5 * Sin(sine / 20))), 0.1) | |
4871 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-35), Rad(10 * Cos(sine / 20)), Rad(-25 + 2.5 * Sin(sine / 20))), 0.1) | |
4872 | elseif Mode ~= 6 or Mode ~= 5 or Mode ~= 8 then | |
4873 | rootj.C0 = clerp(rootj.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) | |
4874 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
4875 | 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 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
4876 | 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 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
4877 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(37) * Cos(sine / 7) , Rad(0), Rad(5) - ra.RotVelocity.Y / 75), 0.1) | |
4878 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-37) * Cos(sine / 7) , Rad(0) , Rad(-5) + la.RotVelocity.Y / 75), 0.1) | |
4879 | end | |
4880 | end | |
4881 | elseif torvel >= 25 and hitfloor ~= nil then | |
4882 | Anim = "Sprint" | |
4883 | change = 1.35 | |
4884 | if attack == false then | |
4885 | if Mode == 5 then | |
4886 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 1 + 0.5 * Player_Size * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15) | |
4887 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(5 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
4888 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.3 - 0.1 * Cos(sine / 20)* Player_Size, -.4* Player_Size) * angles(Rad(0), Rad(80), Rad(0)) * angles(Rad(-10.5 + 3.5 * Sin(sine / 20)), Rad(0), Rad(-45)), 0.15) | |
4889 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-80), Rad(0)) * angles(Rad(-10.5 + 3.5 * Sin(sine / 20)), Rad(0), Rad(45)), 0.15) | |
4890 | 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) | |
4891 | 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) | |
4892 | elseif Mode == 99 then | |
4893 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 0) * angles(Rad(35), Rad(0), Rad(0)), 0.15) | |
4894 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20), Rad(0), Rad(0)), 0.3) | |
4895 | 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) | |
4896 | 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) | |
4897 | 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) | |
4898 | 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) | |
4899 | elseif Mode == oof then | |
4900 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 1 + 0.5 * Player_Size * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15) | |
4901 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(5 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
4902 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.3 - 0.1 * Cos(sine / 20)* Player_Size, -.4* Player_Size) * angles(Rad(0), Rad(80), Rad(0)) * angles(Rad(-10.5 + 3.5 * Sin(sine / 20)), Rad(0), Rad(-45)), 0.15) | |
4903 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-80), Rad(0)) * angles(Rad(-10.5 + 3.5 * Sin(sine / 20)), Rad(0), Rad(45)), 0.15) | |
4904 | 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) | |
4905 | 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) | |
4906 | elseif Mode ~= 5 then | |
4907 | rootj.C0 = clerp(rootj.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(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15) | |
4908 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
4909 | 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) | |
4910 | 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) | |
4911 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, 0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(125) * Cos(sine / 7) , Rad(0), Rad(5) - ra.RotVelocity.Y / 75), 0.15) | |
4912 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, -0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(-125) * Cos(sine / 7) , Rad(0) , Rad(-5) + la.RotVelocity.Y / 75), 0.15) | |
4913 | end | |
4914 | end | |
4915 | end | |
4916 | end | |
4917 | Music.SoundId = "rbxassetid://"..SONG | |
4918 | Music.Looped = true | |
4919 | Music.Pitch = 1 | |
4920 | Music.Volume = 5 | |
4921 | Music:Resume() | |
4922 | if Music.Parent ~= tors then | |
4923 | Music = Instance.new("Sound",tors) | |
4924 | end | |
4925 | if 0 < #Effects then | |
4926 | for e = 1, #Effects do | |
4927 | if Effects[e] ~= nil then | |
4928 | local Thing = Effects[e] | |
4929 | if Thing ~= nil then | |
4930 | local Part = Thing[1] | |
4931 | local Mode = Thing[2] | |
4932 | local Delay = Thing[3] | |
4933 | local IncX = Thing[4] | |
4934 | local IncY = Thing[5] | |
4935 | local IncZ = Thing[6] | |
4936 | if 1 >= Thing[1].Transparency then | |
4937 | if Thing[2] == "Block1" then | |
4938 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
4939 | local Mesh = Thing[1].Mesh | |
4940 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
4941 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
4942 | elseif Thing[2] == "Block2" then | |
4943 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
4944 | local Mesh = Thing[7] | |
4945 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
4946 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
4947 | elseif Thing[2] == "Block3" then | |
4948 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0) | |
4949 | local Mesh = Thing[7] | |
4950 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
4951 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
4952 | elseif Thing[2] == "Cylinder" then | |
4953 | local Mesh = Thing[1].Mesh | |
4954 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
4955 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
4956 | elseif Thing[2] == "Blood" then | |
4957 | local Mesh = Thing[7] | |
4958 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
4959 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
4960 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
4961 | elseif Thing[2] == "Elec" then local Mesh = Thing[1].Mesh | |
4962 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
4963 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
4964 | elseif Thing[2] == "Disappear" then | |
4965 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
4966 | elseif Thing[2] == "Shatter" then | |
4967 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
4968 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
4969 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
4970 | Thing[6] = Thing[6] + Thing[5] | |
4971 | end | |
4972 | else | |
4973 | Part.Parent = nil | |
4974 | table.remove(Effects, e) | |
4975 | end | |
4976 | end | |
4977 | end | |
4978 | end | |
4979 | end | |
4980 | end | |
4981 | ------------------------------------------------------- | |
4982 | --End Animations And Script-- |