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