SHOW:
|
|
- or go back to the newest paste.
1 | ----------------------- | |
2 | --[[ Name : Blight ]]-- | |
3 | -------------------------------------------------------f | |
4 | --A script By makhail07 | |
5 | --fixed by goodguyaiden-- | |
6 | --Discord Creterisk#2958 | |
7 | ||
8 | --NOTE THIS SCRIPT WAS PURELY MADE FROM MY FUCKING IMAGINATION | |
9 | --IF IT HAPPENS TO LOOK LIKE ANOTHER SCRIPT | |
10 | --DONT CALL IT A FUCKING BOOTLEG THANK YOU AND ENJOY THE SCRIPT | |
11 | --YOU FUCKING SKIDS, | |
12 | --For Those who log/decompile this, If you sell or trade this, | |
13 | --and I find out who you are, i will take massive action. | |
14 | ||
15 | ------------------------------------------------------- | |
16 | --TODO: add comments or something idk | |
17 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
18 | local Player = owner | |
19 | local Mouse,mouse,UserInputService,ContextActionService | |
20 | do | |
21 | script.Parent = Player.Character | |
22 | local CAS = {Actions={}} | |
23 | local Event = Instance.new("RemoteEvent") | |
24 | Event.Name = "UserInput_Event" | |
25 | Event.Parent = Player.Character | |
26 | local fakeEvent = function() | |
27 | local t = {_fakeEvent=true} | |
28 | t.Connect = function(self,f)self.Function=f end | |
29 | t.connect = t.Connect | |
30 | return t | |
31 | end | |
32 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
33 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
34 | function CAS:BindAction(name,fun,touch,...) | |
35 | CAS.Actions[name] = {Name=name,Function=fun,Keys={...}} | |
36 | end | |
37 | function CAS:UnbindAction(name) | |
38 | CAS.Actions[name] = nil | |
39 | end | |
40 | local function te(self,ev,...) | |
41 | local t = m[ev] | |
42 | if t and t._fakeEvent and t.Function then | |
43 | t.Function(...) | |
44 | end | |
45 | end | |
46 | m.TrigEvent = te | |
47 | UIS.TrigEvent = te | |
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 | elseif io.UserInputType == Enum.UserInputType.MouseButton1 then | |
54 | if io.UserInputState == Enum.UserInputState.Begin then | |
55 | m:TrigEvent("Button1Down") | |
56 | else | |
57 | m:TrigEvent("Button1Up") | |
58 | end | |
59 | else | |
60 | for n,t in pairs(CAS.Actions) do | |
61 | for _,k in pairs(t.Keys) do | |
62 | if k==io.KeyCode then | |
63 | t.Function(t.Name,io.UserInputState,io) | |
64 | end | |
65 | end | |
66 | end | |
67 | if io.UserInputState == Enum.UserInputState.Begin then | |
68 | m:TrigEvent("KeyDown",io.KeyCode.Name:lower()) | |
69 | UIS:TrigEvent("InputBegan",io,false) | |
70 | else | |
71 | m:TrigEvent("KeyUp",io.KeyCode.Name:lower()) | |
72 | UIS:TrigEvent("InputEnded",io,false) | |
73 | end | |
74 | end | |
75 | end) | |
76 | NLS([==[ | |
77 | local Player = game:GetService("Players").LocalPlayer | |
78 | ||
79 | local Char = Player.Character | |
80 | local Event = Char:WaitForChild("UserInput_Event") | |
81 | ||
82 | local UIS = game:GetService("UserInputService") | |
83 | ||
84 | local input = function(io,a) | |
85 | if a then return end | |
86 | local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState} | |
87 | Event:FireServer(io) | |
88 | end | |
89 | UIS.InputBegan:Connect(input) | |
90 | UIS.InputEnded:Connect(input) | |
91 | local Changed = false | |
92 | local Mouse = Player:GetMouse() | |
93 | local h,t = Mouse.Hit,Mouse.Target | |
94 | while wait(1/30) do | |
95 | if h~=Mouse.Hit or t~=Mouse.Target then | |
96 | Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit}) | |
97 | h,t=Mouse.Hit,Mouse.Target | |
98 | end | |
99 | end | |
100 | ]==],Player.Character) | |
101 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
102 | end | |
103 | ||
104 | ||
105 | ||
106 | --The reality of my life isn't real but a Universe -makhail07 | |
107 | ||
108 | wait() | |
109 | ||
110 | local plr = owner | |
111 | print('Local User is '..plr.Name) | |
112 | print('Blight Loaded') | |
113 | print('Let justice be done, though the heavens fall.') | |
114 | local char = plr.Character | |
115 | local hum = char.Humanoid | |
116 | local hed = char.Head | |
117 | local root = char.HumanoidRootPart | |
118 | local rootj = root.RootJoint | |
119 | local tors = char.Torso | |
120 | local ra = char["Right Arm"] | |
121 | local la = char["Left Arm"] | |
122 | local rl = char["Right Leg"] | |
123 | local ll = char["Left Leg"] | |
124 | local neck = tors["Neck"] | |
125 | local mouse = plr:GetMouse() | |
126 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
127 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
128 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
129 | - | local maincolor = BrickColor.new("Really black") |
129 | + | local maincolor = BrickColor.new("Lime green") |
130 | ||
131 | ------------------------------------------------------- | |
132 | --Start Good Stuff-- | |
133 | ------------------------------------------------------- | |
134 | cam = game.Workspace.CurrentCamera | |
135 | CF = CFrame.new | |
136 | angles = CFrame.Angles | |
137 | attack = false | |
138 | Euler = CFrame.fromEulerAnglesXYZ | |
139 | Rad = math.rad | |
140 | IT = Instance.new | |
141 | BrickC = BrickColor.new | |
142 | Cos = math.cos | |
143 | Acos = math.acos | |
144 | Sin = math.sin | |
145 | Asin = math.asin | |
146 | Abs = math.abs | |
147 | Mrandom = math.random | |
148 | Floor = math.floor | |
149 | ------------------------------------------------------- | |
150 | --End Good Stuff-- | |
151 | ------------------------------------------------------- | |
152 | necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
153 | RSH, LSH = nil, nil | |
154 | RW = Instance.new("Weld") | |
155 | LW = Instance.new("Weld") | |
156 | RH = tors["Right Hip"] | |
157 | LH = tors["Left Hip"] | |
158 | RSH = tors["Right Shoulder"] | |
159 | LSH = tors["Left Shoulder"] | |
160 | RSH.Parent = nil | |
161 | LSH.Parent = nil | |
162 | RW.Name = "RW" | |
163 | RW.Part0 = tors | |
164 | RW.C0 = CF(1.5, 0.5, 0) | |
165 | RW.C1 = CF(0, 0.5, 0) | |
166 | RW.Part1 = ra | |
167 | RW.Parent = tors | |
168 | LW.Name = "LW" | |
169 | LW.Part0 = tors | |
170 | LW.C0 = CF(-1.5, 0.5, 0) | |
171 | LW.C1 = CF(0, 0.5, 0) | |
172 | LW.Part1 = la | |
173 | LW.Parent = tors | |
174 | Effects = {} | |
175 | ------------------------------------------------------- | |
176 | --Start HeartBeat-- | |
177 | ------------------------------------------------------- | |
178 | ArtificialHB = Instance.new("BindableEvent", script) | |
179 | ArtificialHB.Name = "Heartbeat" | |
180 | script:WaitForChild("Heartbeat") | |
181 | ||
182 | frame = 1 / 60 | |
183 | tf = 0 | |
184 | allowframeloss = false | |
185 | tossremainder = false | |
186 | ||
187 | ||
188 | lastframe = tick() | |
189 | script.Heartbeat:Fire() | |
190 | ||
191 | ||
192 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
193 | tf = tf + s | |
194 | if tf >= frame then | |
195 | if allowframeloss then | |
196 | script.Heartbeat:Fire() | |
197 | lastframe = tick() | |
198 | else | |
199 | for i = 1, math.floor(tf / frame) do | |
200 | script.Heartbeat:Fire() | |
201 | end | |
202 | lastframe = tick() | |
203 | end | |
204 | if tossremainder then | |
205 | tf = 0 | |
206 | else | |
207 | tf = tf - frame * math.floor(tf / frame) | |
208 | end | |
209 | end | |
210 | end) | |
211 | ------------------------------------------------------- | |
212 | --End HeartBeat-- | |
213 | ------------------------------------------------------- | |
214 | ||
215 | ------------------------------------------------------- | |
216 | --Start Important Functions-- | |
217 | ------------------------------------------------------- | |
218 | function swait(num) | |
219 | if num == 0 or num == nil then | |
220 | game:service("RunService").Stepped:wait(0) | |
221 | else | |
222 | for i = 0, num do | |
223 | game:service("RunService").Stepped:wait(0) | |
224 | end | |
225 | end | |
226 | end | |
227 | function thread(f) | |
228 | coroutine.resume(coroutine.create(f)) | |
229 | end | |
230 | function clerp(a, b, t) | |
231 | local qa = { | |
232 | QuaternionFromCFrame(a) | |
233 | } | |
234 | local qb = { | |
235 | QuaternionFromCFrame(b) | |
236 | } | |
237 | local ax, ay, az = a.x, a.y, a.z | |
238 | local bx, by, bz = b.x, b.y, b.z | |
239 | local _t = 1 - t | |
240 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
241 | end | |
242 | function QuaternionFromCFrame(cf) | |
243 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
244 | local trace = m00 + m11 + m22 | |
245 | if trace > 0 then | |
246 | local s = math.sqrt(1 + trace) | |
247 | local recip = 0.5 / s | |
248 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
249 | else | |
250 | local i = 0 | |
251 | if m00 < m11 then | |
252 | i = 1 | |
253 | end | |
254 | if m22 > (i == 0 and m00 or m11) then | |
255 | i = 2 | |
256 | end | |
257 | if i == 0 then | |
258 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
259 | local recip = 0.5 / s | |
260 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
261 | elseif i == 1 then | |
262 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
263 | local recip = 0.5 / s | |
264 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
265 | elseif i == 2 then | |
266 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
267 | local recip = 0.5 / s | |
268 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
269 | end | |
270 | end | |
271 | end | |
272 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
273 | local xs, ys, zs = x + x, y + y, z + z | |
274 | local wx, wy, wz = w * xs, w * ys, w * zs | |
275 | local xx = x * xs | |
276 | local xy = x * ys | |
277 | local xz = x * zs | |
278 | local yy = y * ys | |
279 | local yz = y * zs | |
280 | local zz = z * zs | |
281 | 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)) | |
282 | end | |
283 | function QuaternionSlerp(a, b, t) | |
284 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
285 | local startInterp, finishInterp | |
286 | if cosTheta >= 1.0E-4 then | |
287 | if 1 - cosTheta > 1.0E-4 then | |
288 | local theta = math.acos(cosTheta) | |
289 | local invSinTheta = 1 / Sin(theta) | |
290 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
291 | finishInterp = Sin(t * theta) * invSinTheta | |
292 | else | |
293 | startInterp = 1 - t | |
294 | finishInterp = t | |
295 | end | |
296 | elseif 1 + cosTheta > 1.0E-4 then | |
297 | local theta = math.acos(-cosTheta) | |
298 | local invSinTheta = 1 / Sin(theta) | |
299 | startInterp = Sin((t - 1) * theta) * invSinTheta | |
300 | finishInterp = Sin(t * theta) * invSinTheta | |
301 | else | |
302 | startInterp = t - 1 | |
303 | finishInterp = t | |
304 | end | |
305 | 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 | |
306 | end | |
307 | function rayCast(Position, Direction, Range, Ignore) | |
308 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
309 | end | |
310 | local RbxUtility = LoadLibrary("RbxUtility") | |
311 | local Create = RbxUtility.Create | |
312 | ||
313 | ------------------------------------------------------- | |
314 | --Start Damage Function-- | |
315 | ------------------------------------------------------- | |
316 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
317 | if hit.Parent == nil then | |
318 | return | |
319 | end | |
320 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
321 | for _, v in pairs(hit.Parent:children()) do | |
322 | if v:IsA("Humanoid") then | |
323 | h = v | |
324 | end | |
325 | end | |
326 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then | |
327 | ||
328 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
329 | end | |
330 | ||
331 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
332 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
333 | if hit.Parent.DebounceHit.Value == true then | |
334 | return | |
335 | end | |
336 | end | |
337 | if insta == true then | |
338 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
339 | end | |
340 | local c = Create("ObjectValue"){ | |
341 | Name = "creator", | |
342 | Value = game:service("Players").LocalPlayer, | |
343 | Parent = h, | |
344 | } | |
345 | game:GetService("Debris"):AddItem(c, .5) | |
346 | if HitSound ~= nil and HitPitch ~= nil then | |
347 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
348 | end | |
349 | local Damage = math.random(minim, maxim) | |
350 | local blocked = false | |
351 | local block = hit.Parent:findFirstChild("Block") | |
352 | if block ~= nil then | |
353 | if block.className == "IntValue" then | |
354 | if block.Value > 0 then | |
355 | blocked = true | |
356 | block.Value = block.Value - 1 | |
357 | print(block.Value) | |
358 | end | |
359 | end | |
360 | end | |
361 | if blocked == false then | |
362 | h.Health = h.Health - Damage | |
363 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
364 | else | |
365 | h.Health = h.Health - (Damage / 2) | |
366 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
367 | end | |
368 | if Type == "Knockdown" then | |
369 | local hum = hit.Parent.Humanoid | |
370 | hum.PlatformStand = true | |
371 | coroutine.resume(coroutine.create(function(HHumanoid) | |
372 | swait(1) | |
373 | HHumanoid.PlatformStand = false | |
374 | end), hum) | |
375 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
376 | local bodvol = Create("BodyVelocity"){ | |
377 | velocity = angle * knockback, | |
378 | P = 5000, | |
379 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
380 | Parent = hit, | |
381 | } | |
382 | local rl = Create("BodyAngularVelocity"){ | |
383 | P = 3000, | |
384 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
385 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
386 | Parent = hit, | |
387 | } | |
388 | game:GetService("Debris"):AddItem(bodvol, .5) | |
389 | game:GetService("Debris"):AddItem(rl, .5) | |
390 | elseif Type == "Normal" then | |
391 | local vp = Create("BodyVelocity"){ | |
392 | P = 500, | |
393 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
394 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
395 | } | |
396 | if knockback > 0 then | |
397 | vp.Parent = hit.Parent.Torso | |
398 | end | |
399 | game:GetService("Debris"):AddItem(vp, .5) | |
400 | elseif Type == "Up" then | |
401 | local bodyVelocity = Create("BodyVelocity"){ | |
402 | velocity = Vector3.new(0, 20, 0), | |
403 | P = 5000, | |
404 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
405 | Parent = hit, | |
406 | } | |
407 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
408 | elseif Type == "DarkUp" then | |
409 | coroutine.resume(coroutine.create(function() | |
410 | for i = 0, 1, 0.1 do | |
411 | swait() | |
412 | - | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) |
412 | + | Effects.Block.Create(BrickColor.new("Lime green"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) |
413 | end | |
414 | end)) | |
415 | local bodyVelocity = Create("BodyVelocity"){ | |
416 | velocity = Vector3.new(0, 20, 0), | |
417 | P = 5000, | |
418 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
419 | Parent = hit, | |
420 | } | |
421 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
422 | elseif Type == "Snare" then | |
423 | local bp = Create("BodyPosition"){ | |
424 | P = 2000, | |
425 | D = 100, | |
426 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
427 | position = hit.Parent.Torso.Position, | |
428 | Parent = hit.Parent.Torso, | |
429 | } | |
430 | game:GetService("Debris"):AddItem(bp, 1) | |
431 | elseif Type == "Freeze" then | |
432 | local BodPos = Create("BodyPosition"){ | |
433 | P = 50000, | |
434 | D = 1000, | |
435 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
436 | position = hit.Parent.Torso.Position, | |
437 | Parent = hit.Parent.Torso, | |
438 | } | |
439 | local BodGy = Create("BodyGyro") { | |
440 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
441 | P = 20e+003, | |
442 | Parent = hit.Parent.Torso, | |
443 | cframe = hit.Parent.Torso.CFrame, | |
444 | } | |
445 | hit.Parent.Torso.Anchored = true | |
446 | coroutine.resume(coroutine.create(function(Part) | |
447 | swait(1.5) | |
448 | Part.Anchored = false | |
449 | end), hit.Parent.Torso) | |
450 | game:GetService("Debris"):AddItem(BodPos, 3) | |
451 | game:GetService("Debris"):AddItem(BodGy, 3) | |
452 | end | |
453 | local debounce = Create("BoolValue"){ | |
454 | Name = "DebounceHit", | |
455 | Parent = hit.Parent, | |
456 | Value = true, | |
457 | } | |
458 | game:GetService("Debris"):AddItem(debounce, Delay) | |
459 | c = Create("ObjectValue"){ | |
460 | Name = "creator", | |
461 | Value = Player, | |
462 | Parent = h, | |
463 | } | |
464 | game:GetService("Debris"):AddItem(c, .5) | |
465 | end | |
466 | end | |
467 | ------------------------------------------------------- | |
468 | --End Damage Function-- | |
469 | ------------------------------------------------------- | |
470 | ||
471 | ------------------------------------------------------- | |
472 | --Start Damage Function Customization-- | |
473 | ------------------------------------------------------- | |
474 | function ShowDamage(Pos, Text, Time, Color) | |
475 | local Rate = (1 / 30) | |
476 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
477 | local Text = (Text or "") | |
478 | local Time = (Time or 2) | |
479 | local Color = (Color or Color3.new(1, 0, 1)) | |
480 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
481 | EffectPart.Anchored = true | |
482 | local BillboardGui = Create("BillboardGui"){ | |
483 | Size = UDim2.new(3, 0, 3, 0), | |
484 | Adornee = EffectPart, | |
485 | Parent = EffectPart, | |
486 | } | |
487 | local TextLabel = Create("TextLabel"){ | |
488 | BackgroundTransparency = 1, | |
489 | Size = UDim2.new(1, 0, 1, 0), | |
490 | Text = Text, | |
491 | Font = "Bodoni", | |
492 | TextColor3 = Color, | |
493 | TextScaled = true, | |
494 | - | TextStrokeColor3 = Color3.fromRGB(0,0,0), |
494 | + | TextStrokeColor3 = Color3.fromRGB(0,255,0), |
495 | Parent = BillboardGui, | |
496 | } | |
497 | game.Debris:AddItem(EffectPart, (Time)) | |
498 | EffectPart.Parent = game:GetService("Workspace") | |
499 | delay(0, function() | |
500 | local Frames = (Time / Rate) | |
501 | for Frame = 1, Frames do | |
502 | wait(Rate) | |
503 | local Percent = (Frame / Frames) | |
504 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
505 | TextLabel.TextTransparency = Percent | |
506 | end | |
507 | if EffectPart and EffectPart.Parent then | |
508 | EffectPart:Destroy() | |
509 | end | |
510 | end) | |
511 | end | |
512 | ------------------------------------------------------- | |
513 | --End Damage Function Customization-- | |
514 | ------------------------------------------------------- | |
515 | ||
516 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
517 | for _, c in pairs(workspace:children()) do | |
518 | local hum = c:findFirstChild("Humanoid") | |
519 | if hum ~= nil then | |
520 | local head = c:findFirstChild("Head") | |
521 | if head ~= nil then | |
522 | local targ = head.Position - Part.Position | |
523 | local mag = targ.magnitude | |
524 | if magni >= mag and c.Name ~= plr.Name then | |
525 | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2) | |
526 | end | |
527 | end | |
528 | end | |
529 | end | |
530 | end | |
531 | ||
532 | ||
533 | CFuncs = { | |
534 | Part = { | |
535 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
536 | local Part = Create("Part")({ | |
537 | Parent = Parent, | |
538 | Reflectance = Reflectance, | |
539 | Transparency = Transparency, | |
540 | CanCollide = false, | |
541 | Locked = true, | |
542 | BrickColor = BrickColor.new(tostring(BColor)), | |
543 | Name = Name, | |
544 | Size = Size, | |
545 | Material = Material | |
546 | }) | |
547 | RemoveOutlines(Part) | |
548 | return Part | |
549 | end | |
550 | }, | |
551 | Mesh = { | |
552 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
553 | local Msh = Create(Mesh)({ | |
554 | Parent = Part, | |
555 | Offset = OffSet, | |
556 | Scale = Scale | |
557 | }) | |
558 | if Mesh == "SpecialMesh" then | |
559 | Msh.MeshType = MeshType | |
560 | Msh.MeshId = MeshId | |
561 | end | |
562 | return Msh | |
563 | end | |
564 | }, | |
565 | Mesh = { | |
566 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
567 | local Msh = Create(Mesh)({ | |
568 | Parent = Part, | |
569 | Offset = OffSet, | |
570 | Scale = Scale | |
571 | }) | |
572 | if Mesh == "SpecialMesh" then | |
573 | Msh.MeshType = MeshType | |
574 | Msh.MeshId = MeshId | |
575 | end | |
576 | return Msh | |
577 | end | |
578 | }, | |
579 | Weld = { | |
580 | Create = function(Parent, Part0, Part1, C0, C1) | |
581 | local Weld = Create("Weld")({ | |
582 | Parent = Parent, | |
583 | Part0 = Part0, | |
584 | Part1 = Part1, | |
585 | C0 = C0, | |
586 | C1 = C1 | |
587 | }) | |
588 | return Weld | |
589 | end | |
590 | }, | |
591 | Sound = { | |
592 | Create = function(id, par, vol, pit) | |
593 | coroutine.resume(coroutine.create(function() | |
594 | local S = Create("Sound")({ | |
595 | Volume = vol, | |
596 | Pitch = pit or 1, | |
597 | SoundId = id, | |
598 | Parent = par or workspace | |
599 | }) | |
600 | wait() | |
601 | S:play() | |
602 | game:GetService("Debris"):AddItem(S, 6) | |
603 | end)) | |
604 | end | |
605 | }, | |
606 | ParticleEmitter = { | |
607 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
608 | local fp = Create("ParticleEmitter")({ | |
609 | Parent = Parent, | |
610 | Color = ColorSequence.new(Color1, Color2), | |
611 | LightEmission = LightEmission, | |
612 | Size = Size, | |
613 | Texture = Texture, | |
614 | Transparency = Transparency, | |
615 | ZOffset = ZOffset, | |
616 | Acceleration = Accel, | |
617 | Drag = Drag, | |
618 | LockedToPart = LockedToPart, | |
619 | VelocityInheritance = VelocityInheritance, | |
620 | EmissionDirection = EmissionDirection, | |
621 | Enabled = Enabled, | |
622 | Lifetime = LifeTime, | |
623 | Rate = Rate, | |
624 | Rotation = Rotation, | |
625 | RotSpeed = RotSpeed, | |
626 | Speed = Speed, | |
627 | VelocitySpread = VelocitySpread | |
628 | }) | |
629 | return fp | |
630 | end | |
631 | } | |
632 | } | |
633 | function RemoveOutlines(part) | |
634 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
635 | end | |
636 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
637 | local Part = Create("Part")({ | |
638 | formFactor = FormFactor, | |
639 | Parent = Parent, | |
640 | Reflectance = Reflectance, | |
641 | Transparency = Transparency, | |
642 | CanCollide = false, | |
643 | Locked = true, | |
644 | BrickColor = BrickColor.new(tostring(BColor)), | |
645 | Name = Name, | |
646 | Size = Size, | |
647 | Material = Material | |
648 | }) | |
649 | RemoveOutlines(Part) | |
650 | return Part | |
651 | end | |
652 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
653 | local Msh = Create(Mesh)({ | |
654 | Parent = Part, | |
655 | Offset = OffSet, | |
656 | Scale = Scale | |
657 | }) | |
658 | if Mesh == "SpecialMesh" then | |
659 | Msh.MeshType = MeshType | |
660 | Msh.MeshId = MeshId | |
661 | end | |
662 | return Msh | |
663 | end | |
664 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
665 | local Weld = Create("Weld")({ | |
666 | Parent = Parent, | |
667 | Part0 = Part0, | |
668 | Part1 = Part1, | |
669 | C0 = C0, | |
670 | C1 = C1 | |
671 | }) | |
672 | return Weld | |
673 | end | |
674 | ||
675 | ||
676 | ------------------------------------------------------- | |
677 | --Start Effect Function-- | |
678 | ------------------------------------------------------- | |
679 | EffectModel = Instance.new("Model", char) | |
680 | Effects = { | |
681 | Block = { | |
682 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
683 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
684 | prt.Anchored = true | |
685 | prt.CFrame = cframe | |
686 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
687 | game:GetService("Debris"):AddItem(prt, 10) | |
688 | if Type == 1 or Type == nil then | |
689 | table.insert(Effects, { | |
690 | prt, | |
691 | "Block1", | |
692 | delay, | |
693 | x3, | |
694 | y3, | |
695 | z3, | |
696 | msh | |
697 | }) | |
698 | elseif Type == 2 then | |
699 | table.insert(Effects, { | |
700 | prt, | |
701 | "Block2", | |
702 | delay, | |
703 | x3, | |
704 | y3, | |
705 | z3, | |
706 | msh | |
707 | }) | |
708 | else | |
709 | table.insert(Effects, { | |
710 | prt, | |
711 | "Block3", | |
712 | delay, | |
713 | x3, | |
714 | y3, | |
715 | z3, | |
716 | msh | |
717 | }) | |
718 | end | |
719 | end | |
720 | }, | |
721 | Sphere = { | |
722 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
723 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
724 | prt.Anchored = true | |
725 | prt.CFrame = cframe | |
726 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
727 | game:GetService("Debris"):AddItem(prt, 10) | |
728 | table.insert(Effects, { | |
729 | prt, | |
730 | "Cylinder", | |
731 | delay, | |
732 | x3, | |
733 | y3, | |
734 | z3, | |
735 | msh | |
736 | }) | |
737 | end | |
738 | }, | |
739 | Cylinder = { | |
740 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
741 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
742 | prt.Anchored = true | |
743 | prt.CFrame = cframe | |
744 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
745 | game:GetService("Debris"):AddItem(prt, 10) | |
746 | table.insert(Effects, { | |
747 | prt, | |
748 | "Cylinder", | |
749 | delay, | |
750 | x3, | |
751 | y3, | |
752 | z3, | |
753 | msh | |
754 | }) | |
755 | end | |
756 | }, | |
757 | Wave = { | |
758 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
759 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
760 | prt.Anchored = true | |
761 | prt.CFrame = cframe | |
762 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60)) | |
763 | game:GetService("Debris"):AddItem(prt, 10) | |
764 | table.insert(Effects, { | |
765 | prt, | |
766 | "Cylinder", | |
767 | delay, | |
768 | x3 / 60, | |
769 | y3 / 60, | |
770 | z3 / 60, | |
771 | msh | |
772 | }) | |
773 | end | |
774 | }, | |
775 | Ring = { | |
776 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
777 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
778 | prt.Anchored = true | |
779 | prt.CFrame = cframe | |
780 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
781 | game:GetService("Debris"):AddItem(prt, 10) | |
782 | table.insert(Effects, { | |
783 | prt, | |
784 | "Cylinder", | |
785 | delay, | |
786 | x3, | |
787 | y3, | |
788 | z3, | |
789 | msh | |
790 | }) | |
791 | end | |
792 | }, | |
793 | Break = { | |
794 | Create = function(brickcolor, cframe, x1, y1, z1) | |
795 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
796 | prt.Anchored = true | |
797 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
798 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
799 | local num = math.random(10, 50) / 1000 | |
800 | game:GetService("Debris"):AddItem(prt, 10) | |
801 | table.insert(Effects, { | |
802 | prt, | |
803 | "Shatter", | |
804 | num, | |
805 | prt.CFrame, | |
806 | math.random() - math.random(), | |
807 | 0, | |
808 | math.random(50, 100) / 100 | |
809 | }) | |
810 | end | |
811 | }, | |
812 | Spiral = { | |
813 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
814 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
815 | prt.Anchored = true | |
816 | prt.CFrame = cframe | |
817 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
818 | game:GetService("Debris"):AddItem(prt, 10) | |
819 | table.insert(Effects, { | |
820 | prt, | |
821 | "Cylinder", | |
822 | delay, | |
823 | x3, | |
824 | y3, | |
825 | z3, | |
826 | msh | |
827 | }) | |
828 | end | |
829 | }, | |
830 | Push = { | |
831 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
832 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
833 | prt.Anchored = true | |
834 | prt.CFrame = cframe | |
835 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
836 | game:GetService("Debris"):AddItem(prt, 10) | |
837 | table.insert(Effects, { | |
838 | prt, | |
839 | "Cylinder", | |
840 | delay, | |
841 | x3, | |
842 | y3, | |
843 | z3, | |
844 | msh | |
845 | }) | |
846 | end | |
847 | } | |
848 | } | |
849 | function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size) | |
850 | local fp = IT("Part") | |
851 | fp.formFactor = formfactor | |
852 | fp.Parent = parent | |
853 | fp.Reflectance = reflectance | |
854 | fp.Transparency = transparency | |
855 | fp.CanCollide = false | |
856 | fp.Locked = true | |
857 | fp.BrickColor = brickcolor | |
858 | fp.Name = name | |
859 | fp.Size = size | |
860 | fp.Position = tors.Position | |
861 | RemoveOutlines(fp) | |
862 | fp.Material = "SmoothPlastic" | |
863 | fp:BreakJoints() | |
864 | return fp | |
865 | end | |
866 | ||
867 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
868 | local mesh = IT(Mesh) | |
869 | mesh.Parent = part | |
870 | if Mesh == "SpecialMesh" then | |
871 | mesh.MeshType = meshtype | |
872 | if meshid ~= "nil" then | |
873 | mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid | |
874 | end | |
875 | end | |
876 | mesh.Offset = offset | |
877 | mesh.Scale = scale | |
878 | return mesh | |
879 | end | |
880 | ||
881 | function Magic(bonuspeed, type, pos, scale, value, color, MType) | |
882 | local type = type | |
883 | local rng = Instance.new("Part", char) | |
884 | rng.Anchored = true | |
885 | rng.BrickColor = color | |
886 | rng.CanCollide = false | |
887 | rng.FormFactor = 3 | |
888 | rng.Name = "Ring" | |
889 | rng.Material = "Neon" | |
890 | rng.Size = Vector3.new(1, 1, 1) | |
891 | rng.Transparency = 0 | |
892 | rng.TopSurface = 0 | |
893 | rng.BottomSurface = 0 | |
894 | rng.CFrame = pos | |
895 | local rngm = Instance.new("SpecialMesh", rng) | |
896 | rngm.MeshType = MType | |
897 | rngm.Scale = scale | |
898 | local scaler2 = 1 | |
899 | if type == "Add" then | |
900 | scaler2 = 1 * value | |
901 | elseif type == "Divide" then | |
902 | scaler2 = 1 / value | |
903 | end | |
904 | coroutine.resume(coroutine.create(function() | |
905 | for i = 0, 10 / bonuspeed, 0.1 do | |
906 | swait() | |
907 | if type == "Add" then | |
908 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
909 | elseif type == "Divide" then | |
910 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
911 | end | |
912 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
913 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
914 | end | |
915 | rng:Destroy() | |
916 | end)) | |
917 | end | |
918 | ||
919 | function Eviscerate(dude) | |
920 | if dude.Name ~= char then | |
921 | local bgf = IT("BodyGyro", dude.Head) | |
922 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
923 | local val = IT("BoolValue", dude) | |
924 | val.Name = "IsHit" | |
925 | local ds = coroutine.wrap(function() | |
926 | dude:WaitForChild("Head"):BreakJoints() | |
927 | wait(0.5) | |
928 | target = nil | |
929 | coroutine.resume(coroutine.create(function() | |
930 | for i, v in pairs(dude:GetChildren()) do | |
931 | if v:IsA("Accessory") then | |
932 | v:Destroy() | |
933 | end | |
934 | if v:IsA("Humanoid") then | |
935 | v:Destroy() | |
936 | end | |
937 | if v:IsA("CharacterMesh") then | |
938 | v:Destroy() | |
939 | end | |
940 | if v:IsA("Model") then | |
941 | v:Destroy() | |
942 | end | |
943 | if v:IsA("Part") or v:IsA("MeshPart") then | |
944 | for x, o in pairs(v:GetChildren()) do | |
945 | if o:IsA("Decal") then | |
946 | o:Destroy() | |
947 | end | |
948 | end | |
949 | coroutine.resume(coroutine.create(function() | |
950 | v.Material = "Neon" | |
951 | v.CanCollide = false | |
952 | local PartEmmit1 = IT("ParticleEmitter", v) | |
953 | PartEmmit1.LightEmission = 1 | |
954 | PartEmmit1.Texture = "rbxassetid://1523916715" | |
955 | - | PartEmmit1.Color = ColorSequence.new(Color3.new(0, 0, 0)) |
955 | + | PartEmmit1.Color = ColorSequence.new(Color3.new(0, 255, 0)) |
956 | PartEmmit1.Rate = 150 | |
957 | PartEmmit1.Lifetime = NumberRange.new(1) | |
958 | PartEmmit1.Size = NumberSequence.new({ | |
959 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
960 | NumberSequenceKeypoint.new(1, 0, 0) | |
961 | }) | |
962 | PartEmmit1.Transparency = NumberSequence.new({ | |
963 | NumberSequenceKeypoint.new(0, 0, 0), | |
964 | NumberSequenceKeypoint.new(1, 1, 0) | |
965 | }) | |
966 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
967 | PartEmmit1.VelocitySpread = 30000 | |
968 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
969 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
970 | local BodPoss = IT("BodyPosition", v) | |
971 | BodPoss.P = 3000 | |
972 | BodPoss.D = 1000 | |
973 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
974 | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
975 | v.Color = maincolor.Color | |
976 | coroutine.resume(coroutine.create(function() | |
977 | for i = 0, 49 do | |
978 | swait(1) | |
979 | v.Transparency = v.Transparency + 0.08 | |
980 | end | |
981 | wait(0.5) | |
982 | PartEmmit1.Enabled = false | |
983 | wait(3) | |
984 | v:Destroy() | |
985 | dude:Destroy() | |
986 | end)) | |
987 | end)) | |
988 | end | |
989 | end | |
990 | end)) | |
991 | end) | |
992 | ds() | |
993 | end | |
994 | end | |
995 | ||
996 | function FindNearestHead(Position, Distance, SinglePlayer) | |
997 | if SinglePlayer then | |
998 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
999 | end | |
1000 | local List = {} | |
1001 | for i, v in pairs(workspace:GetChildren()) do | |
1002 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then | |
1003 | table.insert(List, v) | |
1004 | end | |
1005 | end | |
1006 | return List | |
1007 | end | |
1008 | ||
1009 | function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType) | |
1010 | local type = type | |
1011 | local rng = Instance.new("Part", char) | |
1012 | rng.Anchored = true | |
1013 | rng.BrickColor = color | |
1014 | rng.CanCollide = false | |
1015 | rng.FormFactor = 3 | |
1016 | rng.Name = "Ring" | |
1017 | rng.Material = "Neon" | |
1018 | rng.Size = Vector3.new(1, 1, 1) | |
1019 | rng.Transparency = 0 | |
1020 | rng.TopSurface = 0 | |
1021 | rng.BottomSurface = 0 | |
1022 | rng.CFrame = pos | |
1023 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
1024 | local rngm = Instance.new("SpecialMesh", rng) | |
1025 | rngm.MeshType = MType | |
1026 | rngm.Scale = Vector3.new(x1, y1, z1) | |
1027 | local scaler2 = 1 | |
1028 | local speeder = FastSpeed | |
1029 | if type == "Add" then | |
1030 | scaler2 = 1 * value | |
1031 | elseif type == "Divide" then | |
1032 | scaler2 = 1 / value | |
1033 | end | |
1034 | coroutine.resume(coroutine.create(function() | |
1035 | for i = 0, 10 / bonuspeed, 0.1 do | |
1036 | swait() | |
1037 | if type == "Add" then | |
1038 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
1039 | elseif type == "Divide" then | |
1040 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
1041 | end | |
1042 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
1043 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
1044 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
1045 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
1046 | end | |
1047 | rng:Destroy() | |
1048 | end)) | |
1049 | end | |
1050 | ||
1051 | function SoulSteal(dude) | |
1052 | if dude.Name ~= char then | |
1053 | local bgf = IT("BodyGyro", dude.Head) | |
1054 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
1055 | local val = IT("BoolValue", dude) | |
1056 | val.Name = "IsHit" | |
1057 | local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart') | |
1058 | local soulst = coroutine.wrap(function() | |
1059 | local soul = Instance.new("Part",dude) | |
1060 | soul.Size = Vector3.new(1,1,1) | |
1061 | soul.CanCollide = false | |
1062 | soul.Anchored = false | |
1063 | soul.Position = torso.Position | |
1064 | soul.Transparency = 1 | |
1065 | local PartEmmit1 = IT("ParticleEmitter", soul) | |
1066 | PartEmmit1.LightEmission = 1 | |
1067 | PartEmmit1.Texture = "rbxassetid://569507414" | |
1068 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1069 | PartEmmit1.Rate = 250 | |
1070 | PartEmmit1.Lifetime = NumberRange.new(1.6) | |
1071 | PartEmmit1.Size = NumberSequence.new({ | |
1072 | NumberSequenceKeypoint.new(0, 1, 0), | |
1073 | NumberSequenceKeypoint.new(1, 0, 0) | |
1074 | }) | |
1075 | PartEmmit1.Transparency = NumberSequence.new({ | |
1076 | NumberSequenceKeypoint.new(0, 0, 0), | |
1077 | NumberSequenceKeypoint.new(1, 1, 0) | |
1078 | }) | |
1079 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
1080 | PartEmmit1.VelocitySpread = 30000 | |
1081 | PartEmmit1.Rotation = NumberRange.new(-360, 360) | |
1082 | PartEmmit1.RotSpeed = NumberRange.new(-360, 360) | |
1083 | local BodPoss = IT("BodyPosition", soul) | |
1084 | BodPoss.P = 3000 | |
1085 | BodPoss.D = 1000 | |
1086 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
1087 | BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
1088 | wait(1.6) | |
1089 | soul.Touched:connect(function(hit) | |
1090 | if hit.Parent == char then | |
1091 | soul:Destroy() | |
1092 | end | |
1093 | end) | |
1094 | wait(1.2) | |
1095 | while soul do | |
1096 | swait() | |
1097 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1098 | BodPoss.Position = tors.Position | |
1099 | end | |
1100 | end) | |
1101 | soulst() | |
1102 | end | |
1103 | end | |
1104 | function FaceMouse() | |
1105 | local Cam = workspace.CurrentCamera | |
1106 | return { | |
1107 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
1108 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
1109 | } | |
1110 | end | |
1111 | ------------------------------------------------------- | |
1112 | --End Effect Function-- | |
1113 | ------------------------------------------------------- | |
1114 | function Cso(ID, PARENT, VOLUME, PITCH) | |
1115 | local NSound = nil | |
1116 | coroutine.resume(coroutine.create(function() | |
1117 | NSound = IT("Sound", PARENT) | |
1118 | NSound.Volume = VOLUME | |
1119 | NSound.Pitch = PITCH | |
1120 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1121 | swait() | |
1122 | NSound:play() | |
1123 | game:GetService("Debris"):AddItem(NSound, 10) | |
1124 | end)) | |
1125 | return NSound | |
1126 | end | |
1127 | function CameraEnshaking(Length, Intensity) | |
1128 | coroutine.resume(coroutine.create(function() | |
1129 | local intensity = 1 * Intensity | |
1130 | local rotM = 0.01 * Intensity | |
1131 | for i = 0, Length, 0.1 do | |
1132 | swait() | |
1133 | intensity = intensity - 0.05 * Intensity / Length | |
1134 | rotM = rotM - 5.0E-4 * Intensity / Length | |
1135 | hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) | |
1136 | cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM) | |
1137 | end | |
1138 | hum.CameraOffset = Vector3.new(0, 0, 0) | |
1139 | end)) | |
1140 | end | |
1141 | ||
1142 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
1143 | local NEWMESH = Instance.new(MESH) | |
1144 | if MESH == "SpecialMesh" then | |
1145 | NEWMESH.MeshType = MESHTYPE | |
1146 | if MESHID ~= "nil" and MESHID ~= "" then | |
1147 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
1148 | end | |
1149 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
1150 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
1151 | end | |
1152 | end | |
1153 | NEWMESH.Offset = OFFSET or Vector3.new(0, 0, 0) | |
1154 | NEWMESH.Scale = SCALE | |
1155 | NEWMESH.Parent = PARENT | |
1156 | return NEWMESH | |
1157 | end | |
1158 | ||
1159 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
1160 | local NEWPART = Instance.new("Part") | |
1161 | NEWPART.formFactor = FORMFACTOR | |
1162 | NEWPART.Reflectance = REFLECTANCE | |
1163 | NEWPART.Transparency = TRANSPARENCY | |
1164 | NEWPART.CanCollide = false | |
1165 | NEWPART.Locked = true | |
1166 | NEWPART.Anchored = true | |
1167 | if ANCHOR == false then | |
1168 | NEWPART.Anchored = false | |
1169 | end | |
1170 | NEWPART.BrickColor = BrickColor.new(tostring(BRICKCOLOR)) | |
1171 | NEWPART.Name = NAME | |
1172 | NEWPART.Size = SIZE | |
1173 | NEWPART.Position = tors.Position | |
1174 | NEWPART.Material = MATERIAL | |
1175 | NEWPART:BreakJoints() | |
1176 | NEWPART.Parent = PARENT | |
1177 | return NEWPART | |
1178 | end | |
1179 | ||
1180 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
1181 | local frame = IT("Frame") | |
1182 | frame.BackgroundTransparency = TRANSPARENCY | |
1183 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
1184 | frame.Position = POSITION | |
1185 | frame.Size = SIZE | |
1186 | frame.BackgroundColor3 = COLOR | |
1187 | frame.BorderColor3 = BORDERCOLOR | |
1188 | frame.Name = NAME | |
1189 | frame.Parent = PARENT | |
1190 | return frame | |
1191 | end | |
1192 | ||
1193 | UD2 = UDim2.new | |
1194 | ||
1195 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
1196 | local label = IT("TextLabel") | |
1197 | label.BackgroundTransparency = 1 | |
1198 | label.Size = UD2(1, 0, 1, 0) | |
1199 | label.Position = UD2(0, 0, 0, 0) | |
1200 | label.TextColor3 = TEXTCOLOR | |
1201 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
1202 | label.TextTransparency = TRANSPARENCY | |
1203 | label.FontSize = TEXTFONTSIZE | |
1204 | label.Font = TEXTFONT | |
1205 | label.BorderSizePixel = BORDERSIZEPIXEL | |
1206 | label.TextScaled = false | |
1207 | label.Text = TEXT | |
1208 | label.Name = NAME | |
1209 | label.Parent = PARENT | |
1210 | return label | |
1211 | end | |
1212 | ||
1213 | local Particle = IT("ParticleEmitter",nil) | |
1214 | Particle.Enabled = false | |
1215 | Particle.LightEmission = 0.2 | |
1216 | Particle.Rate = 150 | |
1217 | Particle.ZOffset = 1 | |
1218 | Particle.Rotation = NumberRange.new(-180, 180) | |
1219 | ||
1220 | function ParticleEmitter(Table) | |
1221 | local PRTCL = Particle:Clone() | |
1222 | local Color1 = Table.Color1 or Color3.new(1,1,1) | |
1223 | local Color2 = Table.Color2 or Color3.new(1,1,1) | |
1224 | local Speed = Table.Speed or 5 | |
1225 | local Drag = Table.Drag or 0 | |
1226 | local Size1 = Table.Size1 or 1 | |
1227 | local Size2 = Table.Size2 or 5 | |
1228 | local Lifetime1 = Table.Lifetime1 or 1 | |
1229 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
1230 | local Parent = Table.Parent or tors | |
1231 | local Emit = Table.Emit or 100 | |
1232 | local Offset = Table.Offset or 360 | |
1233 | - | local Acel = Table.Acel or Vector3.new(0,0,0) |
1233 | + | local Acel = Table.Acel or Vector3.new(0,255,0) |
1234 | local Enabled = Table.Enabled or false | |
1235 | local Texture = Table.Texture or "281983280" | |
1236 | local RotS = Table.RotSpeed or NumberRange.new(-15, 15) | |
1237 | local Trans1 = Table.Transparency1 or 0 | |
1238 | local Trans2 = Table.Transparency2 or 0 | |
1239 | PRTCL.Parent = Parent | |
1240 | PRTCL.RotSpeed = RotS | |
1241 | PRTCL.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,Trans1),NumberSequenceKeypoint.new(1,Trans2)}) | |
1242 | PRTCL.Texture = "http://www.roblox.com/asset/?id="..Texture | |
1243 | PRTCL.Color = ColorSequence.new(Color1,Color2) | |
1244 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
1245 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
1246 | PRTCL.Speed = NumberRange.new(Speed) | |
1247 | PRTCL.VelocitySpread = Offset | |
1248 | PRTCL.Drag = Drag | |
1249 | PRTCL.Acceleration = Acel | |
1250 | if Enabled == false then | |
1251 | PRTCL:Emit(Emit) | |
1252 | game:GetService("Debris"):AddItem(PRTCL,Lifetime2) | |
1253 | else | |
1254 | PRTCL.Enabled = true | |
1255 | end | |
1256 | return PRTCL | |
1257 | end | |
1258 | ------------------------------------------------------- | |
1259 | --End Important Functions-- | |
1260 | ------------------------------------------------------- | |
1261 | ||
1262 | ||
1263 | ------------------------------------------------------- | |
1264 | --Start Customization-- | |
1265 | ------------------------------------------------------- | |
1266 | local Player_Size = 1.4 | |
1267 | if Player_Size ~= 1 then | |
1268 | root.Size = root.Size * Player_Size | |
1269 | tors.Size = tors.Size * Player_Size | |
1270 | hed.Size = hed.Size * Player_Size | |
1271 | ra.Size = ra.Size * Player_Size | |
1272 | la.Size = la.Size * Player_Size | |
1273 | rl.Size = rl.Size * Player_Size | |
1274 | ll.Size = ll.Size * Player_Size | |
1275 | ---------------------------------------------------------------------------------- | |
1276 | rootj.Parent = root | |
1277 | neck.Parent = tors | |
1278 | RW.Parent = tors | |
1279 | LW.Parent = tors | |
1280 | RH.Parent = tors | |
1281 | LH.Parent = tors | |
1282 | ---------------------------------------------------------------------------------- | |
1283 | rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
1284 | rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
1285 | neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)) | |
1286 | neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180)) | |
1287 | RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0 | |
1288 | LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0 | |
1289 | ---------------------------------------------------------------------------------- | |
1290 | RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
1291 | LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
1292 | RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
1293 | LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
1294 | --hat.Parent = Character | |
1295 | end | |
1296 | ---------------------------------------------------------------------------------- | |
1297 | - | local SONG = 929256770 |
1297 | + | local SONG = 181890353 |
1298 | - | local SONG2 = 929256770 |
1298 | + | local SONG2 = 181890353 |
1299 | local Music = Instance.new("Sound",tors) | |
1300 | Music.Volume = 100000000000000000000000000000000000000000000000000000000000000000 | |
1301 | Music.Looped = true | |
1302 | Music.Pitch = 1 --Pitcher | |
1303 | ---------------------------------------------------------------------------------- | |
1304 | local equipped = false | |
1305 | local idle = 0 | |
1306 | local change = 1 | |
1307 | local val = 0 | |
1308 | local toim = 0 | |
1309 | local idleanim = 0.4 | |
1310 | local sine = 0 | |
1311 | local Sit = 1 | |
1312 | local VALUE1 = false | |
1313 | local VALUE2 = false | |
1314 | local HOLD = false | |
1315 | local KEYHOLD = false | |
1316 | ---------------------------------------------------------------------------------- | |
1317 | hum.WalkSpeed = 18 | |
1318 | hum.JumpPower = 130 | |
1319 | hum.Animator.Parent = nil | |
1320 | ---------------------------------------------------------------------------------- | |
1321 | local naeeym2 = IT("BillboardGui",char) | |
1322 | naeeym2.AlwaysOnTop = true | |
1323 | naeeym2.Size = UDim2.new(5,35,2,15) | |
1324 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
1325 | naeeym2.MaxDistance = 75 | |
1326 | naeeym2.Adornee = hed | |
1327 | naeeym2.Name = "Name" | |
1328 | --naeeym2.PlayerToHideFrom = Player | |
1329 | local tecks2 = IT("TextLabel",naeeym2) | |
1330 | tecks2.BackgroundTransparency = 1 | |
1331 | tecks2.TextScaled = true | |
1332 | tecks2.BorderSizePixel = 0 | |
1333 | - | tecks2.Text = "Blight" |
1333 | + | tecks2.Text = "Jacksepticeye Blight" |
1334 | tecks2.Font = "Fantasy" | |
1335 | tecks2.TextSize = 30 | |
1336 | tecks2.TextStrokeTransparency = 0 | |
1337 | tecks2.TextColor3 = Color3.fromRGB(0, 0, 0) | |
1338 | tecks2.TextStrokeColor3 = Color3.fromRGB(0, 0, 0) | |
1339 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1340 | tecks2.Parent = naeeym2 | |
1341 | local top = Instance.new("Shirt") | |
1342 | top.ShirtTemplate = "rbxassetid://228794266" | |
1343 | top.Parent = char | |
1344 | top.Name = "Cloth" | |
1345 | local bottom = Instance.new("Pants") | |
1346 | bottom.PantsTemplate = "rbxassetid://228794877" | |
1347 | bottom.Parent = char | |
1348 | bottom.Name = "Cloth" | |
1349 | Reaper = IT("Model") | |
1350 | Reaper.Parent = char | |
1351 | Reaper.Name = "Reaper" | |
1352 | RHe = IT("Part") | |
1353 | RHe.Parent = Reaper | |
1354 | - | RHe.BrickColor = BrickColor.new("Really black") |
1354 | + | RHe.BrickColor = BrickColor.new("Lime green") |
1355 | RHe.Locked = true | |
1356 | RHe.CanCollide = false | |
1357 | RHe.Transparency = 0 | |
1358 | PMesh = IT("SpecialMesh") | |
1359 | RHe.formFactor = "Symmetric" | |
1360 | PMesh.MeshType = "FileMesh" | |
1361 | PMesh.MeshId = "rbxassetid://124631026" | |
1362 | PMesh.TextureId = "rbxassetid://151576107" | |
1363 | PMesh.Scale = Vector3.new(3.01, 3.01, 3.01) | |
1364 | PMesh.Parent = RHe | |
1365 | local RWeld = IT("Weld") | |
1366 | RWeld.Parent = RHe | |
1367 | RWeld.Part0 = RHe | |
1368 | RWeld.Part1 = hed | |
1369 | RWeld.C0 = CF(0, 1.5, 0) * angles(0, 0, 0) | |
1370 | hed.face:Remove() | |
1371 | ---------------------------------------------------------------------------------- | |
1372 | PlayerGui = plr.PlayerGui | |
1373 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
1374 | WEAPONGUI.Name = "Weapon GUI" | |
1375 | ||
1376 | - | local SKILLTEXTCOLOR = Color3.new(0,0,0) |
1376 | + | local SKILLTEXTCOLOR = Color3.new(0,255,0) |
1377 | local SKILLFONT = "Antique" | |
1378 | local SKILLTEXTSIZE = 6 | |
1379 | ||
1380 | - | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), Color3.new(0,0,0), Color3.new(0, 0, 0), "Skill 1 Frame") |
1380 | + | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), Color3.new(0,255,0), Color3.new(0, 0, 0), "Skill 1 Frame") |
1381 | - | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), Color3.new(0,0,0), Color3.new(0, 0, 0), "Skill 2 Frame") |
1381 | + | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), Color3.new(0,255,0), Color3.new(0, 0, 0), "Skill 2 Frame") |
1382 | - | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.82, 0), UD2(0.26, 0, 0.07, 0), Color3.new(0,0,0), Color3.new(0, 0, 0), "Skill 3 Frame") |
1382 | + | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.82, 0), UD2(0.26, 0, 0.07, 0), Color3.new(0,255,0), Color3.new(0, 0, 0), "Skill 3 Frame") |
1383 | - | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.78, 0), UD2(0.26, 0, 0.07, 0), Color3.new(0,0,0), Color3.new(0, 0, 0), "Skill 4 Frame") |
1383 | + | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.78, 0), UD2(0.26, 0, 0.07, 0), Color3.new(0,255,0), Color3.new(0, 0, 0), "Skill 4 Frame") |
1384 | - | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.74, 0), UD2(0.26, 0, 0.07, 0), Color3.new(0,0,0), Color3.new(0, 0, 0), "Skill 5 Frame") |
1384 | + | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.74, 0), UD2(0.26, 0, 0.07, 0), Color3.new(0,255,0), Color3.new(0, 0, 0), "Skill 5 Frame") |
1385 | ||
1386 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Shadow's Victory", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 1") | |
1387 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Eruption", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 2") | |
1388 | --local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Chaos", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 3") | |
1389 | --local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Death's Wish", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 4") | |
1390 | --local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Shadows Whisper", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 5") | |
1391 | ------------------------------------------------------- | |
1392 | --End Customization-- | |
1393 | ------------------------------------------------------- | |
1394 | ||
1395 | ||
1396 | ------------------------------------------------------- | |
1397 | --Start Attacks N Stuff-- | |
1398 | ------------------------------------------------------- | |
1399 | function Shadom_Circle() | |
1400 | ||
1401 | end | |
1402 | function Flame_Burst() | |
1403 | local target = nil | |
1404 | local targettorso = nil | |
1405 | if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then | |
1406 | if mouse.Target.Parent.Humanoid.PlatformStand == false then | |
1407 | target = mouse.Target.Parent.Humanoid | |
1408 | target2 = mouse.Target.Parent | |
1409 | targettorso = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso") | |
1410 | end | |
1411 | end | |
1412 | if target ~= nil then | |
1413 | attack = true | |
1414 | hum.WalkSpeed = 0 | |
1415 | for i = 0, 3.4, 0.1 do | |
1416 | swait() | |
1417 | hum.WalkSpeed = 0 | |
1418 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(45)), 0.1) | |
1419 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15), Rad(0), Rad(-45)), 0.1) | |
1420 | RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1) | |
1421 | LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1) | |
1422 | RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(90), Rad(-15), Rad(46 + 4.5 * Sin(sine / 12))), 0.1) | |
1423 | LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-46 - 4.5 * Sin(sine / 12))), 0.1) | |
1424 | end | |
1425 | - | --ParticleEmitter({Transparency1 = 1, Transparency2 = 0, Speed = 5, Acel = Vector3.new(0,12,0), RotSpeed = NumberRange.new(-150, 150), Drag = 0, Size1 = 3, Size2 = 0, Lifetime1 = 0.4, Lifetime2 = 1, Parent = targettorso, Emit = 300, Offset = 360, Enabled = false, Color1 = Color3.new(0,0,0), Color2 = Color3.new(0,0,0), Texture = "1523916715"}) |
1425 | + | --ParticleEmitter({Transparency1 = 1, Transparency2 = 0, Speed = 5, Acel = Vector3.new(0,12,0), RotSpeed = NumberRange.new(-150, 150), Drag = 0, Size1 = 3, Size2 = 0, Lifetime1 = 0.4, Lifetime2 = 1, Parent = targettorso, Emit = 300, Offset = 360, Enabled = false, Color1 = Color3.new(0,255,0), Color2 = Color3.new(0,255,0), Texture = "1523916715"}) |
1426 | --targettorso:BreakJoints() | |
1427 | for i = 0, 3.4, 0.1 do | |
1428 | swait() | |
1429 | hum.WalkSpeed = 0 | |
1430 | - | ParticleEmitter({Transparency1 = 1, Transparency2 = 0, Speed = 5, Acel = Vector3.new(0,12,0), RotSpeed = NumberRange.new(-150, 150), Drag = 0, Size1 = 3, Size2 = 0, Lifetime1 = 0.4, Lifetime2 = 1, Parent = targettorso, Emit = 300, Offset = 360, Enabled = false, Color1 = Color3.new(0,0,0), Color2 = Color3.new(0,0,0), Texture = "1523916715"}) |
1430 | + | ParticleEmitter({Transparency1 = 1, Transparency2 = 0, Speed = 5, Acel = Vector3.new(0,12,0), RotSpeed = NumberRange.new(-150, 150), Drag = 0, Size1 = 3, Size2 = 0, Lifetime1 = 0.4, Lifetime2 = 1, Parent = targettorso, Emit = 300, Offset = 360, Enabled = false, Color1 = Color3.new(0,255,0), Color2 = Color3.new(0,255,0), Texture = "1523916715"}) |
1431 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(45)), 0.1) | |
1432 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15), Rad(0), Rad(-45)), 0.1) | |
1433 | RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1) | |
1434 | LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1) | |
1435 | RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(135), Rad(-.6), Rad(46 + 4.5 * Sin(sine / 12))), 0.1) | |
1436 | LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-46 - 4.5 * Sin(sine / 12))), 0.1) | |
1437 | end | |
1438 | for i, v in pairs(target2:GetChildren()) do | |
1439 | if(not char:IsAncestorOf(v))then | |
1440 | local hum = (v and v.Parent and v.Parent:FindFirstChildOfClass'Humanoid') | |
1441 | local hedder = (v and v.Parent and v.Parent:FindFirstChild'Head') | |
1442 | if(hum and hedder and hum.Health > 0)then | |
1443 | Eviscerate(v.Parent) | |
1444 | end | |
1445 | end | |
1446 | end | |
1447 | attack = false | |
1448 | hum.WalkSpeed = 18 | |
1449 | end | |
1450 | end | |
1451 | function Ritual() | |
1452 | attack = true | |
1453 | hum.WalkSpeed = 0 | |
1454 | VALUE2 = true | |
1455 | repeat | |
1456 | ---Pose1 | |
1457 | for i = 0, 2.6, 0.1 do | |
1458 | swait() | |
1459 | hum.WalkSpeed = 0 | |
1460 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, -0.7 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.1) | |
1461 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(45), Rad(0), Rad(0)), 0.1) | |
1462 | RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -.5 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.2 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1) | |
1463 | LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -.5 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.2 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1) | |
1464 | RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(25 + 4.5 * Sin(sine / 12))), 0.1) | |
1465 | LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(-25 - 4.5 * Sin(sine / 12))), 0.1) | |
1466 | end | |
1467 | for i = 0, 3.4, 0.1 do | |
1468 | swait() | |
1469 | hum.WalkSpeed = 0 | |
1470 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(8 - 2.5 * Sin(sine / 24)), Rad(0)), 0.1) | |
1471 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-15), Rad(0), Rad(0)), 0.1) | |
1472 | RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1.3 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1) | |
1473 | LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1) | |
1474 | RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(-.6), Rad(46 + 4.5 * Sin(sine / 12))), 0.1) | |
1475 | LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(-.6), Rad(-46 - 4.5 * Sin(sine / 12))), 0.1) | |
1476 | end | |
1477 | ---Pose2 | |
1478 | for i = 0, 2.6, 0.1 do | |
1479 | swait() | |
1480 | hum.WalkSpeed = 0 | |
1481 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, -0.7 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.1) | |
1482 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(45), Rad(0), Rad(0)), 0.1) | |
1483 | RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -.5 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.2 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1) | |
1484 | LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -.5 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.2 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1) | |
1485 | RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(25 + 4.5 * Sin(sine / 12))), 0.1) | |
1486 | LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(-25 - 4.5 * Sin(sine / 12))), 0.1) | |
1487 | end | |
1488 | for i = 0, 3.4, 0.1 do | |
1489 | swait() | |
1490 | hum.WalkSpeed = 0 | |
1491 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-8 - 2.5 * Sin(sine / 24)), Rad(0)), 0.1) | |
1492 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-15), Rad(0), Rad(0)), 0.1) | |
1493 | RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1) | |
1494 | LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1.3 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1) | |
1495 | RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(-.6), Rad(46 + 4.5 * Sin(sine / 12))), 0.1) | |
1496 | LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(-.6), Rad(-46 - 4.5 * Sin(sine / 12))), 0.1) | |
1497 | end | |
1498 | until VALUE2 == false | |
1499 | attack = false | |
1500 | hum.WalkSpeed = 18 | |
1501 | end | |
1502 | ------------------------------------------------------- | |
1503 | --End Attacks N Stuff-- | |
1504 | ------------------------------------------------------- | |
1505 | ||
1506 | ||
1507 | ||
1508 | ||
1509 | ||
1510 | ||
1511 | ||
1512 | ------------------------------------------------------- | |
1513 | --Start Animations-- | |
1514 | ------------------------------------------------------- | |
1515 | while true do | |
1516 | swait() | |
1517 | sine = sine + change | |
1518 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1519 | local velderp = root.Velocity.y | |
1520 | hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char) | |
1521 | if equipped == true or equipped == false then | |
1522 | if attack == false then | |
1523 | idle = idle + 1 | |
1524 | else | |
1525 | idle = 0 | |
1526 | end | |
1527 | if 1 < root.Velocity.y and hitfloor == nil then | |
1528 | Anim = "Jump" | |
1529 | if attack == false then | |
1530 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-5), Rad(0), Rad(0)), 0.15) | |
1531 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
1532 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1533 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1534 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1) | |
1535 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1) | |
1536 | end | |
1537 | elseif -1 > root.Velocity.y and hitfloor == nil then | |
1538 | Anim = "Fall" | |
1539 | if attack == false then | |
1540 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-24), Rad(0), Rad(0)), 0.15) | |
1541 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(35 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
1542 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(50)), 0.15) | |
1543 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(40)), 0.15) | |
1544 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(75 + 4.5 * Sin(sine / 20))), 0.1) | |
1545 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-75 - 4.5 * Sin(sine / 20))), 0.1) | |
1546 | end | |
1547 | elseif torvel < 1 and hitfloor ~= nil then | |
1548 | Anim = "Idle" | |
1549 | change = 1 | |
1550 | if attack == false then | |
1551 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.15) | |
1552 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 12.5 * Sin(sine / 12)), Rad(0), Rad(0)), 0.3) | |
1553 | RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15) | |
1554 | LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15) | |
1555 | RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(20), Rad(-.6), Rad(43 + 4.5 * Sin(sine / 12))), 0.1) | |
1556 | LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(20), Rad(-.6), Rad(-43 - 4.5 * Sin(sine / 12))), 0.1) | |
1557 | end | |
1558 | elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then | |
1559 | Anim = "Walk" | |
1560 | change = 1 | |
1561 | if attack == false then | |
1562 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15) | |
1563 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
1564 | RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.5 * Player_Size * Cos(sine / 7) / 2 * Player_Size, 0.6 * Player_Size * Cos(sine / 7) / 2 * Player_Size) * angles(Rad(-15 - 35 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
1565 | LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -0.8 * Player_Size + 0.5 * Player_Size * Cos(sine / 7) / 2 * Player_Size, -0.6 * Player_Size * Cos(sine / 7) / 2 * Player_Size) * angles(Rad(-15 + 35 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
1566 | RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(65) * Cos(sine / 7), Rad(-.6), Rad(15 + 4.5 * Sin(sine / 12))), 0.1) | |
1567 | LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-65) * Cos(sine / 7), Rad(-.6), Rad(-15 - 4.5 * Sin(sine / 12))), 0.1) | |
1568 | end | |
1569 | elseif torvel >= 25 and hitfloor ~= nil then | |
1570 | Anim = "Sprint" | |
1571 | change = 1.35 | |
1572 | if attack == false then | |
1573 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15) | |
1574 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
1575 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.925* Player_Size - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
1576 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.925* Player_Size + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
1577 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, 0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(110) * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15) | |
1578 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, -0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(-110) * Cos(sine / 7) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15) | |
1579 | end | |
1580 | end | |
1581 | end | |
1582 | for _, c in pairs(char:GetChildren()) do | |
1583 | if c.ClassName == "Part" and c.Name ~= "Detail" and c.Name ~= "Add-ons" then | |
1584 | c.Material = "Fabric" | |
1585 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
1586 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
1587 | end | |
1588 | if c ~= hed then | |
1589 | c.Color = Color3.new(0, 0, 0) | |
1590 | else | |
1591 | c.Color = Color3.new(0, 0, 0) | |
1592 | end | |
1593 | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
1594 | c:remove() | |
1595 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
1596 | c:remove() | |
1597 | end | |
1598 | end | |
1599 | Music.SoundId = "rbxassetid://"..SONG | |
1600 | Music.Looped = true | |
1601 | Music.Pitch = 1 | |
1602 | Music.Volume = 5 | |
1603 | Music.Parent = tors | |
1604 | Music:Resume() | |
1605 | if 0 < #Effects then | |
1606 | for e = 1, #Effects do | |
1607 | if Effects[e] ~= nil then | |
1608 | local Thing = Effects[e] | |
1609 | if Thing ~= nil then | |
1610 | local Part = Thing[1] | |
1611 | local Mode = Thing[2] | |
1612 | local Delay = Thing[3] | |
1613 | local IncX = Thing[4] | |
1614 | local IncY = Thing[5] | |
1615 | local IncZ = Thing[6] | |
1616 | if 1 >= Thing[1].Transparency then | |
1617 | if Thing[2] == "Block1" then | |
1618 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1619 | local Mesh = Thing[1].Mesh | |
1620 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1621 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1622 | elseif Thing[2] == "Block2" then | |
1623 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
1624 | local Mesh = Thing[7] | |
1625 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1626 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1627 | elseif Thing[2] == "Block3" then | |
1628 | 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) | |
1629 | local Mesh = Thing[7] | |
1630 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1631 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1632 | elseif Thing[2] == "Cylinder" then | |
1633 | local Mesh = Thing[1].Mesh | |
1634 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1635 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1636 | elseif Thing[2] == "Blood" then | |
1637 | local Mesh = Thing[7] | |
1638 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
1639 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1640 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1641 | elseif Thing[2] == "Elec" then | |
1642 | local Mesh = Thing[1].Mesh | |
1643 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
1644 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1645 | elseif Thing[2] == "Disappear" then | |
1646 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1647 | elseif Thing[2] == "Shatter" then | |
1648 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1649 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
1650 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
1651 | Thing[6] = Thing[6] + Thing[5] | |
1652 | end | |
1653 | else | |
1654 | Part.Parent = nil | |
1655 | table.remove(Effects, e) | |
1656 | end | |
1657 | end | |
1658 | end | |
1659 | end | |
1660 | end | |
1661 | end | |
1662 | ------------------------------------------------------- | |
1663 | --End Animations And Script-- | |
1664 | ------------------------------------------------------- |