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