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