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