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