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