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