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