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