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