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