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