SHOW:
|
|
- or go back to the newest paste.
| 1 | - | local Player = game:GetService("Players").TheFigureBlack
|
| 1 | + | local Player = game:GetService("Players").silver22352
|
| 2 | local Mouse,mouse,UserInputService,ContextActionService | |
| 3 | do | |
| 4 | script.Parent = Player.Character | |
| 5 | local CAS = {Actions={}}
| |
| 6 | local Event = Instance.new("RemoteEvent")
| |
| 7 | Event.Name = "UserInput_Event" | |
| 8 | Event.Parent = Player.Character | |
| 9 | local fakeEvent = function() | |
| 10 | local t = {_fakeEvent=true}
| |
| 11 | t.Connect = function(self,f)self.Function=f end | |
| 12 | t.connect = t.Connect | |
| 13 | return t | |
| 14 | end | |
| 15 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 16 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 17 | function CAS:BindAction(name,fun,touch,...) | |
| 18 | CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
| |
| 19 | end | |
| 20 | function CAS:UnbindAction(name) | |
| 21 | CAS.Actions[name] = nil | |
| 22 | end | |
| 23 | local function te(self,ev,...) | |
| 24 | local t = m[ev] | |
| 25 | if t and t._fakeEvent and t.Function then | |
| 26 | t.Function(...) | |
| 27 | end | |
| 28 | end | |
| 29 | m.TrigEvent = te | |
| 30 | UIS.TrigEvent = te | |
| 31 | Event.OnServerEvent:Connect(function(plr,io) | |
| 32 | if plr~=Player then return end | |
| 33 | if io.isMouse then | |
| 34 | m.Target = io.Target | |
| 35 | m.Hit = io.Hit | |
| 36 | elseif io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 37 | if io.UserInputState == Enum.UserInputState.Begin then | |
| 38 | m:TrigEvent("Button1Down")
| |
| 39 | else | |
| 40 | m:TrigEvent("Button1Up")
| |
| 41 | end | |
| 42 | else | |
| 43 | for n,t in pairs(CAS.Actions) do | |
| 44 | for _,k in pairs(t.Keys) do | |
| 45 | if k==io.KeyCode then | |
| 46 | t.Function(t.Name,io.UserInputState,io) | |
| 47 | end | |
| 48 | end | |
| 49 | end | |
| 50 | if io.UserInputState == Enum.UserInputState.Begin then | |
| 51 | m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
| |
| 52 | UIS:TrigEvent("InputBegan",io,false)
| |
| 53 | else | |
| 54 | m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
| |
| 55 | UIS:TrigEvent("InputEnded",io,false)
| |
| 56 | end | |
| 57 | end | |
| 58 | end) | |
| 59 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 60 | end | |
| 61 | - | Player = game:GetService("Players").TheFigureBlack
|
| 61 | + | Player = game:GetService("Players").silver22352
|
| 62 | PlayerGui = Player.PlayerGui | |
| 63 | Cam = workspace.CurrentCamera | |
| 64 | Backpack = Player.Backpack | |
| 65 | Character = Player.Character | |
| 66 | Humanoid = Character.Humanoid | |
| 67 | ||
| 68 | RootPart = Character["HumanoidRootPart"] | |
| 69 | Torso = Character["Torso"] | |
| 70 | Head = Character["Head"] | |
| 71 | RightArm = Character["Right Arm"] | |
| 72 | LeftArm = Character["Left Arm"] | |
| 73 | RightLeg = Character["Right Leg"] | |
| 74 | LeftLeg = Character["Left Leg"] | |
| 75 | RootJoint = RootPart["RootJoint"] | |
| 76 | Neck = Torso["Neck"] | |
| 77 | RightShoulder = Torso["Right Shoulder"] | |
| 78 | LeftShoulder = Torso["Left Shoulder"] | |
| 79 | RightHip = Torso["Right Hip"] | |
| 80 | LeftHip = Torso["Left Hip"] | |
| 81 | ||
| 82 | Character = Player.Character | |
| 83 | Humanoid = Character.Humanoid | |
| 84 | --------- | |
| 85 | - | plr = game.Players.TheFigureBlack |
| 85 | + | plr = game.Players.silver22352 |
| 86 | chara = plr.Character | |
| 87 | ||
| 88 | Create = Instance.new | |
| 89 | Huge = math.huge | |
| 90 | ||
| 91 | ||
| 92 | ||
| 93 | - | Player = game:GetService("Players").TheFigureBlack
|
| 93 | + | Player = game:GetService("Players").silver22352
|
| 94 | PlayerGui = Player.PlayerGui | |
| 95 | Cam = workspace.CurrentCamera | |
| 96 | Backpack = Player.Backpack | |
| 97 | Character = Player.Character | |
| 98 | char = Player.Character | |
| 99 | Humanoid = Character.Humanoid | |
| 100 | ||
| 101 | RootPart = Character["HumanoidRootPart"] | |
| 102 | Torso = Character["Torso"] | |
| 103 | Head = Character["Head"] | |
| 104 | RightArm = Character["Right Arm"] | |
| 105 | LeftArm = Character["Left Arm"] | |
| 106 | RightLeg = Character["Right Leg"] | |
| 107 | LeftLeg = Character["Left Leg"] | |
| 108 | RootJoint = RootPart["RootJoint"] | |
| 109 | Neck = Torso["Neck"] | |
| 110 | RightShoulder = Torso["Right Shoulder"] | |
| 111 | LeftShoulder = Torso["Left Shoulder"] | |
| 112 | RightHip = Torso["Right Hip"] | |
| 113 | LeftHip = Torso["Left Hip"] | |
| 114 | ||
| 115 | ||
| 116 | IT = Instance.new | |
| 117 | CF = CFrame.new | |
| 118 | VT = Vector3.new | |
| 119 | RAD = math.rad | |
| 120 | C3 = Color3.new | |
| 121 | UD2 = UDim2.new | |
| 122 | BRICKC = BrickColor.new | |
| 123 | ANGLES = CFrame.Angles | |
| 124 | EULER = CFrame.fromEulerAnglesXYZ | |
| 125 | COS = math.cos | |
| 126 | ACOS = math.acos | |
| 127 | SIN = math.sin | |
| 128 | ASIN = math.asin | |
| 129 | ABS = math.abs | |
| 130 | MRANDOM = math.random | |
| 131 | FLOOR = math.floor | |
| 132 | ||
| 133 | --//=================================\\ | |
| 134 | --|| USEFUL VALUES | |
| 135 | --\\=================================// | |
| 136 | ||
| 137 | Animation_Speed = 3 | |
| 138 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
| 139 | local Speed = 12 | |
| 140 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 141 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 142 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
| 143 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
| 144 | local DAMAGEMULTIPLIER = 1 | |
| 145 | local ANIM = "Idle" | |
| 146 | local ATTACK = false | |
| 147 | local EQUIPPED = false | |
| 148 | local HOLD = false | |
| 149 | local COMBO = 1 | |
| 150 | local Rooted = false | |
| 151 | local SINE = 0 | |
| 152 | local KEYHOLD = false | |
| 153 | local CHANGE = 2 / Animation_Speed | |
| 154 | local WALKINGANIM = false | |
| 155 | local VALUE1 = false | |
| 156 | local VALUE2 = false | |
| 157 | local ROBLOXIDLEANIMATION = IT("Animation")
| |
| 158 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
| 159 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
| 160 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
| 161 | local WEAPONGUI = IT("ScreenGui", PlayerGui)
| |
| 162 | WEAPONGUI.Name = "Weapon GUI" | |
| 163 | local Effects = IT("Folder", Character)
| |
| 164 | Effects.Name = "Effects" | |
| 165 | local ANIMATOR = Humanoid.Animator | |
| 166 | local ANIMATE = Character.Animate | |
| 167 | local UNANCHOR = true | |
| 168 | local WHITELIST = {}
| |
| 169 | local TAUNT = false | |
| 170 | local OFFSET = 0 | |
| 171 | local FULL = false | |
| 172 | ||
| 173 | --//=================================\\ | |
| 174 | --\\=================================// | |
| 175 | ||
| 176 | ||
| 177 | --//=================================\\ | |
| 178 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
| 179 | --\\=================================// | |
| 180 | ||
| 181 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 182 | ArtificialHB.Name = "ArtificialHB" | |
| 183 | ||
| 184 | script:WaitForChild("ArtificialHB")
| |
| 185 | ||
| 186 | frame = Frame_Speed | |
| 187 | tf = 0 | |
| 188 | allowframeloss = false | |
| 189 | tossremainder = false | |
| 190 | lastframe = tick() | |
| 191 | script.ArtificialHB:Fire() | |
| 192 | ||
| 193 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 194 | tf = tf + s | |
| 195 | if tf >= frame then | |
| 196 | if allowframeloss then | |
| 197 | script.ArtificialHB:Fire() | |
| 198 | lastframe = tick() | |
| 199 | else | |
| 200 | for i = 1, math.floor(tf / frame) do | |
| 201 | script.ArtificialHB:Fire() | |
| 202 | end | |
| 203 | lastframe = tick() | |
| 204 | end | |
| 205 | if tossremainder then | |
| 206 | tf = 0 | |
| 207 | else | |
| 208 | tf = tf - frame * math.floor(tf / frame) | |
| 209 | end | |
| 210 | end | |
| 211 | end) | |
| 212 | ||
| 213 | --//=================================\\ | |
| 214 | --\\=================================// | |
| 215 | ||
| 216 | --//=================================\\ | |
| 217 | --|| SOME FUNCTIONS | |
| 218 | --\\=================================// | |
| 219 | ||
| 220 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 221 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 222 | end | |
| 223 | ||
| 224 | function PositiveAngle(NUMBER) | |
| 225 | if NUMBER >= 0 then | |
| 226 | NUMBER = 0 | |
| 227 | end | |
| 228 | return NUMBER | |
| 229 | end | |
| 230 | ||
| 231 | function NegativeAngle(NUMBER) | |
| 232 | if NUMBER <= 0 then | |
| 233 | NUMBER = 0 | |
| 234 | end | |
| 235 | return NUMBER | |
| 236 | end | |
| 237 | ||
| 238 | function Swait(NUMBER) | |
| 239 | if NUMBER == 0 or NUMBER == nil then | |
| 240 | ArtificialHB.Event:wait() | |
| 241 | else | |
| 242 | for i = 1, NUMBER do | |
| 243 | ArtificialHB.Event:wait() | |
| 244 | end | |
| 245 | end | |
| 246 | end | |
| 247 | ||
| 248 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
| 249 | local NEWMESH = IT(MESH) | |
| 250 | if MESH == "SpecialMesh" then | |
| 251 | NEWMESH.MeshType = MESHTYPE | |
| 252 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 253 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
| 254 | end | |
| 255 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
| 256 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
| 257 | end | |
| 258 | end | |
| 259 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
| 260 | NEWMESH.Scale = SCALE | |
| 261 | NEWMESH.Parent = PARENT | |
| 262 | return NEWMESH | |
| 263 | end | |
| 264 | ||
| 265 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
| 266 | local NEWPART = IT("Part")
| |
| 267 | NEWPART.formFactor = FORMFACTOR | |
| 268 | NEWPART.Reflectance = REFLECTANCE | |
| 269 | NEWPART.Transparency = TRANSPARENCY | |
| 270 | NEWPART.CanCollide = false | |
| 271 | NEWPART.Locked = true | |
| 272 | NEWPART.Anchored = true | |
| 273 | if ANCHOR == false then | |
| 274 | NEWPART.Anchored = false | |
| 275 | end | |
| 276 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 277 | NEWPART.Name = NAME | |
| 278 | NEWPART.Size = SIZE | |
| 279 | NEWPART.Position = Torso.Position | |
| 280 | NEWPART.Material = MATERIAL | |
| 281 | NEWPART:BreakJoints() | |
| 282 | NEWPART.Parent = PARENT | |
| 283 | return NEWPART | |
| 284 | end | |
| 285 | ||
| 286 | local function weldBetween(a, b) | |
| 287 | local weldd = Instance.new("ManualWeld")
| |
| 288 | weldd.Part0 = a | |
| 289 | weldd.Part1 = b | |
| 290 | weldd.C0 = CFrame.new() | |
| 291 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 292 | weldd.Parent = a | |
| 293 | return weldd | |
| 294 | end | |
| 295 | ||
| 296 | ||
| 297 | function QuaternionFromCFrame(cf) | |
| 298 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 299 | local trace = m00 + m11 + m22 | |
| 300 | if trace > 0 then | |
| 301 | local s = math.sqrt(1 + trace) | |
| 302 | local recip = 0.5 / s | |
| 303 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 304 | else | |
| 305 | local i = 0 | |
| 306 | if m11 > m00 then | |
| 307 | i = 1 | |
| 308 | end | |
| 309 | if m22 > (i == 0 and m00 or m11) then | |
| 310 | i = 2 | |
| 311 | end | |
| 312 | if i == 0 then | |
| 313 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 314 | local recip = 0.5 / s | |
| 315 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 316 | elseif i == 1 then | |
| 317 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 318 | local recip = 0.5 / s | |
| 319 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 320 | elseif i == 2 then | |
| 321 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 322 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 323 | end | |
| 324 | end | |
| 325 | end | |
| 326 | ||
| 327 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 328 | local xs, ys, zs = x + x, y + y, z + z | |
| 329 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 330 | local xx = x * xs | |
| 331 | local xy = x * ys | |
| 332 | local xz = x * zs | |
| 333 | local yy = y * ys | |
| 334 | local yz = y * zs | |
| 335 | local zz = z * zs | |
| 336 | 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)) | |
| 337 | end | |
| 338 | ||
| 339 | function QuaternionSlerp(a, b, t) | |
| 340 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 341 | local startInterp, finishInterp; | |
| 342 | if cosTheta >= 0.0001 then | |
| 343 | if (1 - cosTheta) > 0.0001 then | |
| 344 | local theta = ACOS(cosTheta) | |
| 345 | local invSinTheta = 1 / SIN(theta) | |
| 346 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
| 347 | finishInterp = SIN(t * theta) * invSinTheta | |
| 348 | else | |
| 349 | startInterp = 1 - t | |
| 350 | finishInterp = t | |
| 351 | end | |
| 352 | else | |
| 353 | if (1 + cosTheta) > 0.0001 then | |
| 354 | local theta = ACOS(-cosTheta) | |
| 355 | local invSinTheta = 1 / SIN(theta) | |
| 356 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
| 357 | finishInterp = SIN(t * theta) * invSinTheta | |
| 358 | else | |
| 359 | startInterp = t - 1 | |
| 360 | finishInterp = t | |
| 361 | end | |
| 362 | end | |
| 363 | 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 | |
| 364 | end | |
| 365 | ||
| 366 | function Clerp(a, b, t) | |
| 367 | local qa = {QuaternionFromCFrame(a)}
| |
| 368 | local qb = {QuaternionFromCFrame(b)}
| |
| 369 | local ax, ay, az = a.x, a.y, a.z | |
| 370 | local bx, by, bz = b.x, b.y, b.z | |
| 371 | local _t = 1 - t | |
| 372 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 373 | end | |
| 374 | ||
| 375 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
| 376 | local frame = IT("Frame")
| |
| 377 | frame.BackgroundTransparency = TRANSPARENCY | |
| 378 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
| 379 | frame.Position = POSITION | |
| 380 | frame.Size = SIZE | |
| 381 | frame.BackgroundColor3 = COLOR | |
| 382 | frame.BorderColor3 = BORDERCOLOR | |
| 383 | frame.Name = NAME | |
| 384 | frame.Parent = PARENT | |
| 385 | return frame | |
| 386 | end | |
| 387 | ||
| 388 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 389 | local label = IT("TextLabel")
| |
| 390 | label.BackgroundTransparency = 1 | |
| 391 | label.Size = UD2(1, 0, 1, 0) | |
| 392 | label.Position = UD2(0, 0, 0, 0) | |
| 393 | label.TextColor3 = TEXTCOLOR | |
| 394 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
| 395 | label.TextTransparency = TRANSPARENCY | |
| 396 | label.FontSize = TEXTFONTSIZE | |
| 397 | label.Font = TEXTFONT | |
| 398 | label.BorderSizePixel = BORDERSIZEPIXEL | |
| 399 | label.TextScaled = false | |
| 400 | label.Text = TEXT | |
| 401 | label.Name = NAME | |
| 402 | label.Parent = PARENT | |
| 403 | return label | |
| 404 | end | |
| 405 | ||
| 406 | function NoOutlines(PART) | |
| 407 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 408 | end | |
| 409 | ||
| 410 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 411 | local NEWWELD = IT(TYPE) | |
| 412 | NEWWELD.Part0 = PART0 | |
| 413 | NEWWELD.Part1 = PART1 | |
| 414 | NEWWELD.C0 = C0 | |
| 415 | NEWWELD.C1 = C1 | |
| 416 | NEWWELD.Parent = PARENT | |
| 417 | return NEWWELD | |
| 418 | end | |
| 419 | ||
| 420 | local S = IT("Sound")
| |
| 421 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
| 422 | local NEWSOUND = nil | |
| 423 | coroutine.resume(coroutine.create(function() | |
| 424 | NEWSOUND = S:Clone() | |
| 425 | NEWSOUND.Parent = PARENT | |
| 426 | NEWSOUND.Volume = VOLUME | |
| 427 | NEWSOUND.Pitch = PITCH | |
| 428 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 429 | NEWSOUND:play() | |
| 430 | if DOESLOOP == true then | |
| 431 | NEWSOUND.Looped = true | |
| 432 | else | |
| 433 | repeat wait(1) until NEWSOUND.Playing == false | |
| 434 | NEWSOUND:remove() | |
| 435 | end | |
| 436 | end)) | |
| 437 | return NEWSOUND | |
| 438 | end | |
| 439 | ||
| 440 | function CFrameFromTopBack(at, top, back) | |
| 441 | local right = top:Cross(back) | |
| 442 | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
| 443 | end | |
| 444 | ||
| 445 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 446 | function WACKYEFFECT(Table) | |
| 447 | local TYPE = (Table.EffectType or "Sphere") | |
| 448 | local SIZE = (Table.Size or VT(1,1,1)) | |
| 449 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
| 450 | local TRANSPARENCY = (Table.Transparency or 0) | |
| 451 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
| 452 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
| 453 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
| 454 | local ROTATION1 = (Table.RotationX or 0) | |
| 455 | local ROTATION2 = (Table.RotationY or 0) | |
| 456 | local ROTATION3 = (Table.RotationZ or 0) | |
| 457 | local MATERIAL = (Table.Material or "Neon") | |
| 458 | local COLOR = (Table.Color or C3(1,1,1)) | |
| 459 | local TIME = (Table.Time or 45) | |
| 460 | local SOUNDID = (Table.SoundID or nil) | |
| 461 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
| 462 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
| 463 | coroutine.resume(coroutine.create(function() | |
| 464 | local PLAYSSOUND = false | |
| 465 | local SOUND = nil | |
| 466 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
| |
| 467 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
| 468 | PLAYSSOUND = true | |
| 469 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
| 470 | end | |
| 471 | EFFECT.Color = COLOR | |
| 472 | local MSH = nil | |
| 473 | if TYPE == "Sphere" then | |
| 474 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
| |
| 475 | elseif TYPE == "Block" then | |
| 476 | MSH = IT("BlockMesh",EFFECT)
| |
| 477 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
| 478 | elseif TYPE == "Wave" then | |
| 479 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
| |
| 480 | elseif TYPE == "Ring" then | |
| 481 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
| |
| 482 | elseif TYPE == "Slash" then | |
| 483 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 484 | elseif TYPE == "Round Slash" then | |
| 485 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 486 | elseif TYPE == "Swirl" then | |
| 487 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
| |
| 488 | elseif TYPE == "Skull" then | |
| 489 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
| |
| 490 | elseif TYPE == "Crystal" then | |
| 491 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
| |
| 492 | end | |
| 493 | if MSH ~= nil then | |
| 494 | local MOVESPEED = nil | |
| 495 | if MOVEDIRECTION ~= nil then | |
| 496 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
| 497 | end | |
| 498 | local GROWTH = SIZE - ENDSIZE | |
| 499 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
| 500 | if TYPE == "Block" then | |
| 501 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 502 | else | |
| 503 | EFFECT.CFrame = CFRAME | |
| 504 | end | |
| 505 | for LOOP = 1, TIME+1 do | |
| 506 | Swait() | |
| 507 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
| 508 | if TYPE == "Wave" then | |
| 509 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
| 510 | end | |
| 511 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
| 512 | if TYPE == "Block" then | |
| 513 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 514 | else | |
| 515 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
| 516 | end | |
| 517 | if MOVEDIRECTION ~= nil then | |
| 518 | local ORI = EFFECT.Orientation | |
| 519 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
| 520 | EFFECT.Orientation = ORI | |
| 521 | end | |
| 522 | end | |
| 523 | if PLAYSSOUND == false then | |
| 524 | EFFECT:remove() | |
| 525 | else | |
| 526 | SOUND.Stopped:Connect(function() | |
| 527 | EFFECT:remove() | |
| 528 | end) | |
| 529 | end | |
| 530 | else | |
| 531 | if PLAYSSOUND == false then | |
| 532 | EFFECT:remove() | |
| 533 | else | |
| 534 | repeat Swait() until SOUND.Playing == false | |
| 535 | EFFECT:remove() | |
| 536 | end | |
| 537 | end | |
| 538 | end)) | |
| 539 | end | |
| 540 | ||
| 541 | function MakeForm(PART,TYPE) | |
| 542 | if TYPE == "Cyl" then | |
| 543 | local MSH = IT("CylinderMesh",PART)
| |
| 544 | elseif TYPE == "Ball" then | |
| 545 | local MSH = IT("SpecialMesh",PART)
| |
| 546 | MSH.MeshType = "Sphere" | |
| 547 | elseif TYPE == "Wedge" then | |
| 548 | local MSH = IT("SpecialMesh",PART)
| |
| 549 | MSH.MeshType = "Wedge" | |
| 550 | end | |
| 551 | end | |
| 552 | ||
| 553 | Debris = game:GetService("Debris")
| |
| 554 | ||
| 555 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
| 556 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
| 557 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
| 558 | end | |
| 559 | ||
| 560 | local EyeSizes={
| |
| 561 | NumberSequenceKeypoint.new(0,1,0), | |
| 562 | NumberSequenceKeypoint.new(1,0,0) | |
| 563 | } | |
| 564 | local EyeTrans={
| |
| 565 | NumberSequenceKeypoint.new(0,0.8,0), | |
| 566 | NumberSequenceKeypoint.new(1,1,0) | |
| 567 | } | |
| 568 | local PE=Instance.new("ParticleEmitter",nil)
| |
| 569 | PE.LightEmission=.8 | |
| 570 | PE.Color = ColorSequence.new(BRICKC("Really red").Color)
| |
| 571 | PE.Size=NumberSequence.new(EyeSizes) | |
| 572 | PE.Transparency=NumberSequence.new(EyeTrans) | |
| 573 | PE.Lifetime=NumberRange.new(0.35,1.5) | |
| 574 | PE.Rotation=NumberRange.new(0,360) | |
| 575 | PE.Rate=999 | |
| 576 | PE.VelocitySpread = 10000 | |
| 577 | PE.Acceleration = Vector3.new(0,0,0) | |
| 578 | PE.Drag = 5 | |
| 579 | PE.Speed = NumberRange.new(0,0,0) | |
| 580 | PE.Texture="http://www.roblox.com/asset/?id=1351966707" | |
| 581 | PE.ZOffset = -0 | |
| 582 | PE.Name = "PE" | |
| 583 | PE.Enabled = false | |
| 584 | ||
| 585 | function particles(art) | |
| 586 | local PARTICLES = PE:Clone() | |
| 587 | PARTICLES.Parent = art | |
| 588 | end | |
| 589 | ||
| 590 | ||
| 591 | ||
| 592 | function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH) | |
| 593 | if FLOOR ~= nil then | |
| 594 | for i = 1, AMOUNT do | |
| 595 | local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false) | |
| 596 | DEBREE.Material = FLOOR.Material | |
| 597 | DEBREE.Color = FLOOR.Color | |
| 598 | DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
| 599 | DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH)) | |
| 600 | coroutine.resume(coroutine.create(function() | |
| 601 | Swait(15) | |
| 602 | DEBREE.Parent = workspace | |
| 603 | DEBREE.CanCollide = true | |
| 604 | Debris:AddItem(DEBREE,SWAIT) | |
| 605 | end)) | |
| 606 | end | |
| 607 | end | |
| 608 | end | |
| 609 | ||
| 610 | --//=================================\\ | |
| 611 | --|| WEAPON CREATION | |
| 612 | --\\=================================// | |
| 613 | local LASTPART = Head | |
| 614 | for i = 1, 20 do | |
| 615 | local MATH = (1-(i/25)) | |
| 616 | if LASTPART == Head then | |
| 617 | local Horn = CreatePart(3, Character, "Neon", 0, 0, "Bright yellow", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
| 618 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0))
| |
| 619 | LASTPART = Horn | |
| 620 | Horn.Color = C3((i*3-3)/100,80,0) | |
| 621 | else | |
| 622 | local Horn = CreatePart(3, Character, "Neon", 0, 0, "Bright yellow", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
| 623 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0))
| |
| 624 | LASTPART = Horn | |
| 625 | Horn.Color = C3((i*3-3)/100,80,0) | |
| 626 | end | |
| 627 | end | |
| 628 | local LASTPART = Head | |
| 629 | for i = 1, 20 do | |
| 630 | local MATH = (1-(i/25)) | |
| 631 | if LASTPART == Head then | |
| 632 | local Horn = CreatePart(3, Character, "Neon", 0, 0, "Bright yellow", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
| 633 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0, 0))
| |
| 634 | LASTPART = Horn | |
| 635 | Horn.Color = C3((i*3-3)/100,80,0) | |
| 636 | else | |
| 637 | local Horn = CreatePart(3, Character, "Neon", 0, 0, "White", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
| 638 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(0.3), RAD(0)), CF(0, 0, 0))
| |
| 639 | LASTPART = Horn | |
| 640 | Horn.Color = C3((i*3-3)/100,80,0) | |
| 641 | end | |
| 642 | end | |
| 643 | ||
| 644 | local Orin = "http://www.roblox.com/asset/?id=7074786" | |
| 645 | Head.face.Texture = Orin | |
| 646 | function weld(a, b, acf) | |
| 647 | local w = Instance.new("Weld", a)
| |
| 648 | w.Part0 = a | |
| 649 | w.Part1 = b | |
| 650 | w.C0 = acf | |
| 651 | end | |
| 652 | -------------------------------- | |
| 653 | -------------------------------- | |
| 654 | ||
| 655 | ------------------------------------------------------- | |
| 656 | ||
| 657 | local FavIDs = {
| |
| 658 | 340106355, --Nefl Crystals | |
| 659 | 927529620, --Dimension | |
| 660 | 876981900, --Fantasy | |
| 661 | 398987889, --Ordinary Days | |
| 662 | 1117396305, --Oh wait, it's you. | |
| 663 | 885996042, --Action Winter Journey | |
| 664 | 919231299, --Sprawling Idiot Effigy | |
| 665 | 743466274, --Good Day Sunshine | |
| 666 | 727411183, --Knife Fight | |
| 667 | 1402748531, --The Earth Is Counting On You! | |
| 668 | 595230126 --Robot Language | |
| 669 | } | |
| 670 | ||
| 671 | ||
| 672 | ||
| 673 | --The reality of my life isn't real but a Universe -makhail07 | |
| 674 | wait(0.2) | |
| 675 | - | local plr = game:service'Players'.TheFigureBlack |
| 675 | + | local plr = game:service'Players'.silver22352 |
| 676 | print('Serversided User is '..plr.Name)
| |
| 677 | print('Sans Loaded')
| |
| 678 | print('Hi')
| |
| 679 | print('By TheFigureBlack Don.t leak it plz ;)')
| |
| 680 | local char = plr.Character | |
| 681 | local hum = char.Humanoid | |
| 682 | local hed = char.Head | |
| 683 | local root = char.HumanoidRootPart | |
| 684 | local rootj = root.RootJoint | |
| 685 | local tors = char.Torso | |
| 686 | local ra = char["Right Arm"] | |
| 687 | local la = char["Left Arm"] | |
| 688 | local rl = char["Right Leg"] | |
| 689 | local ll = char["Left Leg"] | |
| 690 | local neck = tors["Neck"] | |
| 691 | ||
| 692 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 693 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
| 694 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
| 695 | local maincolor = BrickColor.new("Bright yellow")
| |
| 696 | ||
| 697 | ------------------------------------------------------- | |
| 698 | --Start Good Stuff-- | |
| 699 | ------------------------------------------------------- | |
| 700 | cam = game.Workspace.CurrentCamera | |
| 701 | CF = CFrame.new | |
| 702 | angles = CFrame.Angles | |
| 703 | attack = false | |
| 704 | Euler = CFrame.fromEulerAnglesXYZ | |
| 705 | Rad = math.rad | |
| 706 | IT = Instance.new | |
| 707 | BrickC = BrickColor.new | |
| 708 | Cos = math.cos | |
| 709 | Acos = math.acos | |
| 710 | Sin = math.sin | |
| 711 | Asin = math.asin | |
| 712 | Abs = math.abs | |
| 713 | Mrandom = math.random | |
| 714 | Floor = math.floor | |
| 715 | ------------------------------------------------------- | |
| 716 | --End Good Stuff-- | |
| 717 | ------------------------------------------------------- | |
| 718 | necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 719 | RSH, LSH = nil, nil | |
| 720 | RW = Instance.new("Weld")
| |
| 721 | LW = Instance.new("Weld")
| |
| 722 | RH = tors["Right Hip"] | |
| 723 | LH = tors["Left Hip"] | |
| 724 | RSH = tors["Right Shoulder"] | |
| 725 | LSH = tors["Left Shoulder"] | |
| 726 | RSH.Parent = nil | |
| 727 | LSH.Parent = nil | |
| 728 | RW.Name = "RW" | |
| 729 | RW.Part0 = tors | |
| 730 | RW.C0 = CF(1.5, 0.5, 0) | |
| 731 | RW.C1 = CF(0, 0.5, 0) | |
| 732 | RW.Part1 = ra | |
| 733 | RW.Parent = tors | |
| 734 | LW.Name = "LW" | |
| 735 | LW.Part0 = tors | |
| 736 | LW.C0 = CF(-1.5, 0.5, 0) | |
| 737 | LW.C1 = CF(0, 0.5, 0) | |
| 738 | LW.Part1 = la | |
| 739 | LW.Parent = tors | |
| 740 | Effects = {}
| |
| 741 | ------------------------------------------------------- | |
| 742 | --Start HeartBeat-- | |
| 743 | ------------------------------------------------------- | |
| 744 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 745 | ArtificialHB.Name = "Heartbeat" | |
| 746 | script:WaitForChild("Heartbeat")
| |
| 747 | ||
| 748 | frame = 1 / 60 | |
| 749 | tf = 0 | |
| 750 | allowframeloss = false | |
| 751 | tossremainder = false | |
| 752 | ||
| 753 | ||
| 754 | lastframe = tick() | |
| 755 | script.Heartbeat:Fire() | |
| 756 | ||
| 757 | ||
| 758 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 759 | tf = tf + s | |
| 760 | if tf >= frame then | |
| 761 | if allowframeloss then | |
| 762 | script.Heartbeat:Fire() | |
| 763 | lastframe = tick() | |
| 764 | else | |
| 765 | for i = 1, math.floor(tf / frame) do | |
| 766 | script.Heartbeat:Fire() | |
| 767 | end | |
| 768 | lastframe = tick() | |
| 769 | end | |
| 770 | if tossremainder then | |
| 771 | tf = 0 | |
| 772 | else | |
| 773 | tf = tf - frame * math.floor(tf / frame) | |
| 774 | end | |
| 775 | end | |
| 776 | end) | |
| 777 | ------------------------------------------------------- | |
| 778 | --End HeartBeat-- | |
| 779 | ------------------------------------------------------- | |
| 780 | ||
| 781 | ------------------------------------------------------- | |
| 782 | --Start Important Functions-- | |
| 783 | ------------------------------------------------------- | |
| 784 | function swait(num) | |
| 785 | if num == 0 or num == nil then | |
| 786 | game:service("RunService").Stepped:wait(0)
| |
| 787 | else | |
| 788 | for i = 0, num do | |
| 789 | game:service("RunService").Stepped:wait(0)
| |
| 790 | end | |
| 791 | end | |
| 792 | end | |
| 793 | function thread(f) | |
| 794 | coroutine.resume(coroutine.create(f)) | |
| 795 | end | |
| 796 | function clerp(a, b, t) | |
| 797 | local qa = {
| |
| 798 | QuaternionFromCFrame(a) | |
| 799 | } | |
| 800 | local qb = {
| |
| 801 | QuaternionFromCFrame(b) | |
| 802 | } | |
| 803 | local ax, ay, az = a.x, a.y, a.z | |
| 804 | local bx, by, bz = b.x, b.y, b.z | |
| 805 | local _t = 1 - t | |
| 806 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 807 | end | |
| 808 | function QuaternionFromCFrame(cf) | |
| 809 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 810 | local trace = m00 + m11 + m22 | |
| 811 | if trace > 0 then | |
| 812 | local s = math.sqrt(1 + trace) | |
| 813 | local recip = 0.5 / s | |
| 814 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 815 | else | |
| 816 | local i = 0 | |
| 817 | if m00 < m11 then | |
| 818 | i = 1 | |
| 819 | end | |
| 820 | if m22 > (i == 0 and m00 or m11) then | |
| 821 | i = 2 | |
| 822 | end | |
| 823 | if i == 0 then | |
| 824 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 825 | local recip = 0.5 / s | |
| 826 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 827 | elseif i == 1 then | |
| 828 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 829 | local recip = 0.5 / s | |
| 830 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 831 | elseif i == 2 then | |
| 832 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 833 | local recip = 0.5 / s | |
| 834 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 835 | end | |
| 836 | end | |
| 837 | end | |
| 838 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 839 | local xs, ys, zs = x + x, y + y, z + z | |
| 840 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 841 | local xx = x * xs | |
| 842 | local xy = x * ys | |
| 843 | local xz = x * zs | |
| 844 | local yy = y * ys | |
| 845 | local yz = y * zs | |
| 846 | local zz = z * zs | |
| 847 | 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)) | |
| 848 | end | |
| 849 | function QuaternionSlerp(a, b, t) | |
| 850 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 851 | local startInterp, finishInterp | |
| 852 | if cosTheta >= 1.0E-4 then | |
| 853 | if 1 - cosTheta > 1.0E-4 then | |
| 854 | local theta = math.acos(cosTheta) | |
| 855 | local invSinTheta = 1 / Sin(theta) | |
| 856 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
| 857 | finishInterp = Sin(t * theta) * invSinTheta | |
| 858 | else | |
| 859 | startInterp = 1 - t | |
| 860 | finishInterp = t | |
| 861 | end | |
| 862 | elseif 1 + cosTheta > 1.0E-4 then | |
| 863 | local theta = math.acos(-cosTheta) | |
| 864 | local invSinTheta = 1 / Sin(theta) | |
| 865 | startInterp = Sin((t - 1) * theta) * invSinTheta | |
| 866 | finishInterp = Sin(t * theta) * invSinTheta | |
| 867 | else | |
| 868 | startInterp = t - 1 | |
| 869 | finishInterp = t | |
| 870 | end | |
| 871 | 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 | |
| 872 | end | |
| 873 | function rayCast(Position, Direction, Range, Ignore) | |
| 874 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 875 | end | |
| 876 | local RbxUtility = LoadLibrary("RbxUtility")
| |
| 877 | local Create = RbxUtility.Create | |
| 878 | ||
| 879 | function getRegion(point,range,ignore) | |
| 880 | return workspace:FindPartsInRegion3WithIgnoreList(Region3.new(point-Vector3.new(1,1,1)*range/2,point+Vector3.new(1,1,1)*range/2),ignore,100) | |
| 881 | end | |
| 882 | ||
| 883 | function GetTorso(char) | |
| 884 | return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart' | |
| 885 | end | |
| 886 | ||
| 887 | local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
| |
| 888 | ------------------------------------------------------- | |
| 889 | --Start Damage Function-- | |
| 890 | ------------------------------------------------------- | |
| 891 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
| 892 | if hit.Parent == nil then | |
| 893 | return | |
| 894 | end | |
| 895 | local h = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 896 | for _, v in pairs(hit.Parent:children()) do | |
| 897 | if v:IsA("Humanoid") then
| |
| 898 | h = v | |
| 899 | end | |
| 900 | end | |
| 901 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
| |
| 902 | ||
| 903 | hit.Parent:FindFirstChild("Head"):BreakJoints()
| |
| 904 | end | |
| 905 | ||
| 906 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
| |
| 907 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then
| |
| 908 | if hit.Parent.DebounceHit.Value == true then | |
| 909 | return | |
| 910 | end | |
| 911 | end | |
| 912 | if insta == true then | |
| 913 | hit.Parent:FindFirstChild("Head"):BreakJoints()
| |
| 914 | end | |
| 915 | local c = Create("ObjectValue"){
| |
| 916 | Name = "creator", | |
| 917 | - | Value = game:service("Players").TheFigureBlack,
|
| 917 | + | Value = game:service("Players").silver22352,
|
| 918 | Parent = h, | |
| 919 | } | |
| 920 | game:GetService("Debris"):AddItem(c, .5)
| |
| 921 | if HitSound ~= nil and HitPitch ~= nil then | |
| 922 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
| 923 | end | |
| 924 | local Damage = math.random(minim, maxim) | |
| 925 | local blocked = false | |
| 926 | local block = hit.Parent:findFirstChild("Block")
| |
| 927 | if block ~= nil then | |
| 928 | if block.className == "IntValue" then | |
| 929 | if block.Value > 0 then | |
| 930 | blocked = true | |
| 931 | block.Value = block.Value - 1 | |
| 932 | print(block.Value) | |
| 933 | end | |
| 934 | end | |
| 935 | end | |
| 936 | if blocked == false then | |
| 937 | h.Health = h.Health - Damage | |
| 938 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
| 939 | else | |
| 940 | h.Health = h.Health - (Damage / 2) | |
| 941 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
| 942 | end | |
| 943 | if Type == "Knockdown" then | |
| 944 | local hum = hit.Parent.Humanoid | |
| 945 | hum.PlatformStand = true | |
| 946 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 947 | swait(1) | |
| 948 | HHumanoid.PlatformStand = false | |
| 949 | end), hum) | |
| 950 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
| 951 | local bodvol = Create("BodyVelocity"){
| |
| 952 | velocity = angle * knockback, | |
| 953 | P = 5000, | |
| 954 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 955 | Parent = hit, | |
| 956 | } | |
| 957 | local rl = Create("BodyAngularVelocity"){
| |
| 958 | P = 3000, | |
| 959 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
| 960 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
| 961 | Parent = hit, | |
| 962 | } | |
| 963 | game:GetService("Debris"):AddItem(bodvol, .5)
| |
| 964 | game:GetService("Debris"):AddItem(rl, .5)
| |
| 965 | elseif Type == "Normal" then | |
| 966 | local vp = Create("BodyVelocity"){
| |
| 967 | P = 500, | |
| 968 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
| 969 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
| 970 | } | |
| 971 | if knockback > 0 then | |
| 972 | vp.Parent = hit.Parent.Torso | |
| 973 | end | |
| 974 | game:GetService("Debris"):AddItem(vp, .5)
| |
| 975 | elseif Type == "Up" then | |
| 976 | local bodyVelocity = Create("BodyVelocity"){
| |
| 977 | velocity = Vector3.new(0, 20, 0), | |
| 978 | P = 5000, | |
| 979 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 980 | Parent = hit, | |
| 981 | } | |
| 982 | game:GetService("Debris"):AddItem(bodyVelocity, .5)
| |
| 983 | elseif Type == "DarkUp" then | |
| 984 | coroutine.resume(coroutine.create(function() | |
| 985 | for i = 0, 1, 0.1 do | |
| 986 | swait() | |
| 987 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
| |
| 988 | end | |
| 989 | end)) | |
| 990 | local bodyVelocity = Create("BodyVelocity"){
| |
| 991 | velocity = Vector3.new(0, 20, 0), | |
| 992 | P = 5000, | |
| 993 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 994 | Parent = hit, | |
| 995 | } | |
| 996 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 997 | elseif Type == "Snare" then | |
| 998 | local bp = Create("BodyPosition"){
| |
| 999 | P = 2000, | |
| 1000 | D = 100, | |
| 1001 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 1002 | position = hit.Parent.Torso.Position, | |
| 1003 | Parent = hit.Parent.Torso, | |
| 1004 | } | |
| 1005 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 1006 | elseif Type == "Freeze" then | |
| 1007 | local BodPos = Create("BodyPosition"){
| |
| 1008 | P = 50000, | |
| 1009 | D = 1000, | |
| 1010 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 1011 | position = hit.Parent.Torso.Position, | |
| 1012 | Parent = hit.Parent.Torso, | |
| 1013 | } | |
| 1014 | local BodGy = Create("BodyGyro") {
| |
| 1015 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
| 1016 | P = 20e+003, | |
| 1017 | Parent = hit.Parent.Torso, | |
| 1018 | cframe = hit.Parent.Torso.CFrame, | |
| 1019 | } | |
| 1020 | hit.Parent.Torso.Anchored = true | |
| 1021 | coroutine.resume(coroutine.create(function(Part) | |
| 1022 | swait(1.5) | |
| 1023 | Part.Anchored = false | |
| 1024 | end), hit.Parent.Torso) | |
| 1025 | game:GetService("Debris"):AddItem(BodPos, 3)
| |
| 1026 | game:GetService("Debris"):AddItem(BodGy, 3)
| |
| 1027 | end | |
| 1028 | local debounce = Create("BoolValue"){
| |
| 1029 | Name = "DebounceHit", | |
| 1030 | Parent = hit.Parent, | |
| 1031 | Value = true, | |
| 1032 | } | |
| 1033 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 1034 | c = Create("ObjectValue"){
| |
| 1035 | Name = "creator", | |
| 1036 | Value = Player, | |
| 1037 | Parent = h, | |
| 1038 | } | |
| 1039 | game:GetService("Debris"):AddItem(c, .5)
| |
| 1040 | end | |
| 1041 | end | |
| 1042 | ------------------------------------------------------- | |
| 1043 | --End Damage Function-- | |
| 1044 | ------------------------------------------------------- | |
| 1045 | ||
| 1046 | ------------------------------------------------------- | |
| 1047 | --Start Damage Function Customization-- | |
| 1048 | ------------------------------------------------------- | |
| 1049 | function ShowDamage(Pos, Text, Time, Color) | |
| 1050 | local Rate = (1 / 30) | |
| 1051 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
| 1052 | local Text = (Text or "") | |
| 1053 | local Time = (Time or 2) | |
| 1054 | local Color = (Color or Color3.new(255, 255, 1)) | |
| 1055 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
| 1056 | EffectPart.Anchored = true | |
| 1057 | local BillboardGui = Create("BillboardGui"){
| |
| 1058 | Size = UDim2.new(3, 0, 3, 0), | |
| 1059 | Adornee = EffectPart, | |
| 1060 | Parent = EffectPart, | |
| 1061 | } | |
| 1062 | local TextLabel = Create("TextLabel"){
| |
| 1063 | BackgroundTransparency = 1, | |
| 1064 | Size = UDim2.new(1, 0, 1, 0), | |
| 1065 | Text = Text, | |
| 1066 | Font = "Bodoni", | |
| 1067 | TextColor3 = Color, | |
| 1068 | TextScaled = true, | |
| 1069 | TextStrokeColor3 = Color3.fromRGB(0,0,0), | |
| 1070 | Parent = BillboardGui, | |
| 1071 | } | |
| 1072 | game.Debris:AddItem(EffectPart, (Time)) | |
| 1073 | EffectPart.Parent = game:GetService("Workspace")
| |
| 1074 | delay(0, function() | |
| 1075 | local Frames = (Time / Rate) | |
| 1076 | for Frame = 1, Frames do | |
| 1077 | wait(Rate) | |
| 1078 | local Percent = (Frame / Frames) | |
| 1079 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
| 1080 | TextLabel.TextTransparency = Percent | |
| 1081 | end | |
| 1082 | if EffectPart and EffectPart.Parent then | |
| 1083 | EffectPart:Destroy() | |
| 1084 | end | |
| 1085 | end) | |
| 1086 | end | |
| 1087 | ------------------------------------------------------- | |
| 1088 | --End Damage Function Customization-- | |
| 1089 | ------------------------------------------------------- | |
| 1090 | ||
| 1091 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
| 1092 | for _, c in pairs(workspace:children()) do | |
| 1093 | local hum = c:findFirstChild("Humanoid")
| |
| 1094 | if hum ~= nil then | |
| 1095 | local head = c:findFirstChild("Head")
| |
| 1096 | if head ~= nil then | |
| 1097 | local targ = head.Position - Part.Position | |
| 1098 | local mag = targ.magnitude | |
| 1099 | if magni >= mag and c.Name ~= plr.Name then | |
| 1100 | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2) | |
| 1101 | end | |
| 1102 | end | |
| 1103 | end | |
| 1104 | end | |
| 1105 | end | |
| 1106 | ||
| 1107 | ||
| 1108 | CFuncs = {
| |
| 1109 | Part = {
| |
| 1110 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 1111 | local Part = Create("Part")({
| |
| 1112 | Parent = Parent, | |
| 1113 | Reflectance = Reflectance, | |
| 1114 | Transparency = Transparency, | |
| 1115 | CanCollide = false, | |
| 1116 | Locked = true, | |
| 1117 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 1118 | Name = Name, | |
| 1119 | Size = Size, | |
| 1120 | Material = Material | |
| 1121 | }) | |
| 1122 | RemoveOutlines(Part) | |
| 1123 | return Part | |
| 1124 | end | |
| 1125 | }, | |
| 1126 | Mesh = {
| |
| 1127 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 1128 | local Msh = Create(Mesh)({
| |
| 1129 | Parent = Part, | |
| 1130 | Offset = OffSet, | |
| 1131 | Scale = Scale | |
| 1132 | }) | |
| 1133 | if Mesh == "SpecialMesh" then | |
| 1134 | Msh.MeshType = MeshType | |
| 1135 | Msh.MeshId = MeshId | |
| 1136 | end | |
| 1137 | return Msh | |
| 1138 | end | |
| 1139 | }, | |
| 1140 | Mesh = {
| |
| 1141 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 1142 | local Msh = Create(Mesh)({
| |
| 1143 | Parent = Part, | |
| 1144 | Offset = OffSet, | |
| 1145 | Scale = Scale | |
| 1146 | }) | |
| 1147 | if Mesh == "SpecialMesh" then | |
| 1148 | Msh.MeshType = MeshType | |
| 1149 | Msh.MeshId = MeshId | |
| 1150 | end | |
| 1151 | return Msh | |
| 1152 | end | |
| 1153 | }, | |
| 1154 | Weld = {
| |
| 1155 | Create = function(Parent, Part0, Part1, C0, C1) | |
| 1156 | local Weld = Create("Weld")({
| |
| 1157 | Parent = Parent, | |
| 1158 | Part0 = Part0, | |
| 1159 | Part1 = Part1, | |
| 1160 | C0 = C0, | |
| 1161 | C1 = C1 | |
| 1162 | }) | |
| 1163 | return Weld | |
| 1164 | end | |
| 1165 | }, | |
| 1166 | Sound = {
| |
| 1167 | Create = function(id, par, vol, pit) | |
| 1168 | coroutine.resume(coroutine.create(function() | |
| 1169 | local S = Create("Sound")({
| |
| 1170 | Volume = vol, | |
| 1171 | Pitch = pit or 1, | |
| 1172 | SoundId = id, | |
| 1173 | Parent = par or workspace | |
| 1174 | }) | |
| 1175 | wait() | |
| 1176 | S:play() | |
| 1177 | game:GetService("Debris"):AddItem(S, 6)
| |
| 1178 | end)) | |
| 1179 | end | |
| 1180 | }, | |
| 1181 | ParticleEmitter = {
| |
| 1182 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
| 1183 | local fp = Create("ParticleEmitter")({
| |
| 1184 | Parent = Parent, | |
| 1185 | Color = ColorSequence.new(Color1, Color2), | |
| 1186 | LightEmission = LightEmission, | |
| 1187 | Size = Size, | |
| 1188 | Texture = Texture, | |
| 1189 | Transparency = Transparency, | |
| 1190 | ZOffset = ZOffset, | |
| 1191 | Acceleration = Accel, | |
| 1192 | Drag = Drag, | |
| 1193 | LockedToPart = LockedToPart, | |
| 1194 | VelocityInheritance = VelocityInheritance, | |
| 1195 | EmissionDirection = EmissionDirection, | |
| 1196 | Enabled = Enabled, | |
| 1197 | Lifetime = LifeTime, | |
| 1198 | Rate = Rate, | |
| 1199 | Rotation = Rotation, | |
| 1200 | RotSpeed = RotSpeed, | |
| 1201 | Speed = Speed, | |
| 1202 | VelocitySpread = VelocitySpread | |
| 1203 | }) | |
| 1204 | return fp | |
| 1205 | end | |
| 1206 | } | |
| 1207 | } | |
| 1208 | function RemoveOutlines(part) | |
| 1209 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 1210 | end | |
| 1211 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 1212 | local Part = Create("Part")({
| |
| 1213 | formFactor = FormFactor, | |
| 1214 | Parent = Parent, | |
| 1215 | Reflectance = Reflectance, | |
| 1216 | Transparency = Transparency, | |
| 1217 | CanCollide = false, | |
| 1218 | Locked = true, | |
| 1219 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 1220 | Name = Name, | |
| 1221 | Size = Size, | |
| 1222 | Material = Material | |
| 1223 | }) | |
| 1224 | RemoveOutlines(Part) | |
| 1225 | return Part | |
| 1226 | end | |
| 1227 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 1228 | local Msh = Create(Mesh)({
| |
| 1229 | Parent = Part, | |
| 1230 | Offset = OffSet, | |
| 1231 | Scale = Scale | |
| 1232 | }) | |
| 1233 | if Mesh == "SpecialMesh" then | |
| 1234 | Msh.MeshType = MeshType | |
| 1235 | Msh.MeshId = MeshId | |
| 1236 | end | |
| 1237 | return Msh | |
| 1238 | end | |
| 1239 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
| 1240 | local Weld = Create("Weld")({
| |
| 1241 | Parent = Parent, | |
| 1242 | Part0 = Part0, | |
| 1243 | Part1 = Part1, | |
| 1244 | C0 = C0, | |
| 1245 | C1 = C1 | |
| 1246 | }) | |
| 1247 | return Weld | |
| 1248 | end | |
| 1249 | ||
| 1250 | ||
| 1251 | ------------------------------------------------------- | |
| 1252 | --Start Effect Function-- | |
| 1253 | ------------------------------------------------------- | |
| 1254 | EffectModel = Instance.new("Model", char)
| |
| 1255 | Effects = {
| |
| 1256 | Block = {
| |
| 1257 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 1258 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1259 | prt.Anchored = true | |
| 1260 | prt.CFrame = cframe | |
| 1261 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1262 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1263 | if Type == 1 or Type == nil then | |
| 1264 | table.insert(Effects, {
| |
| 1265 | prt, | |
| 1266 | "Block1", | |
| 1267 | delay, | |
| 1268 | x3, | |
| 1269 | y3, | |
| 1270 | z3, | |
| 1271 | msh | |
| 1272 | }) | |
| 1273 | elseif Type == 2 then | |
| 1274 | table.insert(Effects, {
| |
| 1275 | prt, | |
| 1276 | "Block2", | |
| 1277 | delay, | |
| 1278 | x3, | |
| 1279 | y3, | |
| 1280 | z3, | |
| 1281 | msh | |
| 1282 | }) | |
| 1283 | else | |
| 1284 | table.insert(Effects, {
| |
| 1285 | prt, | |
| 1286 | "Block3", | |
| 1287 | delay, | |
| 1288 | x3, | |
| 1289 | y3, | |
| 1290 | z3, | |
| 1291 | msh | |
| 1292 | }) | |
| 1293 | end | |
| 1294 | end | |
| 1295 | }, | |
| 1296 | Sphere = {
| |
| 1297 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1298 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1299 | prt.Anchored = true | |
| 1300 | prt.CFrame = cframe | |
| 1301 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1302 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1303 | table.insert(Effects, {
| |
| 1304 | prt, | |
| 1305 | "Cylinder", | |
| 1306 | delay, | |
| 1307 | x3, | |
| 1308 | y3, | |
| 1309 | z3, | |
| 1310 | msh | |
| 1311 | }) | |
| 1312 | end | |
| 1313 | }, | |
| 1314 | Cylinder = {
| |
| 1315 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1316 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1317 | prt.Anchored = true | |
| 1318 | prt.CFrame = cframe | |
| 1319 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1320 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1321 | table.insert(Effects, {
| |
| 1322 | prt, | |
| 1323 | "Cylinder", | |
| 1324 | delay, | |
| 1325 | x3, | |
| 1326 | y3, | |
| 1327 | z3, | |
| 1328 | msh | |
| 1329 | }) | |
| 1330 | end | |
| 1331 | }, | |
| 1332 | Wave = {
| |
| 1333 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1334 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1335 | prt.Anchored = true | |
| 1336 | prt.CFrame = cframe | |
| 1337 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
| |
| 1338 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1339 | table.insert(Effects, {
| |
| 1340 | prt, | |
| 1341 | "Cylinder", | |
| 1342 | delay, | |
| 1343 | x3 / 60, | |
| 1344 | y3 / 60, | |
| 1345 | z3 / 60, | |
| 1346 | msh | |
| 1347 | }) | |
| 1348 | end | |
| 1349 | }, | |
| 1350 | Ring = {
| |
| 1351 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1352 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1353 | prt.Anchored = true | |
| 1354 | prt.CFrame = cframe | |
| 1355 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1356 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1357 | table.insert(Effects, {
| |
| 1358 | prt, | |
| 1359 | "Cylinder", | |
| 1360 | delay, | |
| 1361 | x3, | |
| 1362 | y3, | |
| 1363 | z3, | |
| 1364 | msh | |
| 1365 | }) | |
| 1366 | end | |
| 1367 | }, | |
| 1368 | Break = {
| |
| 1369 | Create = function(brickcolor, cframe, x1, y1, z1) | |
| 1370 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 1371 | prt.Anchored = true | |
| 1372 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1373 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1374 | local num = math.random(10, 50) / 1000 | |
| 1375 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1376 | table.insert(Effects, {
| |
| 1377 | prt, | |
| 1378 | "Shatter", | |
| 1379 | num, | |
| 1380 | prt.CFrame, | |
| 1381 | math.random() - math.random(), | |
| 1382 | 0, | |
| 1383 | math.random(50, 100) / 100 | |
| 1384 | }) | |
| 1385 | end | |
| 1386 | }, | |
| 1387 | Spiral = {
| |
| 1388 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1389 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1390 | prt.Anchored = true | |
| 1391 | prt.CFrame = cframe | |
| 1392 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1393 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1394 | table.insert(Effects, {
| |
| 1395 | prt, | |
| 1396 | "Cylinder", | |
| 1397 | delay, | |
| 1398 | x3, | |
| 1399 | y3, | |
| 1400 | z3, | |
| 1401 | msh | |
| 1402 | })Template = "rbxassetid://583914109" | |
| 1403 | wait(0.1) | |
| 1404 | pants.PantsTemplate = "rbxassetid://7825739" | |
| 1405 | end | |
| 1406 | }, | |
| 1407 | Push = {
| |
| 1408 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1409 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1410 | prt.Anchored = true | |
| 1411 | prt.CFrame = cframe | |
| 1412 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1413 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1414 | table.insert(Effects, {
| |
| 1415 | prt, | |
| 1416 | "Cylinder", | |
| 1417 | delay, | |
| 1418 | x3, | |
| 1419 | y3, | |
| 1420 | z3, | |
| 1421 | msh | |
| 1422 | }) | |
| 1423 | end | |
| 1424 | } | |
| 1425 | } | |
| 1426 | function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size) | |
| 1427 | local fp = IT("Part")
| |
| 1428 | fp.formFactor = formfactor | |
| 1429 | fp.Parent = parent | |
| 1430 | fp.Reflectance = reflectance | |
| 1431 | fp.Transparency = transparency | |
| 1432 | fp.CanCollide = false | |
| 1433 | fp.Locked = true | |
| 1434 | fp.BrickColor = brickcolor | |
| 1435 | fp.Name = name | |
| 1436 | fp.Size = size | |
| 1437 | fp.Position = tors.Position | |
| 1438 | RemoveOutlines(fp) | |
| 1439 | fp.Material = "SmoothPlastic" | |
| 1440 | fp:BreakJoints() | |
| 1441 | return fp | |
| 1442 | end | |
| 1443 | hair = Instance.new("Part",char)
| |
| 1444 | hair.CanCollide = false | |
| 1445 | local m = Instance.new("FileMesh",hair)
| |
| 1446 | m.MeshId = "http://www.roblox.com/asset/?id=430073345" | |
| 1447 | m.TextureId = "http://www.roblox.com/asset/?id=430073362" | |
| 1448 | local w = Instance.new("Weld",hair)
| |
| 1449 | w.Part0 = hair | |
| 1450 | w.Part1 = char.Head | |
| 1451 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
| 1452 | local mesh = IT(Mesh) | |
| 1453 | mesh.Parent = part | |
| 1454 | if Mesh == "SpecialMesh" then | |
| 1455 | mesh.MeshType = meshtype | |
| 1456 | if meshid ~= "nil" then | |
| 1457 | mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid | |
| 1458 | end | |
| 1459 | end | |
| 1460 | mesh.Offset = offset | |
| 1461 | mesh.Scale = scale | |
| 1462 | return mesh | |
| 1463 | end | |
| 1464 | ||
| 1465 | function Magic(bonuspeed, type, pos, scale, value, color, MType) | |
| 1466 | local type = type | |
| 1467 | local rng = Instance.new("Part", char)
| |
| 1468 | rng.Anchored = true | |
| 1469 | rng.BrickColor = color | |
| 1470 | rng.CanCollide = false | |
| 1471 | rng.FormFactor = 3 | |
| 1472 | rng.Name = "Ring" | |
| 1473 | rng.Material = "Neon" | |
| 1474 | rng.Size = Vector3.new(1, 1, 1) | |
| 1475 | rng.Transparency = 0 | |
| 1476 | rng.TopSurface = 0 | |
| 1477 | rng.BottomSurface = 0 | |
| 1478 | rng.CFrame = pos | |
| 1479 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1480 | rngm.MeshType = MType | |
| 1481 | rngm.Scale = scale | |
| 1482 | local scaler2 = 1 | |
| 1483 | if type == "Add" then | |
| 1484 | scaler2 = 1 * value | |
| 1485 | elseif type == "Divide" then | |
| 1486 | scaler2 = 1 / value | |
| 1487 | end | |
| 1488 | coroutine.resume(coroutine.create(function() | |
| 1489 | for i = 0, 10 / bonuspeed, 0.1 do | |
| 1490 | swait() | |
| 1491 | if type == "Add" then | |
| 1492 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
| 1493 | elseif type == "Divide" then | |
| 1494 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
| 1495 | end | |
| 1496 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
| 1497 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
| 1498 | end | |
| 1499 | rng:Destroy() | |
| 1500 | end)) | |
| 1501 | end | |
| 1502 | ||
| 1503 | function Eviscerate(dude) | |
| 1504 | if dude.Name ~= char then | |
| 1505 | local bgf = IT("BodyGyro", dude.Head)
| |
| 1506 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
| 1507 | local val = IT("BoolValue", dude)
| |
| 1508 | val.Name = "IsHit" | |
| 1509 | local ds = coroutine.wrap(function() | |
| 1510 | dude:WaitForChild("Head"):BreakJoints()
| |
| 1511 | wait(0.5) | |
| 1512 | target = nil | |
| 1513 | coroutine.resume(coroutine.create(function() | |
| 1514 | for i, v in pairs(dude:GetChildren()) do | |
| 1515 | if v:IsA("Accessory") then
| |
| 1516 | v:Destroy() | |
| 1517 | end | |
| 1518 | if v:IsA("Humanoid") then
| |
| 1519 | v:Destroy() | |
| 1520 | end | |
| 1521 | if v:IsA("CharacterMesh") then
| |
| 1522 | v:Destroy() | |
| 1523 | end | |
| 1524 | if v:IsA("Model") then
| |
| 1525 | v:Destroy() | |
| 1526 | end | |
| 1527 | if v:IsA("Part") or v:IsA("MeshPart") then
| |
| 1528 | for x, o in pairs(v:GetChildren()) do | |
| 1529 | if o:IsA("Decal") then
| |
| 1530 | o:Destroy() | |
| 1531 | end | |
| 1532 | end | |
| 1533 | coroutine.resume(coroutine.create(function() | |
| 1534 | v.Material = "Neon" | |
| 1535 | v.CanCollide = false | |
| 1536 | local PartEmmit1 = IT("ParticleEmitter", v)
| |
| 1537 | PartEmmit1.LightEmission = 1 | |
| 1538 | PartEmmit1.Texture = "rbxassetid://284205403" | |
| 1539 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
| 1540 | PartEmmit1.Rate = 150 | |
| 1541 | PartEmmit1.Lifetime = NumberRange.new(1) | |
| 1542 | PartEmmit1.Size = NumberSequence.new({
| |
| 1543 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
| 1544 | NumberSequenceKeypoint.new(1, 0, 0) | |
| 1545 | }) | |
| 1546 | PartEmmit1.Transparency = NumberSequence.new({
| |
| 1547 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 1548 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 1549 | }) | |
| 1550 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
| 1551 | PartEmmit1.VelocitySpread = 30000 | |
| 1552 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
| 1553 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
| 1554 | local BodPoss = IT("BodyPosition", v)
| |
| 1555 | BodPoss.P = 3000 | |
| 1556 | BodPoss.D = 1000 | |
| 1557 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
| 1558 | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
| 1559 | v.Color = maincolor.Color | |
| 1560 | coroutine.resume(coroutine.create(function() | |
| 1561 | for i = 0, 49 do | |
| 1562 | swait(1) | |
| 1563 | v.Transparency = v.Transparency + 0.08 | |
| 1564 | end | |
| 1565 | wait(0.5) | |
| 1566 | PartEmmit1.Enabled = false | |
| 1567 | wait(3) | |
| 1568 | v:Destroy() | |
| 1569 | dude:Destroy() | |
| 1570 | end)) | |
| 1571 | end)) | |
| 1572 | end | |
| 1573 | end | |
| 1574 | end)) | |
| 1575 | end) | |
| 1576 | ds() | |
| 1577 | end | |
| 1578 | end | |
| 1579 | ||
| 1580 | function FindNearestHead(Position, Distance, SinglePlayer) | |
| 1581 | if SinglePlayer then | |
| 1582 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
| 1583 | end | |
| 1584 | local List = {}
| |
| 1585 | for i, v in pairs(workspace:GetChildren()) do | |
| 1586 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
| |
| 1587 | table.insert(List, v) | |
| 1588 | end | |
| 1589 | end | |
| 1590 | return List | |
| 1591 | end | |
| 1592 | ||
| 1593 | function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType) | |
| 1594 | local type = type | |
| 1595 | local rng = Instance.new("Part", char)
| |
| 1596 | rng.Anchored = true | |
| 1597 | rng.BrickColor = color | |
| 1598 | rng.CanCollide = false | |
| 1599 | rng.FormFactor = 3 | |
| 1600 | rng.Name = "Ring" | |
| 1601 | rng.Material = "Neon" | |
| 1602 | rng.Size = Vector3.new(1, 1, 1) | |
| 1603 | rng.Transparency = 0 | |
| 1604 | rng.TopSurface = 0 | |
| 1605 | rng.BottomSurface = 0 | |
| 1606 | rng.CFrame = pos | |
| 1607 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
| 1608 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1609 | rngm.MeshType = MType | |
| 1610 | rngm.Scale = Vector3.new(x1, y1, z1) | |
| 1611 | local scaler2 = 1 | |
| 1612 | local speeder = FastSpeed | |
| 1613 | if type == "Add" then | |
| 1614 | scaler2 = 1 * value | |
| 1615 | elseif type == "Divide" then | |
| 1616 | scaler2 = 1 / value | |
| 1617 | end | |
| 1618 | coroutine.resume(coroutine.create(function() | |
| 1619 | for i = 0, 10 / bonuspeed, 0.1 do | |
| 1620 | swait() | |
| 1621 | if type == "Add" then | |
| 1622 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
| 1623 | elseif type == "Divide" then | |
| 1624 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
| 1625 | end | |
| 1626 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
| 1627 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
| 1628 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
| 1629 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
| 1630 | end | |
| 1631 | rng:Destroy() | |
| 1632 | end)) | |
| 1633 | end | |
| 1634 | ||
| 1635 | function SoulSteal(dude) | |
| 1636 | if dude.Name ~= char then | |
| 1637 | local bgf = IT("BodyGyro", dude.Head)
| |
| 1638 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
| 1639 | local val = IT("BoolValue", dude)
| |
| 1640 | val.Name = "IsHit" | |
| 1641 | local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart') | |
| 1642 | local soulst = coroutine.wrap(function() | |
| 1643 | local soul = Instance.new("Part",dude)
| |
| 1644 | soul.Size = Vector3.new(1,1,1) | |
| 1645 | soul.CanCollide = false | |
| 1646 | soul.Anchored = false | |
| 1647 | soul.Position = torso.Position | |
| 1648 | soul.Transparency = 1 | |
| 1649 | local PartEmmit1 = IT("ParticleEmitter", soul)
| |
| 1650 | PartEmmit1.LightEmission = 1 | |
| 1651 | PartEmmit1.Texture = "rbxassetid://569507414" | |
| 1652 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
| 1653 | PartEmmit1.Rate = 250 | |
| 1654 | PartEmmit1.Lifetime = NumberRange.new(1.6) | |
| 1655 | PartEmmit1.Size = NumberSequence.new({
| |
| 1656 | NumberSequenceKeypoint.new(0, 1, 0), | |
| 1657 | NumberSequenceKeypoint.new(1, 0, 0) | |
| 1658 | }) | |
| 1659 | PartEmmit1.Transparency = NumberSequence.new({
| |
| 1660 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 1661 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 1662 | }) | |
| 1663 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
| 1664 | PartEmmit1.VelocitySpread = 30000 | |
| 1665 | PartEmmit1.Rotation = NumberRange.new(-360, 360) | |
| 1666 | PartEmmit1.RotSpeed = NumberRange.new(-360, 360) | |
| 1667 | local BodPoss = IT("BodyPosition", soul)
| |
| 1668 | BodPoss.P = 3000 | |
| 1669 | BodPoss.D = 1000 | |
| 1670 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
| 1671 | BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
| 1672 | wait(1.6) | |
| 1673 | soul.Touched:connect(function(hit) | |
| 1674 | if hit.Parent == char then | |
| 1675 | soul:Destroy() | |
| 1676 | end | |
| 1677 | end) | |
| 1678 | wait(1.2) | |
| 1679 | while soul do | |
| 1680 | swait() | |
| 1681 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
| 1682 | BodPoss.Position = tors.Position | |
| 1683 | end | |
| 1684 | end) | |
| 1685 | soulst() | |
| 1686 | end | |
| 1687 | end | |
| 1688 | function FaceMouse() | |
| 1689 | local Cam = workspace.CurrentCamera | |
| 1690 | return {
| |
| 1691 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
| 1692 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
| 1693 | } | |
| 1694 | end | |
| 1695 | ||
| 1696 | BTAUNT = Instance.new("Sound", tors)
| |
| 1697 | BTAUNT.SoundId = "http://www.roblox.com/asset/?id=2996427130" | |
| 1698 | BTAUNT.Volume = 2 | |
| 1699 | BTAUNT.Pitch = 1 | |
| 1700 | BTAUNT.Looped = true | |
| 1701 | BTAUNT.TimePosition = 0.2 | |
| 1702 | ||
| 1703 | TEST = Instance.new("Sound", tors)
| |
| 1704 | TEST.SoundId = "http://www.roblox.com/asset/?id=606732470" | |
| 1705 | TEST.Volume = 25 | |
| 1706 | TEST.Pitch = 1 | |
| 1707 | TEST.Looped = false | |
| 1708 | TEST.TimePosition = 0 | |
| 1709 | ------------------------------------------------------- | |
| 1710 | --End Effect Function-- | |
| 1711 | ------------------------------------------------------- | |
| 1712 | function Cso(ID, PARENT, VOLUME, PITCH) | |
| 1713 | local NSound = nil | |
| 1714 | coroutine.resume(coroutine.create(function() | |
| 1715 | NSound = IT("Sound", PARENT)
| |
| 1716 | NSound.Volume = VOLUME | |
| 1717 | NSound.Pitch = PITCH | |
| 1718 | NSound.SoundId = "http://www.roblox.com/asset/?id=417445954" | |
| 1719 | swait() | |
| 1720 | NSound:play() | |
| 1721 | game:GetService("Debris"):AddItem(NSound, 50)
| |
| 1722 | end)) | |
| 1723 | return NSound | |
| 1724 | end | |
| 1725 | function CameraEnshaking(Length, Intensity) | |
| 1726 | coroutine.resume(coroutine.create(function() | |
| 1727 | local intensity = 1 * Intensity | |
| 1728 | local rotM = 0.01 * Intensity | |
| 1729 | for i = 0, Length, 0.1 do | |
| 1730 | swait() | |
| 1731 | intensity = intensity - 0.05 * Intensity / Length | |
| 1732 | rotM = rotM - 5.0E-4 * Intensity / Length | |
| 1733 | hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) | |
| 1734 | 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) | |
| 1735 | end | |
| 1736 | hum.CameraOffset = Vector3.new(0, 0, 0) | |
| 1737 | end)) | |
| 1738 | end | |
| 1739 | ------------------------------------------------------- | |
| 1740 | --End Important Functions-- | |
| 1741 | ------------------------------------------------------- | |
| 1742 | ||
| 1743 | ||
| 1744 | ------------------------------------------------------- | |
| 1745 | --Start Customization-- | |
| 1746 | ------------------------------------------------------- | |
| 1747 | local Player_Size = 1 | |
| 1748 | if Player_Size ~= 1 then | |
| 1749 | root.Size = root.Size * Player_Size | |
| 1750 | tors.Size = tors.Size * Player_Size | |
| 1751 | hed.Size = hed.Size * Player_Size | |
| 1752 | ra.Size = ra.Size * Player_Size | |
| 1753 | la.Size = la.Size * Player_Size | |
| 1754 | rl.Size = rl.Size * Player_Size | |
| 1755 | ll.Size = ll.Size * Player_Size | |
| 1756 | ---------------------------------------------------------------------------------- | |
| 1757 | rootj.Parent = root | |
| 1758 | neck.Parent = tors | |
| 1759 | RW.Parent = tors | |
| 1760 | LW.Parent = tors | |
| 1761 | RH.Parent = tors | |
| 1762 | LH.Parent = tors | |
| 1763 | ---------------------------------------------------------------------------------- | |
| 1764 | rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
| 1765 | rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
| 1766 | neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)) | |
| 1767 | neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180)) | |
| 1768 | RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0 | |
| 1769 | LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0 | |
| 1770 | ---------------------------------------------------------------------------------- | |
| 1771 | 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)) | |
| 1772 | 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)) | |
| 1773 | 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)) | |
| 1774 | 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)) | |
| 1775 | --hat.Parent = Character | |
| 1776 | end | |
| 1777 | ---------------------------------------------------------------------------------- | |
| 1778 | ---------------------------------------------------------------------------------- | |
| 1779 | local equipped = false | |
| 1780 | local idle = 0 | |
| 1781 | local change = 1 | |
| 1782 | local val = 0 | |
| 1783 | local toim = 0 | |
| 1784 | local idleanim = 0.4 | |
| 1785 | local sine = 0 | |
| 1786 | local Sit = 1 | |
| 1787 | ---------------------------------------------------------------------------------- | |
| 1788 | hum.WalkSpeed = 8 | |
| 1789 | hum.JumpPower = 57 | |
| 1790 | hum.Animator.Parent = nil | |
| 1791 | ---------------------------------------------------------------------------------- | |
| 1792 | ||
| 1793 | ||
| 1794 | ------------------------------------------------------- | |
| 1795 | --End Customization-- | |
| 1796 | ------------------------------------------------------- | |
| 1797 | local Blobby = Instance.new("Part", char)
| |
| 1798 | Blobby.Name = "Blob" | |
| 1799 | Blobby.CanCollide = false | |
| 1800 | Blobby.BrickColor = BrickColor.new("Really black")
| |
| 1801 | Blobby.Transparency = 0 | |
| 1802 | Blobby.Material = "Plastic" | |
| 1803 | Blobby.Size = Vector3.new(1, 1, 2) | |
| 1804 | Blobby.TopSurface = Enum.SurfaceType.Smooth | |
| 1805 | Blobby.BottomSurface = Enum.SurfaceType.Smooth | |
| 1806 | ||
| 1807 | local Weld = Instance.new("Weld", Blobby)
| |
| 1808 | Weld.Part0 = ra | |
| 1809 | Weld.Part1 = Blobby | |
| 1810 | Weld.C1 = CFrame.new(0, 0.8, 0) | |
| 1811 | Weld.C0 = CFrame.Angles(Rad(-180),0,135) | |
| 1812 | ||
| 1813 | local M2 = Instance.new("SpecialMesh")
| |
| 1814 | M2.Parent = Blobby | |
| 1815 | M2.MeshId = "rbxassetid://0" | |
| 1816 | M2.TextureId = "rbxassetid://0" | |
| 1817 | M2.Scale = Vector3.new(1, 0.8, 1) | |
| 1818 | ||
| 1819 | --[[local naeeym2 = Instance.new("BillboardGui",char)
| |
| 1820 | naeeym2.AlwaysOnTop = true | |
| 1821 | naeeym2.Size = UDim2.new(5,35,2,15) | |
| 1822 | naeeym2.StudsOffset = Vector3.new(0, 3.5, 0) | |
| 1823 | naeeym2.Adornee = hed | |
| 1824 | naeeym2.Name = "Name" | |
| 1825 | --naeeym2.PlayerToHideFrom = Player | |
| 1826 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 1827 | tecks2.BackgroundTransparency = 1 | |
| 1828 | tecks2.TextScaled = true | |
| 1829 | tecks2.BorderSizePixel = 0 | |
| 1830 | tecks2.Text = "Fight Me" | |
| 1831 | tecks2.Font = Enum.Font.Bodoni | |
| 1832 | tecks2.TextSize = 30 | |
| 1833 | tecks2.TextStrokeTransparency = 0 | |
| 1834 | tecks2.TextColor3 = Color3.new(0, 0, 0) | |
| 1835 | tecks2.TextStrokeColor3 = Color3.new(1, 1, 1) | |
| 1836 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 1837 | tecks2.Parent = naeeym2]] | |
| 1838 | ---------------------------------------------------------------------------------- | |
| 1839 | local AddInstance = function(Object, ...) | |
| 1840 | local Obj = Instance.new(Object) | |
| 1841 | for i,v in next,(...) do | |
| 1842 | Obj[i] = v | |
| 1843 | end | |
| 1844 | return Obj | |
| 1845 | end | |
| 1846 | ---------------------------------------------------- | |
| 1847 | ------------------------------------------------------- | |
| 1848 | wait(1) | |
| 1849 | - | plr = game.Players.TheFigureBlack |
| 1849 | + | plr = game.Players.silver22352 |
| 1850 | char = plr.Character | |
| 1851 | ||
| 1852 | whitecolor = Color3.new(255,255,1) | |
| 1853 | epicmode = false | |
| 1854 | normal = true | |
| 1855 | for i,v in pairs(char:GetChildren()) do | |
| 1856 | if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then | |
| 1857 | v:Destroy() | |
| 1858 | end | |
| 1859 | end | |
| 1860 | for i,v in pairs(char:GetChildren()) do | |
| 1861 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
| 1862 | v:Destroy() | |
| 1863 | end | |
| 1864 | end | |
| 1865 | ||
| 1866 | ||
| 1867 | ||
| 1868 | local BC = Character["Body Colors"] | |
| 1869 | BC.HeadColor = BrickColor.new("Institutional white")
| |
| 1870 | BC.LeftArmColor = BrickColor.new("Institutional white")
| |
| 1871 | BC.LeftLegColor = BrickColor.new("Institutional white")
| |
| 1872 | BC.RightArmColor = BrickColor.new("Institutional white")
| |
| 1873 | BC.RightLegColor = BrickColor.new("Institutional white")
| |
| 1874 | BC.TorsoColor = BrickColor.new("Institutional white")
| |
| 1875 | ||
| 1876 | ||
| 1877 | local righteyebrickcolor = "Really black" | |
| 1878 | local reye = Instance.new("Part", char)
| |
| 1879 | reye.CanCollide = false | |
| 1880 | reye.BrickColor = BrickColor.new(righteyebrickcolor) | |
| 1881 | reye.Material = "Neon" | |
| 1882 | reye.Size = Vector3.new(.25,.35,.15) | |
| 1883 | weld(reye, char.Head, CFrame.new(0.15,-0.2,0.55), CFrame.new(0.1,0.1,0.1)) | |
| 1884 | m1 = Instance.new("SpecialMesh", reye)
| |
| 1885 | m1.MeshType = "Sphere" | |
| 1886 | m1.Scale = Vector3.new(0.9,0.9,0.9) | |
| 1887 | reye.Locked = true | |
| 1888 | reye.Name = "re" | |
| 1889 | ||
| 1890 | ------------------------------------------------------- | |
| 1891 | --Start Attacks N Stuff-- | |
| 1892 | ------------------------------------------------------- | |
| 1893 | local naeeym2 = Instance.new("BillboardGui",char)
| |
| 1894 | naeeym2.AlwaysOnTop = true | |
| 1895 | naeeym2.Size = UDim2.new(5,35,2,35) | |
| 1896 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
| 1897 | naeeym2.Adornee = hed | |
| 1898 | naeeym2.Name = "Name" | |
| 1899 | ||
| 1900 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 1901 | tecks2.BackgroundTransparency = 1 | |
| 1902 | tecks2.TextScaled = true | |
| 1903 | tecks2.BorderSizePixel = 0 | |
| 1904 | tecks2.Text = "..." | |
| 1905 | tecks2.Font = "Fantasy" | |
| 1906 | tecks2.TextSize = 30 | |
| 1907 | tecks2.TextStrokeTransparency = 0 | |
| 1908 | tecks2.TextColor3 = BrickColor.new('Bright yellow').Color
| |
| 1909 | tecks2.TextStrokeColor3 = BrickColor.new('Bright blue').Color
| |
| 1910 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 1911 | tecks2.Parent = naeeym2 | |
| 1912 | textfag = tecks2 | |
| 1913 | wait (1) | |
| 1914 | tecks2.Text = "You gonna have a bad time" | |
| 1915 | wait(1) | |
| 1916 | tecks2.Text = "if you step more you don.t gonna forget it" | |
| 1917 | wait(1) | |
| 1918 | tecks2.Text = "well them" | |
| 1919 | wait(1) | |
| 1920 | tecks2.Text = "..." | |
| 1921 | wait(2) | |
| 1922 | tecks2.Text = "Sorry old lady i not make some promises" | |
| 1923 | wait(1) | |
| 1924 | tecks2.Text = "SANS J҉ E҉ V҉ I҉ L҉" | |
| 1925 | BTAUNT:Play() | |
| 1926 | coroutine.resume(coroutine.create(function() | |
| 1927 | while textfag ~= nil do | |
| 1928 | swait() | |
| 1929 | textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
| 1930 | textfag.Rotation = math.random(-3,3) | |
| 1931 | end | |
| 1932 | end)) | |
| 1933 | local righteyebrickcolor = "Bright yellow" | |
| 1934 | local reye = Instance.new("Part", char)
| |
| 1935 | reye.CanCollide = false | |
| 1936 | reye.BrickColor = BrickColor.new(righteyebrickcolor) | |
| 1937 | reye.Material = "Neon" | |
| 1938 | reye.Size = Vector3.new(.25,.35,.25) | |
| 1939 | weld(reye, char.Head, CFrame.new(-0.12,-0.2,0.55), CFrame.new(1,0,0)) | |
| 1940 | m1 = Instance.new("SpecialMesh", reye)
| |
| 1941 | m1.MeshType = "Sphere" | |
| 1942 | m1.Scale = Vector3.new(0.9,0.9,0.9) | |
| 1943 | reye.Locked = true | |
| 1944 | reye.Name = "re" | |
| 1945 | ||
| 1946 | ||
| 1947 | local righteyebrickcolor = "Bright yellow" | |
| 1948 | local reye = Instance.new("Part", char)
| |
| 1949 | reye.CanCollide = false | |
| 1950 | reye.BrickColor = BrickColor.new(righteyebrickcolor) | |
| 1951 | reye.Material = "Neon" | |
| 1952 | reye.Size = Vector3.new(.25,.35,.15) | |
| 1953 | weld(reye, char.Head, CFrame.new(0.15,-0.2,0.55), CFrame.new(1,0,0)) | |
| 1954 | m1 = Instance.new("SpecialMesh", reye)
| |
| 1955 | m1.MeshType = "Sphere" | |
| 1956 | m1.Scale = Vector3.new(0.9,0.9,0.9) | |
| 1957 | reye.Locked = true | |
| 1958 | reye.Name = "re" | |
| 1959 | char.Head.face.Texture = "http://www.roblox.com/asset/?id=246596429" | |
| 1960 | ||
| 1961 | ||
| 1962 | function die() | |
| 1963 | attack = true | |
| 1964 | M2.MeshId = "http://www.roblox.com/asset/?id=28140935" | |
| 1965 | M2.TextureId = "http://www.roblox.com/asset/?id=50252366" | |
| 1966 | for i = 0, 2.6, 0.1 do | |
| 1967 | swait() | |
| 1968 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
| 1969 | 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) | |
| 1970 | 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) | |
| 1971 | 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) | |
| 1972 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(160), Rad(-.6), Rad(13)), 0.2) | |
| 1973 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(7 + 4.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(-13 - 4.5 * Sin(sine / 12))), 0.1) | |
| 1974 | end | |
| 1975 | Cso("357417055", tors, 10, 1)
| |
| 1976 | CameraEnshaking(2, 15) | |
| 1977 | Effects.Wave.Create(BrickColor.new("Bright blue"), 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)
| |
| 1978 | Effects.Wave.Create(BrickColor.new("Bright yellow"), 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)
| |
| 1979 | Effects.Wave.Create(BrickColor.new("Shamrock"), 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)
| |
| 1980 | for i, v in pairs(FindNearestHead(Blobby.CFrame.p, 9.5)) do | |
| 1981 | if v:FindFirstChild("Head") then
| |
| 1982 | Eviscerate(v) | |
| 1983 | end | |
| 1984 | end | |
| 1985 | for i = 0, 3, 0.1 do | |
| 1986 | swait() | |
| 1987 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
| 1988 | 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) | |
| 1989 | 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) | |
| 1990 | 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) | |
| 1991 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(5), Rad(-.6), Rad(-25)), 0.3) | |
| 1992 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(7 + 4.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(-13 - 4.5 * Sin(sine / 12))), 0.1) | |
| 1993 | end | |
| 1994 | M2.MeshId = "http://www.roblox.com/asset/?id=0" | |
| 1995 | M2.TextureId = "http://www.roblox.com/asset/?id=0" | |
| 1996 | attack = false | |
| 1997 | end | |
| 1998 | ||
| 1999 | function dance() | |
| 2000 | attack = true | |
| 2001 | hum.WalkSpeed = 0 | |
| 2002 | CFuncs.Sound.Create("", head, 100, 1)
| |
| 2003 | for i = 0, 2, 0.1 do | |
| 2004 | swait() | |
| 2005 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.5 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15) | |
| 2006 | neck.C0 = clerp(neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
| 2007 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.6 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
| 2008 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.6 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
| 2009 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12) | |
| 2010 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
| 2011 | end | |
| 2012 | for i = 0, 6, 0.1 do | |
| 2013 | swait() | |
| 2014 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, .2 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15) | |
| 2015 | neck.C0 = clerp(neck.C0, necko * CF(0, 0, 2) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.15) | |
| 2016 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1.2 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
| 2017 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -1.2 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
| 2018 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
| 2019 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12) | |
| 2020 | end | |
| 2021 | for i = 0, 2, 0.1 do | |
| 2022 | swait() | |
| 2023 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.5 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15) | |
| 2024 | neck.C0 = clerp(neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
| 2025 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.6 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
| 2026 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.6 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
| 2027 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12) | |
| 2028 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
| 2029 | end | |
| 2030 | attack = false | |
| 2031 | hum.WalkSpeed = 20 | |
| 2032 | end | |
| 2033 | ---------------------------------------------------------- | |
| 2034 | ||
| 2035 | function aaa() | |
| 2036 | attack = true | |
| 2037 | hum.WalkSpeed = 0 | |
| 2038 | for i = 0,20, 0.1 do | |
| 2039 | swait() | |
| 2040 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
| 2041 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1) | |
| 2042 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(25)), 0.3) | |
| 2043 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(-25)), 0.3) | |
| 2044 | RW.C0 = clerp(RW.C0, CF(1.1* Player_Size, 0.5 + 0.05 * Sin(sine / 12)* Player_Size, -0.5* Player_Size) * angles(Rad(180), Rad(6), Rad(-56)), 0.1) | |
| 2045 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.1 + 0.05 * Sin(sine / 12)* Player_Size, -0.5* Player_Size) * angles(Rad(45), Rad(6), Rad(86)), 0.1) | |
| 2046 | end | |
| 2047 | hum.WalkSpeed = 16 | |
| 2048 | attack = false | |
| 2049 | end | |
| 2050 | ||
| 2051 | function finalChaos() | |
| 2052 | attack = true | |
| 2053 | spawn(function() | |
| 2054 | local p = Instance.new("Part",char)
| |
| 2055 | p.Anchored = true | |
| 2056 | p.CanCollide = false | |
| 2057 | p.CFrame = CFrame.new(mouse.Hit.p+Vector3.new(0,100,0)) | |
| 2058 | local m = Instance.new("SpecialMesh",p)
| |
| 2059 | m.MeshId = "rbxassetid://2711107284" | |
| 2060 | m.TextureId = "rbxassetid://2711107314" | |
| 2061 | m.Scale = Vector3.new(1,1,1) | |
| 2062 | for i=1,30 do | |
| 2063 | p.CFrame = p.CFrame-Vector3.new(0,3.3333,0) | |
| 2064 | p.CFrame = p.CFrame * CFrame.Angles(0.5,0,0) | |
| 2065 | wait() | |
| 2066 | end | |
| 2067 | local beam = Instance.new("Part",char)
| |
| 2068 | beam.Anchored = true | |
| 2069 | beam.CanCollide = false | |
| 2070 | beam.BrickColor = BrickColor.new("Bright yellow")
| |
| 2071 | beam.Material = Enum.Material.Neon | |
| 2072 | beam.Size = Vector3.new(1,1,1) | |
| 2073 | beam.Position = p.Position+Vector3.new(0,1000,0) | |
| 2074 | beam.CFrame = beam.CFrame * CFrame.Angles(0,0,89.5354) | |
| 2075 | local m = Instance.new("SpecialMesh",beam)
| |
| 2076 | m.MeshType = "Cylinder" | |
| 2077 | m.Scale = Vector3.new(2000,15,15) | |
| 2078 | damage(6,20,35,p.Position) | |
| 2079 | p.Transparency = 20 | |
| 2080 | CFuncs.Sound.Create("rbxassetid://2627797774", p, 10, 1)
| |
| 2081 | for i=1,10 do | |
| 2082 | m.Scale = m.Scale-Vector3.new(0,1,1) | |
| 2083 | beam.Transparency = i/10 | |
| 2084 | wait() | |
| 2085 | end | |
| 2086 | p:Destroy() | |
| 2087 | end) | |
| 2088 | attack = false | |
| 2089 | end | |
| 2090 | ||
| 2091 | function beam() | |
| 2092 | attack = true | |
| 2093 | hum.WalkSpeed = 0 | |
| 2094 | local Ring1 = Instance.new("Part", char)
| |
| 2095 | Ring1.Anchored = true | |
| 2096 | Ring1.BrickColor = maincolor | |
| 2097 | Ring1.CanCollide = false | |
| 2098 | Ring1.FormFactor = 3 | |
| 2099 | Ring1.Name = "Ring" | |
| 2100 | Ring1.Material = "Neon" | |
| 2101 | Ring1.Size = Vector3.new(1, 0.05, 1) | |
| 2102 | Ring1.Transparency = 1 | |
| 2103 | Ring1.TopSurface = 0 | |
| 2104 | Ring1.BottomSurface = 0 | |
| 2105 | local Ring1Mesh = Instance.new("SpecialMesh", Ring1)
| |
| 2106 | Ring1Mesh.MeshType = "Brick" | |
| 2107 | Ring1Mesh.Name = "SizeMesh" | |
| 2108 | Ring1Mesh.Scale = Vector3.new(0, 1, 0) | |
| 2109 | local InnerRing1 = Ring1:Clone() | |
| 2110 | InnerRing1.Parent = char | |
| 2111 | InnerRing1.Transparency = 0 | |
| 2112 | InnerRing1.BrickColor = BrickColor.new("New Yeller")
| |
| 2113 | InnerRing1.Size = Vector3.new(1, 1, 1) | |
| 2114 | local InnerRing1Mesh = InnerRing1.SizeMesh | |
| 2115 | InnerRing1Mesh.Scale = Vector3.new(0, 0, 0) | |
| 2116 | InnerRing1Mesh.MeshType = "Sphere" | |
| 2117 | Ring1:Destroy() | |
| 2118 | for i = 0, 6, 0.1 do | |
| 2119 | swait() | |
| 2120 | --orb.CFrame = Pupil.CFrame | |
| 2121 | Aura(7, 0.12, "Add", Head.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Sphere") | |
| 2122 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
| 2123 | neck.C0 = clerp(neck.C0, necko * CF(0, 0, 1) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
| 2124 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
| 2125 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
| 2126 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(165 + 2.5 * Sin(sine / 20))), 0.12) | |
| 2127 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(-165 + 2.5 * Sin(sine / 20))), 0.12) | |
| 2128 | end | |
| 2129 | InnerRing1.Transparency = 1 | |
| 2130 | InnerRing1.CFrame = Head.CFrame + root.CFrame.lookVector * 5 | |
| 2131 | Cso("2545012765", char, 10, 1)
| |
| 2132 | Cso("2606661976", char, 2.3, 1)
| |
| 2133 | local a = IT("Part", char)
| |
| 2134 | a.Name = "Direction" | |
| 2135 | a.Anchored = true | |
| 2136 | a.BrickColor = BrickC("Bright blue")
| |
| 2137 | a.Material = "SmoothPlastic" | |
| 2138 | a.Transparency = 0 | |
| 2139 | a.Shape = "Cylinder" | |
| 2140 | a.CanCollide = false | |
| 2141 | local a2 = IT("Part", char)
| |
| 2142 | a2.Name = "Direction" | |
| 2143 | a2.Anchored = true | |
| 2144 | a2.BrickColor = maincolor | |
| 2145 | a2.Color = maincolor.Color | |
| 2146 | a2.Material = "Neon" | |
| 2147 | a2.Transparency = 0.7 | |
| 2148 | a2.Shape = "Cylinder" | |
| 2149 | a2.CanCollide = false | |
| 2150 | local ba = IT("Part", char)
| |
| 2151 | ba.Name = "HitDirect" | |
| 2152 | ba.Anchored = true | |
| 2153 | ba.BrickColor = maincolor | |
| 2154 | ba.Material = "Neon" | |
| 2155 | ba.Transparency = 1 | |
| 2156 | ba.CanCollide = false | |
| 2157 | local ray = Ray.new(InnerRing1.CFrame.p, (mouse.Hit.p - InnerRing1.CFrame.p).unit * 1000) | |
| 2158 | local ignore = char | |
| 2159 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 2160 | a.BottomSurface = 10 | |
| 2161 | a.TopSurface = 10 | |
| 2162 | a2.BottomSurface = 10 | |
| 2163 | a2.TopSurface = 10 | |
| 2164 | local distance = (InnerRing1.CFrame.p - position).magnitude | |
| 2165 | a.Size = Vector3.new(distance, 1, 1) | |
| 2166 | a.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2) | |
| 2167 | a2.Size = Vector3.new(distance, 1, 1) | |
| 2168 | a2.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2) | |
| 2169 | ba.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance) | |
| 2170 | a.CFrame = a.CFrame * angles(0, Rad(90), 0) | |
| 2171 | a2.CFrame = a2.CFrame * angles(0, Rad(90), 0) | |
| 2172 | game:GetService("Debris"):AddItem(a, 20)
| |
| 2173 | game:GetService("Debris"):AddItem(a2, 20)
| |
| 2174 | game:GetService("Debris"):AddItem(ba, 20)
| |
| 2175 | local msh = Instance.new("SpecialMesh", a)
| |
| 2176 | msh.MeshType = "Brick" | |
| 2177 | msh.Scale = Vector3.new(1, 5, 5) | |
| 2178 | local msh2 = Instance.new("SpecialMesh", a2)
| |
| 2179 | msh2.MeshType = "Brick" | |
| 2180 | msh2.Scale = Vector3.new(1, 7, 7) | |
| 2181 | for i = 0, 10, 0.1 do | |
| 2182 | swait() | |
| 2183 | CameraEnshaking(1, 5) | |
| 2184 | a2.Color = maincolor.Color | |
| 2185 | root.CFrame = FaceMouse()[1] | |
| 2186 | InnerRing1.CFrame = Head.CFrame + root.CFrame.lookVector * 4 | |
| 2187 | ray = Ray.new(InnerRing1.CFrame.p, (mouse.Hit.p - InnerRing1.CFrame.p).unit * 1000) | |
| 2188 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 2189 | distance = (InnerRing1.CFrame.p - position).magnitude | |
| 2190 | a.Size = Vector3.new(distance, 1, 1) | |
| 2191 | a.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2) | |
| 2192 | a2.Size = Vector3.new(distance, 1, 1) | |
| 2193 | a2.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2) | |
| 2194 | ba.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance) | |
| 2195 | a.CFrame = a.CFrame * angles(0, Rad(90), 0) | |
| 2196 | a2.CFrame = a2.CFrame * angles(0, Rad(90), 0) | |
| 2197 | msh.Scale = msh.Scale - Vector3.new(0, 0.05, 0.05) | |
| 2198 | msh2.Scale = msh2.Scale - Vector3.new(0, 0.03, 0.03) | |
| 2199 | Aura(5, 0.15, "Add", ba.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 15, 15, 25, -0.15, maincolor, 0, "Sphere") | |
| 2200 | for i, v in pairs(FindNearestHead(ba.CFrame.p, 14.5)) do | |
| 2201 | if v:FindFirstChild("Head") then
| |
| 2202 | Eviscerate(v) | |
| 2203 | end | |
| 2204 | end | |
| 2205 | end | |
| 2206 | a:Destroy() | |
| 2207 | a2:Destroy() | |
| 2208 | ba:Destroy() | |
| 2209 | InnerRing1:Destroy() | |
| 2210 | attack = false | |
| 2211 | hum.WalkSpeed = 10 | |
| 2212 | hum.CameraOffset = Vector3.new(0,0,0) | |
| 2213 | end | |
| 2214 | ||
| 2215 | function Call_Upon_The_Eyes() | |
| 2216 | attack = true | |
| 2217 | hum.WalkSpeed = 0 | |
| 2218 | for i = 0, 6, 0.1 do | |
| 2219 | swait() | |
| 2220 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
| 2221 | neck.C0 = clerp(neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
| 2222 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
| 2223 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
| 2224 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(145), Rad(0), Rad(15 + 2.5 * Sin(sine / 20))), 0.12) | |
| 2225 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
| 2226 | end | |
| 2227 | Magic(5, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, maincolor, "Sphere") | |
| 2228 | Magic(10, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, maincolor, "Sphere") | |
| 2229 | Magic(1, "Add", mouse.Hit, Vector3.new(1, 100000, 1), 0.5, maincolor, "Sphere") | |
| 2230 | Magic(1, "Add", mouse.Hit, Vector3.new(1, 1, 1), 0.75, maincolor, "Sphere") | |
| 2231 | CameraEnshaking(4, 25) | |
| 2232 | for i, v in pairs(FindNearestHead(mouse.Hit.p, 14.5)) do | |
| 2233 | if v:FindFirstChild("Head") then
| |
| 2234 | Eviscerate(v) | |
| 2235 | end | |
| 2236 | end | |
| 2237 | for i = 0, 6, 0.1 do | |
| 2238 | swait() | |
| 2239 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
| 2240 | neck.C0 = clerp(neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
| 2241 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
| 2242 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
| 2243 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(45), Rad(0), Rad(15 + 2.5 * Sin(sine / 20))), 0.2) | |
| 2244 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
| 2245 | end | |
| 2246 | attack = false | |
| 2247 | hum.WalkSpeed = 10 | |
| 2248 | end | |
| 2249 | ||
| 2250 | function CHAOS() | |
| 2251 | attack = true | |
| 2252 | root.CFrame = CFrame.new(CFrame.new(mouse.Hit.p)*CFrame.new(0,2.8,0).p,root.Position) | |
| 2253 | Cso("2545012765", hed, 10, 1)
| |
| 2254 | Effects.Ring.Create(BrickC("Bright yellow"), root.CFrame * CF(0, -2.3, 0) * angles(Rad(90),Rad(-1),Rad(0)), 2.5, 2.5, 40, 3, 3, 45, 0.01)
| |
| 2255 | ||
| 2256 | Effects.Sphere.Create(BrickColor.new("Bright yellow"), root.CFrame * CF(0, -2, 0), 10, 7, 10, 15, -0.1, 15, 0.04)
| |
| 2257 | Effects.Sphere.Create(BrickColor.new("Bright yellow"), root.CFrame * CF(0, -2, 0), 10, 6, 10, 15, -0.1, 15, 0.02)
| |
| 2258 | Effects.Sphere.Create(BrickColor.new("Bright yellow"), root.CFrame * CF(0, -2, 0), 10, 4, 10, 15, -0.1, 15, 0.01)
| |
| 2259 | ||
| 2260 | PixelBlock(2,7,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0) | |
| 2261 | PixelBlock(1.5,9.5,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0) | |
| 2262 | PixelBlock(1,12,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0) | |
| 2263 | PixelBlock(2,7,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0) | |
| 2264 | PixelBlock(1.5,9.5,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0) | |
| 2265 | PixelBlock(1,12,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0) | |
| 2266 | PixelBlock(2,7,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0) | |
| 2267 | PixelBlock(1.5,9.5,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0) | |
| 2268 | PixelBlock(1,12,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0) | |
| 2269 | PixelBlock(2,7,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0) | |
| 2270 | PixelBlock(1.5,9.5,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0) | |
| 2271 | PixelBlock(1,12,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0) | |
| 2272 | for i, v in pairs(FindNearestHead(Blobby.CFrame.p, 9.5)) do | |
| 2273 | if v:FindFirstChild("Head") then
| |
| 2274 | Eviscerate(v) | |
| 2275 | end | |
| 2276 | end | |
| 2277 | attack = false | |
| 2278 | end | |
| 2279 | function Chain2() | |
| 2280 | if Mouse.Target.Parent ~= char and Mouse.Target.Parent.Parent ~= char and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
| |
| 2281 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
| |
| 2282 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
| |
| 2283 | local HEAD = HUM.Parent:FindFirstChild("Head")
| |
| 2284 | local RIGHTARM = HUM.Parent:FindFirstChild("Right Arm") or HUM.Parent:FindFirstChild("RightLowerArm")
| |
| 2285 | local LEFTARM = HUM.Parent:FindFirstChild("Left Arm") or HUM.Parent:FindFirstChild("LeftLowerArm")
| |
| 2286 | if HEAD and TORSO and HUM.Health > 0 then | |
| 2287 | local GYRO = IT("BodyGyro",root)
| |
| 2288 | GYRO.D = 275 | |
| 2289 | GYRO.P = 20000 | |
| 2290 | GYRO.MaxTorque = Vector3.new(0,40000,0) | |
| 2291 | attack = true | |
| 2292 | hum.WalkSpeed = 0 | |
| 2293 | local hit,pos,hummie; | |
| 2294 | local Hook2 = Part(EffectModel, Color3.new(),Enum.Material.Neon,Vector3.new(.05,.05,.05),root.CFrame,true,false) | |
| 2295 | Hook2.Transparency = 1 | |
| 2296 | local A2 = NewInstance("Attachment",Hook2)
| |
| 2297 | local B2 = NewInstance("Attachment",la,{Position = Vector3.new(0,-ra.Size.Y/2,0)})
| |
| 2298 | local Chain2 = NewInstance("Beam",Hook2,{Attachment0 = A2,Attachment1=B2,Color = Color3.fromRGB(138,138,138),FaceCamera=true,LightInfluence=0,Texture="rbxassetid://73042633",TextureLength=5,Transparency=NumberSequence.new(0),TextureSpeed=0,CurveSize0=0,CurveSize1=0,FaceCamera=true,Segments=10,Width0=1,Width1=1})
| |
| 2299 | for i = 0, 2.3, .1 do | |
| 2300 | swait() | |
| 2301 | GYRO.cframe = CF(root.Position,TORSO.Position) | |
| 2302 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
| 2303 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
| 2304 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-7)), 0.15) | |
| 2305 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(7)), 0.15) | |
| 2306 | 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) | |
| 2307 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(-25)), 0.1) | |
| 2308 | end | |
| 2309 | Cso("169105657", ra, 7, 1.2)
| |
| 2310 | for i = 0, 5, .1 do | |
| 2311 | if(hit)then break end | |
| 2312 | swait() | |
| 2313 | GYRO.cframe = CF(root.Position,TORSO.Position) | |
| 2314 | Hook2.CFrame = TORSO.CFrame | |
| 2315 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
| 2316 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
| 2317 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(7)), 0.15) | |
| 2318 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-7)), 0.15) | |
| 2319 | 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) | |
| 2320 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(-25)), 0.1) | |
| 2321 | end | |
| 2322 | Cso("169105657", ra, 5, .8)
| |
| 2323 | Cso("2545211765", char, 7, 1)
| |
| 2324 | GYRO:remove() | |
| 2325 | TORSO:BreakJoints() | |
| 2326 | for i = 0, 6, .1 do | |
| 2327 | swait() | |
| 2328 | Hook2.CFrame = Hook2.CFrame:lerp(tors.CFrame * CF(0, 0, -1), .2) | |
| 2329 | if(hit)then hit.CFrame = Hook2.CFrame; hit.Velocity = Vector3.new() | |
| 2330 | end | |
| 2331 | if((Hook2.CFrame.p-tors.CFrame.p).magnitude < 2)then | |
| 2332 | break | |
| 2333 | end | |
| 2334 | Chain2.TextureLength = 4 | |
| 2335 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
| 2336 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
| 2337 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(90)), 0.15) | |
| 2338 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(7)), 0.15) | |
| 2339 | 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) | |
| 2340 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(-25)), 0.1) | |
| 2341 | end | |
| 2342 | hum.WalkSpeed = 16 | |
| 2343 | attack = false | |
| 2344 | Hook2:Destroy() | |
| 2345 | end | |
| 2346 | end | |
| 2347 | end | |
| 2348 | ||
| 2349 | function dejzrXD() | |
| 2350 | attack = true | |
| 2351 | hum.WalkSpeed = 20 | |
| 2352 | for i = 0, 4, 0.1 do | |
| 2353 | swait() | |
| 2354 | Cso("2545012765", char, 10, 1)
| |
| 2355 | hum.CameraOffset = Vector3.new(0, -0.1 + 0.1 * Cos(sine / 20), 0) | |
| 2356 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
| 2357 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.2) | |
| 2358 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(79), Rad(0)) * angles(Rad(-10), Rad(0), Rad(-10)), 0.2) | |
| 2359 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(10)), 0.2) | |
| 2360 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(-7.5 * Sin(sine / 20)), Rad(40)), 0.2) | |
| 2361 | 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(7.5 * Sin(sine / 20)), Rad(-25)), 0.2) | |
| 2362 | end | |
| 2363 | Magic(5, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, maincolor, "Sphere") | |
| 2364 | Magic(10, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, maincolor, "Sphere") | |
| 2365 | Magic(1, "Add", mouse.Hit, Vector3.new(1, 100000, 1), 0.5, maincolor, "Sphere") | |
| 2366 | Magic(1, "Add", mouse.Hit, Vector3.new(1, 1, 1), 0.75, maincolor, "Sphere") | |
| 2367 | CameraEnshaking(4, 5) | |
| 2368 | for i, v in pairs(FindNearestHead(mouse.Hit.p, 14.5)) do | |
| 2369 | if v:FindFirstChild("Head") then
| |
| 2370 | Eviscerate(v) | |
| 2371 | end | |
| 2372 | end | |
| 2373 | for i = 0, 2, 0.1 do | |
| 2374 | swait() | |
| 2375 | hum.CameraOffset = Vector3.new(0, -0.2 + 0.1 * Cos(sine / 20), 0) | |
| 2376 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
| 2377 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.2) | |
| 2378 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(79), Rad(0)) * angles(Rad(-10), Rad(0), Rad(-10)), 0.2) | |
| 2379 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(10)), 0.2) | |
| 2380 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(45), Rad(-7.5 * Sin(sine / 20)), Rad(40)), 0.2) | |
| 2381 | 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(7.5 * Sin(sine / 20)), Rad(-25)), 0.2) | |
| 2382 | end | |
| 2383 | attack = false | |
| 2384 | Speed = 20 | |
| 2385 | end | |
| 2386 | ||
| 2387 | function specialchaos() | |
| 2388 | wait(0) | |
| 2389 | CHOICE = 6 | |
| 2390 | Cso("2545018472", hed, 10, 1)
| |
| 2391 | local killsky = Instance.new('Sky', game:GetService'Lighting')
| |
| 2392 | killsky.SkyboxBk = "http://www.roblox.com/asset/?id=17898888" | |
| 2393 | killsky.SkyboxDn = "http://www.roblox.com/asset/?id=17898888" | |
| 2394 | killsky.SkyboxFt = "http://www.roblox.com/asset/?id=17898888" | |
| 2395 | killsky.SkyboxLf = "http://www.roblox.com/asset/?id=17898888" | |
| 2396 | killsky.SkyboxRt = "http://www.roblox.com/asset/?id=17898888" | |
| 2397 | killsky.SkyboxUp = "http://www.roblox.com/asset/?id=17898888" | |
| 2398 | --- | |
| 2399 | killsky.StarCount = 0 | |
| 2400 | killsky.SunAngularSize = 0 | |
| 2401 | killsky.MoonAngularSize = 0 | |
| 2402 | killsky.MoonTextureId = "" | |
| 2403 | killsky.CelestialBodiesShown = false | |
| 2404 | if HITFLOOR ~= nil then | |
| 2405 | ATTACK = false | |
| 2406 | Rooted = false | |
| 2407 | local RINGSPIN = true | |
| 2408 | local CONSTRUCTING = true | |
| 2409 | local RING = CreatePart(3, Effects, "Neon", 0, 10, "Bright yellow", "Ring", VT(0,0,0)) | |
| 2410 | RING.Color = C3(0,0,0) | |
| 2411 | MakeForm(RING,"Cyl") | |
| 2412 | RING.CFrame = CF(HITPOS) | |
| 2413 | coroutine.resume(coroutine.create(function() | |
| 2414 | repeat | |
| 2415 | Swait() | |
| 2416 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
| 2417 | until CONSTRUCTING == false | |
| 2418 | repeat | |
| 2419 | Swait() | |
| 2420 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
| 2421 | until RINGSPIN == false | |
| 2422 | for i = 1, 25 do | |
| 2423 | Swait() | |
| 2424 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
| 2425 | RING.Size = RING.Size - VT(0.15,0,0.15) | |
| 2426 | --DECAL.Transparency = DECAL.Transparency + 1/25 | |
| 2427 | RING.Transparency = RING.Transparency + 1/25 | |
| 2428 | end | |
| 2429 | RING:remove() | |
| 2430 | end)) | |
| 2431 | for i = 1, 15 do | |
| 2432 | Swait() | |
| 2433 | RING.Size = RING.Size + VT(0,0,0) | |
| 2434 | RING.Transparency = RING.Transparency - 1/15 | |
| 2435 | end | |
| 2436 | end | |
| 2437 | hum.WalkSpeed = 20 | |
| 2438 | attack = false | |
| 2439 | local s = Instance.new("Sound")
| |
| 2440 | ||
| 2441 | s.Name = "Sound" | |
| 2442 | s.SoundId = "http://www.roblox.com/asset/?id=2254105861" | |
| 2443 | s.Volume = 70 | |
| 2444 | s.Looped = false | |
| 2445 | s.archivable = false | |
| 2446 | ||
| 2447 | s.Parent = game.Workspace | |
| 2448 | ||
| 2449 | s:play() | |
| 2450 | end | |
| 2451 | function icando() | |
| 2452 | attack = true | |
| 2453 | hum.WalkSpeed = 0 | |
| 2454 | TEST:Remove() | |
| 2455 | TEST:Play() | |
| 2456 | repeat | |
| 2457 | for i = 0,4,0.1 do | |
| 2458 | swait() | |
| 2459 | TEST.Parent = tors | |
| 2460 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
| 2461 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(-20)), 0.3) | |
| 2462 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15) | |
| 2463 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15) | |
| 2464 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.5 + 0.05 * Cos(sine / 12)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(-76)), 0.1) | |
| 2465 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.5 + 0.05 * Cos(sine / 12)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(56)), 0.1) | |
| 2466 | end | |
| 2467 | until TEST.Playing == false | |
| 2468 | TEST:Stop() | |
| 2469 | TEST:Play() | |
| 2470 | TEST:Remove() | |
| 2471 | print('I HAVE CRIPPLING DEPRESSION ~MEME')
| |
| 2472 | attack = false | |
| 2473 | hum.WalkSpeed = 20 | |
| 2474 | end | |
| 2475 | ||
| 2476 | function finalChaos2() | |
| 2477 | ||
| 2478 | attack = true | |
| 2479 | M2.MeshId = "http://www.roblox.com/asset/?id=28140935" | |
| 2480 | M2.TextureId = "http://www.roblox.com/asset/?id=50252366" | |
| 2481 | M2.Scale = Vector3.new(5, 5, 5) | |
| 2482 | Cso("2545018472", hed, 10, 1)
| |
| 2483 | for i = 0, 15, 0.1 do | |
| 2484 | swait() | |
| 2485 | hum.CameraOffset = Vector3.new(0, 8, 0) | |
| 2486 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
| 2487 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-45 - 7.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.2) | |
| 2488 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-16.5), Rad(0), Rad(-20)), 0.2) | |
| 2489 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-16.5), Rad(0), Rad(20)), 0.2) | |
| 2490 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(180), Rad(0), Rad(15)), 0.2) | |
| 2491 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-30), Rad(-90)), 0.2) | |
| 2492 | end | |
| 2493 | Cso("483458132", char, 10, .7)
| |
| 2494 | Cso("483458132", char, 10, 1)
| |
| 2495 | CameraEnshaking(6, 65) | |
| 2496 | Effects.Wave.Create(BrickColor.new("Bright yellow"), tors.CFrame * CF(0, -5, 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)
| |
| 2497 | Effects.Wave.Create(BrickColor.new("Bright yellow"), tors.CFrame * CF(0, -5, 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)
| |
| 2498 | Effects.Wave.Create(BrickColor.new("Bright yellow"), tors.CFrame * CF(0, -5, 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)
| |
| 2499 | Effects.Ring.Create(BrickColor.new("Bright yellow"), root.CFrame * CF(0, -2, 0) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.5, 0.5, 0.1, 2, 2, 0, 0.04)
| |
| 2500 | Effects.Sphere.Create(BrickColor.new("Bright yellow"), root.CFrame * CF(0, -2, 0), 10, 7, 10, 15, -0.1, 15, 0.04)
| |
| 2501 | Effects.Sphere.Create(BrickColor.new("Bright yellow"), root.CFrame * CF(0, -2, 0), 10, 6, 10, 15, -0.1, 15, 0.02)
| |
| 2502 | Effects.Sphere.Create(BrickColor.new("Bright yellow"), root.CFrame * CF(0, -2, 0), 10, 4, 10, 15, -0.1, 15, 0.01)
| |
| 2503 | Magic(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, BrickColor.new("Bright blue"), "Sphere")
| |
| 2504 | Magic(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, BrickColor.new("Bright blue"), "Sphere")
| |
| 2505 | Magic(1, "Add", root.CFrame, Vector3.new(1, 100000, 1), 0.5, BrickColor.new("Shamrock"), "Sphere")
| |
| 2506 | Magic(1, "Add", root.CFrame, Vector3.new(1, 1, 1), 0.75, BrickColor.new("Shamrock"), "Sphere")
| |
| 2507 | for i, v in pairs(FindNearestHead(Blobby.CFrame.p, 99999999999.5)) do | |
| 2508 | if v:FindFirstChild("Head") then
| |
| 2509 | Eviscerate(v) | |
| 2510 | end | |
| 2511 | end | |
| 2512 | local s = Instance.new("Sound")
| |
| 2513 | s.Name = "Sound" | |
| 2514 | s.SoundId = "http://www.roblox.com/asset/?id=2627797774" | |
| 2515 | s.Volume = 70 | |
| 2516 | s.Looped = false | |
| 2517 | s.archivable = false | |
| 2518 | ||
| 2519 | s.Parent = game.Workspace | |
| 2520 | ||
| 2521 | s:play() | |
| 2522 | for i = 0, 15, 0.1 do | |
| 2523 | swait() | |
| 2524 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
| 2525 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(45 - 7.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.2) | |
| 2526 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-45)), 0.2) | |
| 2527 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(45)), 0.2) | |
| 2528 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(-325), Rad(-.6), Rad(-45)), 0.2) | |
| 2529 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(-325), Rad(-6), Rad(45)), 0.2) | |
| 2530 | end | |
| 2531 | M2.Scale = Vector3.new(1, 1, 1) | |
| 2532 | M2.MeshId = "http://www.roblox.com/asset/?id=0" | |
| 2533 | M2.TextureId = "http://www.roblox.com/asset/?id=0" | |
| 2534 | attack = false | |
| 2535 | ||
| 2536 | ||
| 2537 | end | |
| 2538 | ||
| 2539 | function DRAG_THEM_TO_HELL() | |
| 2540 | if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
| |
| 2541 | local HUM = mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
| |
| 2542 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
| |
| 2543 | local HEAD = HUM.Parent:FindFirstChild("Head")
| |
| 2544 | if HEAD and TORSO and HUM.Health > 0 then | |
| 2545 | local GYRO = IT("BodyGyro",root)
| |
| 2546 | GYRO.D = 275 | |
| 2547 | GYRO.P = 20000 | |
| 2548 | GYRO.MaxTorque = Vector3.new(0,40000,0) | |
| 2549 | attack = true | |
| 2550 | hum.WalkSpeed = 0 | |
| 2551 | local hit,pos,hummie; | |
| 2552 | local Hook = Part(EffectModel, Color3.new(),Enum.Material.Neon,Vector3.new(.05,.05,.05),root.CFrame,true,false) | |
| 2553 | Hook.Transparency = 1 | |
| 2554 | local A = NewInstance("Attachment",Hook)
| |
| 2555 | local B = NewInstance("Attachment",la,{Position = Vector3.new(0,-ra.Size.Y/2,0)})
| |
| 2556 | local Chain = NewInstance("Beam",Hook,{Attachment0 = A,Attachment1=B,Color = Color3.fromRGB(138,138,138),FaceCamera=true,LightInfluence=0,Texture="rbxassetid://73042633",TextureLength=5,Transparency=NumberSequence.new(0),TextureSpeed=0,CurveSize0=0,CurveSize1=0,FaceCamera=true,Segments=10,Width0=1,Width1=1})
| |
| 2557 | local POS = mouse.Hit.p | |
| 2558 | local CHAINS = false | |
| 2559 | local CHAINLINKS = {}
| |
| 2560 | local A = IT("Attachment",la)
| |
| 2561 | A.Position = Vector3.new(1,-1,0)*Player_Size | |
| 2562 | A.Orientation = Vector3.new(-90, -89.982, 0) | |
| 2563 | local B = IT("Attachment",la)
| |
| 2564 | B.Position = Vector3.new(-1,-1,0)*Player_Size | |
| 2565 | B.Orientation = Vector3.new(-90, 89.988, 0) | |
| 2566 | local C = IT("Attachment",la)
| |
| 2567 | C.Position = Vector3.new(0.5,-1.3,0)*Player_Size | |
| 2568 | C.Orientation = Vector3.new(-90, -89.982, 0) | |
| 2569 | local D = IT("Attachment",la)
| |
| 2570 | D.Position = Vector3.new(-0.5,-1.3,0)*Player_Size | |
| 2571 | D.Orientation = Vector3.new(-90, 89.988, 0) | |
| 2572 | local LIGHT = IT("Attachment",la)
| |
| 2573 | LIGHT.Position = Vector3.new(0,-1,0)*Player_Size | |
| 2574 | local LIGHT2 = IT("PointLight",LIGHT)
| |
| 2575 | LIGHT2.Range = 7 | |
| 2576 | LIGHT2.Brightness = 5 | |
| 2577 | LIGHT2.Color = Color3.new(0,0,0) | |
| 2578 | for i = 1, 2 do | |
| 2579 | local TWIST = -2 | |
| 2580 | local START = A | |
| 2581 | local END = B | |
| 2582 | if i == 1 then | |
| 2583 | START = B | |
| 2584 | END = A | |
| 2585 | end | |
| 2586 | local ChainLink = IT("Beam",tors)
| |
| 2587 | ChainLink.Texture = "rbxassetid://73042633" | |
| 2588 | ChainLink.Color = ColorSequence.new(Color3.fromRGB(138,138,138)) | |
| 2589 | ChainLink.TextureSpeed = 1 | |
| 2590 | ChainLink.Width0 = 1 | |
| 2591 | ChainLink.Width1 = 1 | |
| 2592 | ChainLink.TextureLength = 2.5 | |
| 2593 | ChainLink.Attachment0 = START | |
| 2594 | ChainLink.Attachment1 = END | |
| 2595 | ChainLink.CurveSize0 = TWIST | |
| 2596 | ChainLink.CurveSize1 = TWIST | |
| 2597 | --ChainLink.FaceCamera = true | |
| 2598 | ChainLink.Segments = 45 | |
| 2599 | ChainLink.Transparency = NumberSequence.new(0.25) | |
| 2600 | table.insert(CHAINLINKS,ChainLink) | |
| 2601 | end | |
| 2602 | for i = 1, 2 do | |
| 2603 | local TWIST = -1 | |
| 2604 | local START = C | |
| 2605 | local END = D | |
| 2606 | if i == 1 then | |
| 2607 | START = D | |
| 2608 | END = C | |
| 2609 | end | |
| 2610 | local ChainLink = IT("Beam",tors)
| |
| 2611 | ChainLink.Texture = "rbxassetid://73042633" | |
| 2612 | ChainLink.Color = ColorSequence.new(Color3.fromRGB(138,138,138)) | |
| 2613 | ChainLink.TextureSpeed = 1 | |
| 2614 | ChainLink.Width0 = 1 | |
| 2615 | ChainLink.Width1 = 1 | |
| 2616 | ChainLink.TextureLength = 5 | |
| 2617 | ChainLink.Attachment0 = START | |
| 2618 | ChainLink.Attachment1 = END | |
| 2619 | ChainLink.CurveSize0 = TWIST | |
| 2620 | ChainLink.CurveSize1 = TWIST | |
| 2621 | --ChainLink.FaceCamera = true | |
| 2622 | ChainLink.Segments = 25 | |
| 2623 | ChainLink.LightEmission = 0.5 | |
| 2624 | ChainLink.Transparency = NumberSequence.new(0.25) | |
| 2625 | table.insert(CHAINLINKS,ChainLink) | |
| 2626 | end | |
| 2627 | for i = 0, 2.3, .1 do | |
| 2628 | swait() | |
| 2629 | GYRO.cframe = CF(root.Position,TORSO.Position) | |
| 2630 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
| 2631 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
| 2632 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-7)), 0.15) | |
| 2633 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(7)), 0.15) | |
| 2634 | 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) | |
| 2635 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(-25)), 0.1) | |
| 2636 | end | |
| 2637 | Cso("169105657", ra, 7, 1.2)
| |
| 2638 | for i = 0, 4, .1 do | |
| 2639 | if(hit)then break end | |
| 2640 | swait() | |
| 2641 | GYRO.cframe = CF(root.Position,TORSO.Position) | |
| 2642 | Hook.CFrame = HEAD.CFrame | |
| 2643 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
| 2644 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
| 2645 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(7)), 0.15) | |
| 2646 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-7)), 0.15) | |
| 2647 | 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) | |
| 2648 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(-25)), 0.1) | |
| 2649 | end | |
| 2650 | for _,v in next, getRegion(Hook.Position,1,{char}) do
| |
| 2651 | if(v.Parent and GetTorso(v.Parent) and v.Parent:FindFirstChildOfClass'Humanoid')then | |
| 2652 | hit = GetTorso(v.Parent); | |
| 2653 | hummie = v.Parent:FindFirstChildOfClass'Humanoid'; | |
| 2654 | break; | |
| 2655 | end | |
| 2656 | end | |
| 2657 | Cso("169105657", ra, 5, .8)
| |
| 2658 | Cso("131228548", tors, 2, 1.1)
| |
| 2659 | GYRO:remove() | |
| 2660 | for i = 0, 3, .1 do | |
| 2661 | swait() | |
| 2662 | HUM.PlatformStand = true | |
| 2663 | Hook.CFrame = Hook.CFrame:lerp(ra.CFrame * CF(0, 0, -1), .2) | |
| 2664 | if(hit)then hit.CFrame = Hook.CFrame; hit.Velocity = Vector3.new() | |
| 2665 | end | |
| 2666 | if((Hook.CFrame.p-ra.CFrame.p).magnitude < 2)then | |
| 2667 | break | |
| 2668 | end | |
| 2669 | Chain.TextureLength = 4 | |
| 2670 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
| 2671 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-5 - 2.5 * Sin(sine / 30)), Rad(0), Rad(45)), 0.3) | |
| 2672 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(10)), 0.15) | |
| 2673 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(10)), 0.15) | |
| 2674 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(45)), 0.1) | |
| 2675 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(30), Rad(-.6), Rad(-25)), 0.1) | |
| 2676 | end | |
| 2677 | hum.WalkSpeed = 16 | |
| 2678 | attack = false | |
| 2679 | Hook:Destroy() | |
| 2680 | A:remove() | |
| 2681 | B:remove() | |
| 2682 | C:remove() | |
| 2683 | D:remove() | |
| 2684 | end | |
| 2685 | end | |
| 2686 | end | |
| 2687 | function OP9999() | |
| 2688 | attack = true | |
| 2689 | hum.WalkSpeed = 16 | |
| 2690 | Cso("1690476035",char, 10, 1)
| |
| 2691 | for i = 0,5.2,0.1 do | |
| 2692 | swait() | |
| 2693 | Effects.Block.Create(BrickC("Bright blue"), ll.CFrame * CF(0, -1, 0), 2, 2, 2, 3, 3, 3, 0.05)
| |
| 2694 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15) | |
| 2695 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
| 2696 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(-20)), 0.15) | |
| 2697 | LH.C0 = clerp(LH.C0, CF(-1, -0.3 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(25)), 0.15) | |
| 2698 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(135), Rad(0), Rad(-45 - 2.5 * Sin(sine / 20))), 0.1) | |
| 2699 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(135), Rad(0), Rad(45 + 2.5 * Sin(sine / 20))), 0.1) | |
| 2700 | end | |
| 2701 | Cso("824687369", char, 10, 1)
| |
| 2702 | for i = 0,3.7,0.1 do | |
| 2703 | swait() | |
| 2704 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15) | |
| 2705 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
| 2706 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(20)), 0.15) | |
| 2707 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(-25)), 0.15) | |
| 2708 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-40), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1) | |
| 2709 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-40), Rad(0), Rad(-25 + 2.5 * Sin(sine / 20))), 0.1) | |
| 2710 | CameraEnshaking(2, 8) | |
| 2711 | Effects.Sphere.Create(BrickColor.new("Bright yellow"), root.CFrame * CF(0, -3, 0), 10, 4, 10, 9999999, -0.1, 9999999, 0.01)
| |
| 2712 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 9999999)) do | |
| 2713 | if v:FindFirstChild("Head") then
| |
| 2714 | Eviscerate(v) | |
| 2715 | end | |
| 2716 | end | |
| 2717 | end | |
| 2718 | attack = false | |
| 2719 | swait() | |
| 2720 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15) | |
| 2721 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
| 2722 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(20)), 0.15) | |
| 2723 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(-25)), 0.15) | |
| 2724 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-40), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1) | |
| 2725 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-40), Rad(0), Rad(-25 + 2.5 * Sin(sine / 20))), 0.1) | |
| 2726 | CameraEnshaking(2, 8) | |
| 2727 | wait(2) | |
| 2728 | Effects.Sphere.Create(BrickColor.new("Shamrock"), root.CFrame * CF(0, -3, 0), 10, 4, 10, 9999999, -0.1, 9999999, 0.01)
| |
| 2729 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 9999999)) do | |
| 2730 | if v:FindFirstChild("Head") then
| |
| 2731 | Eviscerate(v) | |
| 2732 | end | |
| 2733 | end | |
| 2734 | end | |
| 2735 | attack = false | |
| 2736 | swait() | |
| 2737 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15) | |
| 2738 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
| 2739 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(20)), 0.15) | |
| 2740 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(-25)), 0.15) | |
| 2741 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-40), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1) | |
| 2742 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-40), Rad(0), Rad(-25 + 2.5 * Sin(sine / 20))), 0.1) | |
| 2743 | CameraEnshaking(2, 8) | |
| 2744 | wait(3) | |
| 2745 | Effects.Sphere.Create(BrickColor.new("Bright blue"), root.CFrame * CF(0, -3, 0), 10, 4, 10, 9999999, -0.1, 9999999, 0.01)
| |
| 2746 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 9999999)) do | |
| 2747 | if v:FindFirstChild("Head") then
| |
| 2748 | Eviscerate(v) | |
| 2749 | end | |
| 2750 | end | |
| 2751 | attack = false | |
| 2752 | hum.WalkSpeed = 16 | |
| 2753 | local s = Instance.new("Sound")
| |
| 2754 | ||
| 2755 | s.Name = "Sound" | |
| 2756 | s.SoundId = "http://www.roblox.com/asset/?id=2254105861" | |
| 2757 | s.Volume = 70 | |
| 2758 | s.Looped = false | |
| 2759 | s.archivable = false | |
| 2760 | ||
| 2761 | s.Parent = game.Workspace | |
| 2762 | ||
| 2763 | s:play() | |
| 2764 | function GAY() | |
| 2765 | ||
| 2766 | attack = true | |
| 2767 | M2.MeshId = "rbxassetid://2711094700" | |
| 2768 | M2.TextureId = "rbxassetid://2711094731" | |
| 2769 | M2.Scale = Vector3.new(5, 5, 5) | |
| 2770 | Cso("2545018472", hed, 10, 1)
| |
| 2771 | for i = 0, 15, 0.1 do | |
| 2772 | swait() | |
| 2773 | hum.CameraOffset = Vector3.new(0, 8, 0) | |
| 2774 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
| 2775 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-45 - 7.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.2) | |
| 2776 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-16.5), Rad(0), Rad(-20)), 0.2) | |
| 2777 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-16.5), Rad(0), Rad(20)), 0.2) | |
| 2778 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(180), Rad(0), Rad(15)), 0.2) | |
| 2779 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-30), Rad(-90)), 0.2) | |
| 2780 | end | |
| 2781 | Cso("483458132", char, 10, .7)
| |
| 2782 | Cso("483458132", char, 10, 1)
| |
| 2783 | CameraEnshaking(6, 65) | |
| 2784 | Effects.Wave.Create(BrickColor.new("Bright yellow"), tors.CFrame * CF(0, -5, 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)
| |
| 2785 | Effects.Wave.Create(BrickColor.new("Bright yellow"), tors.CFrame * CF(0, -5, 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)
| |
| 2786 | Effects.Wave.Create(BrickColor.new("Bright yellow"), tors.CFrame * CF(0, -5, 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)
| |
| 2787 | Effects.Ring.Create(BrickColor.new("Bright yellow"), root.CFrame * CF(0, -2, 0) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.5, 0.5, 0.1, 2, 2, 0, 0.04)
| |
| 2788 | Effects.Sphere.Create(BrickColor.new("Bright yellow"), root.CFrame * CF(0, -2, 0), 10, 7, 10, 15, -0.1, 15, 0.04)
| |
| 2789 | Effects.Sphere.Create(BrickColor.new("Bright yellow"), root.CFrame * CF(0, -2, 0), 10, 6, 10, 15, -0.1, 15, 0.02)
| |
| 2790 | Effects.Sphere.Create(BrickColor.new("Bright yellow"), root.CFrame * CF(0, -2, 0), 10, 4, 10, 15, -0.1, 15, 0.01)
| |
| 2791 | Magic(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, BrickColor.new("Bright yellow"), "Sphere")
| |
| 2792 | Magic(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, BrickColor.new("Bright yellow"), "Sphere")
| |
| 2793 | Magic(1, "Add", root.CFrame, Vector3.new(1, 100000, 1), 0.5, BrickColor.new("Bright yellow"), "Sphere")
| |
| 2794 | Magic(1, "Add", root.CFrame, Vector3.new(1, 1, 1), 0.75, BrickColor.new("Bright yellow"), "Sphere")
| |
| 2795 | for i, v in pairs(FindNearestHead(Blobby.CFrame.p, 99999999999.5)) do | |
| 2796 | if v:FindFirstChild("Head") then
| |
| 2797 | Eviscerate(v) | |
| 2798 | end | |
| 2799 | end | |
| 2800 | local s = Instance.new("Sound")
| |
| 2801 | s.Name = "Sound" | |
| 2802 | s.SoundId = "http://www.roblox.com/asset/?id=2627797774" | |
| 2803 | s.Volume = 70 | |
| 2804 | s.Looped = false | |
| 2805 | s.archivable = false | |
| 2806 | ||
| 2807 | s.Parent = game.Workspace | |
| 2808 | ||
| 2809 | s:play() | |
| 2810 | for i = 0, 15, 0.1 do | |
| 2811 | swait() | |
| 2812 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
| 2813 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(45 - 7.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.2) | |
| 2814 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-45)), 0.2) | |
| 2815 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(45)), 0.2) | |
| 2816 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(-325), Rad(-.6), Rad(-45)), 0.2) | |
| 2817 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(-325), Rad(-6), Rad(45)), 0.2) | |
| 2818 | swait() | |
| 2819 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15) | |
| 2820 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
| 2821 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(20)), 0.15) | |
| 2822 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(-25)), 0.15) | |
| 2823 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-40), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1) | |
| 2824 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-40), Rad(0), Rad(-25 + 2.5 * Sin(sine / 20))), 0.1) | |
| 2825 | CameraEnshaking(2, 8) | |
| 2826 | Effects.Sphere.Create(BrickColor.new("Bright yellow"), root.CFrame * CF(0, -3, 0), 10, 4, 10, 9999999, -0.1, 9999999, 0.01)
| |
| 2827 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 9999999)) do | |
| 2828 | if v:FindFirstChild("Head") then
| |
| 2829 | Eviscerate(v) | |
| 2830 | end | |
| 2831 | end | |
| 2832 | end | |
| 2833 | attack = false | |
| 2834 | hum.WalkSpeed = 16 | |
| 2835 | M2.Scale = Vector3.new(1, 1, 1) | |
| 2836 | M2.MeshId = "http://www.roblox.com/asset/?id=0" | |
| 2837 | M2.TextureId = "http://www.roblox.com/asset/?id=0" | |
| 2838 | attack = false | |
| 2839 | ||
| 2840 | end | |
| 2841 | ||
| 2842 | function GoInvisible() | |
| 2843 | mouse.KeyDown:connect(function(key) | |
| 2844 | if key == "u" then | |
| 2845 | if char.Head.Transparency == 0.5 then | |
| 2846 | GoInvisible() | |
| 2847 | ||
| 2848 | elseif char.Head.Transparency == 1 then | |
| 2849 | GoVisible() | |
| 2850 | end | |
| 2851 | end end) | |
| 2852 | ||
| 2853 | TEST:Stop() | |
| 2854 | char.Humanoid.WalkSpeed = 120 | |
| 2855 | char.Head.face.Transparency = 1 | |
| 2856 | char["Left Leg"].Transparency = 0.5 | |
| 2857 | char["Head"].Transparency = 0.5 | |
| 2858 | char["Right Leg"].Transparency = 0.5 | |
| 2859 | char["Torso"].Transparency = 0.5 | |
| 2860 | char["Left Arm"].Transparency = 0.5 | |
| 2861 | char["Right Arm"].Transparency = 0.5 | |
| 2862 | wait(0.001) | |
| 2863 | char["Left Leg"].Transparency = 0.6 | |
| 2864 | char["Head"].Transparency = 0.6 | |
| 2865 | char["Right Leg"].Transparency = 0.6 | |
| 2866 | char["Torso"].Transparency = 0.6 | |
| 2867 | char["Left Arm"].Transparency = 0.6 | |
| 2868 | char["Right Arm"].Transparency = 0.6 | |
| 2869 | wait(0.001) | |
| 2870 | char["Left Leg"].Transparency = 0.7 | |
| 2871 | char["Head"].Transparency = 0.7 | |
| 2872 | char["Right Leg"].Transparency = 0.7 | |
| 2873 | char["Torso"].Transparency = 0.7 | |
| 2874 | char["Left Arm"].Transparency = 0.7 | |
| 2875 | char["Right Arm"].Transparency = 0.7 | |
| 2876 | wait(0.001) | |
| 2877 | char["Left Leg"].Transparency = 1 | |
| 2878 | char["Head"].Transparency = 1 | |
| 2879 | char["Right Leg"].Transparency = 1 | |
| 2880 | char["Torso"].Transparency = 1 | |
| 2881 | char["Left Arm"].Transparency = 1 | |
| 2882 | char["Right Arm"].Transparency = 1 | |
| 2883 | end | |
| 2884 | ||
| 2885 | function GoVisible() | |
| 2886 | TEST:Play() | |
| 2887 | char.Humanoid.WalkSpeed = 16 | |
| 2888 | char.Head.face.Transparency = 0 | |
| 2889 | char["Left Leg"].Transparency = 0.9 | |
| 2890 | char["Head"].Transparency = 0.9 | |
| 2891 | char["Right Leg"].Transparency = 9 | |
| 2892 | char["Torso"].Transparency = 0.9 | |
| 2893 | char["Left Arm"].Transparency = 0.9 | |
| 2894 | char["Right Arm"].Transparency = 0.9 | |
| 2895 | wait(0.001) | |
| 2896 | char["Left Leg"].Transparency = 0.7 | |
| 2897 | char["Head"].Transparency = 0.7 | |
| 2898 | char["Right Leg"].Transparency = 0.7 | |
| 2899 | char["Torso"].Transparency = 0.7 | |
| 2900 | char["Left Arm"].Transparency = 0.7 | |
| 2901 | char["Right Arm"].Transparency = 0.7 | |
| 2902 | wait(0.001) | |
| 2903 | char["Left Leg"].Transparency = 0.5 | |
| 2904 | char["Head"].Transparency = 0.5 | |
| 2905 | char["Right Leg"].Transparency = 0.5 | |
| 2906 | char["Torso"].Transparency = 0.5 | |
| 2907 | char["Left Arm"].Transparency = 0.5 | |
| 2908 | char["Right Arm"].Transparency = 0.5 | |
| 2909 | end | |
| 2910 | ||
| 2911 | ------------------------------------------------------- | |
| 2912 | --End Attacks N Stuff-- | |
| 2913 | ------------------------------------------------------- | |
| 2914 | mouse.KeyDown:connect(function(key) | |
| 2915 | if attack == false then | |
| 2916 | if key == "t" then | |
| 2917 | dance() | |
| 2918 | elseif key == 'y' then | |
| 2919 | aaa() | |
| 2920 | elseif key == "p" then | |
| 2921 | finalChaos() | |
| 2922 | elseif key == "z" then | |
| 2923 | beam() | |
| 2924 | elseif key == "x" then | |
| 2925 | Call_Upon_The_Eyes() | |
| 2926 | elseif key == "v" then | |
| 2927 | dejzrXD() | |
| 2928 | elseif key == "b" then | |
| 2929 | specialchaos() | |
| 2930 | elseif key == "n" then | |
| 2931 | CHAOS() | |
| 2932 | elseif key == "f" then | |
| 2933 | icando() | |
| 2934 | elseif key == "h" then | |
| 2935 | finalChaos2() | |
| 2936 | elseif key == "g" then | |
| 2937 | Chain2() | |
| 2938 | elseif key == "c" then | |
| 2939 | DRAG_THEM_TO_HELL() | |
| 2940 | elseif key == "q" then | |
| 2941 | OP9999() | |
| 2942 | elseif key == "m" then | |
| 2943 | GAY() | |
| 2944 | end | |
| 2945 | end | |
| 2946 | end) | |
| 2947 | ||
| 2948 | mouse.Button1Down:connect(function(key) | |
| 2949 | if attack == false then | |
| 2950 | die() | |
| 2951 | end | |
| 2952 | end) | |
| 2953 | ||
| 2954 | function Part(parent,color,material,size,cframe,anchored,cancollide) | |
| 2955 | local part = Instance.new("Part")
| |
| 2956 | part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or Color3.new(0,0,0) | |
| 2957 | part.Material = material or Enum.Material.SmoothPlastic | |
| 2958 | part.TopSurface,part.BottomSurface=10,10 | |
| 2959 | part.Size = size or Vector3.new(1,1,1) | |
| 2960 | part.CFrame = cframe or CF(0,0,0) | |
| 2961 | part.Anchored = anchored or true | |
| 2962 | part.CanCollide = cancollide or false | |
| 2963 | part.Parent = parent or char | |
| 2964 | return part | |
| 2965 | end | |
| 2966 | ||
| 2967 | NewInstance = function(instance,parent,properties) | |
| 2968 | local inst = Instance.new(instance) | |
| 2969 | inst.Parent = parent | |
| 2970 | if(properties)then | |
| 2971 | for i,v in next, properties do | |
| 2972 | pcall(function() inst[i] = v end) | |
| 2973 | end | |
| 2974 | end | |
| 2975 | return inst; | |
| 2976 | end | |
| 2977 | ------------------------------------------------------- | |
| 2978 | --Start Damage Function-- | |
| 2979 | ------------------------------------------------------- | |
| 2980 | function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) --Thanks, Star Glitcher! | |
| 2981 | local type = type | |
| 2982 | local rng = Instance.new("Part", char)
| |
| 2983 | rng.Anchored = true | |
| 2984 | rng.BrickColor = color | |
| 2985 | rng.CanCollide = false | |
| 2986 | rng.FormFactor = 3 | |
| 2987 | rng.Name = "Ring" | |
| 2988 | rng.Material = "Neon" | |
| 2989 | rng.Size = Vector3.new(1, 1, 1) | |
| 2990 | rng.Transparency = 0 | |
| 2991 | rng.TopSurface = 0 | |
| 2992 | rng.BottomSurface = 0 | |
| 2993 | rng.CFrame = pos | |
| 2994 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
| 2995 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2996 | rngm.MeshType = "Brick" | |
| 2997 | if rainbowmode == true then | |
| 2998 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 2999 | end | |
| 3000 | local scaler2 = 1 | |
| 3001 | local speeder = FastSpeed/10 | |
| 3002 | if type == "Add" then | |
| 3003 | scaler2 = 1*value | |
| 3004 | elseif type == "Divide" then | |
| 3005 | scaler2 = 1/value | |
| 3006 | end | |
| 3007 | coroutine.resume(coroutine.create(function() | |
| 3008 | for i = 0,10/bonuspeed,0.1 do | |
| 3009 | swait() | |
| 3010 | if type == "Add" then | |
| 3011 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
| 3012 | elseif type == "Divide" then | |
| 3013 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
| 3014 | end | |
| 3015 | speeder = speeder - 0.01*FastSpeed*bonuspeed/10 | |
| 3016 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
| 3017 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 3018 | end | |
| 3019 | rng:Destroy() | |
| 3020 | end)) | |
| 3021 | end | |
| 3022 | ||
| 3023 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
| 3024 | if hit.Parent == nil then | |
| 3025 | return | |
| 3026 | end | |
| 3027 | local h = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 3028 | for _, v in pairs(hit.Parent:children()) do | |
| 3029 | if v:IsA("Humanoid") then
| |
| 3030 | h = v | |
| 3031 | end | |
| 3032 | end | |
| 3033 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
| |
| 3034 | ||
| 3035 | hit.Parent:FindFirstChild("Head"):BreakJoints()
| |
| 3036 | end | |
| 3037 | ||
| 3038 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
| |
| 3039 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then
| |
| 3040 | if hit.Parent.DebounceHit.Value == true then | |
| 3041 | return | |
| 3042 | end | |
| 3043 | end | |
| 3044 | if insta == true then | |
| 3045 | hit.Parent:FindFirstChild("Head"):BreakJoints()
| |
| 3046 | end | |
| 3047 | local c = Create("ObjectValue"){
| |
| 3048 | Name = "creator", | |
| 3049 | - | Value = game:service("Players").TheFigureBlack,
|
| 3049 | + | Value = game:service("Players").silver22352,
|
| 3050 | Parent = h, | |
| 3051 | } | |
| 3052 | game:GetService("Debris"):AddItem(c, .5)
| |
| 3053 | if HitSound ~= nil and HitPitch ~= nil then | |
| 3054 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
| 3055 | end | |
| 3056 | local Damage = math.random(minim, maxim) | |
| 3057 | local blocked = false | |
| 3058 | local block = hit.Parent:findFirstChild("Block")
| |
| 3059 | if block ~= nil then | |
| 3060 | if block.className == "IntValue" then | |
| 3061 | if block.Value > 0 then | |
| 3062 | blocked = true | |
| 3063 | block.Value = block.Value - 1 | |
| 3064 | print(block.Value) | |
| 3065 | end | |
| 3066 | end | |
| 3067 | end | |
| 3068 | if blocked == false then | |
| 3069 | h.Health = h.Health - Damage | |
| 3070 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
| 3071 | else | |
| 3072 | h.Health = h.Health - (Damage / 2) | |
| 3073 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
| 3074 | end | |
| 3075 | if Type == "Knockdown" then | |
| 3076 | local hum = hit.Parent.Humanoid | |
| 3077 | hum.PlatformStand = true | |
| 3078 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 3079 | swait(1) | |
| 3080 | HHumanoid.PlatformStand = false | |
| 3081 | end), hum) | |
| 3082 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
| 3083 | local bodvol = Create("BodyVelocity"){
| |
| 3084 | velocity = angle * knockback, | |
| 3085 | P = 5000, | |
| 3086 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 3087 | Parent = hit, | |
| 3088 | } | |
| 3089 | local rl = Create("BodyAngularVelocity"){
| |
| 3090 | P = 3000, | |
| 3091 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
| 3092 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
| 3093 | Parent = hit, | |
| 3094 | } | |
| 3095 | game:GetService("Debris"):AddItem(bodvol, .5)
| |
| 3096 | game:GetService("Debris"):AddItem(rl, .5)
| |
| 3097 | elseif Type == "Normal" then | |
| 3098 | local vp = Create("BodyVelocity"){
| |
| 3099 | P = 500, | |
| 3100 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
| 3101 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
| 3102 | } | |
| 3103 | if knockback > 0 then | |
| 3104 | vp.Parent = hit.Parent.Torso | |
| 3105 | end | |
| 3106 | game:GetService("Debris"):AddItem(vp, .5)
| |
| 3107 | elseif Type == "Up" then | |
| 3108 | local bodyVelocity = Create("BodyVelocity"){
| |
| 3109 | velocity = Vector3.new(0, 20, 0), | |
| 3110 | P = 5000, | |
| 3111 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 3112 | Parent = hit, | |
| 3113 | } | |
| 3114 | game:GetService("Debris"):AddItem(bodyVelocity, .5)
| |
| 3115 | elseif Type == "DarkUp" then | |
| 3116 | coroutine.resume(coroutine.create(function() | |
| 3117 | for i = 0, 1, 0.1 do | |
| 3118 | swait() | |
| 3119 | Effects.Block.Create(BrickColor.new("Shamrock"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
| |
| 3120 | end | |
| 3121 | end)) | |
| 3122 | local bodyVelocity = Create("BodyVelocity"){
| |
| 3123 | velocity = Vector3.new(0, 20, 0), | |
| 3124 | P = 5000, | |
| 3125 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 3126 | Parent = hit, | |
| 3127 | } | |
| 3128 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 3129 | elseif Type == "Snare" then | |
| 3130 | local bp = Create("BodyPosition"){
| |
| 3131 | P = 2000, | |
| 3132 | D = 100, | |
| 3133 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 3134 | position = hit.Parent.Torso.Position, | |
| 3135 | Parent = hit.Parent.Torso, | |
| 3136 | } | |
| 3137 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 3138 | elseif Type == "Freeze" then | |
| 3139 | local BodPos = Create("BodyPosition"){
| |
| 3140 | P = 50000, | |
| 3141 | D = 1000, | |
| 3142 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 3143 | position = hit.Parent.Torso.Position, | |
| 3144 | Parent = hit.Parent.Torso, | |
| 3145 | } | |
| 3146 | local BodGy = Create("BodyGyro") {
| |
| 3147 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
| 3148 | P = 20e+003, | |
| 3149 | Parent = hit.Parent.Torso, | |
| 3150 | cframe = hit.Parent.Torso.CFrame, | |
| 3151 | } | |
| 3152 | hit.Parent.Torso.Anchored = true | |
| 3153 | coroutine.resume(coroutine.create(function(Part) | |
| 3154 | swait(1.5) | |
| 3155 | Part.Anchored = false | |
| 3156 | end), hit.Parent.Torso) | |
| 3157 | game:GetService("Debris"):AddItem(BodPos, 3)
| |
| 3158 | game:GetService("Debris"):AddItem(BodGy, 3)
| |
| 3159 | end | |
| 3160 | local debounce = Create("BoolValue"){
| |
| 3161 | Name = "DebounceHit", | |
| 3162 | Parent = hit.Parent, | |
| 3163 | Value = true, | |
| 3164 | } | |
| 3165 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 3166 | c = Create("ObjectValue"){
| |
| 3167 | Name = "creator", | |
| 3168 | Value = Player, | |
| 3169 | Parent = h, | |
| 3170 | } | |
| 3171 | game:GetService("Debris"):AddItem(c, .5)
| |
| 3172 | end | |
| 3173 | end | |
| 3174 | ||
| 3175 | function damage(range,mindam,maxdam,pos) | |
| 3176 | for i,v in ipairs(workspace:GetChildren()) do | |
| 3177 | if v:IsA("Model") then
| |
| 3178 | if v.Name ~= Player.Name then | |
| 3179 | if v:FindFirstChildOfClass("Humanoid") then
| |
| 3180 | if v:FindFirstChild("Head") then
| |
| 3181 | if (v:FindFirstChild("Head").Position - pos).magnitude < 10 then
| |
| 3182 | if v:FindFirstChildOfClass("Humanoid").Health > 5000 then v:FindFirstChildOfClass("Humanoid").Health = 0 else
| |
| 3183 | v:FindFirstChildOfClass("Humanoid").Health = v:FindFirstChildOfClass("Humanoid").Health - math.random(mindam,maxdam)
| |
| 3184 | end | |
| 3185 | end | |
| 3186 | end | |
| 3187 | end | |
| 3188 | end | |
| 3189 | end | |
| 3190 | end | |
| 3191 | end | |
| 3192 | ------------------------------------------------------- | |
| 3193 | --End Damage Function-- | |
| 3194 | ------------------------------------------------------- | |
| 3195 | ||
| 3196 | ------------------------------------------------------- | |
| 3197 | --Start Animations-- | |
| 3198 | ------------------------------------------------------- | |
| 3199 | print("By ME")
| |
| 3200 | while true do | |
| 3201 | swait() | |
| 3202 | sine = sine + change | |
| 3203 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 3204 | local velderp = root.Velocity.y | |
| 3205 | hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char) | |
| 3206 | if equipped == true or equipped == false then | |
| 3207 | if attack == false then | |
| 3208 | idle = idle + 1 | |
| 3209 | else | |
| 3210 | idle = 0 | |
| 3211 | end | |
| 3212 | if 1 < root.Velocity.y and hitfloor == nil then | |
| 3213 | Anim = "Jump" | |
| 3214 | if attack == false then | |
| 3215 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
| 3216 | 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) | |
| 3217 | 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) | |
| 3218 | 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) | |
| 3219 | 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) | |
| 3220 | 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) | |
| 3221 | end | |
| 3222 | elseif -1 > root.Velocity.y and hitfloor == nil then | |
| 3223 | Anim = "Fall" | |
| 3224 | if attack == false then | |
| 3225 | 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) | |
| 3226 | 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) | |
| 3227 | 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) | |
| 3228 | 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) | |
| 3229 | 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) | |
| 3230 | 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) | |
| 3231 | end | |
| 3232 | elseif torvel < 1 and hitfloor ~= nil then | |
| 3233 | Anim = "Idle" | |
| 3234 | change = 1 | |
| 3235 | if attack == false then | |
| 3236 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
| 3237 | 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) | |
| 3238 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15) | |
| 3239 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15) | |
| 3240 | RW.C0 = clerp(RW.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) | |
| 3241 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
| 3242 | end | |
| 3243 | elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then | |
| 3244 | Anim = "Walk" | |
| 3245 | change = 1 | |
| 3246 | if attack == false then | |
| 3247 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(3 * Cos(sine / 7))), 0.15) | |
| 3248 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
| 3249 | RH.C0 = clerp(RH.C0, CF(1, -0.8 - 0.5 * Cos(sine / 7) / 2, 0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
| 3250 | LH.C0 = clerp(LH.C0, CF(-1, -0.8 + 0.5 * Cos(sine / 7) / 2, -0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
| 3251 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(-10 * Cos(sine / 20)), Rad(5 - 2.5 * Sin(sine / 20))), 0.1) | |
| 3252 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.02 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
| 3253 | end | |
| 3254 | elseif torvel >= 25 and hitfloor ~= nil then | |
| 3255 | Anim = "Sprint" | |
| 3256 | change = 1.35 | |
| 3257 | if attack == false then | |
| 3258 | 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) | |
| 3259 | 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) | |
| 3260 | 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) | |
| 3261 | 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) | |
| 3262 | 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) | |
| 3263 | end | |
| 3264 | end | |
| 3265 | end | |
| 3266 | if 0 < #Effects then | |
| 3267 | for e = 1, #Effects do | |
| 3268 | if Effects[e] ~= nil then | |
| 3269 | local Thing = Effects[e] | |
| 3270 | if Thing ~= nil then | |
| 3271 | local Part = Thing[1] | |
| 3272 | local Mode = Thing[2] | |
| 3273 | local Delay = Thing[3] | |
| 3274 | local IncX = Thing[4] | |
| 3275 | local IncY = Thing[5] | |
| 3276 | local IncZ = Thing[6] | |
| 3277 | if 1 >= Thing[1].Transparency then | |
| 3278 | if Thing[2] == "Block1" then | |
| 3279 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 3280 | local Mesh = Thing[1].Mesh | |
| 3281 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 3282 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 3283 | elseif Thing[2] == "Block2" then | |
| 3284 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
| 3285 | local Mesh = Thing[7] | |
| 3286 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 3287 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 3288 | elseif Thing[2] == "Block3" then | |
| 3289 | 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) | |
| 3290 | local Mesh = Thing[7] | |
| 3291 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 3292 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 3293 | elseif Thing[2] == "Cylinder" then | |
| 3294 | local Mesh = Thing[1].Mesh | |
| 3295 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 3296 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 3297 | elseif Thing[2] == "Blood" then | |
| 3298 | local Mesh = Thing[7] | |
| 3299 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
| 3300 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 3301 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 3302 | elseif Thing[2] == "Elec" then | |
| 3303 | local Mesh = Thing[1].Mesh | |
| 3304 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
| 3305 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 3306 | elseif Thing[2] == "Disappear" then | |
| 3307 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 3308 | elseif Thing[2] == "Shatter" then | |
| 3309 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 3310 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
| 3311 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
| 3312 | Thing[6] = Thing[6] + Thing[5] | |
| 3313 | end | |
| 3314 | else | |
| 3315 | Part.Parent = nil | |
| 3316 | table.remove(Effects, e) | |
| 3317 | end | |
| 3318 | end | |
| 3319 | end | |
| 3320 | end | |
| 3321 | end | |
| 3322 | end | |
| 3323 | ------------------------------------------------------- | |
| 3324 | --End Animations And Script-- | |
| 3325 | ------------------------------------------------------ |