SHOW:
|
|
- or go back to the newest paste.
1 | ----------------------- | |
2 | - | --WhAT ANOTHER ONE????????!-- |
2 | + | print("--WhAT ANOTHER ONE????????!--") |
3 | ------------------------------------------------------- | |
4 | --A script By makhail07 | |
5 | ||
6 | - | --Discord Creterisk#2958 |
6 | + | print("WAO loaded! thanks for making us reach over 20 views!") |
7 | ||
8 | print("Have fun! Also script made FE by MememasterYT65910") | |
9 | - | --https://cdn.discordapp.com/attachments/424766294303309844/424769047436197888/e41a6cbd-23cb-4553-bd39-1338429743a7.png |
9 | + | |
10 | print("Dont be a skid people -_-") | |
11 | ||
12 | print("script - WAO loaded press any of these keys to continue.") | |
13 | ||
14 | print("Q,E,R,T,Y,U,F") | |
15 | ||
16 | ------------------------------------------------------- | |
17 | ||
18 | local FavIDs = { | |
19 | 340106355, --Nefl Crystals | |
20 | 927529620, --Dimension | |
21 | 876981900, --Fantasy | |
22 | 398987889, --Ordinary Days | |
23 | 1117396305, --Oh wait, it's you. | |
24 | 885996042, --Action Winter Journey | |
25 | 919231299, --Sprawling Idiot Effigy | |
26 | 743466274, --Good Day Sunshine | |
27 | 727411183, --Knife Fight | |
28 | 1402748531, --The Earth Is Counting On You! | |
29 | 595230126 --Robot Language | |
30 | - | local plr = game:service'Players'.LocalPlayer |
30 | + | |
31 | ||
32 | --WHAT another one-- | |
33 | ||
34 | ||
35 | ||
36 | ||
37 | ||
38 | --The reality of my life isn't real but a Universe -makhail07 | |
39 | ||
40 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
41 | local Player,game,owner = owner,game | |
42 | local RealPlayer = Player | |
43 | do | |
44 | print("FE Compatibility code by Mokiros") | |
45 | local rp = RealPlayer | |
46 | script.Parent = rp.Character | |
47 | ||
48 | --RemoteEvent for communicating | |
49 | local Event = Instance.new("RemoteEvent") | |
50 | Event.Name = "UserInput_Event" | |
51 | ||
52 | --Fake event to make stuff like Mouse.KeyDown work | |
53 | local function fakeEvent() | |
54 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
55 | t.connect = t.Connect | |
56 | return t | |
57 | end | |
58 | ||
59 | --Creating fake input objects with fake variables | |
60 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()} | |
61 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
62 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
63 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
64 | end} | |
65 | --Merged 2 functions into one by checking amount of arguments | |
66 | CAS.UnbindAction = CAS.BindAction | |
67 | ||
68 | --This function will trigger the events that have been :Connect()'ed | |
69 | local function te(self,ev,...) | |
70 | local t = m[ev] | |
71 | if t and t._fakeEvent then | |
72 | for _,f in pairs(t.Functions) do | |
73 | f(...) | |
74 | end | |
75 | end | |
76 | end | |
77 | m.TrigEvent = te | |
78 | UIS.TrigEvent = te | |
79 | ||
80 | Event.OnServerEvent:Connect(function(plr,io) | |
81 | if plr~=rp then return end | |
82 | m.Target = io.Target | |
83 | m.Hit = io.Hit | |
84 | if not io.isMouse then | |
85 | local b = io.UserInputState == Enum.UserInputState.Begin | |
86 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
87 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
88 | end | |
89 | if io.UserInputType == Enum.UserInputType.MouseButton2 then | |
90 | return m:TrigEvent(b and "Button2Down" or "Button2Up") | |
91 | end | |
92 | for _,t in pairs(CAS.Actions) do | |
93 | for _,k in pairs(t.Keys) do | |
94 | if k==io.KeyCode then | |
95 | t.Function(t.Name,io.UserInputState,io) | |
96 | end | |
97 | end | |
98 | end | |
99 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
100 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
101 | end | |
102 | end) | |
103 | Event.Parent = NLS([==[ | |
104 | local Player = game:GetService("Players").LocalPlayer | |
105 | local Event = script:WaitForChild("UserInput_Event") | |
106 | ||
107 | local Mouse = Player:GetMouse() | |
108 | local UIS = game:GetService("UserInputService") | |
109 | local input = function(io,a) | |
110 | if a then return end | |
111 | --Since InputObject is a client-side instance, we create and pass table instead | |
112 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
113 | end | |
114 | UIS.InputBegan:Connect(input) | |
115 | UIS.InputEnded:Connect(input) | |
116 | ||
117 | local h,t | |
118 | --Give the server mouse data 30 times every second, but only if the values changed | |
119 | --If player is not moving their mouse, client won't fire events | |
120 | while wait(1/30) do | |
121 | if h~=Mouse.Hit or t~=Mouse.Target then | |
122 | h,t=Mouse.Hit,Mouse.Target | |
123 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
124 | end | |
125 | end]==],Player.Character) | |
126 | ||
127 | ----Sandboxed game object that allows the usage of client-side methods and services | |
128 | --Real game object | |
129 | local _rg = game | |
130 | ||
131 | --Metatable for fake service | |
132 | local fsmt = { | |
133 | __index = function(self,k) | |
134 | local s = rawget(self,"_RealService") | |
135 | if s then | |
136 | return typeof(s[k])=="function" | |
137 | and function(_,...)return s[k](s,...)end or s[k] | |
138 | end | |
139 | end, | |
140 | __newindex = function(self,k,v) | |
141 | local s = rawget(self,"_RealService") | |
142 | if s then s[k]=v end | |
143 | end | |
144 | } | |
145 | local function FakeService(t,RealService) | |
146 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
147 | return setmetatable(t,fsmt) | |
148 | end | |
149 | ||
150 | --Fake game object | |
151 | local g = { | |
152 | GetService = function(self,s) | |
153 | return rawget(self,s) or _rg:GetService(s) | |
154 | end, | |
155 | Players = FakeService({ | |
156 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
157 | },"Players"), | |
158 | UserInputService = FakeService(UIS,"UserInputService"), | |
159 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
160 | RunService = FakeService({ | |
161 | _btrs = {}, | |
162 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
163 | BindToRenderStep = function(self,name,_,fun) | |
164 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
165 | end, | |
166 | UnbindFromRenderStep = function(self,name) | |
167 | self._btrs[name]:Disconnect() | |
168 | end, | |
169 | },"RunService") | |
170 | } | |
171 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
172 | g.service = g.GetService | |
173 | FakeService(g,game) | |
174 | --Changing owner to fake player object to support owner:GetMouse() | |
175 | game,owner = g,g.Players.LocalPlayer | |
176 | end | |
177 | ||
178 | wait() | |
179 | local plr = owner | |
180 | print('Local User is '..plr.Name) | |
181 | local char = plr.Character | |
182 | local hum = char.Humanoid | |
183 | local ra = char["Right Arm"] | |
184 | local la= char["Left Arm"] | |
185 | local rl= char["Right Leg"] | |
186 | local ll = char["Left Leg"] | |
187 | local hed = char.Head | |
188 | local root = char.HumanoidRootPart | |
189 | local rootj = root.RootJoint | |
190 | local tors = char.Torso | |
191 | local mouse = plr:GetMouse() | |
192 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
193 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
194 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
195 | local EdgyMode = false | |
196 | local Divinity = false | |
197 | local Fighter = false | |
198 | local Purity = false | |
199 | local Destruction = false | |
200 | local helpme = false | |
201 | local Planetary = false | |
202 | local maincolor = BrickColor.new("Institutional white") | |
203 | ------------------------------------------------------- | |
204 | --Start Good Stuff-- | |
205 | ------------------------------------------------------- | |
206 | CF = CFrame.new | |
207 | angles = CFrame.Angles | |
208 | attack = false | |
209 | Euler = CFrame.fromEulerAnglesXYZ | |
210 | Rad = math.rad | |
211 | IT = Instance.new | |
212 | BrickC = BrickColor.new | |
213 | Cos = math.cos | |
214 | Acos = math.acos | |
215 | Sin = math.sin | |
216 | Asin = math.asin | |
217 | Abs = math.abs | |
218 | Mrandom = math.random | |
219 | Floor = math.floor | |
220 | ------------------------------------------------------- | |
221 | --End Good Stuff-- | |
222 | ------------------------------------------------------- | |
223 | necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
224 | RSH, LSH = nil, nil | |
225 | RW = Instance.new("Weld") | |
226 | LW = Instance.new("Weld") | |
227 | RH = tors["Right Hip"] | |
228 | LH = tors["Left Hip"] | |
229 | RSH = tors["Right Shoulder"] | |
230 | LSH = tors["Left Shoulder"] | |
231 | RSH.Parent = nil | |
232 | LSH.Parent = nil | |
233 | RW.Name = "RW" | |
234 | RW.Part0 = tors | |
235 | RW.C0 = CF(1.5, 0.5, 0) | |
236 | RW.C1 = CF(0, 0.5, 0) | |
237 | RW.Part1 = ra | |
238 | RW.Parent = tors | |
239 | LW.Name = "LW" | |
240 | LW.Part0 = tors | |
241 | LW.C0 = CF(-1.5, 0.5, 0) | |
242 | LW.C1 = CF(0, 0.5, 0) | |
243 | LW.Part1 = la | |
244 | LW.Parent = tors | |
245 | Effects = {} | |
246 | ||
247 | ------------------------------------------------------- | |
248 | --Start HeartBeat-- | |
249 | ------------------------------------------------------- | |
250 | ArtificialHB = Instance.new("BindableEvent", script) | |
251 | ArtificialHB.Name = "Heartbeat" | |
252 | script:WaitForChild("Heartbeat") | |
253 | ||
254 | frame = 1 / 60 | |
255 | tf = 0 | |
256 | allowframeloss = false | |
257 | tossremainder = false | |
258 | ||
259 | ||
260 | lastframe = tick() | |
261 | script.Heartbeat:Fire() | |
262 | ||
263 | ||
264 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
265 | tf = tf + s | |
266 | if tf >= frame then | |
267 | if allowframeloss then | |
268 | script.Heartbeat:Fire() | |
269 | lastframe = tick() | |
270 | else | |
271 | for i = 1, math.floor(tf / frame) do | |
272 | script.Heartbeat:Fire() | |
273 | end | |
274 | lastframe = tick() | |
275 | end | |
276 | if tossremainder then | |
277 | tf = 0 | |
278 | else | |
279 | tf = tf - frame * math.floor(tf / frame) | |
280 | end | |
281 | end | |
282 | end) | |
283 | ------------------------------------------------------- | |
284 | --End HeartBeat-- | |
285 | ------------------------------------------------------- | |
286 | ||
287 | ------------------------------------------------------- | |
288 | --Start Important Functions-- | |
289 | ------------------------------------------------------- | |
290 | function swait(num) | |
291 | if num == 0 or num == nil then | |
292 | game:service("RunService").Stepped:wait(0) | |
293 | else | |
294 | for i = 0, num do | |
295 | game:service("RunService").Stepped:wait(0) | |
296 | end | |
297 | end | |
298 | end | |
299 | function thread(f) | |
300 | coroutine.resume(coroutine.create(f)) | |
301 | end | |
302 | function clerp(a, b, t) | |
303 | local qa = { | |
304 | QuaternionFromCFrame(a) | |
305 | } | |
306 | local qb = { | |
307 | QuaternionFromCFrame(b) | |
308 | } | |
309 | local ax, ay, az = a.x, a.y, a.z | |
310 | local bx, by, bz = b.x, b.y, b.z | |
311 | local _t = 1 - t | |
312 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
313 | end | |
314 | function QuaternionFromCFrame(cf) | |
315 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
316 | local trace = m00 + m11 + m22 | |
317 | if trace > 0 then | |
318 | local s = math.sqrt(1 + trace) | |
319 | local recip = 0.5 / s | |
320 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
321 | else | |
322 | local i = 0 | |
323 | if m00 < m11 then | |
324 | i = 1 | |
325 | end | |
326 | if m22 > (i == 0 and m00 or m11) then | |
327 | i = 2 | |
328 | end | |
329 | if i == 0 then | |
330 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
331 | local recip = 0.5 / s | |
332 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
333 | elseif i == 1 then | |
334 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
335 | local recip = 0.5 / s | |
336 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
337 | elseif i == 2 then | |
338 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
339 | local recip = 0.5 / s | |
340 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
341 | end | |
342 | end | |
343 | end | |
344 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
345 | local xs, ys, zs = x + x, y + y, z + z | |
346 | local wx, wy, wz = w * xs, w * ys, w * zs | |
347 | local xx = x * xs | |
348 | local xy = x * ys | |
349 | local xz = x * zs | |
350 | local yy = y * ys | |
351 | local yz = y * zs | |
352 | local zz = z * zs | |
353 | 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)) | |
354 | end | |
355 | function QuaternionSlerp(a, b, t) | |
356 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
357 | local startInterp, finishInterp | |
358 | if cosTheta >= 1.0E-4 then | |
359 | if 1 - cosTheta > 1.0E-4 then | |
360 | local theta = math.acos(cosTheta) | |
361 | local invSinTheta = 1 / Sin(theta) | |
362 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
363 | finishInterp = Sin(t * theta) * invSinTheta | |
364 | else | |
365 | startInterp = 1 - t | |
366 | finishInterp = t | |
367 | end | |
368 | elseif 1 + cosTheta > 1.0E-4 then | |
369 | local theta = math.acos(-cosTheta) | |
370 | local invSinTheta = 1 / Sin(theta) | |
371 | startInterp = Sin((t - 1) * theta) * invSinTheta | |
372 | finishInterp = Sin(t * theta) * invSinTheta | |
373 | else | |
374 | startInterp = t - 1 | |
375 | finishInterp = t | |
376 | end | |
377 | 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 | |
378 | end | |
379 | function rayCast(Position, Direction, Range, Ignore) | |
380 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
381 | end | |
382 | local RbxUtility = LoadLibrary("RbxUtility") | |
383 | local Create = RbxUtility.Create | |
384 | ||
385 | ------------------------------------------------------- | |
386 | --Start Damage Function-- | |
387 | ------------------------------------------------------- | |
388 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
389 | if hit.Parent == nil then | |
390 | return | |
391 | end | |
392 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
393 | for _, v in pairs(hit.Parent:children()) do | |
394 | if v:IsA("Humanoid") then | |
395 | h = v | |
396 | end | |
397 | end | |
398 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then | |
399 | ||
400 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
401 | end | |
402 | ||
403 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
404 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
405 | if hit.Parent.DebounceHit.Value == true then | |
406 | return | |
407 | end | |
408 | end | |
409 | if insta == true then | |
410 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
411 | end | |
412 | local c = Create("ObjectValue"){ | |
413 | Name = "creator", | |
414 | Value = game:service("Players").LocalPlayer, | |
415 | Parent = h, | |
416 | } | |
417 | game:GetService("Debris"):AddItem(c, .5) | |
418 | if HitSound ~= nil and HitPitch ~= nil then | |
419 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
420 | end | |
421 | local Damage = math.random(minim, maxim) | |
422 | local blocked = false | |
423 | local block = hit.Parent:findFirstChild("Block") | |
424 | if block ~= nil then | |
425 | if block.className == "IntValue" then | |
426 | if block.Value > 0 then | |
427 | blocked = true | |
428 | block.Value = block.Value - 1 | |
429 | print(block.Value) | |
430 | end | |
431 | end | |
432 | end | |
433 | if blocked == false then | |
434 | h.Health = h.Health - Damage | |
435 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, maincolor.Color) | |
436 | else | |
437 | h.Health = h.Health - (Damage / 2) | |
438 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, maincolor.Color) | |
439 | end | |
440 | if Type == "Knockdown" then | |
441 | local hum = hit.Parent.Humanoid | |
442 | hum.PlatformStand = true | |
443 | coroutine.resume(coroutine.create(function(HHumanoid) | |
444 | swait(1) | |
445 | HHumanoid.PlatformStand = false | |
446 | end), hum) | |
447 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
448 | local bodvol = Create("BodyVelocity"){ | |
449 | velocity = angle * knockback, | |
450 | P = 5000, | |
451 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
452 | Parent = hit, | |
453 | } | |
454 | local rl = Create("BodyAngularVelocity"){ | |
455 | P = 3000, | |
456 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
457 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
458 | Parent = hit, | |
459 | } | |
460 | game:GetService("Debris"):AddItem(bodvol, .5) | |
461 | game:GetService("Debris"):AddItem(rl, .5) | |
462 | elseif Type == "Normal" then | |
463 | local vp = Create("BodyVelocity"){ | |
464 | P = 500, | |
465 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
466 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
467 | } | |
468 | if knockback > 0 then | |
469 | vp.Parent = hit.Parent.Torso | |
470 | end | |
471 | game:GetService("Debris"):AddItem(vp, .5) | |
472 | elseif Type == "Up" then | |
473 | local bodyVelocity = Create("BodyVelocity"){ | |
474 | velocity = Vector3.new(0, 20, 0), | |
475 | P = 5000, | |
476 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
477 | Parent = hit, | |
478 | } | |
479 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
480 | elseif Type == "DarkUp" then | |
481 | coroutine.resume(coroutine.create(function() | |
482 | for i = 0, 1, 0.1 do | |
483 | swait() | |
484 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
485 | end | |
486 | end)) | |
487 | local bodyVelocity = Create("BodyVelocity"){ | |
488 | velocity = Vector3.new(0, 20, 0), | |
489 | P = 5000, | |
490 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
491 | Parent = hit, | |
492 | } | |
493 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
494 | elseif Type == "Snare" then | |
495 | local bp = Create("BodyPosition"){ | |
496 | P = 2000, | |
497 | D = 100, | |
498 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
499 | position = hit.Parent.Torso.Position, | |
500 | Parent = hit.Parent.Torso, | |
501 | } | |
502 | game:GetService("Debris"):AddItem(bp, 1) | |
503 | elseif Type == "Freeze" then | |
504 | local BodPos = Create("BodyPosition"){ | |
505 | P = 50000, | |
506 | D = 1000, | |
507 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
508 | position = hit.Parent.Torso.Position, | |
509 | Parent = hit.Parent.Torso, | |
510 | } | |
511 | local BodGy = Create("BodyGyro") { | |
512 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
513 | P = 20e+003, | |
514 | Parent = hit.Parent.Torso, | |
515 | cframe = hit.Parent.Torso.CFrame, | |
516 | } | |
517 | hit.Parent.Torso.Anchored = true | |
518 | coroutine.resume(coroutine.create(function(Part) | |
519 | swait(1.5) | |
520 | Part.Anchored = false | |
521 | end), hit.Parent.Torso) | |
522 | game:GetService("Debris"):AddItem(BodPos, 3) | |
523 | game:GetService("Debris"):AddItem(BodGy, 3) | |
524 | end | |
525 | local debounce = Create("BoolValue"){ | |
526 | Name = "DebounceHit", | |
527 | Parent = hit.Parent, | |
528 | Value = true, | |
529 | } | |
530 | game:GetService("Debris"):AddItem(debounce, Delay) | |
531 | c = Create("ObjectValue"){ | |
532 | Name = "creator", | |
533 | Value = Player, | |
534 | Parent = h, | |
535 | } | |
536 | game:GetService("Debris"):AddItem(c, .5) | |
537 | end | |
538 | end | |
539 | ------------------------------------------------------- | |
540 | --End Damage Function-- | |
541 | ------------------------------------------------------- | |
542 | ||
543 | ------------------------------------------------------- | |
544 | --Start Damage Function Customization-- | |
545 | ------------------------------------------------------- | |
546 | function ShowDamage(Pos, Text, Time, Color) | |
547 | local Rate = (1 / 30) | |
548 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
549 | local Text = (Text or "") | |
550 | local Time = (Time or 2) | |
551 | local Color = (Color or Color3.new(1, 0, 1)) | |
552 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
553 | EffectPart.Anchored = true | |
554 | local BillboardGui = Create("BillboardGui"){ | |
555 | Size = UDim2.new(3, 0, 3, 0), | |
556 | Adornee = EffectPart, | |
557 | Parent = EffectPart, | |
558 | } | |
559 | local TextLabel = Create("TextLabel"){ | |
560 | BackgroundTransparency = 1, | |
561 | Size = UDim2.new(1, 0, 1, 0), | |
562 | Text = Text, | |
563 | Font = "Highway", | |
564 | TextColor3 = Color, | |
565 | TextScaled = true, | |
566 | TextStrokeColor3 = Color3.fromRGB(0,0,0), | |
567 | Parent = BillboardGui, | |
568 | } | |
569 | game.Debris:AddItem(EffectPart, (Time)) | |
570 | EffectPart.Parent = game:GetService("Workspace") | |
571 | delay(0, function() | |
572 | local Frames = (Time / Rate) | |
573 | for Frame = 1, Frames do | |
574 | wait(Rate) | |
575 | local Percent = (Frame / Frames) | |
576 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
577 | TextLabel.TextTransparency = Percent | |
578 | end | |
579 | if EffectPart and EffectPart.Parent then | |
580 | EffectPart:Destroy() | |
581 | end | |
582 | end) | |
583 | end | |
584 | ------------------------------------------------------- | |
585 | --End Damage Function Customization-- | |
586 | ------------------------------------------------------- | |
587 | ||
588 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
589 | for _, c in pairs(workspace:children()) do | |
590 | local hum = c:findFirstChild("Humanoid") | |
591 | if hum ~= nil then | |
592 | local head = c:findFirstChild("Head") | |
593 | if head ~= nil then | |
594 | local targ = head.Position - Part.Position | |
595 | local mag = targ.magnitude | |
596 | if magni >= mag and c.Name ~= plr.Name then | |
597 | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2) | |
598 | end | |
599 | end | |
600 | end | |
601 | end | |
602 | end | |
603 | ||
604 | ||
605 | CFuncs = { | |
606 | Part = { | |
607 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
608 | local Part = Create("Part")({ | |
609 | Parent = Parent, | |
610 | Reflectance = Reflectance, | |
611 | Transparency = Transparency, | |
612 | CanCollide = false, | |
613 | Locked = true, | |
614 | BrickColor = BrickColor.new(tostring(BColor)), | |
615 | Name = Name, | |
616 | Size = Size, | |
617 | Material = Material | |
618 | }) | |
619 | RemoveOutlines(Part) | |
620 | return Part | |
621 | end | |
622 | }, | |
623 | Mesh = { | |
624 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
625 | local Msh = Create(Mesh)({ | |
626 | Parent = Part, | |
627 | Offset = OffSet, | |
628 | Scale = Scale | |
629 | }) | |
630 | if Mesh == "SpecialMesh" then | |
631 | Msh.MeshType = MeshType | |
632 | Msh.MeshId = MeshId | |
633 | end | |
634 | return Msh | |
635 | end | |
636 | }, | |
637 | Mesh = { | |
638 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
639 | local Msh = Create(Mesh)({ | |
640 | Parent = Part, | |
641 | Offset = OffSet, | |
642 | Scale = Scale | |
643 | }) | |
644 | if Mesh == "SpecialMesh" then | |
645 | Msh.MeshType = MeshType | |
646 | Msh.MeshId = MeshId | |
647 | end | |
648 | return Msh | |
649 | end | |
650 | }, | |
651 | Weld = { | |
652 | Create = function(Parent, Part0, Part1, C0, C1) | |
653 | local Weld = Create("Weld")({ | |
654 | Parent = Parent, | |
655 | Part0 = Part0, | |
656 | Part1 = Part1, | |
657 | C0 = C0, | |
658 | C1 = C1 | |
659 | }) | |
660 | return Weld | |
661 | end | |
662 | }, | |
663 | Sound = { | |
664 | Create = function(id, par, vol, pit) | |
665 | coroutine.resume(coroutine.create(function() | |
666 | local S = Create("Sound")({ | |
667 | Volume = vol, | |
668 | Pitch = pit or 1, | |
669 | SoundId = id, | |
670 | Parent = par or workspace | |
671 | }) | |
672 | wait() | |
673 | S:play() | |
674 | game:GetService("Debris"):AddItem(S, 6) | |
675 | end)) | |
676 | end | |
677 | }, | |
678 | ParticleEmitter = { | |
679 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
680 | local fp = Create("ParticleEmitter")({ | |
681 | Parent = Parent, | |
682 | Color = ColorSequence.new(Color1, Color2), | |
683 | LightEmission = LightEmission, | |
684 | Size = Size, | |
685 | Texture = Texture, | |
686 | Transparency = Transparency, | |
687 | ZOffset = ZOffset, | |
688 | Acceleration = Accel, | |
689 | Drag = Drag, | |
690 | LockedToPart = LockedToPart, | |
691 | VelocityInheritance = VelocityInheritance, | |
692 | EmissionDirection = EmissionDirection, | |
693 | Enabled = Enabled, | |
694 | Lifetime = LifeTime, | |
695 | Rate = Rate, | |
696 | Rotation = Rotation, | |
697 | RotSpeed = RotSpeed, | |
698 | Speed = Speed, | |
699 | VelocitySpread = VelocitySpread | |
700 | }) | |
701 | return fp | |
702 | end | |
703 | } | |
704 | } | |
705 | function RemoveOutlines(part) | |
706 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
707 | end | |
708 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
709 | local Part = Create("Part")({ | |
710 | formFactor = FormFactor, | |
711 | Parent = Parent, | |
712 | Reflectance = Reflectance, | |
713 | Transparency = Transparency, | |
714 | CanCollide = false, | |
715 | Locked = true, | |
716 | BrickColor = BrickColor.new(tostring(BColor)), | |
717 | Name = Name, | |
718 | Size = Size, | |
719 | Material = Material | |
720 | }) | |
721 | RemoveOutlines(Part) | |
722 | return Part | |
723 | end | |
724 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
725 | local Msh = Create(Mesh)({ | |
726 | Parent = Part, | |
727 | Offset = OffSet, | |
728 | Scale = Scale | |
729 | }) | |
730 | if Mesh == "SpecialMesh" then | |
731 | Msh.MeshType = MeshType | |
732 | Msh.MeshId = MeshId | |
733 | end | |
734 | return Msh | |
735 | end | |
736 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
737 | local Weld = Create("Weld")({ | |
738 | Parent = Parent, | |
739 | Part0 = Part0, | |
740 | Part1 = Part1, | |
741 | C0 = C0, | |
742 | C1 = C1 | |
743 | }) | |
744 | return Weld | |
745 | end | |
746 | ||
747 | ||
748 | ------------------------------------------------------- | |
749 | --Start Effect Function-- | |
750 | ------------------------------------------------------- | |
751 | EffectModel = Instance.new("Model", char) | |
752 | Effects = { | |
753 | Block = { | |
754 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
755 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
756 | prt.Anchored = true | |
757 | prt.CFrame = cframe | |
758 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
759 | game:GetService("Debris"):AddItem(prt, 10) | |
760 | if Type == 1 or Type == nil then | |
761 | table.insert(Effects, { | |
762 | prt, | |
763 | "Block1", | |
764 | delay, | |
765 | x3, | |
766 | y3, | |
767 | z3, | |
768 | msh | |
769 | }) | |
770 | elseif Type == 2 then | |
771 | table.insert(Effects, { | |
772 | prt, | |
773 | "Block2", | |
774 | delay, | |
775 | x3, | |
776 | y3, | |
777 | z3, | |
778 | msh | |
779 | }) | |
780 | else | |
781 | table.insert(Effects, { | |
782 | prt, | |
783 | "Block3", | |
784 | delay, | |
785 | x3, | |
786 | y3, | |
787 | z3, | |
788 | msh | |
789 | }) | |
790 | end | |
791 | end | |
792 | }, | |
793 | Sphere = { | |
794 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
795 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
796 | prt.Anchored = true | |
797 | prt.CFrame = cframe | |
798 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
799 | game:GetService("Debris"):AddItem(prt, 10) | |
800 | table.insert(Effects, { | |
801 | prt, | |
802 | "Cylinder", | |
803 | delay, | |
804 | x3, | |
805 | y3, | |
806 | z3, | |
807 | msh | |
808 | }) | |
809 | end | |
810 | }, | |
811 | Cylinder = { | |
812 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
813 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
814 | prt.Anchored = true | |
815 | prt.CFrame = cframe | |
816 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
817 | game:GetService("Debris"):AddItem(prt, 10) | |
818 | table.insert(Effects, { | |
819 | prt, | |
820 | "Cylinder", | |
821 | delay, | |
822 | x3, | |
823 | y3, | |
824 | z3, | |
825 | msh | |
826 | }) | |
827 | end | |
828 | }, | |
829 | Wave = { | |
830 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
831 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
832 | prt.Anchored = true | |
833 | prt.CFrame = cframe | |
834 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60)) | |
835 | game:GetService("Debris"):AddItem(prt, 10) | |
836 | table.insert(Effects, { | |
837 | prt, | |
838 | "Cylinder", | |
839 | delay, | |
840 | x3 / 60, | |
841 | y3 / 60, | |
842 | z3 / 60, | |
843 | msh | |
844 | }) | |
845 | end | |
846 | }, | |
847 | Ring = { | |
848 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
849 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
850 | prt.Anchored = true | |
851 | prt.CFrame = cframe | |
852 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
853 | game:GetService("Debris"):AddItem(prt, 10) | |
854 | table.insert(Effects, { | |
855 | prt, | |
856 | "Cylinder", | |
857 | delay, | |
858 | x3, | |
859 | y3, | |
860 | z3, | |
861 | msh | |
862 | }) | |
863 | end | |
864 | }, | |
865 | Break = { | |
866 | Create = function(brickcolor, cframe, x1, y1, z1) | |
867 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
868 | prt.Anchored = true | |
869 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
870 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
871 | local num = math.random(10, 50) / 1000 | |
872 | game:GetService("Debris"):AddItem(prt, 10) | |
873 | table.insert(Effects, { | |
874 | prt, | |
875 | "Shatter", | |
876 | num, | |
877 | prt.CFrame, | |
878 | math.random() - math.random(), | |
879 | 0, | |
880 | math.random(50, 100) / 100 | |
881 | }) | |
882 | end | |
883 | }, | |
884 | Spiral = { | |
885 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
886 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
887 | prt.Anchored = true | |
888 | prt.CFrame = cframe | |
889 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
890 | game:GetService("Debris"):AddItem(prt, 10) | |
891 | table.insert(Effects, { | |
892 | prt, | |
893 | "Cylinder", | |
894 | delay, | |
895 | x3, | |
896 | y3, | |
897 | z3, | |
898 | msh | |
899 | }) | |
900 | end | |
901 | }, | |
902 | Push = { | |
903 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
904 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
905 | prt.Anchored = true | |
906 | prt.CFrame = cframe | |
907 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
908 | game:GetService("Debris"):AddItem(prt, 10) | |
909 | table.insert(Effects, { | |
910 | prt, | |
911 | "Cylinder", | |
912 | delay, | |
913 | x3, | |
914 | y3, | |
915 | z3, | |
916 | msh | |
917 | }) | |
918 | end | |
919 | } | |
920 | } | |
921 | ------------------------------------------------------- | |
922 | --End Effect Function-- | |
923 | ------------------------------------------------------- | |
924 | ||
925 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
926 | local NSound = nil | |
927 | coroutine.resume(coroutine.create(function() | |
928 | NSound = Instance.new("Sound", PARENT) | |
929 | NSound.Volume = VOLUME | |
930 | NSound.Pitch = PITCH | |
931 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
932 | swait() | |
933 | NSound:play() | |
934 | game:GetService("Debris"):AddItem(NSound, 10) | |
935 | end)) | |
936 | return NSound | |
937 | end | |
938 | ||
939 | function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
940 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
941 | prt.Anchored = true | |
942 | prt.CFrame = cframe | |
943 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
944 | game:GetService("Debris"):AddItem(prt, 10) | |
945 | if Type == 1 or Type == nil then | |
946 | table.insert(Effects, { | |
947 | prt, | |
948 | "Block1", | |
949 | delay, | |
950 | x3, | |
951 | y3, | |
952 | z3, | |
953 | msh | |
954 | }) | |
955 | elseif Type == 2 then | |
956 | table.insert(Effects, { | |
957 | prt, | |
958 | "Block2", | |
959 | delay, | |
960 | x3, | |
961 | y3, | |
962 | z3, | |
963 | msh | |
964 | }) | |
965 | elseif Type == 3 then | |
966 | table.insert(Effects, { | |
967 | prt, | |
968 | "Block3", | |
969 | delay, | |
970 | x3, | |
971 | y3, | |
972 | z3, | |
973 | msh | |
974 | }) | |
975 | end | |
976 | end | |
977 | ||
978 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
979 | local fp=Instance.new("Part") | |
980 | fp.formFactor=formfactor | |
981 | fp.Parent=parent | |
982 | fp.Reflectance=reflectance | |
983 | fp.Transparency=transparency | |
984 | fp.CanCollide=false | |
985 | fp.Locked=true | |
986 | fp.BrickColor=brickcolor | |
987 | fp.Name=name | |
988 | fp.Size=size | |
989 | fp.Position=tors.Position | |
990 | RemoveOutlines(fp) | |
991 | fp.Material="SmoothPlastic" | |
992 | fp:BreakJoints() | |
993 | return fp | |
994 | end | |
995 | ||
996 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
997 | local mesh=Instance.new(Mesh) | |
998 | mesh.Parent=part | |
999 | if Mesh=="SpecialMesh" then | |
1000 | mesh.MeshType=meshtype | |
1001 | if meshid~="nil" then | |
1002 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
1003 | end | |
1004 | end | |
1005 | mesh.Offset=offset | |
1006 | mesh.Scale=scale | |
1007 | return mesh | |
1008 | end | |
1009 | ||
1010 | function MagicShockTrailAlt2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype) | |
1011 | local prt = part(3, char, 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
1012 | prt.Anchored = true | |
1013 | prt.Material = "Neon" | |
1014 | prt.CFrame = cframe | |
1015 | local msh = mesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1016 | game:GetService("Debris"):AddItem(prt, 5) | |
1017 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1018 | local rtype = rottype | |
1019 | for i = 0, 1, delay do | |
1020 | swait() | |
1021 | if rtype == 1 then | |
1022 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1) | |
1023 | elseif rtype == 2 then | |
1024 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1) | |
1025 | end | |
1026 | prt.Transparency = i | |
1027 | Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3) | |
1028 | end | |
1029 | Part.Parent = nil | |
1030 | end), prt, msh) | |
1031 | end | |
1032 | ||
1033 | ||
1034 | function MagicBlock(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1035 | local prt = part(3, char, 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
1036 | prt.Anchored = true | |
1037 | prt.Material = "Neon" | |
1038 | prt.CFrame = cframe | |
1039 | prt.CFrame = prt.CFrame * Euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1040 | local msh = mesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1041 | game:GetService("Debris"):AddItem(prt, 5) | |
1042 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1043 | for i = 0, 1, delay do | |
1044 | swait() | |
1045 | Part.CFrame = Part.CFrame * Euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1046 | Part.Transparency = i | |
1047 | Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3) | |
1048 | end | |
1049 | Part.Parent = nil | |
1050 | end), prt, msh) | |
1051 | end | |
1052 | ||
1053 | ||
1054 | function MagicShockAlt(brickcolor, cframe, x1, y1, x3, y3, delay, rottype) | |
1055 | local prt = part(3, char, 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
1056 | prt.Anchored = true | |
1057 | prt.Material = "Neon" | |
1058 | prt.CFrame = cframe | |
1059 | local msh = mesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, 0.01)) | |
1060 | game:GetService("Debris"):AddItem(prt, 5) | |
1061 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1062 | local rtype = rottype | |
1063 | for i = 0, 1, delay do | |
1064 | swait() | |
1065 | if rtype == 1 then | |
1066 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1) | |
1067 | elseif rtype == 2 then | |
1068 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1) | |
1069 | end | |
1070 | prt.Transparency = i | |
1071 | Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, 0) | |
1072 | end | |
1073 | Part.Parent = nil | |
1074 | end), prt, msh) | |
1075 | end | |
1076 | ||
1077 | function Eviscerate(dude) | |
1078 | if dude.Name ~= char then | |
1079 | local bgf = IT("BodyGyro", dude.Head) | |
1080 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
1081 | local val = IT("BoolValue", dude) | |
1082 | val.Name = "IsHit" | |
1083 | local ds = coroutine.wrap(function() | |
1084 | dude:WaitForChild("Head"):BreakJoints() | |
1085 | wait(0.5) | |
1086 | target = nil | |
1087 | coroutine.resume(coroutine.create(function() | |
1088 | for i, v in pairs(dude:GetChildren()) do | |
1089 | if v:IsA("Accessory") then | |
1090 | v:Destroy() | |
1091 | end | |
1092 | if v:IsA("Humanoid") then | |
1093 | v:Destroy() | |
1094 | end | |
1095 | if v:IsA("CharacterMesh") then | |
1096 | v:Destroy() | |
1097 | end | |
1098 | if v:IsA("Model") then | |
1099 | v:Destroy() | |
1100 | end | |
1101 | if v:IsA("Part") or v:IsA("MeshPart") then | |
1102 | for x, o in pairs(v:GetChildren()) do | |
1103 | if o:IsA("Decal") then | |
1104 | o:Destroy() | |
1105 | end | |
1106 | end | |
1107 | coroutine.resume(coroutine.create(function() | |
1108 | v.Material = "Neon" | |
1109 | v.CanCollide = false | |
1110 | local PartEmmit1 = IT("ParticleEmitter", v) | |
1111 | PartEmmit1.LightEmission = 1 | |
1112 | PartEmmit1.Texture = "rbxassetid://284205403" | |
1113 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1114 | PartEmmit1.Rate = 150 | |
1115 | PartEmmit1.Lifetime = NumberRange.new(1) | |
1116 | PartEmmit1.Size = NumberSequence.new({ | |
1117 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
1118 | NumberSequenceKeypoint.new(1, 0, 0) | |
1119 | }) | |
1120 | PartEmmit1.Transparency = NumberSequence.new({ | |
1121 | NumberSequenceKeypoint.new(0, 0, 0), | |
1122 | NumberSequenceKeypoint.new(1, 1, 0) | |
1123 | }) | |
1124 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
1125 | PartEmmit1.VelocitySpread = 30000 | |
1126 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
1127 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
1128 | local BodPoss = IT("BodyPosition", v) | |
1129 | BodPoss.P = 3000 | |
1130 | BodPoss.D = 1000 | |
1131 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
1132 | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
1133 | v.Color = maincolor.Color | |
1134 | coroutine.resume(coroutine.create(function() | |
1135 | for i = 0, 49 do | |
1136 | swait(1) | |
1137 | v.Transparency = v.Transparency + 0.08 | |
1138 | end | |
1139 | wait(0.5) | |
1140 | PartEmmit1.Enabled = false | |
1141 | wait(3) | |
1142 | v:Destroy() | |
1143 | dude:Destroy() | |
1144 | end)) | |
1145 | end)) | |
1146 | end | |
1147 | end | |
1148 | end)) | |
1149 | end) | |
1150 | ds() | |
1151 | end | |
1152 | end | |
1153 | function FindNearestHead(Position, Distance, SinglePlayer) | |
1154 | if SinglePlayer then | |
1155 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
1156 | end | |
1157 | local List = {} | |
1158 | for i, v in pairs(workspace:GetChildren()) do | |
1159 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then | |
1160 | table.insert(List, v) | |
1161 | end | |
1162 | end | |
1163 | return List | |
1164 | end | |
1165 | function sphereMK(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos) | |
1166 | local type = type | |
1167 | local rng = Instance.new("Part", char) | |
1168 | rng.Anchored = true | |
1169 | rng.BrickColor = color | |
1170 | rng.CanCollide = false | |
1171 | rng.FormFactor = 3 | |
1172 | rng.Name = "Ring" | |
1173 | rng.Material = "Neon" | |
1174 | rng.Size = Vector3.new(1, 1, 1) | |
1175 | rng.Transparency = 0 | |
1176 | rng.TopSurface = 0 | |
1177 | rng.BottomSurface = 0 | |
1178 | rng.CFrame = pos | |
1179 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
1180 | local rngm = Instance.new("SpecialMesh", rng) | |
1181 | rngm.MeshType = "Sphere" | |
1182 | rngm.Scale = Vector3.new(x1, y1, z1) | |
1183 | local scaler2 = 1 | |
1184 | local speeder = FastSpeed | |
1185 | if type == "Add" then | |
1186 | scaler2 = 1 * value | |
1187 | elseif type == "Divide" then | |
1188 | scaler2 = 1 / value | |
1189 | end | |
1190 | coroutine.resume(coroutine.create(function() | |
1191 | for i = 0, 10 / bonuspeed, 0.1 do | |
1192 | swait() | |
1193 | if type == "Add" then | |
1194 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
1195 | elseif type == "Divide" then | |
1196 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
1197 | end | |
1198 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
1199 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
1200 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
1201 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
1202 | end | |
1203 | rng:Destroy() | |
1204 | end)) | |
1205 | end | |
1206 | ------------------------------------------------------- | |
1207 | --End Important Functions-- | |
1208 | ------------------------------------------------------- | |
1209 | ||
1210 | --[[ | |
1211 | Thanks for using Build-To-Lua by jarredbcv. | |
1212 | ]]-- | |
1213 | ||
1214 | New = function(Object, Parent, Name, Data) | |
1215 | local Object = Instance.new(Object) | |
1216 | for Index, Value in pairs(Data or {}) do | |
1217 | Object[Index] = Value | |
1218 | end | |
1219 | Object.Parent = Parent | |
1220 | Object.Name = Name | |
1221 | return Object | |
1222 | end | |
1223 | ||
1224 | NewInstance = function(instance,parent,properties) | |
1225 | local inst = Instance.new(instance,parent) | |
1226 | if(properties)then | |
1227 | for i,v in next, properties do | |
1228 | pcall(function() inst[i] = v end) | |
1229 | end | |
1230 | end | |
1231 | return inst; | |
1232 | end | |
1233 | ||
1234 | Gunty = New("Model",char,"Gunty",{}) | |
1235 | Handle = New("Part",Gunty,"Handle",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.799999952, 0.980000019, 1),CFrame = CFrame.new(-6.17461252, 2.89117765, -81.6553421, 0.999894261, 0.010924357, 0.00963267777, -0.0110270018, 0.999882579, 0.0106679145, -0.00951499958, -0.0107729975, 0.999897003),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1236 | Mesh = New("BlockMesh",Handle,"Mesh",{Scale = Vector3.new(1.03999996, 1, 1.03999996),}) | |
1237 | Neon_Part = New("Part",Gunty,"Neon_Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.449999958, 0.300000012, 1.00999999),CFrame = CFrame.new(-5.79491472, 3.31696463, -81.668541, 0.999894381, 0.0109243579, 0.00963267963, -0.0110270027, 0.999882698, 0.0106679164, -0.00951499958, -0.0107729975, 0.999897122),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1238 | Mesh = New("BlockMesh",Neon_Part,"Mesh",{Scale = Vector3.new(1.14999998, 0.699999988, 1.04999995),}) | |
1239 | mot = New("Motor",Neon_Part,"mot",{Part0 = Neon_Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),C1 = CFrame.new(0.375087738, 0.43002677, -0.00499725342, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),}) | |
1240 | Part = New("Part",Gunty,"Part",{BrickColor = BrickColor.new("Fossil"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.400000006, 0.800000012, 1.43999994),CFrame = CFrame.new(-5.77552652, 2.79678607, -81.6581802, 0.999894381, 0.0109243579, 0.00963267963, -0.0110270027, 0.999882698, 0.0106679164, -0.00951499958, -0.0107729975, 0.999897122),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.623529, 0.631373, 0.67451),}) | |
1241 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1, 1, 0.850000024),}) | |
1242 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),C1 = CFrame.new(0.400111198, -0.089990139, 0, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),}) | |
1243 | Part = New("Part",Gunty,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.50999999, 1.00999999, 1.38),CFrame = CFrame.new(-5.79167271, 2.89196372, -81.6569061, 0.999894142, 0.0109243561, 0.00963267591, -0.0110270008, 0.99988246, 0.0106679127, -0.00951499958, -0.0107729975, 0.999896884),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.356863, 0.364706, 0.411765),}) | |
1244 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1, 1, 0.850000024),}) | |
1245 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),C1 = CFrame.new(0.382905483, 0.00498604774, 0.00213623047, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),}) | |
1246 | Part = New("Part",Gunty,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.340000033, 0.179999962, 1.27999997),CFrame = CFrame.new(-6.43716383, 3.22691417, -81.656456, 0.999894381, 0.0109243579, 0.00963267963, -0.0110270027, 0.999882698, 0.0106679164, -0.00951499958, -0.0107729975, 0.999897122),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.356863, 0.364706, 0.411765),}) | |
1247 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1, 1, 0.850000024),}) | |
1248 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),C1 = CFrame.new(-0.266214848, 0.332840681, -6.10351563e-05, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),}) | |
1249 | Part = New("Part",Gunty,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.340000033, 0.239999965, 1.27999997),CFrame = CFrame.new(-6.43716383, 2.87691402, -81.6564636, 0.999894381, 0.0109243579, 0.00963267963, -0.0110270027, 0.999882698, 0.0106679164, -0.00951499958, -0.0107729975, 0.999897122),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.356863, 0.364706, 0.411765),}) | |
1250 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1, 1, 0.850000024),}) | |
1251 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),C1 = CFrame.new(-0.262355328, -0.0171182156, -0.00379943848, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),}) | |
1252 | Part = New("Part",Gunty,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.380000025, 0.239999965, 1.27999997),CFrame = CFrame.new(-6.41705704, 2.5166924, -81.6567535, 0.999894381, 0.0109243579, 0.00963267963, -0.0110270027, 0.999882698, 0.0106679164, -0.00951499958, -0.0107729975, 0.999897122),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.356863, 0.364706, 0.411765),}) | |
1253 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1, 1, 0.850000024),}) | |
1254 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),C1 = CFrame.new(-0.238276005, -0.37707448, -0.00774383545, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),}) | |
1255 | Neon_Part = New("Part",Gunty,"Neon_Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.080000028, 0.829999983, 1.24000001),CFrame = CFrame.new(-6.28731203, 2.83357024, -81.6548691, 0.999894381, 0.0109243579, 0.00963267963, -0.0110270027, 0.999882698, 0.0106679164, -0.00951499958, -0.0107729975, 0.999897122),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1256 | Mesh = New("BlockMesh",Neon_Part,"Mesh",{Scale = Vector3.new(1, 1, 0.850000024),}) | |
1257 | mot = New("Motor",Neon_Part,"mot",{Part0 = Neon_Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),C1 = CFrame.new(-0.112056732, -0.058836937, -0.00122833252, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),}) | |
1258 | Neon_Part = New("Part",Gunty,"Neon_Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.580000043, 0.209999949, 1.24000001),CFrame = CFrame.new(-6.30723286, 3.2204814, -81.6576462, 0.999894381, 0.0109243579, 0.00963267963, -0.0110270027, 0.999882698, 0.0106679164, -0.00951499958, -0.0107729975, 0.999897122),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1259 | Mesh = New("BlockMesh",Neon_Part,"Mesh",{Scale = Vector3.new(1, 1, 0.850000024),}) | |
1260 | mot = New("Motor",Neon_Part,"mot",{Part0 = Neon_Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),C1 = CFrame.new(-0.136215687, 0.327841043, -6.86645508e-05, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),}) | |
1261 | Neon_Part = New("Part",Gunty,"Neon_Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.580000043, 0.269999951, 1.24000001),CFrame = CFrame.new(-6.30756044, 2.87048483, -81.6573257, 0.999894381, 0.0109243579, 0.00963267963, -0.0110270027, 0.999882698, 0.0106679164, -0.00951499958, -0.0107729975, 0.999897122),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1262 | Mesh = New("BlockMesh",Neon_Part,"Mesh",{Scale = Vector3.new(1, 1, 0.850000024),}) | |
1263 | mot = New("Motor",Neon_Part,"mot",{Part0 = Neon_Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),C1 = CFrame.new(-0.132686615, -0.0221214294, -0.0034866333, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),}) | |
1264 | Neon_Part = New("Part",Gunty,"Neon_Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.580000043, 0.249999955, 1.25),CFrame = CFrame.new(-6.30751181, 2.53053808, -81.6523285, 0.999894381, 0.0109243579, 0.00963267963, -0.0110270027, 0.999882698, 0.0106679164, -0.00951499958, -0.0107729975, 0.999897122),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1265 | Mesh = New("BlockMesh",Neon_Part,"Mesh",{Scale = Vector3.new(1, 1, 0.850000024),}) | |
1266 | mot = New("Motor",Neon_Part,"mot",{Part0 = Neon_Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),C1 = CFrame.new(-0.128937244, -0.362081289, -0.00211334229, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),}) | |
1267 | Part = New("Part",Gunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.600000024, 0.200000003),CFrame = CFrame.new(-5.71910667, 3.10924911, -81.0621643, 0.968651533, -0.24823907, 0.00961919595, 0.248137087, 0.968666732, 0.0106559293, -0.0119630033, -0.007934995, 0.999897361),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1268 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 0.899999976, 0.400000006),}) | |
1269 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.968651116, 0.248137027, -0.0119630015, -0.248238936, 0.968666434, -0.007934995, 0.00961919129, 0.0106559228, 0.999897003),C1 = CFrame.new(0.447408676, 0.216631651, 0.599830627, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),}) | |
1270 | Part = New("Part",Gunty,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.600000024, 0.200000003),CFrame = CFrame.new(-5.74061537, 3.09643626, -82.2620392, 0.968651533, -0.24823907, 0.00961919595, 0.248137087, 0.968666732, 0.0106559293, -0.0119630033, -0.007934995, 0.999897361),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1271 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 0.899999976, 0.400000006),}) | |
1272 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.968651116, 0.248137027, -0.0119630015, -0.248238936, 0.968666434, -0.007934995, 0.00961919129, 0.0106559228, 0.999897003),C1 = CFrame.new(0.437460423, 0.216511488, -0.600265503, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),}) | |
1273 | Part = New("Part",Gunty,"Part",{BrickColor = BrickColor.new("Fossil"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 1.4000001),CFrame = CFrame.new(-5.66842175, 2.87551188, -81.6588593, 0.699307382, 0.714757025, 0.00962753966, -0.714821219, 0.699226558, 0.0106663266, 0.000891998934, -0.0143409977, 0.999897063),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.623529, 0.631373, 0.67451),}) | |
1274 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.200000003, 0.200000003, 0.930000007),}) | |
1275 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.699307024, -0.714820981, 0.000891999982, 0.714756727, 0.69922626, -0.0143409977, 0.00962753501, 0.010666322, 0.999896765),C1 = CFrame.new(0.506342888, -0.0100963116, 0.00119018555, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),}) | |
1276 | Part = New("Part",Gunty,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.320000023, 0.919999957, 1.27999997),CFrame = CFrame.new(-6.08716917, 2.84636235, -81.6569443, 0.999894381, 0.0109243579, 0.00963267963, -0.0110270027, 0.999882698, 0.0106679164, -0.00951499958, -0.0107729975, 0.999897122),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.356863, 0.364706, 0.411765),}) | |
1277 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1, 1, 0.850000024),}) | |
1278 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),C1 = CFrame.new(0.0879435539, -0.0438375473, -0.00123596191, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),}) | |
1279 | Neon_Part = New("Part",Gunty,"Neon_Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.329999983, 0.269999981, 0.860000074),CFrame = CFrame.new(-5.68526602, 2.76024342, -81.6548996, 0.999894381, 0.0109243579, 0.00963267963, -0.0110270027, 0.999882698, 0.0106679164, -0.00951499958, -0.0107729975, 0.999897122),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
1280 | Mesh = New("BlockMesh",Neon_Part,"Mesh",{Scale = Vector3.new(1, 1, 0.850000024),}) | |
1281 | mot = New("Motor",Neon_Part,"mot",{Part0 = Neon_Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),C1 = CFrame.new(0.4907341, -0.125577688, 0.0037612915, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),}) | |
1282 | Part = New("Part",Gunty,"Part",{BrickColor = BrickColor.new("Fossil"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.279999971, 0.389999986, 1.05000007),CFrame = CFrame.new(-5.67011929, 2.75067925, -81.6596603, 0.999894381, 0.0109243579, 0.00963267963, -0.0110270027, 0.999882698, 0.0106679164, -0.00951499958, -0.0107729975, 0.999897122),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.623529, 0.631373, 0.67451),}) | |
1283 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1, 1, 0.850000024),}) | |
1284 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),C1 = CFrame.new(0.506030083, -0.134924173, -0.000953674316, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),}) | |
1285 | Credits = New("Part",Gunty,"Credits",{BrickColor = BrickColor.new("Fossil"),Material = Enum.Material.Metal,Size = Vector3.new(0.249999985, 0.230000019, 0.0599999875),CFrame = CFrame.new(-5.65182352, 3.14374733, -82.1123657, 1.00000036, -2.32830644e-10, 1.86264515e-09, 2.76486389e-10, 0.945462108, -0.325733244, 2.79396772e-09, 0.325733304, 0.945462048),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.623529, 0.631373, 0.67451),}) | |
1286 | mot = New("Motor",Credits,"mot",{Part0 = Credits,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.94546175, 0.325733155, 0, -0.325733155, 0.94546175),C1 = CFrame.new(0.524296761, 0.263174534, -0.449249268, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),}) | |
1287 | Credits = New("Part",Gunty,"Credits",{BrickColor = BrickColor.new("Fossil"),Material = Enum.Material.Metal,Size = Vector3.new(0.249999985, 0.150000021, 0.0599999875),CFrame = CFrame.new(-5.651824, 3.16514564, -82.0512466, 1.00000036, -1.28056854e-09, 1.86264515e-09, 2.76486389e-10, 0.990724444, 0.135888785, 2.79396772e-09, -0.13588877, 0.990724444),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.623529, 0.631373, 0.67451),}) | |
1288 | mot = New("Motor",Credits,"mot",{Part0 = Credits,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.990724087, -0.135888726, 0, 0.135888726, 0.990724087),C1 = CFrame.new(0.523478985, 0.283911943, -0.387901306, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),}) | |
1289 | Credits = New("Part",Gunty,"Credits",{BrickColor = BrickColor.new("Fossil"),Material = Enum.Material.Metal,Size = Vector3.new(0.249999985, 0.170000017, 0.0599999875),CFrame = CFrame.new(-5.651824, 3.15523815, -81.9898987, 1.00000036, -9.31322575e-10, 1.86264515e-09, 2.76486389e-10, 0.841228187, -0.540680885, 2.79396772e-09, 0.540680885, 0.841228247),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.623529, 0.631373, 0.67451),}) | |
1290 | mot = New("Motor",Credits,"mot",{Part0 = Credits,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.841227949, 0.540680707, 0, -0.540680707, 0.841227949),C1 = CFrame.new(0.523004532, 0.273344755, -0.326667786, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),}) | |
1291 | Credits = New("Part",Gunty,"Credits",{BrickColor = BrickColor.new("Fossil"),Material = Enum.Material.Metal,Size = Vector3.new(0.249999985, 0.230000019, 0.0599999875),CFrame = CFrame.new(-5.65182352, 3.12556744, -81.9521408, 1.00000036, -5.82076609e-10, 9.31322575e-10, 2.76486389e-10, 0.99409467, -0.10851986, 2.79396772e-09, 0.108519867, 0.99409461),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.623529, 0.631373, 0.67451),}) | |
1292 | mot = New("Motor",Credits,"mot",{Part0 = Credits,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.994094312, 0.10851983, 0, -0.10851983, 0.994094312),C1 = CFrame.new(0.522972584, 0.243270636, -0.289230347, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),}) | |
1293 | Part = New("Part",Gunty,"Part",{BrickColor = BrickColor.new("Fossil"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 1.18000007),CFrame = CFrame.new(-6.06842232, 2.94551158, -81.6588593, 0.699307382, 0.714757025, 0.00962753966, -0.714821219, 0.699226558, 0.0106663266, 0.000891998934, -0.0143409977, 0.999897063),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.623529, 0.631373, 0.67451),}) | |
1294 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.200000003, 0.200000003, 0.930000007),}) | |
1295 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.699307024, -0.714820981, 0.000891999982, 0.714756727, 0.69922626, -0.0143409977, 0.00962753501, 0.010666322, 0.999896765),C1 = CFrame.new(0.105613232, 0.0555255413, -0.00191497803, 0.999894023, -0.0110269999, -0.00951499958, 0.0109243551, 0.99988234, -0.0107729975, 0.00963267405, 0.0106679108, 0.999896765),}) | |
1296 | ||
1297 | local HW = NewInstance('Motor', char, {Part0 = ra, Part1 = Handle, C0 = CF(-.1,-.51,0)}) | |
1298 | ||
1299 | for _,v in next, Gunty:children() do | |
1300 | v.CanCollide = false | |
1301 | end | |
1302 | ||
1303 | local all, last = {}, nil | |
1304 | ArmourParts = {} | |
1305 | ArmourParts2 = {} | |
1306 | NeonParts = {} | |
1307 | function scan(p) | |
1308 | for _, v in pairs(p:GetChildren()) do | |
1309 | if v:IsA("BasePart") then | |
1310 | if v.BrickColor == BrickColor.new("Smoky grey") then | |
1311 | table.insert(ArmourParts, v) | |
1312 | end | |
1313 | if v.BrickColor == BrickColor.new("Fossil") then | |
1314 | table.insert(ArmourParts2, v) | |
1315 | end | |
1316 | if v.BrickColor == BrickColor.new("Institutional white") then | |
1317 | table.insert(NeonParts, v) | |
1318 | end | |
1319 | if last then | |
1320 | local w = Instance.new("Weld") | |
1321 | w.Part0, w.Part1 = last, v | |
1322 | w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse() | |
1323 | w.Parent = last | |
1324 | end | |
1325 | table.insert(all, v) | |
1326 | last = v | |
1327 | end | |
1328 | scan(v) | |
1329 | end | |
1330 | end | |
1331 | scan(Gunty) | |
1332 | for _, v in pairs(all) do | |
1333 | v.Anchored = false | |
1334 | v.CanCollide = false | |
1335 | end | |
1336 | function resetmode() | |
1337 | for i, v in pairs(ArmourParts) do | |
1338 | v.BrickColor = BrickColor.new("Smoky grey") | |
1339 | end | |
1340 | for i, v in pairs(ArmourParts2) do | |
1341 | v.BrickColor = BrickColor.new("Fossil") | |
1342 | end | |
1343 | for i, v in pairs(NeonParts) do | |
1344 | v.BrickColor = BrickColor.new("Institutional white") | |
1345 | end | |
1346 | maincolor = BrickColor.new("Institutional white") | |
1347 | end | |
1348 | ------------------------------------------------------- | |
1349 | --Start Music Option-- | |
1350 | ------------------------------------------------------- | |
1351 | local Music = Instance.new("Sound",tors) | |
1352 | Music.Volume = 2.5 | |
1353 | Music.SoundId = "rbxassetid://1117396305" | |
1354 | Music.Looped = true | |
1355 | Music.Pitch = 1 --Pitcher | |
1356 | Music:Play() | |
1357 | ------------------------------------------------------- | |
1358 | --End Music Option-- | |
1359 | ------------------------------------------------------- | |
1360 | ||
1361 | local naeeym2 = Instance.new("BillboardGui",char) | |
1362 | naeeym2.AlwaysOnTop = true | |
1363 | naeeym2.Size = UDim2.new(5,35,2,35) | |
1364 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
1365 | naeeym2.Adornee = hed | |
1366 | naeeym2.Name = "Name" | |
1367 | ||
1368 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
1369 | tecks2.BackgroundTransparency = 1 | |
1370 | tecks2.TextScaled = true | |
1371 | tecks2.BorderSizePixel = 0 | |
1372 | tecks2.Text = "Neutral" | |
1373 | tecks2.Font = "Code" | |
1374 | tecks2.TextSize = 30 | |
1375 | tecks2.TextStrokeTransparency = 0 | |
1376 | tecks2.TextColor3 = Color3.new(0,0,0) | |
1377 | tecks2.TextStrokeColor3 = Color3.fromRGB(0, 0, 0) | |
1378 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1379 | tecks2.Parent = naeeym2 | |
1380 | ||
1381 | ------------------------------------------------------- | |
1382 | --Start Attacks N Stuff-- | |
1383 | ------------------------------------------------------- | |
1384 | local sine=0 | |
1385 | function HitboxFunction(Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype) | |
1386 | local Hitboxpart = Instance.new("Part", EffectModel) | |
1387 | RemoveOutlines(Hitboxpart) | |
1388 | Hitboxpart.Size = Vector3.new(siz1, siz2, siz3) | |
1389 | Hitboxpart.CanCollide = false | |
1390 | Hitboxpart.Transparency = 1 | |
1391 | Hitboxpart.Anchored = true | |
1392 | Hitboxpart.CFrame = Pose | |
1393 | game:GetService("Debris"):AddItem(Hitboxpart, lifetime) | |
1394 | MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype) | |
1395 | end | |
1396 | wait2 = false | |
1397 | combo = 1 | |
1398 | mouse.Button1Down:connect(function(key) | |
1399 | if attack == false then | |
1400 | attack = true | |
1401 | hum.WalkSpeed = 3.01 | |
1402 | if combo == 1 and wait2 == false then | |
1403 | wait2 = true | |
1404 | for i = 0, 1.2, 0.1 do | |
1405 | swait() | |
1406 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-5), math.rad(0), math.rad(-35)), 0.3) | |
1407 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1) | |
1408 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.8) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.1) | |
1409 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3) | |
1410 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.2) * RHCF * angles(math.rad(-2.5), math.rad(0), math.rad(-0)), 0.3) | |
1411 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(15), math.rad(-20)), 0.3) | |
1412 | end | |
1413 | CreateSound("138097048", ra, 3, .8) | |
1414 | HitboxFunction(ra.CFrame, 0.01, 1, 1, 1, 7, 6, 9, 3, "Normal") | |
1415 | for i = 0, 1.2, 0.1 do | |
1416 | swait() | |
1417 | BlockEffect(maincolor, Handle.CFrame, 21, 41, 21, -2, -3, -2, 0.08, 2) | |
1418 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(55)), 0.3) | |
1419 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1) | |
1420 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(95), math.rad(0), math.rad(40)), 0.1) | |
1421 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3) | |
1422 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-17)), 0.3) | |
1423 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(0)), 0.3) | |
1424 | end | |
1425 | combo = 2 | |
1426 | end | |
1427 | if combo == 2 and wait2 == false then | |
1428 | wait2 = true | |
1429 | for i = 0, 1.2, 0.1 do | |
1430 | swait() | |
1431 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-25), math.rad(10), math.rad(-65)), 0.3) | |
1432 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1) | |
1433 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.1) | |
1434 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3) | |
1435 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-25)), 0.3) | |
1436 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(-20)), 0.3) | |
1437 | end | |
1438 | CreateSound("138097048", rl, 3, 1) | |
1439 | HitboxFunction(ll.CFrame, 0.01, 1, 1, 1, 7, 5, 10, 3, "Normal") | |
1440 | for i = 0, 1.6, 0.1 do | |
1441 | swait() | |
1442 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(65+255.45*i)), 0.3) | |
1443 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1) | |
1444 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(54), math.rad(0), math.rad(35)), 0.1) | |
1445 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-34), math.rad(0), math.rad(-35)), 0.3) | |
1446 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(95)), 0.3) | |
1447 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-4.5), math.rad(-30), math.rad(0)), 0.3) | |
1448 | end | |
1449 | combo = 3 | |
1450 | end | |
1451 | if combo == 3 and wait2 == false then | |
1452 | for i = 0, 1.2, 0.1 do | |
1453 | swait() | |
1454 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-5), math.rad(0), math.rad(-35)), 0.3) | |
1455 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1) | |
1456 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.8) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.1) | |
1457 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3) | |
1458 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.2) * RHCF * angles(math.rad(-2.5), math.rad(0), math.rad(-0)), 0.3) | |
1459 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(15), math.rad(-20)), 0.3) | |
1460 | end | |
1461 | CreateSound("138097048", ra, 3, .8) | |
1462 | HitboxFunction(ra.CFrame, 0.01, 1, 1, 1, 7, 24, 36, 3, "Normal") | |
1463 | for i = 0, 1.2, 0.1 do | |
1464 | swait() | |
1465 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(35)), 0.3) | |
1466 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1) | |
1467 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(96), math.rad(0), math.rad(10)), 0.1) | |
1468 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3) | |
1469 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-0)), 0.3) | |
1470 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(0)), 0.3) | |
1471 | end | |
1472 | Effects.Sphere.Create(maincolor, ra.CFrame * CFrame.new(0,-2,0) , 85, 85, 85, 0.1, 0.1, 0.1, 0.03) | |
1473 | Effects.Ring.Create(maincolor, ra.CFrame * CFrame.new(0,-2,0) , 2, 2, 2, 0.1, 0.1, 0.1, 0.03) | |
1474 | HitboxFunction(ra.CFrame, 0.01, 1, 1, 1, 7, 24, 36, 3, "Normal") | |
1475 | for i = 0, 1.2, 0.1 do | |
1476 | swait() | |
1477 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(-35)), 0.3) | |
1478 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1) | |
1479 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(25), math.rad(0), math.rad(10)), 0.1) | |
1480 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3) | |
1481 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-0)), 0.3) | |
1482 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(0)), 0.3) | |
1483 | end | |
1484 | combo = 1 | |
1485 | end | |
1486 | hum.WalkSpeed = 8 | |
1487 | wait2 = false | |
1488 | attack = false | |
1489 | end | |
1490 | end) | |
1491 | function Decapitate() | |
1492 | local target = nil | |
1493 | local targettorso = nil | |
1494 | if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then | |
1495 | if mouse.Target.Parent.Humanoid.PlatformStand == false then | |
1496 | target = mouse.Target.Parent.Humanoid | |
1497 | targettorso = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso") | |
1498 | targethead = mouse.Target.Parent:FindFirstChild("Head") | |
1499 | end | |
1500 | end | |
1501 | if target ~= nil then | |
1502 | targettorso.Anchored = true | |
1503 | attack = true | |
1504 | hum.WalkSpeed = 0 | |
1505 | root.CFrame = targettorso.CFrame * CF(0,0,2.6) | |
1506 | for i = 0,4.2,0.1 do | |
1507 | swait() | |
1508 | 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) | |
1509 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(40)), 0.3) | |
1510 | 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) | |
1511 | 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) | |
1512 | 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) | |
1513 | 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) | |
1514 | end | |
1515 | local ModelHead01 = New("Model", char, "", {}) | |
1516 | local Humanoid01 = New("Humanoid", ModelHead01, "Humanoid", {}) | |
1517 | local Head01 = targethead:Clone() | |
1518 | targethead.Transparency = 1 | |
1519 | Head01.Parent = ModelHead01 | |
1520 | local weldHead01 = Instance.new("Weld") | |
1521 | weldHead01.Parent = Head01 | |
1522 | weldHead01.Part0 = targethead | |
1523 | weldHead01.Part1 = Head01 | |
1524 | weldHead01.C1 = CFrame.new(0, 0, 0) | |
1525 | targethead.face:Remove() | |
1526 | weldHead01.Part0 = ra | |
1527 | weldHead01.C1 = CFrame.new(0, 0, 1.2) * angles(math.rad(90), math.rad(0), math.rad(0)) | |
1528 | targettorso:BreakJoints() | |
1529 | CreateSound("314390675", targettorso, 5, .7) | |
1530 | for i = 0,3.2,0.1 do | |
1531 | swait() | |
1532 | 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) | |
1533 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-90)), 0.3) | |
1534 | 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) | |
1535 | 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) | |
1536 | 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) | |
1537 | 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) | |
1538 | end | |
1539 | for i = 0,4.2,0.1 do | |
1540 | swait() | |
1541 | 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) | |
1542 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(40)), 0.3) | |
1543 | 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) | |
1544 | 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) | |
1545 | 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) | |
1546 | 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) | |
1547 | end | |
1548 | CreateSound("541909763", targettorso, 5, .8) | |
1549 | weldHead01:Destroy() | |
1550 | Head01.CanCollide = true | |
1551 | local bodyVelocity2 = Create("BodyVelocity")({ | |
1552 | velocity = Vector3.new(0, 10, 0) + root.CFrame.lookVector * 50, | |
1553 | P = 5000, | |
1554 | maxForce = Vector3.new(8000, 8000, 8000), | |
1555 | Parent = Head01 | |
1556 | }) | |
1557 | game:GetService("Debris"):AddItem(bodyVelocity2, 0.05) | |
1558 | for i = 0,6.2,0.1 do | |
1559 | swait() | |
1560 | 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) | |
1561 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.3) | |
1562 | 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) | |
1563 | 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) | |
1564 | 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) | |
1565 | 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) | |
1566 | end | |
1567 | targettorso.Anchored = false | |
1568 | attack = false | |
1569 | hum.WalkSpeed = 8 | |
1570 | root.CFrame = targettorso.CFrame * CF(0,0,3.4) | |
1571 | end | |
1572 | end | |
1573 | function Laugh() | |
1574 | attack = true | |
1575 | hum.WalkSpeed = 0 | |
1576 | CreateSound("300208779", hed, 10, 1) | |
1577 | for i = 0,9,0.1 do | |
1578 | swait() | |
1579 | 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) | |
1580 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-30 - 2.5 * Sin(sine / 2)), Rad(0), Rad(0)), 0.3) | |
1581 | if Mrandom(1,15) == 1 then | |
1582 | 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) | |
1583 | end | |
1584 | 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) | |
1585 | 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) | |
1586 | 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) | |
1587 | 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) | |
1588 | end | |
1589 | attack = false | |
1590 | hum.WalkSpeed = 10 | |
1591 | end | |
1592 | function Flying_Kick() | |
1593 | attack = true | |
1594 | hum.WalkSpeed = 0 | |
1595 | for i = 0,2.7,0.1 do | |
1596 | swait() | |
1597 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -.7 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15) | |
1598 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20), Rad(0), Rad(0)), 0.3) | |
1599 | RH.C0 = clerp(RH.C0, CF(1, -0.3 - 0.1 * Cos(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15) | |
1600 | 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(30)), 0.15) | |
1601 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(15)), 0.1) | |
1602 | 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(-15)), 0.1) | |
1603 | end | |
1604 | local bodyVelocity = Create("BodyVelocity")({ | |
1605 | velocity = Vector3.new(0, 0, 0) + root.CFrame.lookVector * 250, | |
1606 | P = 5000, | |
1607 | maxForce = Vector3.new(9e99, 9e99, 9e99), | |
1608 | Parent = root | |
1609 | }) | |
1610 | game:GetService("Debris"):AddItem(bodyVelocity, 0.05) | |
1611 | CreateSound("138097048", rl, 3, 1) | |
1612 | for i = 0,2.1,0.1 do | |
1613 | swait() | |
1614 | HitboxFunction(rl.CFrame, 0.01, 1, 1, 1, 7, 6, 8, 3, "Knockdown") | |
1615 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, .6 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(20), Rad(90)), 0.15) | |
1616 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-90)), 0.3) | |
1617 | RH.C0 = clerp(RH.C0, CF(.4, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-125), Rad(0), Rad(0)), 0.15) | |
1618 | LH.C0 = clerp(LH.C0, CF(-1.3, -1.3 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(35), Rad(0), Rad(0)), 0.15) | |
1619 | 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) | |
1620 | LW.C0 = clerp(LW.C0, CF(-1.9, 0.8 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-215)), 0.1) | |
1621 | end | |
1622 | attack = false | |
1623 | hum.WalkSpeed = 8 | |
1624 | end | |
1625 | function UpperCut() | |
1626 | attack = true | |
1627 | hum.WalkSpeed = 0 | |
1628 | for i = 0,2.3,0.1 do | |
1629 | swait() | |
1630 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -.7 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15) | |
1631 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3) | |
1632 | RH.C0 = clerp(RH.C0, CF(1, -0.3 - 0.1 * Cos(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15) | |
1633 | 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(30)), 0.15) | |
1634 | RW.C0 = clerp(RW.C0, CF(.8, 0.5 + 0.05 * Sin(sine / 30), -.8 + 0.025 * Cos(sine / 20)) * angles(Rad(165), Rad(0), Rad(0)), 0.1) | |
1635 | LW.C0 = clerp(LW.C0, CF(-1, 0.5 + 0.05 * Sin(sine / 30), -1 + 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(75)), 0.1) | |
1636 | end | |
1637 | CreateSound("138097048", ra, 3, .8) | |
1638 | HitboxFunction(ra.CFrame, 0.01, 1, 1, 1, 7, 6, 8, 3, "Knockdown") | |
1639 | for i = 0,2.8,0.1 do | |
1640 | swait() | |
1641 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-35), Rad(0), Rad(10)), 0.15) | |
1642 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20), Rad(0), Rad(0)), 0.3) | |
1643 | RH.C0 = clerp(RH.C0, CF(1, -1.2 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(-55)), 0.15) | |
1644 | LH.C0 = clerp(LH.C0, CF(-1, -1.2 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(35)), 0.15) | |
1645 | RW.C0 = clerp(RW.C0, CF(1.3, .8 + 0.05 * Sin(sine / 30), -.6 + 0.025 * Cos(sine / 20)) * angles(Rad(125), Rad(0), Rad(0)), 0.1) | |
1646 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-40), Rad(0), Rad(-10)), 0.1) | |
1647 | end | |
1648 | attack = false | |
1649 | hum.WalkSpeed = 8 | |
1650 | end | |
1651 | function Spinning_Kick() | |
1652 | attack = true | |
1653 | hum.WalkSpeed = 3.01 | |
1654 | for i = 0, 1.2, 0.1 do | |
1655 | swait() | |
1656 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-25), math.rad(10), math.rad(-65)), 0.3) | |
1657 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1) | |
1658 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.1) | |
1659 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3) | |
1660 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-25)), 0.3) | |
1661 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(-20)), 0.3) | |
1662 | end | |
1663 | for i = 0, 4.6, 0.1 do | |
1664 | swait() | |
1665 | CreateSound("138097048", rl, 3, 1) | |
1666 | HitboxFunction(ll.CFrame, 0.01, 1, 1, 1, 7, 5, 10, 3, "Normal") | |
1667 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(65 + 255.45 * i)), 0.3) | |
1668 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1) | |
1669 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-54), math.rad(0), math.rad(47)), 0.1) | |
1670 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-34), math.rad(0), math.rad(-47)), 0.3) | |
1671 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(95)), 0.3) | |
1672 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-4.5), math.rad(-30), math.rad(30)), 0.3) | |
1673 | end | |
1674 | attack = false | |
1675 | hum.WalkSpeed = 8 | |
1676 | end | |
1677 | function Beam_Of_Light() | |
1678 | ||
1679 | end | |
1680 | function Blast_Of_God() | |
1681 | attack = true | |
1682 | hum.WalkSpeed = 3.01 | |
1683 | for i = 0,6.3,0.1 do | |
1684 | swait() | |
1685 | Effects.Sphere.Create(BrickC("New Yeller"), ra.CFrame * CF(0, -1, 0), 2, 2, 2, 3, 3, 3, 0.05) | |
1686 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 1.2 + 0.3 * Cos(sine / 20)) * angles(Rad(5), Rad(0), Rad(90)), 0.15) | |
1687 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-4.5 * Sin(sine / 30)), Rad(0), Rad(-90)), 0.3) | |
1688 | RH.C0 = clerp(RH.C0, CF(1, -0.4 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5 + 3 * Sin(sine / 20)), Rad(0), Rad(-20 + 2.5 * Sin(sine / 20))), 0.15) | |
1689 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5 + 3 * Sin(sine / 20)), Rad(0), Rad(0 + 2.5 * Sin(sine / 20))), 0.15) | |
1690 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-3 * Sin(sine / 20)), Rad(-10 * Sin(sine / 20)), Rad(90 - 2.5 * Sin(sine / 20))), 0.1) | |
1691 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(4 * Sin(sine / 20)), Rad(10 * Sin(sine / 20)), Rad(-13 + 2.5 * Sin(sine / 20))), 0.1) | |
1692 | end | |
1693 | Effects.Block.Create(BrickC("New Yeller"), ra.CFrame * CF(0, -1, 0), 2, 2, 2, 11, 11, 11, 0.05) | |
1694 | Effects.Block.Create(BrickC("New Yeller"), ra.CFrame * CF(0, -1, 0), 2, 2, 2, 11, 11, 11, 0.03) | |
1695 | Effects.Block.Create(BrickC("New Yeller"), ra.CFrame * CF(0, -1, 0), 2, 2, 2, 11, 11, 11, 0.05) | |
1696 | Effects.Block.Create(BrickC("New Yeller"), ra.CFrame * CF(0, -1, 0), 2, 2, 2, 11, 11, 11, 0.05) | |
1697 | Effects.Block.Create(BrickC("New Yeller"), ra.CFrame * CF(0, -1, 0), 2, 2, 2, 10.5, 10.5, 10.5, 0.05) | |
1698 | Effects.Ring.Create(BrickC("New Yeller"), ra.CFrame * angles(Rad(90),0,0) * CF(0, -1, 0), 2, 2, 2, 7.6, 7.6, 7.6, 0.03) | |
1699 | CreateSound("142070127", tors, 10, 1) | |
1700 | MagniDamage(ra, 12, 40, 60, 10, "Normal") | |
1701 | for i = 0,2.6,0.1 do | |
1702 | swait() | |
1703 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 1.2 + 0.3 * Cos(sine / 20)) * angles(Rad(-25), Rad(0), Rad(90)), 0.15) | |
1704 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-4.5 * Sin(sine / 30)), Rad(0), Rad(-90)), 0.3) | |
1705 | RH.C0 = clerp(RH.C0, CF(1, -0.4 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-16 + 3 * Sin(sine / 20)), Rad(0), Rad(20 + 2.5 * Sin(sine / 20))), 0.15) | |
1706 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-25 + 3 * Sin(sine / 20)), Rad(0), Rad(0 + 2.5 * Sin(sine / 20))), 0.15) | |
1707 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-3 * Sin(sine / 20)), Rad(-10 * Sin(sine / 20)), Rad(195 - 2.5 * Sin(sine / 20))), 0.1) | |
1708 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(4 * Sin(sine / 20)), Rad(10 * Sin(sine / 20)), Rad(-35 + 2.5 * Sin(sine / 20))), 0.1) | |
1709 | end | |
1710 | attack = false | |
1711 | hum.WalkSpeed = 8 | |
1712 | end | |
1713 | function Diablo_Explosion() | |
1714 | attack = true | |
1715 | hum.WalkSpeed = 3.01 | |
1716 | for i = 0,6.3,0.1 do | |
1717 | swait() | |
1718 | Effects.Block.Create(BrickC("Really red"), ra.CFrame * CF(0, -1, 0), 2, 2, 2, 3, 3, 3, 0.05) | |
1719 | Effects.Block.Create(BrickC("Really red"), la.CFrame * CF(0, -1, 0), 2, 2, 2, 3, 3, 3, 0.05) | |
1720 | 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) | |
1721 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
1722 | 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) | |
1723 | 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) | |
1724 | 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) | |
1725 | 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) | |
1726 | end | |
1727 | Effects.Sphere.Create(BrickC("Really red"), root.CFrame * CF(0, 1, -4), 2, 2, 2, 14, 14, 14, 0.05) | |
1728 | Effects.Sphere.Create(BrickC("Really red"), root.CFrame * CF(0, 1, -4), 2, 2, 2, 11, 11, 11, 0.03) | |
1729 | Effects.Sphere.Create(BrickC("Really red"), root.CFrame * CF(0, 1, -4), 2, 2, 2, 8, 8, 8, 0.05) | |
1730 | Effects.Sphere.Create(BrickC("Really red"), root.CFrame * CF(0, 1, -4), 2, 2, 2, 6, 6, 6, 0.05) | |
1731 | Effects.Sphere.Create(BrickC("Really red"), root.CFrame * CF(0, 1, -4), 2, 2, 2, 10.5, 10.5, 10.5, 0.05) | |
1732 | Effects.Ring.Create(BrickC("Really red"), root.CFrame * CF(0, 0, -4), 2, 2, 2, 3.6, 3.6, 3.6, 0.03) | |
1733 | CreateSound("142070127", tors, 10, 1) | |
1734 | MagniDamage(tors, 12, 34, 54, 10, "DarkUp") | |
1735 | for i = 0,4.6,0.1 do | |
1736 | 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) | |
1737 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
1738 | 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) | |
1739 | 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) | |
1740 | 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) | |
1741 | 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) | |
1742 | end | |
1743 | wait(.6) | |
1744 | attack = false | |
1745 | hum.WalkSpeed = 8 | |
1746 | end | |
1747 | function Hell_From_Above() | |
1748 | local UhhhhThing = New("Part",EffectModel,"ref",{Transparency = 1,Size = Vector3.new(.2,.2,.2),CFrame = tors.CFrame,Anchored = true,CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
1749 | attack = true | |
1750 | hum.WalkSpeed = 3.01 | |
1751 | for i = 0,6.3,0.1 do | |
1752 | swait() | |
1753 | Effects.Block.Create(BrickC("Really red"), ra.CFrame * CF(0, -1, 0), 2, 2, 2, 3, 3, 3, 0.05) | |
1754 | 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) | |
1755 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
1756 | 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) | |
1757 | 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) | |
1758 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(180), Rad(-10 * Cos(sine / 20)), Rad(15 - 2.5 * Sin(sine / 20))), 0.1) | |
1759 | 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(-15 + 2.5 * Sin(sine / 20))), 0.1) | |
1760 | end | |
1761 | CreateSound("142070127", tors, 10, 1) | |
1762 | Effects.Sphere.Create(BrickC("Really red"), ra.CFrame * CF(0, -1, 0), 2, 2, 2, 6, 6, 6, 0.05) | |
1763 | Effects.Sphere.Create(BrickC("Really red"), ra.CFrame * CF(0, -1, 0), 2, 2, 2, 6, 6, 6, 0.05) | |
1764 | Effects.Sphere.Create(BrickC("Really red"), ra.CFrame * CF(0, -1, 0), 2, 2, 2, 6, 6, 6, 0.05) | |
1765 | Effects.Sphere.Create(BrickC("Really red"), ra.CFrame * CF(0, -1, 0), 2, 2, 2, 6, 6, 6, 0.05) | |
1766 | for i = 0,3.8,0.1 do | |
1767 | swait() | |
1768 | 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) | |
1769 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
1770 | 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) | |
1771 | 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) | |
1772 | RW.C0 = clerp(RW.C0, CF(1.5, .2 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(180), Rad(-10 * Cos(sine / 20)), Rad(15 - 2.5 * Sin(sine / 20))), 0.1) | |
1773 | 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(-15 + 2.5 * Sin(sine / 20))), 0.1) | |
1774 | end | |
1775 | CreateSound("224339201", tors, 10, 0.5) | |
1776 | for i = 1, 3 do | |
1777 | MagniDamage(UhhhhThing, 12, 34, 54, 10, "DarkUp") | |
1778 | UhhhhThing.CFrame = mouse.Hit | |
1779 | Effects.Cylinder.Create(BrickColor.new("Really red"), UhhhhThing.CFrame, .5, 9999, .5, 10, 0, 10, 0.05) | |
1780 | Effects.Block.Create(BrickColor.new("Really red"), UhhhhThing.CFrame, 1, 1, 1, 10, 10, 10, 0.05) | |
1781 | end | |
1782 | UhhhhThing:Destroy() | |
1783 | attack = false | |
1784 | hum.WalkSpeed = 8 | |
1785 | end | |
1786 | function Spinning_Below() | |
1787 | attack = true | |
1788 | hum.WalkSpeed = 3.01 | |
1789 | CreateSound("649634100", tors, 10, 0.5) | |
1790 | for i = 0,6.3,0.1 do | |
1791 | swait() | |
1792 | Effects.Block.Create(BrickC("Really red"), ra.CFrame * CF(0, -1, 0), 2, 2, 2, 3, 3, 3, 0.05) | |
1793 | Effects.Block.Create(BrickC("Really red"), la.CFrame * CF(0, -1, 0), 2, 2, 2, 3, 3, 3, 0.05) | |
1794 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 1.3 + 0.6 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0 + 255.45 * i)), 0.15) | |
1795 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
1796 | 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) | |
1797 | 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) | |
1798 | 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) | |
1799 | 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) | |
1800 | end | |
1801 | attack = false | |
1802 | hum.WalkSpeed = 8 | |
1803 | end | |
1804 | function Purity_Slam() | |
1805 | attack = true | |
1806 | for i = 0,5.2,0.1 do | |
1807 | swait() | |
1808 | 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) | |
1809 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
1810 | 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) | |
1811 | 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) | |
1812 | 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) | |
1813 | 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) | |
1814 | end | |
1815 | CreateSound("331666100", tors, 10, 1) | |
1816 | Effects.Ring.Create(BrickC("Toothpaste"), root.CFrame * CF(0, -2.7, 0) * angles(Rad(90),Rad(0),Rad(0)), 2, 2, 2, 3.6, 3.6, 3.6, 0.03) | |
1817 | Effects.Ring.Create(BrickC("Toothpaste"), root.CFrame * CF(0, -2.3, 0) * angles(Rad(90),Rad(0),Rad(0)), 2, 2, 2, 5.6, 5.6, 5.6, 0.03) | |
1818 | Effects.Ring.Create(BrickC("Toothpaste"), 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) | |
1819 | Effects.Ring.Create(BrickC("Toothpaste"), root.CFrame * CF(0, -1.3, 0) * angles(Rad(90),Rad(0),Rad(0)), 2, 2, 2, 10.6, 10, 10, 0.03) | |
1820 | MagniDamage(tors, 12, 40, 60, 10, "Normal") | |
1821 | coroutine.resume(coroutine.create(function() | |
1822 | for i = 0,1.8,0.1 do | |
1823 | swait() | |
1824 | hum.CameraOffset = Vector3.new(Mrandom(-3,3),Mrandom(-3,3),Mrandom(-3,3)) | |
1825 | end | |
1826 | for i = 0,1.8,0.1 do | |
1827 | swait() | |
1828 | hum.CameraOffset = Vector3.new(0,0,0) | |
1829 | end | |
1830 | end)) | |
1831 | for i = 1,4.7,0.1 do | |
1832 | 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) | |
1833 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.3) | |
1834 | 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) | |
1835 | 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) | |
1836 | 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) | |
1837 | 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) | |
1838 | end | |
1839 | wait(.6) | |
1840 | attack = false | |
1841 | end | |
1842 | function Painful_Stomp() | |
1843 | attack = true | |
1844 | for i = 0,5.2,0.1 do | |
1845 | swait() | |
1846 | 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) | |
1847 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
1848 | 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) | |
1849 | 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) | |
1850 | 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) | |
1851 | 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) | |
1852 | end | |
1853 | CreateSound("331666100", char, 10, 1) | |
1854 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
1855 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
1856 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
1857 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
1858 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 35.6, 10.6, 0.05) | |
1859 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -3, 0), 2, 2, 2, 150.6, .4, 150.6, 0.05) | |
1860 | 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) | |
1861 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 52.5)) do | |
1862 | if v:FindFirstChild("Head") then | |
1863 | Eviscerate(v) | |
1864 | end | |
1865 | end | |
1866 | coroutine.resume(coroutine.create(function() | |
1867 | for i = 0,2.8,0.1 do | |
1868 | swait() | |
1869 | hum.CameraOffset = Vector3.new(Mrandom(-3,3),Mrandom(-3,3),Mrandom(-3,3)) | |
1870 | end | |
1871 | for i = 0,1.8,0.1 do | |
1872 | swait() | |
1873 | hum.CameraOffset = Vector3.new(0,0,0) | |
1874 | end | |
1875 | end)) | |
1876 | for i = 0,3.7,0.1 do | |
1877 | 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) | |
1878 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
1879 | 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) | |
1880 | 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) | |
1881 | 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) | |
1882 | 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) | |
1883 | end | |
1884 | wait(.6) | |
1885 | attack = false | |
1886 | end | |
1887 | function Ending() | |
1888 | local target = nil | |
1889 | local targettorso = nil | |
1890 | if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then | |
1891 | if mouse.Target.Parent.Humanoid.PlatformStand == false then | |
1892 | targetT = mouse.Target.Parent | |
1893 | target = mouse.Target.Parent.Humanoid | |
1894 | targettorso = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso") | |
1895 | targethead = mouse.Target.Parent:FindFirstChild("Head") | |
1896 | end | |
1897 | end | |
1898 | if target ~= nil then | |
1899 | targettorso.Anchored = true | |
1900 | attack = true | |
1901 | hum.WalkSpeed = 0 | |
1902 | local originalpos = root.CFrame | |
1903 | root.CFrame = targettorso.CFrame * CF(0,0,2.6) | |
1904 | for i = 0,1.8,0.1 do | |
1905 | swait() | |
1906 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-65)), 0.15) | |
1907 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(65)), 0.3) | |
1908 | 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) | |
1909 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.2 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-8), Rad(0), Rad(10)), 0.15) | |
1910 | 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(35)), 0.1) | |
1911 | 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) | |
1912 | end | |
1913 | Eviscerate(targetT) | |
1914 | CreateSound("331666100", ra, 4, 1) | |
1915 | CreateSound("180083286", targettorso, 10, 1) | |
1916 | coroutine.resume(coroutine.create(function() | |
1917 | for i = 0,1.8,0.1 do | |
1918 | swait() | |
1919 | hum.CameraOffset = Vector3.new(Mrandom(-3,3),Mrandom(-3,3),Mrandom(-3,3)) | |
1920 | end | |
1921 | for i = 0,1.8,0.1 do | |
1922 | swait() | |
1923 | hum.CameraOffset = Vector3.new(0,0,0) | |
1924 | end | |
1925 | end)) | |
1926 | for i = 0,4.6,0.1 do | |
1927 | 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) | |
1928 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-90)), 0.3) | |
1929 | 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) | |
1930 | 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) | |
1931 | 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) | |
1932 | 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) | |
1933 | end | |
1934 | wait(.6) | |
1935 | root.CFrame = originalpos | |
1936 | attack = false | |
1937 | hum.WalkSpeed = 8 | |
1938 | end | |
1939 | end | |
1940 | ||
1941 | --[[I don't take ANY credit for this attack, | |
1942 | this was all nooby's hard work and the only reason i uhhh "used" it | |
1943 | is cause I i didn't have attack ideas at the time so yeah, | |
1944 | 100% nooby's credit <3]] | |
1945 | function Ende_der_Weld() | |
1946 | attack = true | |
1947 | hum.WalkSpeed = 0 | |
1948 | for i = 0,4.6,0.1 do | |
1949 | swait() | |
1950 | 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) | |
1951 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-90)), 0.3) | |
1952 | 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) | |
1953 | 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) | |
1954 | 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) | |
1955 | 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) | |
1956 | end | |
1957 | local a = Instance.new("Part",char) | |
1958 | a.BrickColor = BrickColor.random() | |
1959 | a.Name = "Lazer" | |
1960 | a.Anchored = true | |
1961 | a.Material = "Neon" | |
1962 | a.Transparency = 1 | |
1963 | a.CanCollide = false | |
1964 | local hitbox = Instance.new("Part",char) | |
1965 | hitbox.Size = Vector3.new(5,5,5) | |
1966 | hitbox.CFrame = mouse.hit | |
1967 | hitbox.Anchored = true | |
1968 | hitbox.Transparency = 1 | |
1969 | hitbox.CanCollide = false | |
1970 | local ray = Ray.new( | |
1971 | ra.CFrame.p, -- origin | |
1972 | (mouse.Hit.p - ra.CFrame.p).unit * 500 -- direction | |
1973 | ) | |
1974 | local ignore = char | |
1975 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
1976 | if hit then | |
1977 | local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid") | |
1978 | ||
1979 | if not humanoid then | |
1980 | humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid") | |
1981 | end | |
1982 | if humanoid then | |
1983 | if humanoid.Parent:IsA"Model" then | |
1984 | end | |
1985 | end | |
1986 | end | |
1987 | a.BottomSurface = 10 | |
1988 | a.TopSurface = 10 | |
1989 | local distance = (ra.CFrame.p - position).magnitude | |
1990 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
1991 | a.CFrame = CFrame.new(ra.CFrame.p, position) * CFrame.new(0, 0, 0) | |
1992 | game:GetService("Debris"):AddItem(a, 5) | |
1993 | game:GetService("Debris"):AddItem(hitbox, 1) | |
1994 | local newmesh = Instance.new("BlockMesh",a) | |
1995 | MagicBlock(BrickColor.Random(),ra.CFrame,5,5,5,0.25,0.25,0.25,0.025) | |
1996 | MagicShockAlt(BrickColor.Random(),a.CFrame,5,5,1.5,1.5,0.015,1) | |
1997 | MagicShockAlt(BrickColor.Random(),a.CFrame,5,5,1.25,1.25,0.015,2) | |
1998 | MagicShockAlt(BrickColor.Random(),a.CFrame,5,5,1,1,0.015,1) | |
1999 | local lbs = Instance.new("Part") | |
2000 | lbs.Parent = char | |
2001 | CreateSound("929619479", lbs, 10, 1) | |
2002 | lbs.Material = "Neon" | |
2003 | lbs.Color = BrickColor.Random().Color | |
2004 | lbs.CanCollide = false | |
2005 | lbs.Shape = "Ball" | |
2006 | lbs.Anchored = true | |
2007 | lbs.Transparency = 0 | |
2008 | lbs.Size = Vector3.new(20,20,20) | |
2009 | lbs.CFrame = a.CFrame | |
2010 | local thing = Instance.new("SpecialMesh",lbs) | |
2011 | thing.MeshType = "Sphere" | |
2012 | lbs.Anchored = false | |
2013 | local bvs = Instance.new("BodyVelocity") | |
2014 | bvs.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2015 | bvs.velocity = a.CFrame.lookVector*75 | |
2016 | bvs.Parent = lbs | |
2017 | lbs.Touched:connect(function(hit) | |
2018 | MagniDamage(hit, 12, 40, 60, 10, "Normal") | |
2019 | end) | |
2020 | attack = false | |
2021 | game:GetService("Debris"):AddItem(lbs, 10) | |
2022 | for x = 0, 4 do | |
2023 | local bulletgos = IT("Model",char) | |
2024 | local bulletgos2 = IT("Model",char) | |
2025 | for z = 0, 24 do | |
2026 | local lb = Instance.new("Part") | |
2027 | lb.Parent = bulletgos | |
2028 | lb.Material = "Neon" | |
2029 | lb.Color = BrickColor.Random().Color | |
2030 | lb.CanCollide = false | |
2031 | lb.Anchored = true | |
2032 | lb.Transparency = 0 | |
2033 | lb.Size = Vector3.new(2,2,2) | |
2034 | local thing = Instance.new("SpecialMesh",lb) | |
2035 | thing.MeshType = "Sphere" | |
2036 | thing.Scale = Vector3.new(0.5,0.5,1.5) | |
2037 | lb.CFrame = lbs.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
2038 | lb.CFrame = lb.CFrame + lb.CFrame.lookVector*15 | |
2039 | local lb2 = Instance.new("Part") | |
2040 | lb2.Parent = bulletgos2 | |
2041 | lb2.Material = "Neon" | |
2042 | lb2.Color = lb.Color | |
2043 | lb2.CanCollide = false | |
2044 | lb2.Anchored = true | |
2045 | lb2.Transparency = 0 | |
2046 | lb2.Size = Vector3.new(2,2,2) | |
2047 | lb2.CFrame = lbs.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
2048 | lb2.CFrame = lb2.CFrame + lb.CFrame.lookVector*15 | |
2049 | local thing2 = Instance.new("SpecialMesh",lb2) | |
2050 | thing2.MeshType = "Sphere" | |
2051 | thing2.Scale = Vector3.new(0.5,0.5,1.5) | |
2052 | lb.Touched:connect(function(hit) | |
2053 | MagniDamage(hit, 12, 40, 60, 10, "Normal") | |
2054 | end) | |
2055 | lb2.Touched:connect(function(hit) | |
2056 | MagniDamage(hit, 12, 40, 60, 10, "Normal") | |
2057 | end) | |
2058 | end | |
2059 | MagicBlock(BrickColor.Random(),lbs.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025) | |
2060 | MagicBlock(BrickColor.Random(),lbs.CFrame,25,25,25,-0.1,-0.1,-0.1,0.025) | |
2061 | MagicBlock(BrickColor.Random(),lbs.CFrame,25,25,25,0.5,0.5,0.5,0.025) | |
2062 | MagicBlock(BrickColor.Random(),lbs.CFrame,25,25,25,0.5,0.5,0.5,0.025) | |
2063 | CreateSound("925629856", lbs, 5, 1) | |
2064 | game:GetService("Debris"):AddItem(bulletgos, 7) | |
2065 | game:GetService("Debris"):AddItem(bulletgos2, 7) | |
2066 | for i,v in pairs(bulletgos:children()) do | |
2067 | if v:IsA("Part") then | |
2068 | v.Anchored = false | |
2069 | MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025) | |
2070 | local bv = Instance.new("BodyVelocity") | |
2071 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2072 | bv.velocity = v.CFrame.lookVector*25 | |
2073 | bv.Parent = v | |
2074 | game:GetService("Debris"):AddItem(v, 5) | |
2075 | end | |
2076 | end | |
2077 | for i,v in pairs(bulletgos2:children()) do | |
2078 | if v:IsA("Part") then | |
2079 | v.Anchored = false | |
2080 | MagicBlock(v.BrickColor,v.CFrame,1,1,1,0.25,0.25,0.25,0.025) | |
2081 | local bv = Instance.new("BodyVelocity") | |
2082 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2083 | bv.velocity = v.CFrame.lookVector*-25 | |
2084 | bv.Parent = v | |
2085 | game:GetService("Debris"):AddItem(v, 5) | |
2086 | end | |
2087 | end | |
2088 | wait(1) | |
2089 | end | |
2090 | attack = false | |
2091 | hum.WalkSpeed = 8 | |
2092 | end | |
2093 | ------------------------------------------------------- | |
2094 | --End Attacks N Stuff-- | |
2095 | ------------------------------------------------------- | |
2096 | mouse.KeyDown:connect(function(key) | |
2097 | if string.byte(key) == 48 then | |
2098 | Swing = 2 | |
2099 | hum.WalkSpeed = 38.82 | |
2100 | end | |
2101 | end) | |
2102 | mouse.KeyUp:connect(function(key) | |
2103 | if string.byte(key) == 48 then | |
2104 | Swing = 1 | |
2105 | hum.WalkSpeed = 8 | |
2106 | end | |
2107 | end) | |
2108 | mouse.KeyDown:connect(function(key) | |
2109 | if attack == false then | |
2110 | if key == 'q' and EdgyMode == false and Divinity == false and Fighter == false and Purity == false and Destruction == false and helpme == false and Planetary == false then | |
2111 | EdgyMode = true | |
2112 | tecks2.Text = "Edgy" | |
2113 | tecks2.TextColor3 = Color3.new(0, 0, 0) | |
2114 | tecks2.TextStrokeColor3 = Color3.fromRGB(98, 37, 209) | |
2115 | for i, v in pairs(ArmourParts) do | |
2116 | v.BrickColor = BrickColor.new("Black") | |
2117 | end | |
2118 | for i, v in pairs(ArmourParts2) do | |
2119 | v.BrickColor = BrickColor.new("Really black") | |
2120 | end | |
2121 | for i, v in pairs(NeonParts) do | |
2122 | v.BrickColor = BrickColor.new("Royal purple") | |
2123 | end | |
2124 | maincolor = BrickColor.new("Royal purple") | |
2125 | Music.SoundId = "rbxassetid://1470848774" | |
2126 | Music.Parent = tors | |
2127 | Music:Play() | |
2128 | elseif key == 'q' and EdgyMode == true and Divinity == false and Fighter == false and Purity == false and Destruction == false and helpme == false and Planetary == false then | |
2129 | EdgyMode = false | |
2130 | tecks2.Text = "Neutral" | |
2131 | tecks2.TextColor3 = Color3.new(0, 0, 0) | |
2132 | tecks2.TextStrokeColor3 = Color3.fromRGB(0, 0, 0) | |
2133 | resetmode() | |
2134 | Music.SoundId = "rbxassetid://1117396305" | |
2135 | Music.Parent = tors | |
2136 | Music:Play() | |
2137 | elseif key == 'e' and EdgyMode == false and Divinity == false and Fighter == false and Purity == false and Destruction == false and helpme == false and Planetary == false then | |
2138 | Divinity = true | |
2139 | tecks2.Text = "Divinity" | |
2140 | tecks2.TextColor3 = Color3.new(1, 1, 1) | |
2141 | tecks2.TextStrokeColor3 = Color3.fromRGB(255, 255, 0) | |
2142 | for i, v in pairs(ArmourParts) do | |
2143 | v.BrickColor = BrickColor.new("Institutional white") | |
2144 | end | |
2145 | for i, v in pairs(ArmourParts2) do | |
2146 | v.BrickColor = BrickColor.new("White") | |
2147 | end | |
2148 | for i, v in pairs(NeonParts) do | |
2149 | v.BrickColor = BrickColor.new("New Yeller") | |
2150 | end | |
2151 | maincolor = BrickColor.new("New Yeller") | |
2152 | Music.SoundId = "rbxassetid://595800581" | |
2153 | Music.Parent = tors | |
2154 | Music:Play() | |
2155 | elseif key == 'e' and EdgyMode == false and Divinity == true and Fighter == false and Purity == false and Destruction == false and helpme == false and Planetary == false then | |
2156 | Divinity = false | |
2157 | tecks2.Text = "Neutral" | |
2158 | tecks2.TextColor3 = Color3.new(0, 0, 0) | |
2159 | tecks2.TextStrokeColor3 = Color3.fromRGB(0, 0, 0) | |
2160 | resetmode() | |
2161 | Music.SoundId = "rbxassetid://1117396305" | |
2162 | Music.Parent = tors | |
2163 | Music:Play() | |
2164 | elseif key == 'r' and EdgyMode == false and Divinity == false and Fighter == false and Purity == false and Destruction == false and helpme == false and Planetary == false then | |
2165 | Fighter = true | |
2166 | tecks2.Text = "Fighter" | |
2167 | tecks2.TextColor3 = Color3.new(0, 0, 0) | |
2168 | tecks2.TextStrokeColor3 = Color3.fromRGB(255, 255, 255) | |
2169 | for i, v in pairs(ArmourParts) do | |
2170 | v.BrickColor = BrickColor.new("Black") | |
2171 | end | |
2172 | for i, v in pairs(ArmourParts2) do | |
2173 | v.BrickColor = BrickColor.new("Really black") | |
2174 | end | |
2175 | for i, v in pairs(NeonParts) do | |
2176 | v.BrickColor = BrickColor.new("Institutional white") | |
2177 | end | |
2178 | maincolor = BrickColor.new("Institutional white") | |
2179 | Music.SoundId = "rbxassetid://493647101" | |
2180 | Music.Parent = tors | |
2181 | Music:Play() | |
2182 | elseif key == 'r' and EdgyMode == false and Divinity == false and Fighter == true and Purity == false and Destruction == false and helpme == false and Planetary == false then | |
2183 | Fighter = false | |
2184 | tecks2.Text = "Neutral" | |
2185 | tecks2.TextColor3 = Color3.new(0, 0, 0) | |
2186 | tecks2.TextStrokeColor3 = Color3.fromRGB(0, 0, 0) | |
2187 | resetmode() | |
2188 | Music.SoundId = "rbxassetid://1117396305" | |
2189 | Music.Parent = tors | |
2190 | Music:Play() | |
2191 | elseif key == 't' and EdgyMode == false and Divinity == false and Fighter == false and Purity == false and Destruction == false and helpme == false and Planetary == false then | |
2192 | Purity = true | |
2193 | tecks2.Text = "Purity" | |
2194 | tecks2.TextColor3 = Color3.new(1, 1, 1) | |
2195 | tecks2.TextStrokeColor3 = Color3.fromRGB(0, 255, 255) | |
2196 | for i, v in pairs(ArmourParts) do | |
2197 | v.BrickColor = BrickColor.new("Institutional white") | |
2198 | end | |
2199 | for i, v in pairs(ArmourParts2) do | |
2200 | v.BrickColor = BrickColor.new("Institutional white") | |
2201 | end | |
2202 | for i, v in pairs(NeonParts) do | |
2203 | v.BrickColor = BrickColor.new("Toothpaste") | |
2204 | end | |
2205 | maincolor = BrickColor.new("Toothpaste") | |
2206 | Music.SoundId = "rbxassetid://553751015" | |
2207 | Music.Parent = tors | |
2208 | Music:Play() | |
2209 | elseif key == 't' and EdgyMode == false and Divinity == false and Fighter == false and Purity == true and Destruction == false and helpme == false and Planetary == false then | |
2210 | Purity = false | |
2211 | tecks2.Text = "Neutral" | |
2212 | tecks2.TextColor3 = Color3.new(0, 0, 0) | |
2213 | tecks2.TextStrokeColor3 = Color3.fromRGB(0, 0, 0) | |
2214 | resetmode() | |
2215 | Music.SoundId = "rbxassetid://1117396305" | |
2216 | Music.Parent = tors | |
2217 | Music:Play() | |
2218 | elseif key == 'y' and EdgyMode == false and Divinity == false and Fighter == false and Purity == false and Destruction == false and helpme == false and Planetary == false then | |
2219 | Destruction = true | |
2220 | tecks2.Text = "Destruction" | |
2221 | tecks2.TextColor3 = Color3.new(0, 0, 0) | |
2222 | tecks2.TextStrokeColor3 = Color3.fromRGB(255, 0, 0) | |
2223 | for i, v in pairs(ArmourParts) do | |
2224 | v.BrickColor = BrickColor.new("Really black") | |
2225 | end | |
2226 | for i, v in pairs(ArmourParts2) do | |
2227 | v.BrickColor = BrickColor.new("Black") | |
2228 | end | |
2229 | for i, v in pairs(NeonParts) do | |
2230 | v.BrickColor = BrickColor.new("Really red") | |
2231 | end | |
2232 | maincolor = BrickColor.new("Really red") | |
2233 | Music.SoundId = "rbxassetid://613361202" | |
2234 | Music.Parent = tors | |
2235 | Music:Play() | |
2236 | elseif key == 'y' and EdgyMode == false and Divinity == false and Fighter == false and Purity == false and Destruction == true and helpme == false and Planetary == false then | |
2237 | Destruction = false | |
2238 | tecks2.Text = "Neutral" | |
2239 | tecks2.TextColor3 = Color3.new(0, 0, 0) | |
2240 | tecks2.TextStrokeColor3 = Color3.fromRGB(0, 0, 0) | |
2241 | resetmode() | |
2242 | Music.SoundId = "rbxassetid://1117396305" | |
2243 | Music.Parent = tors | |
2244 | Music:Play() | |
2245 | elseif key == 'u' and EdgyMode == false and Divinity == false and Fighter == false and Purity == false and Destruction == false and helpme == false and Planetary == false then | |
2246 | helpme = true | |
2247 | tecks2.Text = "iNsAnItY" | |
2248 | Music.SoundId = "rbxassetid://460874877" | |
2249 | Music.Parent = tors | |
2250 | Music:Play() | |
2251 | elseif key == 'u' and EdgyMode == false and Divinity == false and Fighter == false and Purity == false and Destruction == false and helpme == true and Planetary == false then | |
2252 | helpme = false | |
2253 | tecks2.Text = "Neutral" | |
2254 | tecks2.TextColor3 = Color3.new(0, 0, 0) | |
2255 | tecks2.TextStrokeColor3 = Color3.fromRGB(0, 0, 0) | |
2256 | resetmode() | |
2257 | Music.SoundId = "rbxassetid://1117396305" | |
2258 | Music.Parent = tors | |
2259 | Music:Play() | |
2260 | elseif key == 'n' and tecks2.TextTransparency == 1 and tecks2.TextStrokeTransparency == 1 then | |
2261 | tecks2.TextTransparency = 0 | |
2262 | tecks2.TextStrokeTransparency = 0 | |
2263 | elseif key == 'n' and tecks2.TextTransparency == 0 and tecks2.TextStrokeTransparency == 0 then | |
2264 | tecks2.TextTransparency = 1 | |
2265 | tecks2.TextStrokeTransparency = 1 | |
2266 | elseif key == 'f' and EdgyMode == false and Divinity == false and Fighter == false and Purity == false and Destruction == false and helpme == false and Planetary == false then | |
2267 | Planetary = true | |
2268 | tecks2.Text = "Planetary" | |
2269 | tecks2.TextColor3 = Color3.fromRGB(61, 21, 133) | |
2270 | tecks2.TextStrokeColor3 = Color3.fromRGB(61, 21, 133) | |
2271 | for i, v in pairs(ArmourParts) do | |
2272 | v.BrickColor = BrickColor.new("Dark indigo") | |
2273 | end | |
2274 | for i, v in pairs(ArmourParts2) do | |
2275 | v.BrickColor = BrickColor.new("Dark indigo") | |
2276 | end | |
2277 | for i, v in pairs(NeonParts) do | |
2278 | v.BrickColor = BrickColor.new("Dark indigo") | |
2279 | end | |
2280 | maincolor = BrickColor.new("Dark indigo") | |
2281 | Music.SoundId = "rbxassetid://609934004" | |
2282 | Music.Parent = tors | |
2283 | Music:Play() | |
2284 | elseif key == 'f' and EdgyMode == false and Divinity == false and Fighter == false and Purity == false and Destruction == false and helpme == false and Planetary == true then | |
2285 | Planetary = false | |
2286 | tecks2.Text = "Neutral" | |
2287 | tecks2.TextColor3 = Color3.new(0, 0, 0) | |
2288 | tecks2.TextStrokeColor3 = Color3.fromRGB(0, 0, 0) | |
2289 | resetmode() | |
2290 | Music.SoundId = "rbxassetid://1117396305" | |
2291 | Music.Parent = tors | |
2292 | Music:Play() | |
2293 | end | |
2294 | end | |
2295 | end) | |
2296 | mouse.KeyDown:connect(function(key) | |
2297 | if attack == false then | |
2298 | if EdgyMode == true then | |
2299 | if key == 'r' then | |
2300 | Decapitate() | |
2301 | elseif key == 'e' then | |
2302 | Laugh() | |
2303 | end | |
2304 | end | |
2305 | if Divinity == true then | |
2306 | if key == 'r' then | |
2307 | Beam_Of_Light() | |
2308 | elseif key == 'f' then | |
2309 | Blast_Of_God() | |
2310 | end | |
2311 | end | |
2312 | if Fighter == true then | |
2313 | if key == 'e' then | |
2314 | Flying_Kick() | |
2315 | elseif key == 'f' then | |
2316 | UpperCut() | |
2317 | elseif key == 't' then | |
2318 | Spinning_Kick() | |
2319 | end | |
2320 | end | |
2321 | if Purity == true then | |
2322 | if key == 'r' then | |
2323 | Purity_Slam() | |
2324 | end | |
2325 | end | |
2326 | if Destruction == true then | |
2327 | if key == 'r' then | |
2328 | Diablo_Explosion() | |
2329 | elseif key == 'f' then | |
2330 | Hell_From_Above() | |
2331 | elseif key == 't' then | |
2332 | Spinning_Below() | |
2333 | end | |
2334 | end | |
2335 | if helpme == true then | |
2336 | if key == 'r' then | |
2337 | Painful_Stomp() | |
2338 | elseif key == 'f' then | |
2339 | Ending() | |
2340 | elseif key == 't' then | |
2341 | Ende_der_Weld() | |
2342 | end | |
2343 | end | |
2344 | end | |
2345 | end) | |
2346 | ||
2347 | ||
2348 | ||
2349 | ||
2350 | ||
2351 | ||
2352 | ------------------------------------------------------- | |
2353 | --Start Animations-- | |
2354 | ------------------------------------------------------- | |
2355 | local equipped = false | |
2356 | local idle = 0 | |
2357 | local change = 1 | |
2358 | local val = 0 | |
2359 | local toim = 0 | |
2360 | local idleanim = 0.4 | |
2361 | hum.WalkSpeed = 8 | |
2362 | hum.Animator.Parent = nil | |
2363 | while true do | |
2364 | swait() | |
2365 | Music.Parent = char | |
2366 | if helpme == true then | |
2367 | for i, v in pairs(ArmourParts) do | |
2368 | v.BrickColor = BrickColor.random() | |
2369 | end | |
2370 | for i, v in pairs(ArmourParts2) do | |
2371 | v.BrickColor = BrickColor.random() | |
2372 | end | |
2373 | for i, v in pairs(NeonParts) do | |
2374 | v.BrickColor = BrickColor.random() | |
2375 | end | |
2376 | maincolor = BrickColor.random() | |
2377 | tecks2.TextColor3 = maincolor.Color | |
2378 | tecks2.TextStrokeColor3 = maincolor.Color | |
2379 | MagicShockTrailAlt2(maincolor, root.CFrame * CF(Mrandom(-15,15),-3,Mrandom(-15,15)) * angles(Rad(90 + Mrandom(-25, 25)),Rad(0),Rad(0)),1,.5,.5,-0.01,-0.01,7,0.1,Mrandom(1,2)) | |
2380 | end | |
2381 | if Planetary == true then | |
2382 | MagicShockTrailAlt2(maincolor, root.CFrame * CF(Mrandom(-25,25),-3,Mrandom(-25,25)) * angles(Rad(90 + Mrandom(-15, 15)),Rad(0),Rad(0)),1,.5,.5,-0.01,-0.01,7,0.1,2) | |
2383 | end | |
2384 | sine = sine + change | |
2385 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
2386 | local velderp = root.Velocity.y | |
2387 | hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char) | |
2388 | if equipped == true or equipped == false then | |
2389 | if attack == false then | |
2390 | idle = idle + 1 | |
2391 | else | |
2392 | idle = 0 | |
2393 | end | |
2394 | if 1 < root.Velocity.y and hitfloor == nil then | |
2395 | Anim = "Jump" | |
2396 | change = 1 | |
2397 | if attack == false then | |
2398 | rootj.C0 = clerp(rootj.C0, RootCF * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,0),0.3) | |
2399 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(0)), 0.3) | |
2400 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(15)),0.3) | |
2401 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(-15)),0.3) | |
2402 | LH.C0=clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15) | |
2403 | RH.C0=clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3) | |
2404 | end | |
2405 | elseif -1 > root.Velocity.y and hitfloor == nil then | |
2406 | Anim = "Fall" | |
2407 | change = 1 | |
2408 | if attack == false then | |
2409 | rootj.C0 = clerp(rootj.C0, RootCF * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,0),0.3) | |
2410 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(10), Rad(0), Rad(0)), 0.3) | |
2411 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(90)),0.3) | |
2412 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(-90)),0.3) | |
2413 | LH.C0 = clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15) | |
2414 | RH.C0 = clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3) | |
2415 | end | |
2416 | elseif torvel < 1 and hitfloor ~= nil then | |
2417 | Anim = "Idle" | |
2418 | change = 1 | |
2419 | if attack == false and EdgyMode == false and Divinity == false and Fighter == false and Purity == false and Destruction == false and helpme == false and Planetary == false then | |
2420 | 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) | |
2421 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
2422 | 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(0)), 0.15) | |
2423 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15) | |
2424 | 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(5 - 2.5 * Sin(sine / 20))), 0.1) | |
2425 | 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(-5 + 2.5 * Sin(sine / 20))), 0.1) | |
2426 | elseif attack == false and EdgyMode == true and Divinity == false and Fighter == false and Purity == false and Destruction == false and helpme == false and Planetary == false then | |
2427 | 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) | |
2428 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(30 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
2429 | if Mrandom(1,15) == 1 then | |
2430 | 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) | |
2431 | end | |
2432 | 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(10)), 0.15) | |
2433 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.2 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(0), Rad(-10)), 0.15) | |
2434 | 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) | |
2435 | 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) | |
2436 | elseif attack == false and EdgyMode == false and Divinity == true and Fighter == false and Purity == false and Destruction == false and helpme == false and Planetary == false then | |
2437 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 1.2 + 0.3 * Cos(sine / 20)) * angles(Rad(5), Rad(0), Rad(10)), 0.15) | |
2438 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-4.5 * Sin(sine / 30)), Rad(0), Rad(-10)), 0.3) | |
2439 | RH.C0 = clerp(RH.C0, CF(1, -0.4 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5 + 3 * Sin(sine / 20)), Rad(0), Rad(-20 + 2.5 * Sin(sine / 20))), 0.15) | |
2440 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5 + 3 * Sin(sine / 20)), Rad(0), Rad(0 + 2.5 * Sin(sine / 20))), 0.15) | |
2441 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-3 * Sin(sine / 20)), Rad(-10 * Sin(sine / 20)), Rad(13 - 2.5 * Sin(sine / 20))), 0.1) | |
2442 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(4 * Sin(sine / 20)), Rad(10 * Sin(sine / 20)), Rad(-13 + 2.5 * Sin(sine / 20))), 0.1) | |
2443 | elseif attack == false and EdgyMode == false and Divinity == false and Fighter == true and Purity == false and Destruction == false and helpme == false and Planetary == false then | |
2444 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.4 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(85)), 0.15) | |
2445 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-7.5 * Sin(sine / 20)), Rad(0), Rad(-85)), 0.3) | |
2446 | RH.C0 = clerp(RH.C0, CF(.6, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-70), Rad(0), Rad(0)), 0.15) | |
2447 | LH.C0 = clerp(LH.C0, CF(-1, -0.7 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-16.5), Rad(0), Rad(0)), 0.15) | |
2448 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90 + 2.5 * Sin(sine / 20))), 0.1) | |
2449 | LW.C0 = clerp(LW.C0, CF(-1, 0.3 + 0.05 * Sin(sine / 20), .4 + 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(10 * Cos(sine / 20)), Rad(35 + 2.5 * Sin(sine / 20))), 0.1) | |
2450 | elseif attack == false and EdgyMode == false and Divinity == false and Fighter == false and Purity == true and Destruction == false and helpme == false and Planetary == false then | |
2451 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(10)), 0.15) | |
2452 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
2453 | 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(-10)), 0.15) | |
2454 | 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(6)), 0.15) | |
2455 | RW.C0 = clerp(RW.C0, CF(.8, 0.5 + 0.05 * Sin(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * angles(Rad(21), Rad(11), Rad(-90 - 2.5 * Sin(sine / 20))), 0.1) | |
2456 | LW.C0 = clerp(LW.C0, CF(-.8, 0.3 + 0.05 * Sin(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * angles(Rad(8), Rad(5), Rad(90 + 2.5 * Sin(sine / 20))), 0.1) | |
2457 | elseif attack == false and EdgyMode == false and Divinity == false and Fighter == false and Purity == false and Destruction == true and helpme == false and Planetary == false then | |
2458 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 1.3 + 0.6 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(25)), 0.15) | |
2459 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(20), Rad(-15)), 0.3) | |
2460 | 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) | |
2461 | 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) | |
2462 | 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(65 - 2.5 * Sin(sine / 20))), 0.1) | |
2463 | 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(-15 + 2.5 * Sin(sine / 20))), 0.1) | |
2464 | elseif attack == false and EdgyMode == false and Divinity == false and Fighter == false and Purity == false and Destruction == false and helpme == true and Planetary == false then | |
2465 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.2 + 0.1 * Cos(sine / 7)) * angles(Rad(10), Rad(0), Rad(0)), 0.15) | |
2466 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(45), Rad(0), Rad(-20)), 0.3) | |
2467 | if math.random(1,1) == 1 then | |
2468 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 7)) * angles(Rad(10 + Mrandom(-6,6)), Rad(0), Rad(Mrandom(-6,6))), 0.15) | |
2469 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(45 + Mrandom(-4,4)), Rad(Mrandom(-4,4)), Rad(-20 + Mrandom(-4,4))), 1) | |
2470 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 7), 0.025 * Cos(sine / 7)) * angles(Rad(180 + Mrandom(-35,35)), Rad(35 + Mrandom(-35,35)), Rad(-50 - 2.5 * Sin(sine / 20) + Mrandom(-35,35))), 0.1) | |
2471 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 7), 0.025 * Cos(sine / 7)) * angles(Rad(15 + Mrandom(-35,35)), Rad(Mrandom(-35,35)), Rad(-15 + 2.5 * Sin(sine / 20) + Mrandom(-35,35))), 0.1) | |
2472 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 7), -.2 + 0.025 * Cos(sine / 7)) * RHCF * angles(Rad(-5 + Mrandom(-6,6)), Rad(0), Rad(10 + Mrandom(-6,6))), 0.15) | |
2473 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 7), 0.025 * Cos(sine / 7)) * LHCF * angles(Rad(-5 + Mrandom(-6,6)), Rad(0), Rad(-10 + Mrandom(-6,6))), 0.15) | |
2474 | end | |
2475 | for i, v in pairs(ArmourParts) do | |
2476 | v.BrickColor = BrickColor.random() | |
2477 | end | |
2478 | for i, v in pairs(ArmourParts2) do | |
2479 | v.BrickColor = BrickColor.random() | |
2480 | end | |
2481 | for i, v in pairs(NeonParts) do | |
2482 | v.BrickColor = BrickColor.random() | |
2483 | end | |
2484 | maincolor = BrickColor.random() | |
2485 | tecks2.TextColor3 = maincolor.Color | |
2486 | tecks2.TextStrokeColor3 = maincolor.Color | |
2487 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 7), -.2 + 0.025 * Cos(sine / 7)) * RHCF * angles(Rad(-5), Rad(0), Rad(10)), 0.15) | |
2488 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 7), 0.025 * Cos(sine / 7)) * LHCF * angles(Rad(-5), Rad(0), Rad(-10)), 0.15) | |
2489 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(180), Rad(20), Rad(-50)), 0.1) | |
2490 | 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) | |
2491 | elseif attack == false and EdgyMode == false and Divinity == false and Fighter == false and Purity == false and Destruction == false and helpme == false and Planetary == true then | |
2492 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 2 + 0.3 * Cos(sine / 20)) * angles(Rad(5), Rad(0), Rad(10)), 0.15) | |
2493 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20 - 4.5 * Sin(sine / 30)), Rad(0), Rad(-10)), 0.3) | |
2494 | RH.C0 = clerp(RH.C0, CF(1, -0.4 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5 + 3 * Sin(sine / 20)), Rad(0), Rad(-20 + 2.5 * Sin(sine / 20))), 0.15) | |
2495 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5 + 3 * Sin(sine / 20)), Rad(0), Rad(20 + 2.5 * Sin(sine / 20))), 0.15) | |
2496 | RW.C0 = clerp(RW.C0, CF(.8, 0.5 + 0.05 * Sin(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * angles(Rad(-21), Rad(0), Rad(-90 - 2.5 * Sin(sine / 20))), 0.1) | |
2497 | LW.C0 = clerp(LW.C0, CF(-.8, 0.3 + 0.05 * Sin(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * angles(Rad(8), Rad(0), Rad(90 + 2.5 * Sin(sine / 20))), 0.1) | |
2498 | end | |
2499 | elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then | |
2500 | Anim = "Walk" | |
2501 | change = .6 | |
2502 | if attack == false and EdgyMode == false and Divinity == false and Destruction == false and helpme == false and Planetary == false then | |
2503 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(4-2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(5 * Cos(sine / 7))), 0.15) | |
2504 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
2505 | RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 - 5 * 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) | |
2506 | LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * 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) | |
2507 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 7), 0.15 * Cos(sine / 7)) * angles(Rad(45) * Cos(sine / 7) , Rad(0), Rad(5) - ra.RotVelocity.Y / 75), 0.1) | |
2508 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 7), -0.15 * Cos(sine / 7)) * angles(Rad(-45) * Cos(sine / 7) , Rad(0) , Rad(-5) + la.RotVelocity.Y / 75), 0.1) | |
2509 | elseif attack == false and EdgyMode == false and Divinity == true and Destruction == false and helpme == false and Planetary == false then | |
2510 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 1.2 + 0.3 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(0)), 0.15) | |
2511 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-5 - 4.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
2512 | RH.C0 = clerp(RH.C0, CF(1, -0.4 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5 + 3 * Sin(sine / 20)), Rad(0), Rad(-20 + 2.5 * Sin(sine / 20))), 0.15) | |
2513 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5 + 3 * Sin(sine / 20)), Rad(0), Rad(20 + 2.5 * Sin(sine / 20))), 0.15) | |
2514 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-25 - 3 * Sin(sine / 20)), Rad(-10 * Sin(sine / 20)), Rad(14 - 2.5 * Sin(sine / 20))), 0.1) | |
2515 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-25 + 4 * Sin(sine / 20)), Rad(10 * Sin(sine / 20)), Rad(-14 + 2.5 * Sin(sine / 20))), 0.1) | |
2516 | elseif attack == false and EdgyMode == false and Divinity == false and Destruction == true and helpme == false and Planetary == false then | |
2517 | 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) | |
2518 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
2519 | 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) | |
2520 | 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) | |
2521 | 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) | |
2522 | 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) | |
2523 | elseif attack == false and EdgyMode == false and Divinity == false and Destruction == false and helpme == true and Planetary == false then | |
2524 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.2 + 0.1 * Cos(sine / 7)) * angles(Rad(10), Rad(0), Rad(0)), 0.15) | |
2525 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(45), Rad(0), Rad(-20)), 0.3) | |
2526 | if math.random(1,1) == 1 then | |
2527 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 7)) * angles(Rad(10 + Mrandom(-6,6)), Rad(0), Rad(Mrandom(-6,6))), 0.15) | |
2528 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(45 + Mrandom(-4,4)), Rad(Mrandom(-4,4)), Rad(-20 + Mrandom(-4,4))), 1) | |
2529 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 7), 0.025 * Cos(sine / 7)) * angles(Rad(180 + Mrandom(-35,35)), Rad(35 + Mrandom(-35,35)), Rad(-50 - 2.5 * Sin(sine / 20) + Mrandom(-35,35))), 0.1) | |
2530 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 7), 0.025 * Cos(sine / 7)) * angles(Rad(15 + Mrandom(-35,35)), Rad(Mrandom(-35,35)), Rad(-15 + 2.5 * Sin(sine / 20) + Mrandom(-35,35))), 0.1) | |
2531 | RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 - 5 * 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) | |
2532 | LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * 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) | |
2533 | end | |
2534 | for i, v in pairs(ArmourParts) do | |
2535 | v.BrickColor = BrickColor.random() | |
2536 | end | |
2537 | for i, v in pairs(ArmourParts2) do | |
2538 | v.BrickColor = BrickColor.random() | |
2539 | end | |
2540 | for i, v in pairs(NeonParts) do | |
2541 | v.BrickColor = BrickColor.random() | |
2542 | end | |
2543 | maincolor = BrickColor.random() | |
2544 | tecks2.TextColor3 = maincolor.Color | |
2545 | tecks2.TextStrokeColor3 = maincolor.Color | |
2546 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 7), -.2 + 0.025 * Cos(sine / 7)) * RHCF * angles(Rad(-5), Rad(0), Rad(10)), 0.15) | |
2547 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 7), 0.025 * Cos(sine / 7)) * LHCF * angles(Rad(-5), Rad(0), Rad(-10)), 0.15) | |
2548 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(180), Rad(20), Rad(-50)), 0.1) | |
2549 | 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) | |
2550 | elseif attack == false and EdgyMode == true and Divinity == false and Destruction == false and helpme == false and Planetary == false then | |
2551 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(4-2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(5 * Cos(sine / 7))), 0.15) | |
2552 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(30 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
2553 | if Mrandom(1,15) == 1 then | |
2554 | 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) | |
2555 | end | |
2556 | RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 - 5 * 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) | |
2557 | LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * 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) | |
2558 | 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) | |
2559 | 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) | |
2560 | elseif attack == false and EdgyMode == false and Divinity == false and Destruction == false and helpme == false and Planetary == true then | |
2561 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 2 + 0.3 * Cos(sine / 20)) * angles(Rad(35), Rad(0), Rad(0)), 0.15) | |
2562 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 4.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
2563 | RH.C0 = clerp(RH.C0, CF(1, -0.4 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5 + 3 * Sin(sine / 20)), Rad(0), Rad(-20 + 2.5 * Sin(sine / 20))), 0.15) | |
2564 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5 + 3 * Sin(sine / 20)), Rad(0), Rad(20 + 2.5 * Sin(sine / 20))), 0.15) | |
2565 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-21), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1) | |
2566 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-21), Rad(0), Rad(-25 + 2.5 * Sin(sine / 20))), 0.1) | |
2567 | end | |
2568 | elseif torvel >= 25 and hitfloor ~= nil then | |
2569 | Anim = "Sprint" | |
2570 | change = 1.35 | |
2571 | if attack == false and Divinity == false and Destruction == false and helpme == false and Planetary == false then | |
2572 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15) | |
2573 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
2574 | RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 - 35 * 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) | |
2575 | LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 + 35 * 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) | |
2576 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.34 * Cos(sine / 7)) * angles(Rad(110) * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15) | |
2577 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -0.34 * Cos(sine / 7)) * angles(Rad(-110) * Cos(sine / 7) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15) | |
2578 | elseif attack == false and EdgyMode == false and Divinity == true and Destruction == false and helpme == false and Planetary == false then | |
2579 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 1.2 + 0.3 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15) | |
2580 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-5 - 4.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
2581 | RH.C0 = clerp(RH.C0, CF(1, -0.4 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5 + 3 * Sin(sine / 20)), Rad(0), Rad(-34 + 2.5 * Sin(sine / 20))), 0.15) | |
2582 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5 + 3 * Sin(sine / 20)), Rad(0), Rad(34 + 2.5 * Sin(sine / 20))), 0.15) | |
2583 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-55 - 3 * Sin(sine / 20)), Rad(-10 * Sin(sine / 20)), Rad(14 - 2.5 * Sin(sine / 20))), 0.1) | |
2584 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-55 + 4 * Sin(sine / 20)), Rad(10 * Sin(sine / 20)), Rad(-14 + 2.5 * Sin(sine / 20))), 0.1) | |
2585 | elseif attack == false and EdgyMode == false and Divinity == false and Destruction == true and helpme == false and Planetary == false then | |
2586 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 1.3 + 0.6 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(0)), 0.15) | |
2587 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-25 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
2588 | RH.C0 = clerp(RH.C0, CF(1, -0.5 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-14.5 + 3 * Sin(sine / 20)), Rad(0), Rad(-35 + 3 * Sin(sine / 20))), 0.15) | |
2589 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-16.5 + 3 * Sin(sine / 20)), Rad(0), Rad(35 + 3 * Sin(sine / 20))), 0.15) | |
2590 | 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) | |
2591 | 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) | |
2592 | elseif attack == false and EdgyMode == false and Divinity == false and Destruction == false and helpme == true and Planetary == false then | |
2593 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(10)), 0.15) | |
2594 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(25), Rad(0), Rad(0)), 0.3) | |
2595 | if math.random(1,1) == 1 then | |
2596 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(Mrandom(-90,90)), Rad(0), Rad(Mrandom(-90,90))), 0.15) | |
2597 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(Mrandom(-25,25)), Rad(Mrandom(-25,25)), Rad(Mrandom(-25,25))), 1) | |
2598 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(Mrandom(-90,90)), Rad(0), Rad(Mrandom(-90,90))), 0.1) | |
2599 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(Mrandom(-90,90)), Rad(0), Rad(Mrandom(-90,90))), 0.1) | |
2600 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(Mrandom(-90,90)), Rad(0), Rad(Mrandom(-90,90))), 0.15) | |
2601 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(Mrandom(-90,90)), Rad(0), Rad(Mrandom(-90,90))), 0.15) | |
2602 | end | |
2603 | for i, v in pairs(ArmourParts) do | |
2604 | v.BrickColor = BrickColor.random() | |
2605 | end | |
2606 | for i, v in pairs(ArmourParts2) do | |
2607 | v.BrickColor = BrickColor.random() | |
2608 | end | |
2609 | for i, v in pairs(NeonParts) do | |
2610 | v.BrickColor = BrickColor.random() | |
2611 | end | |
2612 | maincolor = BrickColor.random() | |
2613 | tecks2.TextColor3 = maincolor.Color | |
2614 | tecks2.TextStrokeColor3 = maincolor.Color | |
2615 | 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) | |
2616 | 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(16)), 0.15) | |
2617 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(10), Rad(10), Rad(15)), 0.1) | |
2618 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-10), Rad(0), Rad(-15)), 0.1) | |
2619 | elseif attack == false and EdgyMode == false and Divinity == false and Destruction == false and helpme == false and Planetary == true then | |
2620 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 2 + 0.3 * Cos(sine / 20)) * angles(Rad(75), Rad(0), Rad(10)), 0.15) | |
2621 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-40 - 4.5 * Sin(sine / 30)), Rad(0), Rad(-10)), 0.3) | |
2622 | RH.C0 = clerp(RH.C0, CF(1, -0.4 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5 + 3 * Sin(sine / 20)), Rad(0), Rad(-20 + 2.5 * Sin(sine / 20))), 0.15) | |
2623 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5 + 3 * Sin(sine / 20)), Rad(0), Rad(20 + 2.5 * Sin(sine / 20))), 0.15) | |
2624 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-21), Rad(0), Rad(-15 - 2.5 * Sin(sine / 20))), 0.1) | |
2625 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-21), Rad(0), Rad(-35 + 2.5 * Sin(sine / 20))), 0.1) | |
2626 | end | |
2627 | end | |
2628 | end | |
2629 | if 0 < #Effects then | |
2630 | for e = 1, #Effects do | |
2631 | if Effects[e] ~= nil then | |
2632 | local Thing = Effects[e] | |
2633 | if Thing ~= nil then | |
2634 | local Part = Thing[1] | |
2635 | local Mode = Thing[2] | |
2636 | local Delay = Thing[3] | |
2637 | local IncX = Thing[4] | |
2638 | local IncY = Thing[5] | |
2639 | local IncZ = Thing[6] | |
2640 | if 1 >= Thing[1].Transparency then | |
2641 | if Thing[2] == "Block1" then | |
2642 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
2643 | local Mesh = Thing[1].Mesh | |
2644 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2645 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2646 | elseif Thing[2] == "Block2" then | |
2647 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
2648 | local Mesh = Thing[7] | |
2649 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2650 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2651 | elseif Thing[2] == "Block3" then | |
2652 | 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) | |
2653 | local Mesh = Thing[7] | |
2654 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2655 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2656 | elseif Thing[2] == "Cylinder" then | |
2657 | local Mesh = Thing[1].Mesh | |
2658 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2659 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2660 | elseif Thing[2] == "Blood" then | |
2661 | local Mesh = Thing[7] | |
2662 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
2663 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2664 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2665 | elseif Thing[2] == "Elec" then | |
2666 | local Mesh = Thing[1].Mesh | |
2667 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
2668 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2669 | elseif Thing[2] == "Disappear" then | |
2670 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2671 | elseif Thing[2] == "Shatter" then | |
2672 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2673 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
2674 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
2675 | Thing[6] = Thing[6] + Thing[5] | |
2676 | end | |
2677 | else | |
2678 | Part.Parent = nil | |
2679 | table.remove(Effects, e) | |
2680 | end | |
2681 | end | |
2682 | end | |
2683 | end | |
2684 | end | |
2685 | end | |
2686 | ------------------------------------------------------- | |
2687 | --End Animations And Script-- | |
2688 | ------------------------------------------------------- |