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