SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient()then error("say h/ not hl/ ya dummy")end;print("get rekt");InternalData = {}
| |
| 2 | do | |
| 3 | script.Parent = owner.Character | |
| 4 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
| |
| 5 | local function NewFakeEvent() | |
| 6 | local Bind = Instance.new("BindableEvent")
| |
| 7 | local Fake;Fake = {Connections = {},
| |
| 8 | fakeEvent=true; | |
| 9 | Connect=function(self,Func) | |
| 10 | Bind.Event:connect(Func) | |
| 11 | self.Connections[Bind] = true | |
| 12 | return setmetatable({Connected = true},{
| |
| 13 | __index = function (self,Index) | |
| 14 | if Index:lower() == "disconnect" then | |
| 15 | return function() Fake.Connections[Bind] = false;self.Connected = false end | |
| 16 | end | |
| 17 | return Fake[Index] | |
| 18 | end; | |
| 19 | __tostring = function() return "Connection" end; | |
| 20 | }) | |
| 21 | end} | |
| 22 | Fake.connect = Fake.Connect;return Fake; | |
| 23 | end | |
| 24 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
| |
| 25 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
| |
| 26 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
| |
| 27 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
| |
| 28 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
| 29 | local function TriggerEvent(self,Event,...) | |
| 30 | local Trigger = Mouse[Event] | |
| 31 | if Trigger and Trigger.fakeEvent and Trigger.Connections then | |
| 32 | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end | |
| 33 | end | |
| 34 | end | |
| 35 | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent | |
| 36 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
| 37 | if FiredBy.Name ~= owner.Name then return end | |
| 38 | if Input.MouseEvent then | |
| 39 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
| 40 | else | |
| 41 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
| 42 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end | |
| 43 | for _,Action in pairs(ContextActionService.Actions) do | |
| 44 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
| 45 | end | |
| 46 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
| 47 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
| 48 | end | |
| 49 | end) | |
| 50 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
| 51 | Event.Parent = NLS([[ | |
| 52 | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
| |
| 53 | local Input = function(Input,gameProcessedEvent) | |
| 54 | if gameProcessedEvent then return end | |
| 55 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
| |
| 56 | end | |
| 57 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
| 58 | local Hit,Target | |
| 59 | while wait(1/30) do | |
| 60 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
| 61 | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
| |
| 62 | end | |
| 63 | end | |
| 64 | ]],owner.Character) | |
| 65 | end | |
| 66 | RealGame = game;game = setmetatable({},{
| |
| 67 | __index = function (self,Index) | |
| 68 | local Sandbox = function (Thing) | |
| 69 | if Thing:IsA("Player") then
| |
| 70 | local RealPlayer = Thing | |
| 71 | return setmetatable({},{
| |
| 72 | __index = function (self,Index) | |
| 73 | local Type = type(RealPlayer[Index]) | |
| 74 | if Type == "function" then | |
| 75 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
| 76 | return function (self)return InternalData["Mouse"] end | |
| 77 | end | |
| 78 | return function (self,...)return RealPlayer[Index](RealPlayer,...) end | |
| 79 | end | |
| 80 | return RealPlayer[Index] | |
| 81 | end; | |
| 82 | __tostring = function(self) return RealPlayer.Name end | |
| 83 | }) | |
| 84 | end | |
| 85 | end | |
| 86 | if RealGame[Index] then | |
| 87 | local Type = type(RealGame[Index]) | |
| 88 | if Type == "function" then | |
| 89 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
| 90 | return function (self,Service) | |
| 91 | local FakeServices = {
| |
| 92 | ["players"] = function() | |
| 93 | return setmetatable({},{
| |
| 94 | __index = function (self2,Index2) | |
| 95 | local RealService = RealGame:GetService(Service) | |
| 96 | local Type2 = type(Index2) | |
| 97 | if Type2 == "function" then | |
| 98 | return function (self,...) return RealService[Index2](RealService,...)end | |
| 99 | else | |
| 100 | if Index2:lower() == "localplayer" then return Sandbox(owner) end | |
| 101 | return RealService[Index2] | |
| 102 | end | |
| 103 | end; | |
| 104 | __tostring = function(self) return RealGame:GetService(Service).Name end | |
| 105 | }) | |
| 106 | end; | |
| 107 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
| 108 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
| 109 | ["runservice"] = function() | |
| 110 | return setmetatable({},{
| |
| 111 | __index = function(self2,Index2) | |
| 112 | local RealService = RealGame:GetService(Service) | |
| 113 | local Type2 = type(Index2) | |
| 114 | if Type2 == "function" then | |
| 115 | return function (self,...) return RealService[Index2](RealService,...) end | |
| 116 | else | |
| 117 | local RunServices = {
| |
| 118 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
| |
| 119 | ["renderstepped"] = function() return RealService["Stepped"] end | |
| 120 | } | |
| 121 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
| 122 | return RealService[Index2] | |
| 123 | end | |
| 124 | end | |
| 125 | }) | |
| 126 | end | |
| 127 | } | |
| 128 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
| 129 | return RealGame:GetService(Service) | |
| 130 | end | |
| 131 | end | |
| 132 | return function (self,...) return RealGame[Index](RealGame,...) end | |
| 133 | else | |
| 134 | if game:GetService(Index) then return game:GetService(Index) end | |
| 135 | return RealGame[Index] | |
| 136 | end | |
| 137 | end | |
| 138 | return nil | |
| 139 | end | |
| 140 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("running the script noob")
| |
| 141 | ||
| 142 | --//Dino-Destroyer | |
| 143 | --//The second sentinel... | |
| 144 | --//Written by KillerzTH_1596 | |
| 145 | --//Credit to RedDino/HankTheSkeleton for the model. | |
| 146 | --//Credit to Shackluster/PityPolygon for the template. | |
| 147 | ||
| 148 | wait(0.2) | |
| 149 | ||
| 150 | Player = game:GetService("Players").LocalPlayer
| |
| 151 | PlayerGui = Player.PlayerGui | |
| 152 | Cam = workspace.CurrentCamera | |
| 153 | Backpack = Player.Backpack | |
| 154 | Character = Player.Character | |
| 155 | Humanoid = Character.Humanoid | |
| 156 | Mouse = Player:GetMouse() | |
| 157 | RootPart = Character["HumanoidRootPart"] | |
| 158 | Torso = Character["Torso"] | |
| 159 | Head = Character["Head"] | |
| 160 | RightArm = Character["Right Arm"] | |
| 161 | LeftArm = Character["Left Arm"] | |
| 162 | RightLeg = Character["Right Leg"] | |
| 163 | LeftLeg = Character["Left Leg"] | |
| 164 | RootJoint = RootPart["RootJoint"] | |
| 165 | Neck = Torso["Neck"] | |
| 166 | RightShoulder = Torso["Right Shoulder"] | |
| 167 | LeftShoulder = Torso["Left Shoulder"] | |
| 168 | RightHip = Torso["Right Hip"] | |
| 169 | LeftHip = Torso["Left Hip"] | |
| 170 | local TIME = 0 | |
| 171 | local sick = Instance.new("Sound",Torso)
| |
| 172 | ||
| 173 | IT = Instance.new | |
| 174 | CF = CFrame.new | |
| 175 | VT = Vector3.new | |
| 176 | RAD = math.rad | |
| 177 | C3 = Color3.new | |
| 178 | UD2 = UDim2.new | |
| 179 | BRICKC = BrickColor.new | |
| 180 | ANGLES = CFrame.Angles | |
| 181 | EULER = CFrame.fromEulerAnglesXYZ | |
| 182 | COS = math.cos | |
| 183 | ACOS = math.acos | |
| 184 | SIN = math.sin | |
| 185 | ASIN = math.asin | |
| 186 | ABS = math.abs | |
| 187 | MRANDOM = math.random | |
| 188 | FLOOR = math.floor | |
| 189 | ||
| 190 | --//=================================\\ | |
| 191 | --|| USEFUL VALUES | |
| 192 | --\\=================================// | |
| 193 | ||
| 194 | Animation_Speed = 3 | |
| 195 | local FORCERESET = false | |
| 196 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
| 197 | local Speed = 12 | |
| 198 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 199 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 200 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
| 201 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
| 202 | local DAMAGEMULTIPLIER = 1 | |
| 203 | local LeftArm = game.Players.LocalPlayer.Character["Left Arm"] | |
| 204 | local RightArm = game.Players.LocalPlayer.Character["Right Arm"] | |
| 205 | local ANIM = "Idle" | |
| 206 | local ATTACK = false | |
| 207 | local EQUIPPED = false | |
| 208 | local HOLD = false | |
| 209 | local COMBO = 1 | |
| 210 | local Rooted = false | |
| 211 | local SINE = 0 | |
| 212 | local KEYHOLD = false | |
| 213 | local CHANGE = 2 / Animation_Speed | |
| 214 | local WALKINGANIM = false | |
| 215 | local VALUE1 = false | |
| 216 | local VALUE2 = false | |
| 217 | local isSit = false | |
| 218 | local FF = false | |
| 219 | local ROBLOXIDLEANIMATION = IT("Animation")
| |
| 220 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
| 221 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
| 222 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
| 223 | local WEAPONGUI = IT("ScreenGui", PlayerGui)
| |
| 224 | WEAPONGUI.Name = "RobloxChatGuiHandler" | |
| 225 | local Weapon = IT("Model")
| |
| 226 | Weapon.Name = "Adds" | |
| 227 | local Effects = IT("Folder", Character)
| |
| 228 | Effects.Name = "Effects" | |
| 229 | local ANIMATOR = Humanoid.Animator | |
| 230 | local ANIMATE = Character:FindFirstChild("Animate")
| |
| 231 | local UNANCHOR = true | |
| 232 | local TOBANISH = {}
| |
| 233 | local INTRO = false | |
| 234 | local TRANSFORMED = false | |
| 235 | local INSTANT = false | |
| 236 | script.Parent = PlayerGui | |
| 237 | ||
| 238 | --//=================================\\ | |
| 239 | --\\=================================// | |
| 240 | ||
| 241 | ||
| 242 | --//=================================\\ | |
| 243 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
| 244 | --\\=================================// | |
| 245 | ||
| 246 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 247 | ArtificialHB.Name = "ArtificialHB" | |
| 248 | ||
| 249 | script:WaitForChild("ArtificialHB")
| |
| 250 | ||
| 251 | frame = Frame_Speed | |
| 252 | tf = 0 | |
| 253 | allowframeloss = false | |
| 254 | tossremainder = false | |
| 255 | lastframe = tick() | |
| 256 | script.ArtificialHB:Fire() | |
| 257 | ||
| 258 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 259 | tf = tf + s | |
| 260 | if tf >= frame then | |
| 261 | if allowframeloss then | |
| 262 | script.ArtificialHB:Fire() | |
| 263 | lastframe = tick() | |
| 264 | else | |
| 265 | for i = 1, math.floor(tf / frame) do | |
| 266 | script.ArtificialHB:Fire() | |
| 267 | end | |
| 268 | lastframe = tick() | |
| 269 | end | |
| 270 | if tossremainder then | |
| 271 | tf = 0 | |
| 272 | else | |
| 273 | tf = tf - frame * math.floor(tf / frame) | |
| 274 | end | |
| 275 | end | |
| 276 | end) | |
| 277 | ||
| 278 | --//=================================\\ | |
| 279 | --\\=================================// | |
| 280 | ||
| 281 | --//=================================\\ | |
| 282 | --|| SOME FUNCTIONS | |
| 283 | --\\=================================// | |
| 284 | ||
| 285 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 286 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 287 | end | |
| 288 | ||
| 289 | function PositiveAngle(NUMBER) | |
| 290 | if NUMBER >= 0 then | |
| 291 | NUMBER = 0 | |
| 292 | end | |
| 293 | return NUMBER | |
| 294 | end | |
| 295 | ||
| 296 | function NegativeAngle(NUMBER) | |
| 297 | if NUMBER <= 0 then | |
| 298 | NUMBER = 0 | |
| 299 | end | |
| 300 | return NUMBER | |
| 301 | end | |
| 302 | ||
| 303 | function Swait(NUMBER) | |
| 304 | if NUMBER == 0 or NUMBER == nil then | |
| 305 | ArtificialHB.Event:wait() | |
| 306 | else | |
| 307 | for i = 1, NUMBER do | |
| 308 | ArtificialHB.Event:wait() | |
| 309 | end | |
| 310 | end | |
| 311 | end | |
| 312 | ||
| 313 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
| 314 | local NEWMESH = IT(MESH) | |
| 315 | if MESH == "SpecialMesh" then | |
| 316 | NEWMESH.MeshType = MESHTYPE | |
| 317 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 318 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
| 319 | end | |
| 320 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
| 321 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
| 322 | end | |
| 323 | end | |
| 324 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
| 325 | NEWMESH.Scale = SCALE | |
| 326 | NEWMESH.Parent = PARENT | |
| 327 | return NEWMESH | |
| 328 | end | |
| 329 | ||
| 330 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
| 331 | local NEWPART = IT("Part")
| |
| 332 | NEWPART.formFactor = FORMFACTOR | |
| 333 | NEWPART.Reflectance = REFLECTANCE | |
| 334 | NEWPART.Transparency = TRANSPARENCY | |
| 335 | NEWPART.CanCollide = false | |
| 336 | NEWPART.Locked = true | |
| 337 | NEWPART.Anchored = true | |
| 338 | if ANCHOR == false then | |
| 339 | NEWPART.Anchored = false | |
| 340 | end | |
| 341 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 342 | NEWPART.Name = NAME | |
| 343 | NEWPART.Size = SIZE | |
| 344 | NEWPART.Position = Torso.Position | |
| 345 | NEWPART.Material = MATERIAL | |
| 346 | NEWPART:BreakJoints() | |
| 347 | NEWPART.Parent = PARENT | |
| 348 | return NEWPART | |
| 349 | end | |
| 350 | ||
| 351 | local function weldBetween(a, b) | |
| 352 | local weldd = Instance.new("ManualWeld")
| |
| 353 | weldd.Part0 = a | |
| 354 | weldd.Part1 = b | |
| 355 | weldd.C0 = CFrame.new() | |
| 356 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 357 | weldd.Parent = a | |
| 358 | return weldd | |
| 359 | end | |
| 360 | ||
| 361 | ||
| 362 | function QuaternionFromCFrame(cf) | |
| 363 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 364 | local trace = m00 + m11 + m22 | |
| 365 | if trace > 0 then | |
| 366 | local s = math.sqrt(1 + trace) | |
| 367 | local recip = 0.5 / s | |
| 368 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 369 | else | |
| 370 | local i = 0 | |
| 371 | if m11 > m00 then | |
| 372 | i = 1 | |
| 373 | end | |
| 374 | if m22 > (i == 0 and m00 or m11) then | |
| 375 | i = 2 | |
| 376 | end | |
| 377 | if i == 0 then | |
| 378 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 379 | local recip = 0.5 / s | |
| 380 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 381 | elseif i == 1 then | |
| 382 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 383 | local recip = 0.5 / s | |
| 384 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 385 | elseif i == 2 then | |
| 386 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 387 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 388 | end | |
| 389 | end | |
| 390 | end | |
| 391 | ||
| 392 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 393 | local xs, ys, zs = x + x, y + y, z + z | |
| 394 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 395 | local xx = x * xs | |
| 396 | local xy = x * ys | |
| 397 | local xz = x * zs | |
| 398 | local yy = y * ys | |
| 399 | local yz = y * zs | |
| 400 | local zz = z * zs | |
| 401 | 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)) | |
| 402 | end | |
| 403 | ||
| 404 | function QuaternionSlerp(a, b, t) | |
| 405 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 406 | local startInterp, finishInterp; | |
| 407 | if cosTheta >= 0.0001 then | |
| 408 | if (1 - cosTheta) > 0.0001 then | |
| 409 | local theta = ACOS(cosTheta) | |
| 410 | local invSinTheta = 1 / SIN(theta) | |
| 411 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
| 412 | finishInterp = SIN(t * theta) * invSinTheta | |
| 413 | else | |
| 414 | startInterp = 1 - t | |
| 415 | finishInterp = t | |
| 416 | end | |
| 417 | else | |
| 418 | if (1 + cosTheta) > 0.0001 then | |
| 419 | local theta = ACOS(-cosTheta) | |
| 420 | local invSinTheta = 1 / SIN(theta) | |
| 421 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
| 422 | finishInterp = SIN(t * theta) * invSinTheta | |
| 423 | else | |
| 424 | startInterp = t - 1 | |
| 425 | finishInterp = t | |
| 426 | end | |
| 427 | end | |
| 428 | 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 | |
| 429 | end | |
| 430 | ||
| 431 | function Clerp(a, b, t) | |
| 432 | local qa = {QuaternionFromCFrame(a)}
| |
| 433 | local qb = {QuaternionFromCFrame(b)}
| |
| 434 | local ax, ay, az = a.x, a.y, a.z | |
| 435 | local bx, by, bz = b.x, b.y, b.z | |
| 436 | local _t = 1 - t | |
| 437 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 438 | end | |
| 439 | ||
| 440 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
| 441 | local frame = IT("Frame")
| |
| 442 | frame.BackgroundTransparency = TRANSPARENCY | |
| 443 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
| 444 | frame.Position = POSITION | |
| 445 | frame.Size = SIZE | |
| 446 | frame.BackgroundColor3 = COLOR | |
| 447 | frame.BorderColor3 = BORDERCOLOR | |
| 448 | frame.Name = NAME | |
| 449 | frame.Parent = PARENT | |
| 450 | return frame | |
| 451 | end | |
| 452 | ||
| 453 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 454 | local label = IT("TextLabel")
| |
| 455 | label.BackgroundTransparency = 1 | |
| 456 | label.Size = UD2(1, 0, 1, 0) | |
| 457 | label.Position = UD2(0, 0, 0, 0) | |
| 458 | label.TextColor3 = TEXTCOLOR | |
| 459 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
| 460 | label.TextTransparency = TRANSPARENCY | |
| 461 | label.FontSize = TEXTFONTSIZE | |
| 462 | label.Font = TEXTFONT | |
| 463 | label.BorderSizePixel = BORDERSIZEPIXEL | |
| 464 | label.TextScaled = false | |
| 465 | label.Text = TEXT | |
| 466 | label.Name = NAME | |
| 467 | label.Parent = PARENT | |
| 468 | return label | |
| 469 | end | |
| 470 | ||
| 471 | function NoOutlines(PART) | |
| 472 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 473 | end | |
| 474 | ||
| 475 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 476 | local NEWWELD = IT(TYPE) | |
| 477 | NEWWELD.Part0 = PART0 | |
| 478 | NEWWELD.Part1 = PART1 | |
| 479 | NEWWELD.C0 = C0 | |
| 480 | NEWWELD.C1 = C1 | |
| 481 | NEWWELD.Parent = PARENT | |
| 482 | return NEWWELD | |
| 483 | end | |
| 484 | ||
| 485 | local S = IT("Sound")
| |
| 486 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
| 487 | local NEWSOUND = nil | |
| 488 | coroutine.resume(coroutine.create(function() | |
| 489 | NEWSOUND = S:Clone() | |
| 490 | NEWSOUND.Parent = PARENT | |
| 491 | NEWSOUND.Volume = VOLUME | |
| 492 | NEWSOUND.Pitch = PITCH | |
| 493 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 494 | NEWSOUND:play() | |
| 495 | if DOESLOOP == true then | |
| 496 | NEWSOUND.Looped = true | |
| 497 | else | |
| 498 | repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT | |
| 499 | NEWSOUND:remove() | |
| 500 | end | |
| 501 | end)) | |
| 502 | return NEWSOUND | |
| 503 | end | |
| 504 | ||
| 505 | function CFrameFromTopBack(at, top, back) | |
| 506 | local right = top:Cross(back) | |
| 507 | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
| 508 | end | |
| 509 | ||
| 510 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 511 | function WACKYEFFECT(Table) | |
| 512 | local TYPE = (Table.EffectType or "Sphere") | |
| 513 | local SIZE = (Table.Size or VT(1,1,1)) | |
| 514 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
| 515 | local TRANSPARENCY = (Table.Transparency or 0) | |
| 516 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
| 517 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
| 518 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
| 519 | local ROTATION1 = (Table.RotationX or 0) | |
| 520 | local ROTATION2 = (Table.RotationY or 0) | |
| 521 | local ROTATION3 = (Table.RotationZ or 0) | |
| 522 | local MATERIAL = (Table.Material or "Neon") | |
| 523 | local COLOR = (Table.Color or C3(1,1,1)) | |
| 524 | local TIME = (Table.Time or 45) | |
| 525 | local SOUNDID = (Table.SoundID or nil) | |
| 526 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
| 527 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
| 528 | coroutine.resume(coroutine.create(function() | |
| 529 | local PLAYSSOUND = false | |
| 530 | local SOUND = nil | |
| 531 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
| |
| 532 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
| 533 | PLAYSSOUND = true | |
| 534 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
| 535 | end | |
| 536 | EFFECT.Color = COLOR | |
| 537 | local MSH = nil | |
| 538 | if TYPE == "Sphere" then | |
| 539 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
| |
| 540 | elseif TYPE == "Block" or TYPE == "Cube" then | |
| 541 | MSH = IT("BlockMesh",EFFECT)
| |
| 542 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
| 543 | elseif TYPE == "Wave" then | |
| 544 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
| |
| 545 | elseif TYPE == "Ring" then | |
| 546 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
| |
| 547 | elseif TYPE == "Slash" then | |
| 548 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 549 | elseif TYPE == "Round Slash" then | |
| 550 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 551 | elseif TYPE == "Swirl" then | |
| 552 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
| |
| 553 | elseif TYPE == "Skull" then | |
| 554 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
| |
| 555 | elseif TYPE == "Crystal" then | |
| 556 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
| |
| 557 | end | |
| 558 | if MSH ~= nil then | |
| 559 | local MOVESPEED = nil | |
| 560 | if MOVEDIRECTION ~= nil then | |
| 561 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
| 562 | end | |
| 563 | local GROWTH = SIZE - ENDSIZE | |
| 564 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
| 565 | if TYPE == "Block" then | |
| 566 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 567 | else | |
| 568 | EFFECT.CFrame = CFRAME | |
| 569 | end | |
| 570 | for LOOP = 1, TIME+1 do | |
| 571 | Swait() | |
| 572 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
| 573 | if TYPE == "Wave" then | |
| 574 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
| 575 | end | |
| 576 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
| 577 | if TYPE == "Block" then | |
| 578 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 579 | else | |
| 580 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
| 581 | end | |
| 582 | if MOVEDIRECTION ~= nil then | |
| 583 | local ORI = EFFECT.Orientation | |
| 584 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
| 585 | EFFECT.Orientation = ORI | |
| 586 | end | |
| 587 | end | |
| 588 | if PLAYSSOUND == false then | |
| 589 | EFFECT:remove() | |
| 590 | else | |
| 591 | SOUND.Stopped:Connect(function() | |
| 592 | EFFECT:remove() | |
| 593 | end) | |
| 594 | end | |
| 595 | else | |
| 596 | if PLAYSSOUND == false then | |
| 597 | EFFECT:remove() | |
| 598 | else | |
| 599 | repeat Swait() until SOUND.Playing == false | |
| 600 | EFFECT:remove() | |
| 601 | end | |
| 602 | end | |
| 603 | end)) | |
| 604 | end | |
| 605 | ||
| 606 | function MakeForm(PART,TYPE) | |
| 607 | if TYPE == "Cyl" then | |
| 608 | local MSH = IT("CylinderMesh",PART)
| |
| 609 | elseif TYPE == "Ball" then | |
| 610 | local MSH = IT("SpecialMesh",PART)
| |
| 611 | MSH.MeshType = "Sphere" | |
| 612 | elseif TYPE == "Wedge" then | |
| 613 | local MSH = IT("SpecialMesh",PART)
| |
| 614 | MSH.MeshType = "Wedge" | |
| 615 | end | |
| 616 | end | |
| 617 | ||
| 618 | function SpawnTrail(FROM,TO,BIG) | |
| 619 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0)) | |
| 620 | MakeForm(TRAIL,"Cyl") | |
| 621 | local DIST = (FROM - TO).Magnitude | |
| 622 | if BIG == true then | |
| 623 | TRAIL.Size = VT(0.5,DIST,0.5) | |
| 624 | else | |
| 625 | TRAIL.Size = VT(0.25,DIST,0.25) | |
| 626 | end | |
| 627 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
| 628 | coroutine.resume(coroutine.create(function() | |
| 629 | for i = 1, 5 do | |
| 630 | Swait() | |
| 631 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
| 632 | end | |
| 633 | TRAIL:remove() | |
| 634 | end)) | |
| 635 | end | |
| 636 | ||
| 637 | Debris = game:GetService("Debris")
| |
| 638 | ||
| 639 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
| 640 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
| 641 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
| 642 | end | |
| 643 | ||
| 644 | function turnto(position) | |
| 645 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
| 646 | end | |
| 647 | ||
| 648 | New = function(Object, Parent, Name, Data) | |
| 649 | local Object = Instance.new(Object) | |
| 650 | for Index, Value in pairs(Data or {}) do
| |
| 651 | Object[Index] = Value | |
| 652 | end | |
| 653 | Object.Parent = Parent | |
| 654 | Object.Name = Name | |
| 655 | return Object | |
| 656 | end | |
| 657 | ||
| 658 | --//=================================\\ | |
| 659 | --|| WEAPON CREATION | |
| 660 | --\\=================================// | |
| 661 | ||
| 662 | local Particle = IT("ParticleEmitter",nil)
| |
| 663 | Particle.Enabled = false | |
| 664 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
| |
| 665 | Particle.LightEmission = 0.5 | |
| 666 | Particle.Rate = 150 | |
| 667 | Particle.ZOffset = 0.2 | |
| 668 | Particle.Rotation = NumberRange.new(-180, 180) | |
| 669 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
| 670 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
| 671 | Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0)) | |
| 672 | ||
| 673 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
| |
| 674 | function ParticleEmitter(Table) | |
| 675 | local PRTCL = Particle:Clone() | |
| 676 | local Speed = Table.Speed or 5 | |
| 677 | local Drag = Table.Drag or 0 | |
| 678 | local Size1 = Table.Size1 or 1 | |
| 679 | local Size2 = Table.Size2 or 5 | |
| 680 | local Lifetime1 = Table.Lifetime1 or 1 | |
| 681 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
| 682 | local Parent = Table.Parent or Torso | |
| 683 | local Emit = Table.Emit or 100 | |
| 684 | local Offset = Table.Offset or 360 | |
| 685 | local Acel = Table.Acel or VT(0,0,0) | |
| 686 | local Enabled = Table.Enabled or false | |
| 687 | PRTCL.Parent = Parent | |
| 688 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
| 689 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
| 690 | PRTCL.Speed = NumberRange.new(Speed) | |
| 691 | PRTCL.VelocitySpread = Offset | |
| 692 | PRTCL.Drag = Drag | |
| 693 | PRTCL.Acceleration = Acel | |
| 694 | if Enabled == false then | |
| 695 | PRTCL:Emit(Emit) | |
| 696 | Debris:AddItem(PRTCL,Lifetime2) | |
| 697 | else | |
| 698 | PRTCL.Enabled = true | |
| 699 | end | |
| 700 | return PRTCL | |
| 701 | end | |
| 702 | ||
| 703 | local INTROFINISHED = false | |
| 704 | ||
| 705 | MYSELF = script:Clone() | |
| 706 | MYSELF.Parent = Weapon | |
| 707 | WRA = MYSELF.RightArm | |
| 708 | CreateWeldOrSnapOrMotor("Weld",RightArm,WRA.Welder,RightArm,CF(0.05,0,0),CF(0,0,0))
| |
| 709 | WLA = MYSELF.LeftArm | |
| 710 | CreateWeldOrSnapOrMotor("Weld",LeftArm,WLA.Welder,LeftArm,CF(-0.05,0,0),CF(0,0,0))
| |
| 711 | WRL = MYSELF.RightLeg | |
| 712 | CreateWeldOrSnapOrMotor("Weld",RightLeg,WRL.Welder,RightLeg,CF(0,-0.15,0),CF(0,0,0))
| |
| 713 | WLL = MYSELF.LeftLeg | |
| 714 | CreateWeldOrSnapOrMotor("Weld",LeftLeg,WLL.Welder,LeftLeg,CF(0,-0.15,0),CF(0,0,0))
| |
| 715 | WT = MYSELF.Torso | |
| 716 | CreateWeldOrSnapOrMotor("Weld",Torso,WT.Welder,Torso,CF(0,0,0),CF(0,0,0))
| |
| 717 | WH = MYSELF.Head | |
| 718 | CreateWeldOrSnapOrMotor("Weld",Head,WH.Welder,Head,CF(0,0,0),CF(0,0,0))
| |
| 719 | Weapon.Parent = Character | |
| 720 | for _, c in pairs(Weapon:GetChildren()) do | |
| 721 | if c.ClassName == "Part" then | |
| 722 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 723 | end | |
| 724 | end | |
| 725 | ||
| 726 | local SKILLTEXTCOLOR = C3(1,0,0) | |
| 727 | local SKILLFONT = "Fantasy" | |
| 728 | local SKILLTEXTSIZE = 7 | |
| 729 | ||
| 730 | Humanoid.Died:connect(function() | |
| 731 | ATTACK = true | |
| 732 | end) | |
| 733 | ||
| 734 | function printbye(Name) | |
| 735 | local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
| |
| 736 | warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
| 737 | end | |
| 738 | ||
| 739 | workspace.ChildAdded:connect(function(instance) | |
| 740 | for BANISH = 1, #TOBANISH do | |
| 741 | if TOBANISH[BANISH] ~= nil then | |
| 742 | if instance.Name == TOBANISH[BANISH] then | |
| 743 | coroutine.resume(coroutine.create(function() | |
| 744 | printbye(instance.Name) | |
| 745 | instance:ClearAllChildren() | |
| 746 | Debris:AddItem(instance,0.0005) | |
| 747 | end)) | |
| 748 | end | |
| 749 | end | |
| 750 | end | |
| 751 | end) | |
| 752 | ||
| 753 | --//=================================\\ | |
| 754 | --|| DAMAGING | |
| 755 | --\\=================================// | |
| 756 | ||
| 757 | function AoEStun(POS,RANGE,LAST) | |
| 758 | for i,v in ipairs(workspace:GetChildren()) do | |
| 759 | if v:FindFirstChild("StunnedBy"..Player.Name) == nil then
| |
| 760 | local body = v:GetChildren() | |
| 761 | for part = 1, #body do | |
| 762 | if(v:FindFirstChild("StunnedBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
| |
| 763 | if(body[part].Position - POS).Magnitude < RANGE then | |
| 764 | if v.ClassName == "Model" then | |
| 765 | if v:FindFirstChild("Humanoid") then
| |
| 766 | if v.Humanoid.Health ~= 0 then | |
| 767 | Freeze(v.Humanoid,LAST) | |
| 768 | local defence = Instance.new("BoolValue",v)
| |
| 769 | defence.Name = ("StunnedBy"..Player.Name)
| |
| 770 | game:GetService("Debris"):AddItem(defence, 0.1)
| |
| 771 | end | |
| 772 | end | |
| 773 | end | |
| 774 | end | |
| 775 | end | |
| 776 | end | |
| 777 | end | |
| 778 | end | |
| 779 | end | |
| 780 | ||
| 781 | function FireArc(Part,ToLocation,AmountOfTime,Height,DoesCourontine) | |
| 782 | if DoesCourontine == false then | |
| 783 | local Direction = CF(Part.Position,ToLocation) | |
| 784 | local Distance = (Part.Position - ToLocation).magnitude | |
| 785 | for i = 1, AmountOfTime do | |
| 786 | Swait() | |
| 787 | Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime) | |
| 788 | Direction = Part.CFrame | |
| 789 | end | |
| 790 | elseif DoesCourontine == true then | |
| 791 | coroutine.resume(coroutine.create(function() | |
| 792 | local Direction = CF(Part.Position,ToLocation) | |
| 793 | local Distance = (Part.Position - ToLocation).magnitude | |
| 794 | for i = 1, AmountOfTime do | |
| 795 | Swait() | |
| 796 | Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime) | |
| 797 | Direction = Part.CFrame | |
| 798 | end | |
| 799 | end)) | |
| 800 | end | |
| 801 | end | |
| 802 | ||
| 803 | function Trail(Part) | |
| 804 | local TRAIL = Part:Clone() | |
| 805 | TRAIL.CanCollide = false | |
| 806 | TRAIL.Anchored = true | |
| 807 | TRAIL.Parent = Effects | |
| 808 | TRAIL.Name = "Trail" | |
| 809 | local TRANS = Part.Transparency | |
| 810 | coroutine.resume(coroutine.create(function() | |
| 811 | for i = 1, 20 do | |
| 812 | Swait() | |
| 813 | TRAIL.Transparency = TRAIL.Transparency + ((1-TRANS)/20) | |
| 814 | end | |
| 815 | TRAIL:remove() | |
| 816 | end)) | |
| 817 | end | |
| 818 | ||
| 819 | function Freeze(Humanoid,LAST) | |
| 820 | if Humanoid.Parent:FindFirstChild("StunnedBy"..Player.Name) == nil then
| |
| 821 | local q = Humanoid.Parent:GetChildren() | |
| 822 | for i = 1, #q do | |
| 823 | local bob = q[i] | |
| 824 | if bob.ClassName == "Part" or bob.ClassName == "MeshPart" then | |
| 825 | if bob.Transparency < 1 then | |
| 826 | bob.Anchored = true | |
| 827 | local icelayer = bob:Clone() | |
| 828 | icelayer.Parent = bob | |
| 829 | icelayer.Material = "Ice" | |
| 830 | icelayer.CanCollide = false | |
| 831 | icelayer.BrickColor = BRICKC"Steel blue" | |
| 832 | icelayer.Transparency = 0.5 | |
| 833 | icelayer.CFrame = bob.CFrame | |
| 834 | icelayer.Name = "Ice" | |
| 835 | icelayer.Size = icelayer.Size + VT(0.1,0.1,0.1) | |
| 836 | if icelayer:FindFirstChildOfClass("Decal") then
| |
| 837 | icelayer:FindFirstChildOfClass("Decal"):remove()
| |
| 838 | end | |
| 839 | end | |
| 840 | end | |
| 841 | end | |
| 842 | local defence = Instance.new("BoolValue",Humanoid.Parent)
| |
| 843 | defence.Name = ("StunnedBy"..Player.Name)
| |
| 844 | game:GetService("Debris"):AddItem(defence, LAST)
| |
| 845 | coroutine.resume(coroutine.create(function() | |
| 846 | Swait(LAST*50) | |
| 847 | local q = Humanoid.Parent:GetChildren() | |
| 848 | for i = 1, #q do | |
| 849 | local bob = q[i] | |
| 850 | if bob.ClassName == "Part" or bob.ClassName == "MeshPart" then | |
| 851 | if bob.Transparency < 1 then | |
| 852 | bob.Anchored = false | |
| 853 | bob.Ice:remove() | |
| 854 | end | |
| 855 | end | |
| 856 | end | |
| 857 | end)) | |
| 858 | end | |
| 859 | end | |
| 860 | ||
| 861 | function EffectsAoE(POSITION,RANGE,MINDMG,MAXDMG,EFFECTS,TYPES,INSTAKILL) | |
| 862 | local CHILDREN = workspace:GetDescendants() | |
| 863 | local knock=false | |
| 864 | local Poisoning=false | |
| 865 | local Durability=0 | |
| 866 | for index, CHILD in pairs(CHILDREN) do | |
| 867 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
| 868 | local Humanoid = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 869 | if Humanoid then | |
| 870 | local HEAD = CHILD:FindFirstChild("Head")
| |
| 871 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 872 | if TORSO then | |
| 873 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
| 874 | if INSTAKILL == true or Humanoid.MaxHealth > 5000 then | |
| 875 | CHILD:BreakJoints() | |
| 876 | else | |
| 877 | local DMG = MRANDOM(MINDMG,MAXDMG) | |
| 878 | ApplyDamage(Humanoid,DMG,TORSO) | |
| 879 | end | |
| 880 | ||
| 881 | if EFFECTS > 0 then | |
| 882 | for _, c in pairs(CHILD:GetChildren()) do | |
| 883 | if c:IsA("BasePart") then
| |
| 884 | local bv = Instance.new("BodyVelocity",c)
| |
| 885 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 886 | if TYPES=="Fling" then | |
| 887 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 888 | elseif TYPES=="Up" then | |
| 889 | bv.maxForce = Vector3.new(0, 1e9, 0) | |
| 890 | elseif TYPES=="UpKnock" then | |
| 891 | knock=true | |
| 892 | bv.maxForce = Vector3.new(0, 1e9, 0) | |
| 893 | elseif TYPES=="Knock" then | |
| 894 | knock=true | |
| 895 | bv.maxForce = Vector3.new(0, 0, 0) | |
| 896 | elseif TYPES=="KnockOut" then | |
| 897 | knock=true | |
| 898 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 899 | elseif TYPES=="Poison" then | |
| 900 | Poisoning=true | |
| 901 | bv.maxForce = Vector3.new(0, 0, 0) | |
| 902 | elseif TYPES=="Move" then | |
| 903 | bv.maxForce = Vector3.new(1e9, 0, 1e9) | |
| 904 | end | |
| 905 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*EFFECTS | |
| 906 | coroutine.resume(coroutine.create(function() | |
| 907 | if knock==true then | |
| 908 | Humanoid.PlatformStand = true | |
| 909 | wait(EFFECTS/25) | |
| 910 | if Humanoid.PlatformStand== true then | |
| 911 | Humanoid.PlatformStand = false | |
| 912 | end | |
| 913 | end | |
| 914 | if Poisoning==true then | |
| 915 | Durability=1+EFFECTS/1.5 | |
| 916 | repeat | |
| 917 | CreateSound(264001217,TORSO,0.05,0.6) | |
| 918 | Humanoid.Health = Humanoid.Health - math.random(1/0.9999999,5/4.999999)*EFFECTS/350 | |
| 919 | Durability=Durability-1 | |
| 920 | Humanoid.Sit = true | |
| 921 | Humanoid.Sit = false | |
| 922 | Humanoid.Jump = true | |
| 923 | Humanoid.Jump = false | |
| 924 | wait(1) | |
| 925 | until Durability<1 or Durability==0 | |
| 926 | end | |
| 927 | end)) | |
| 928 | Debris:AddItem(bv,0.05) | |
| 929 | end | |
| 930 | end | |
| 931 | end | |
| 932 | end | |
| 933 | end | |
| 934 | end | |
| 935 | end | |
| 936 | end | |
| 937 | end | |
| 938 | ||
| 939 | function ApplyDamage(Humanoid,Damage,TorsoPart) | |
| 940 | local defence = Instance.new("BoolValue",Humanoid.Parent)
| |
| 941 | defence.Name = ("HitBy"..Player.Name)
| |
| 942 | game:GetService("Debris"):AddItem(defence, 0.001)
| |
| 943 | Damage = Damage * DAMAGEMULTIPLIER | |
| 944 | if Humanoid.Health ~= 0 then | |
| 945 | local CritChance = MRANDOM(1,100) | |
| 946 | if Damage > Humanoid.Health then | |
| 947 | Damage = math.ceil(Humanoid.Health) | |
| 948 | if Damage == 0 then | |
| 949 | Damage = 0.1 | |
| 950 | end | |
| 951 | end | |
| 952 | Humanoid.Health = Humanoid.Health - Damage | |
| 953 | end | |
| 954 | end | |
| 955 | ||
| 956 | function NoScripts(who) | |
| 957 | local plr = game:service'Players':GetPlayerFromCharacter(who) | |
| 958 | for _,v in next, who:GetDescendants() do | |
| 959 | if((v:IsA'LocalScript' or v:IsA'Script') and v.Name~='Animate')then | |
| 960 | v.Disabled=true | |
| 961 | v:destroy() | |
| 962 | end | |
| 963 | end | |
| 964 | if(plr)then | |
| 965 | local pg = plr:FindFirstChildOfClass'PlayerGui' | |
| 966 | if(pg)then | |
| 967 | for _,v in next, pg:children() do | |
| 968 | if(v:IsA'LocalScript' or v:IsA'Script')then | |
| 969 | v.Disabled=true | |
| 970 | v:destroy() | |
| 971 | end | |
| 972 | end | |
| 973 | end | |
| 974 | for _,v in next, plr:GetDescendants() do | |
| 975 | if((not pg or not v:IsDescendantOf(pg)) and (v:IsA'LocalScript' or v:IsA'Script'))then | |
| 976 | v.Disabled=true | |
| 977 | v:destroy() | |
| 978 | end | |
| 979 | end | |
| 980 | end | |
| 981 | end | |
| 982 | ||
| 983 | function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL) | |
| 984 | local CHILDREN = workspace:GetDescendants() | |
| 985 | for index, CHILD in pairs(CHILDREN) do | |
| 986 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
| 987 | local Humanoid = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 988 | if Humanoid then | |
| 989 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 990 | if TORSO then | |
| 991 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
| 992 | if INSTAKILL == true then | |
| 993 | CHILD:BreakJoints() | |
| 994 | else | |
| 995 | local DMG = MRANDOM(MINDMG,MAXDMG) | |
| 996 | ApplyDamage(Humanoid,DMG,TORSO) | |
| 997 | end | |
| 998 | if FLING > 0 then | |
| 999 | for _, c in pairs(CHILD:GetChildren()) do | |
| 1000 | if c:IsA("BasePart") then
| |
| 1001 | local bv = Instance.new("BodyVelocity")
| |
| 1002 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 1003 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
| 1004 | bv.Parent = c | |
| 1005 | Debris:AddItem(bv,0.05) | |
| 1006 | end | |
| 1007 | end | |
| 1008 | end | |
| 1009 | end | |
| 1010 | end | |
| 1011 | end | |
| 1012 | end | |
| 1013 | end | |
| 1014 | end | |
| 1015 | ||
| 1016 | --//=================================\\ | |
| 1017 | --|| SOME TAG EDIT | |
| 1018 | --\\=================================// | |
| 1019 | SKILLTEXTCOLOR2 = C3(213/255, 115/255, 61/255) | |
| 1020 | TEXTCOL = C3(99/255, 95/255, 98/255) | |
| 1021 | function Chat(text) | |
| 1022 | local chat = coroutine.wrap(function() | |
| 1023 | if Character:FindFirstChild("TalkingBillBoard")~= nil then
| |
| 1024 | Character:FindFirstChild("TalkingBillBoard"):destroy()
| |
| 1025 | end | |
| 1026 | local Bill = Instance.new("BillboardGui",Character)
| |
| 1027 | Bill.Size = UDim2.new(0,100,0,40) | |
| 1028 | Bill.StudsOffset = Vector3.new(0,3,0) | |
| 1029 | Bill.Adornee = Character.Head | |
| 1030 | Bill.Name = "TalkingBillBoard" | |
| 1031 | local Hehe = Instance.new("TextLabel",Bill)
| |
| 1032 | Hehe.BackgroundTransparency = 1 | |
| 1033 | Hehe.BorderSizePixel = 0 | |
| 1034 | Hehe.Text = "" | |
| 1035 | Hehe.Font = "Arcade" | |
| 1036 | Hehe.TextSize = 35 | |
| 1037 | Hehe.TextStrokeTransparency = 0 | |
| 1038 | Hehe.Size = UDim2.new(1,0,0.5,0) | |
| 1039 | coroutine.resume(coroutine.create(function() | |
| 1040 | while Hehe ~= nil do | |
| 1041 | Swait() | |
| 1042 | Hehe.Position = UDim2.new(0,0,.05,0) | |
| 1043 | Hehe.Rotation = 0 | |
| 1044 | Hehe.TextColor3 = TEXTCOL | |
| 1045 | Hehe.TextStrokeColor3 = SKILLTEXTCOLOR2 | |
| 1046 | end | |
| 1047 | end)) | |
| 1048 | for i = 1,string.len(text),1 do | |
| 1049 | Swait() | |
| 1050 | Hehe.Text = string.sub(text,1,i) | |
| 1051 | end | |
| 1052 | Swait(90)--Re[math.random(1, 93)] | |
| 1053 | for i = 0, 1, .025 do | |
| 1054 | Swait() | |
| 1055 | Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i)) | |
| 1056 | Hehe.TextStrokeTransparency = i | |
| 1057 | Hehe.TextTransparency = i | |
| 1058 | end | |
| 1059 | Bill:Destroy() | |
| 1060 | end) | |
| 1061 | chat() | |
| 1062 | end | |
| 1063 | ||
| 1064 | ||
| 1065 | local HUE = 0 | |
| 1066 | ||
| 1067 | --m = game.Players.LocalPlayer | |
| 1068 | --char = m.Character | |
| 1069 | --local txt = Instance.new("BillboardGui", char)
| |
| 1070 | --txt.Adornee = char.Head | |
| 1071 | --txt.Name = "_status" | |
| 1072 | --txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 1073 | --txt.StudsOffset = Vector3.new(-18.75, 8, 0) | |
| 1074 | --local text = Instance.new("TextLabel", txt)
| |
| 1075 | --text.Size = UDim2.new(20, 0, 7, 0) | |
| 1076 | --text.FontSize = Enum.FontSize.Size10 | |
| 1077 | --text.TextScaled = false | |
| 1078 | --text.TextSize = 56 | |
| 1079 | --text.TextTransparency = 0 | |
| 1080 | --text.BackgroundTransparency = 1 | |
| 1081 | --text.TextTransparency = 0 | |
| 1082 | --text.TextStrokeTransparency = 0 | |
| 1083 | --text.Font = "Antique" | |
| 1084 | --v = Instance.new("Part")
| |
| 1085 | --v.Name = "ColorBrick" | |
| 1086 | --v.Parent = m.Character | |
| 1087 | --v.FormFactor = "Symmetric" | |
| 1088 | --v.Anchored = true | |
| 1089 | --v.CanCollide = false | |
| 1090 | --v.BottomSurface = "Smooth" | |
| 1091 | --v.TopSurface = "Smooth" | |
| 1092 | --v.Size = Vector3.new(10, 5, 3) | |
| 1093 | --v.Transparency = 1 | |
| 1094 | --v.CFrame = char.Torso.CFrame | |
| 1095 | --v.BrickColor = BrickColor.new("Really black")
| |
| 1096 | --v.Transparency = 1 | |
| 1097 | --v.Shape = "Block" | |
| 1098 | --text.Text = '' | |
| 1099 | ||
| 1100 | --//=================================\\ | |
| 1101 | --|| ATTACK FUNCTIONS AND STUFF | |
| 1102 | --\\=================================// | |
| 1103 | ||
| 1104 | function Taunt() | |
| 1105 | ATTACK = true | |
| 1106 | Rooted = false | |
| 1107 | local Laugh = CreateSound(159882635,Head,5,1,false) | |
| 1108 | repeat | |
| 1109 | Swait() | |
| 1110 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(35)), .8 / Animation_Speed) | |
| 1111 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(-5)), .8 / Animation_Speed) | |
| 1112 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.3, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1113 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1114 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), .8 / Animation_Speed) | |
| 1115 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), .8 / Animation_Speed) | |
| 1116 | until Laugh.TimePosition >= 1.25 | |
| 1117 | for i=0, 1.6, 0.1 / Animation_Speed do | |
| 1118 | Swait() | |
| 1119 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(35)), .8 / Animation_Speed) | |
| 1120 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-25)), .8 / Animation_Speed) | |
| 1121 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.3, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1122 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1123 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), .8 / Animation_Speed) | |
| 1124 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), .8 / Animation_Speed) | |
| 1125 | end | |
| 1126 | ATTACK = false | |
| 1127 | Rooted = false | |
| 1128 | end | |
| 1129 | ||
| 1130 | function Attack1() | |
| 1131 | ATTACK = true | |
| 1132 | Rooted = false | |
| 1133 | local dist = 2 | |
| 1134 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 1135 | Swait() | |
| 1136 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), .8 / Animation_Speed) | |
| 1137 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), .8 / Animation_Speed) | |
| 1138 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, .8 / Animation_Speed) | |
| 1139 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, .8 / Animation_Speed) | |
| 1140 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), .8 / Animation_Speed) | |
| 1141 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), .8 / Animation_Speed) | |
| 1142 | end | |
| 1143 | coroutine.resume(coroutine.create(function() | |
| 1144 | for i = 0, 4 do | |
| 1145 | Swait(2) | |
| 1146 | local Block = Instance.new("Part", Character)
| |
| 1147 | Block.Anchored = true | |
| 1148 | Block.CanCollide = false | |
| 1149 | Block.FormFactor = 3 | |
| 1150 | Block.Name = "Ring" | |
| 1151 | Block.Material = "Neon" | |
| 1152 | Block.Size = Vector3.new(1, 1, 1) | |
| 1153 | Block.Transparency = 1 | |
| 1154 | Block.TopSurface = 0 | |
| 1155 | Block.BottomSurface = 0 | |
| 1156 | Block.CFrame = RootPart.CFrame*CF(0,0,-dist) | |
| 1157 | WACKYEFFECT({EffectType = "Sphere", Size = VT(2,2,2), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = Block.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1158 | WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.02,0,0.02), Transparency = 0, Transparency2 = 1, CFrame = Block.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1159 | WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.02,0,0.02), Transparency = 0, Transparency2 = 1, CFrame = Block.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1160 | WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.02,0,0.02), Transparency = 0, Transparency2 = 1, CFrame = Block.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1161 | WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.02,0,0.02), Transparency = 0, Transparency2 = 1, CFrame = Block.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1162 | CreateSound(183763506,Block,3,1,false) | |
| 1163 | CreateSound(178452221,Block,3,1,false) | |
| 1164 | ApplyAoE(Block.Position,5,25,68,0,false) | |
| 1165 | Debris:AddItem(Block, 5) | |
| 1166 | dist = dist + 3 | |
| 1167 | Block:Remove() | |
| 1168 | end | |
| 1169 | end)) | |
| 1170 | for i=0, 0.6, 0.1 / Animation_Speed do | |
| 1171 | Swait() | |
| 1172 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), .8 / Animation_Speed) | |
| 1173 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), .8 / Animation_Speed) | |
| 1174 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(75), RAD(0), RAD(35)) * RIGHTSHOULDERC0, .8 / Animation_Speed) | |
| 1175 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(75), RAD(0), RAD(-35)) * LEFTSHOULDERC0, .8 / Animation_Speed) | |
| 1176 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-15), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), .8 / Animation_Speed) | |
| 1177 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-15), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), .8 / Animation_Speed) | |
| 1178 | end | |
| 1179 | ATTACK = false | |
| 1180 | Rooted = false | |
| 1181 | end | |
| 1182 | ||
| 1183 | function Attack2() | |
| 1184 | ATTACK = true | |
| 1185 | Rooted = false | |
| 1186 | local dist = 2 | |
| 1187 | turnto(Mouse.Hit.p) | |
| 1188 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 1189 | Swait() | |
| 1190 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), .8 / Animation_Speed) | |
| 1191 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(75)), .8 / Animation_Speed) | |
| 1192 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, .8 / Animation_Speed) | |
| 1193 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, .8 / Animation_Speed) | |
| 1194 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), .8 / Animation_Speed) | |
| 1195 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), .8 / Animation_Speed) | |
| 1196 | end | |
| 1197 | SpawnTrail(LeftArm.CFrame*CF(0,-1,0).Position,Mouse.Hit.Position,true) | |
| 1198 | ApplyAoE(Mouse.Hit.Position,10,55,85,0,false) | |
| 1199 | WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Mouse.Hit, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1200 | WACKYEFFECT({EffectType = "Wave", Size = VT(1,1,1), Size2 = VT(5,1,5), Transparency = 0, Transparency2 = 1, CFrame = Mouse.Hit, MoveToPos = nil, RotationX = 0, RotationY = 8, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1201 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 1202 | Swait() | |
| 1203 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(-95)), .8 / Animation_Speed) | |
| 1204 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(75)), .8 / Animation_Speed) | |
| 1205 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, .8 / Animation_Speed) | |
| 1206 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, .8 / Animation_Speed) | |
| 1207 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), .8 / Animation_Speed) | |
| 1208 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), .8 / Animation_Speed) | |
| 1209 | end | |
| 1210 | ATTACK = false | |
| 1211 | Rooted = false | |
| 1212 | end | |
| 1213 | ||
| 1214 | function EnergyBurst() | |
| 1215 | ATTACK = true | |
| 1216 | Rooted = false | |
| 1217 | for i=0, 3, 0.1 / Animation_Speed do | |
| 1218 | Swait() | |
| 1219 | WACKYEFFECT({EffectType = "Sphere", Size = VT(1.5,1.5,1.5), Size2 = VT(1.5,1.5,1.5), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(MRANDOM(-299,299),MRANDOM(-299,299),MRANDOM(-299,299))*ANGLES(RAD(0),RAD(0),RAD(0)), MoveToPos = Torso.Position, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1220 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1221 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1222 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1223 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.4, -0.4) * ANGLES(RAD(35), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1224 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(35), RAD(80), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1225 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(35), RAD(-80), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1226 | end | |
| 1227 | for i=0, 8, 0.1 / Animation_Speed do | |
| 1228 | Swait() | |
| 1229 | ApplyAoE(Torso.Position,44,21,45,15,false) | |
| 1230 | WACKYEFFECT({EffectType = "Wave", Size = VT(1,1,1), Size2 = VT(25,4,25), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,-3,0), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(1,10), RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1231 | WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(1,58,1), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame*ANGLES(RAD((MRANDOM(0,360))),RAD((MRANDOM(0,360))),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1232 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1233 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1234 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1235 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1236 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35), RAD(80), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1237 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-35), RAD(-80), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1238 | end | |
| 1239 | ATTACK = false | |
| 1240 | Rooted = false | |
| 1241 | end | |
| 1242 | ||
| 1243 | function LaserEye() | |
| 1244 | ATTACK = true | |
| 1245 | Rooted = false | |
| 1246 | turnto(Mouse.Hit.Position) | |
| 1247 | SpawnTrail(WH.TheEye.Position,Mouse.Hit.Position,false) | |
| 1248 | CreateSound(151414336,WH.TheEye,5,1,false) | |
| 1249 | WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Mouse.Hit, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1250 | for i=0, 0.3, 0.1 / Animation_Speed do | |
| 1251 | Swait() | |
| 1252 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
| 1253 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-8), RAD(15), RAD(0)), 0.3 / Animation_Speed) | |
| 1254 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) | |
| 1255 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.4, 0) * ANGLES(RAD(-45), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.3 / Animation_Speed) | |
| 1256 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(15), RAD(80), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
| 1257 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(15), RAD(-80), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
| 1258 | end | |
| 1259 | repeat | |
| 1260 | SpawnTrail(WH.TheEye.Position,Mouse.Hit.Position,false) | |
| 1261 | CreateSound(151414336,WH.TheEye,5,1,false) | |
| 1262 | ApplyAoE(Mouse.Hit.Position,4,54,88,0,false) | |
| 1263 | WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = Mouse.Hit, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1264 | for i=0, 0.3, 0.1 / Animation_Speed do | |
| 1265 | Swait() | |
| 1266 | turnto(Mouse.Hit.Position) | |
| 1267 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
| 1268 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-8), RAD(15), RAD(0)), 0.3 / Animation_Speed) | |
| 1269 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) | |
| 1270 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.4, 0) * ANGLES(RAD(-45), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.3 / Animation_Speed) | |
| 1271 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(15), RAD(80), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
| 1272 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(15), RAD(-80), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
| 1273 | end | |
| 1274 | until KEYHOLD == false | |
| 1275 | ATTACK = false | |
| 1276 | Rooted = false | |
| 1277 | end | |
| 1278 | ||
| 1279 | local DONE = false | |
| 1280 | function SelfDestruct() | |
| 1281 | ATTACK = true | |
| 1282 | Rooted = false | |
| 1283 | for i=0, 9, 0.1 / Animation_Speed do | |
| 1284 | Swait() | |
| 1285 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
| 1286 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-18), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
| 1287 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) | |
| 1288 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.3 / Animation_Speed) | |
| 1289 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -1) * ANGLES(RAD(-90), RAD(90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
| 1290 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -1) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
| 1291 | end | |
| 1292 | WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(255,255,255), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1293 | WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(355,355,355), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1294 | for i,v in pairs(game.Players:GetChildren()) do | |
| 1295 | if v.Character.Parent == nil then | |
| 1296 | ||
| 1297 | elseif v.Character.Parent ~= nil and v.Name ~= "KillerzTH_1596" then | |
| 1298 | v.Character:BreakJoints() | |
| 1299 | end | |
| 1300 | end | |
| 1301 | for i=0, 9, 0.1 / Animation_Speed do | |
| 1302 | Swait() | |
| 1303 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
| 1304 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-18), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
| 1305 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) | |
| 1306 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.3 / Animation_Speed) | |
| 1307 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -1) * ANGLES(RAD(-90), RAD(90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
| 1308 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -1) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
| 1309 | end | |
| 1310 | Speed = 0 | |
| 1311 | wait(2) | |
| 1312 | sick:Remove() | |
| 1313 | Character:Remove() | |
| 1314 | ATTACK = false | |
| 1315 | Rooted = false | |
| 1316 | end | |
| 1317 | ||
| 1318 | function Warp() | |
| 1319 | ATTACK = true | |
| 1320 | Rooted = true | |
| 1321 | for i = 0, 1, 0.1 / Animation_Speed do | |
| 1322 | Swait() | |
| 1323 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1324 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(14), RAD(0)), 0.5 / Animation_Speed) | |
| 1325 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.3, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1326 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1327 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1328 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1329 | end | |
| 1330 | UNANCHOR = false | |
| 1331 | RootPart.Anchored = true | |
| 1332 | for i = 0, 2, 0.1 / Animation_Speed do | |
| 1333 | Swait() | |
| 1334 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -10) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1335 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(14), RAD(0)), 0.5 / Animation_Speed) | |
| 1336 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.3, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1337 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1338 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1339 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1340 | end | |
| 1341 | local POS = RootPart.Position | |
| 1342 | RootPart.CFrame = CF(CF(Mouse.Hit.p) * CF(0, 2.8, 0).p, POS) | |
| 1343 | for i = 0, 2, 0.1 / Animation_Speed do | |
| 1344 | Swait() | |
| 1345 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1346 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(14), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1347 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.3, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1348 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1349 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1350 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1351 | end | |
| 1352 | RootPart.Anchored = false | |
| 1353 | ATTACK = false | |
| 1354 | Rooted = false | |
| 1355 | end | |
| 1356 | ||
| 1357 | function Intro() | |
| 1358 | ATTACK = true | |
| 1359 | Rooted = false | |
| 1360 | for i=0, 1, 0.1 / Animation_Speed do | |
| 1361 | Swait() | |
| 1362 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(10), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1363 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1364 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(1)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1365 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-1)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1366 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(10), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1367 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(10), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1368 | end | |
| 1369 | WACKYEFFECT({EffectType = "Sphere", Size = VT(5,100000,5), Size2 = VT(5,100000,5), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1370 | sick.SoundId = "rbxassetid://2662473668" | |
| 1371 | TRANSFORMED = true | |
| 1372 | INTROFINISHED = true | |
| 1373 | ATTACK = false | |
| 1374 | Rooted = false | |
| 1375 | UNANCHOR = true | |
| 1376 | RootPart.Anchored = false | |
| 1377 | end | |
| 1378 | ||
| 1379 | --//=================================\\ | |
| 1380 | --|| ASSIGN THINGS TO KEYS | |
| 1381 | --\\=================================// | |
| 1382 | ||
| 1383 | local COMBO = 1 | |
| 1384 | function MouseDown(Mouse) | |
| 1385 | if ATTACK == false then | |
| 1386 | if COMBO == 1 then | |
| 1387 | Attack1() | |
| 1388 | COMBO = 2 | |
| 1389 | elseif COMBO == 2 then | |
| 1390 | Attack2() | |
| 1391 | COMBO = 1 | |
| 1392 | end | |
| 1393 | end | |
| 1394 | end | |
| 1395 | ||
| 1396 | function MouseUp(Mouse) | |
| 1397 | HOLD = false | |
| 1398 | end | |
| 1399 | ||
| 1400 | function KeyDown(Key) | |
| 1401 | KEYHOLD = true | |
| 1402 | if Key == "t" and ATTACK == false then | |
| 1403 | Taunt() | |
| 1404 | end | |
| 1405 | if Key == "z" and ATTACK == false then | |
| 1406 | EnergyBurst() | |
| 1407 | end | |
| 1408 | if Key == "x" and ATTACK == false then | |
| 1409 | LaserEye() | |
| 1410 | end | |
| 1411 | if Key == "c" and ATTACK == false then | |
| 1412 | Warp() | |
| 1413 | end | |
| 1414 | if Key == "p" and ATTACK == false then | |
| 1415 | SelfDestruct() | |
| 1416 | end | |
| 1417 | end | |
| 1418 | ||
| 1419 | function KeyUp(Key) | |
| 1420 | KEYHOLD = false | |
| 1421 | end | |
| 1422 | ||
| 1423 | Mouse.Button1Down:connect(function(NEWKEY) | |
| 1424 | MouseDown(NEWKEY) | |
| 1425 | end) | |
| 1426 | Mouse.Button1Up:connect(function(NEWKEY) | |
| 1427 | MouseUp(NEWKEY) | |
| 1428 | end) | |
| 1429 | Mouse.KeyDown:connect(function(NEWKEY) | |
| 1430 | KeyDown(NEWKEY) | |
| 1431 | end) | |
| 1432 | Mouse.KeyUp:connect(function(NEWKEY) | |
| 1433 | KeyUp(NEWKEY) | |
| 1434 | end) | |
| 1435 | ||
| 1436 | --//=================================\\ | |
| 1437 | --\\=================================// | |
| 1438 | ||
| 1439 | ||
| 1440 | function unanchor() | |
| 1441 | if UNANCHOR == true then | |
| 1442 | g = Character:GetChildren() | |
| 1443 | for i = 1, #g do | |
| 1444 | if g[i].ClassName == "Part" then | |
| 1445 | g[i].Anchored = false | |
| 1446 | end | |
| 1447 | end | |
| 1448 | end | |
| 1449 | end | |
| 1450 | ||
| 1451 | ||
| 1452 | --//=================================\\ | |
| 1453 | --|| WRAP THE WHOLE SCRIPT UP | |
| 1454 | --\\=================================// | |
| 1455 | ||
| 1456 | Humanoid.Changed:connect(function(Jump) | |
| 1457 | if Jump == "Jump" and (Disable_Jump == true) then | |
| 1458 | Humanoid.Jump = false | |
| 1459 | end | |
| 1460 | end) | |
| 1461 | ||
| 1462 | local CONNECT = nil | |
| 1463 | ||
| 1464 | sick.Parent = Torso | |
| 1465 | sick.Volume = 5.2 | |
| 1466 | sick.SoundId = "rbxassetid://2662473668" | |
| 1467 | sick.PlaybackSpeed = 0.9 | |
| 1468 | sick.Looped = true | |
| 1469 | sick:Play() | |
| 1470 | sick.Name = "Dino-Destroyer" | |
| 1471 | ||
| 1472 | local TweenService = game:GetService("TweenService")
| |
| 1473 | ||
| 1474 | while true do | |
| 1475 | Swait() | |
| 1476 | ANIMATE.Parent = nil | |
| 1477 | if Character:FindFirstChildOfClass("Humanoid") == nil then
| |
| 1478 | Humanoid = IT("Humanoid",Character)
| |
| 1479 | end | |
| 1480 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
| 1481 | v:Stop(); | |
| 1482 | end | |
| 1483 | if HUE > 360 then | |
| 1484 | HUE = 0 | |
| 1485 | end | |
| 1486 | HUE = HUE + 1 | |
| 1487 | SINE = SINE + CHANGE | |
| 1488 | Humanoid.HipHeight = 0.1 | |
| 1489 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
| 1490 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
| 1491 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
| 1492 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
| 1493 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
| 1494 | ANIM = "Jump" | |
| 1495 | if ATTACK == false then | |
| 1496 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), .3 / Animation_Speed) | |
| 1497 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), .3 / Animation_Speed) | |
| 1498 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(70)) * RIGHTSHOULDERC0, .3 / Animation_Speed) | |
| 1499 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-70)) * LEFTSHOULDERC0, .3 / Animation_Speed) | |
| 1500 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), .3 / Animation_Speed) | |
| 1501 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), .3 / Animation_Speed) | |
| 1502 | end | |
| 1503 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
| 1504 | ANIM = "Fall" | |
| 1505 | if ATTACK == false then | |
| 1506 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), .3 / Animation_Speed) | |
| 1507 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), .3 / Animation_Speed) | |
| 1508 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(120)) * RIGHTSHOULDERC0, .3 / Animation_Speed) | |
| 1509 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-120)) * LEFTSHOULDERC0, .3 / Animation_Speed) | |
| 1510 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), .3 / Animation_Speed) | |
| 1511 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), .3 / Animation_Speed) | |
| 1512 | end | |
| 1513 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
| 1514 | ANIM = "Idle" | |
| 1515 | if ATTACK == false then | |
| 1516 | local SNAP = MRANDOM(0,7) | |
| 1517 | if SNAP == 3 then | |
| 1518 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + MRANDOM(-15,15)), RAD(0 + 5 * SIN(SINE / 35) + MRANDOM(-15,15)), RAD(0 + MRANDOM(-15,15))), .3 / Animation_Speed) | |
| 1519 | end | |
| 1520 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.07 * COS(SINE / 35)) * ANGLES(RAD(12), RAD(0), RAD(0)), .3 / Animation_Speed) | |
| 1521 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0 + 15 * SIN(SINE / 35))), .3 / Animation_Speed) | |
| 1522 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(8 + 4 * SIN(SINE / 35))) * RIGHTSHOULDERC0, .3 / Animation_Speed) | |
| 1523 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.2, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(78 - 4 * SIN(SINE / 35))) * LEFTSHOULDERC0, .3 / Animation_Speed) | |
| 1524 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.07 * COS(SINE / 35), -0.01) * ANGLES(RAD(12), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), .3 / Animation_Speed) | |
| 1525 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.07 * COS(SINE / 35), -0.01) * ANGLES(RAD(12), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), .3 / Animation_Speed) | |
| 1526 | end | |
| 1527 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
| 1528 | ANIM = "Walk" | |
| 1529 | if ATTACK == false then | |
| 1530 | local SNAP = MRANDOM(0,7) | |
| 1531 | if SNAP == 3 then | |
| 1532 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + MRANDOM(-15,15)), RAD(11 + 5 * SIN(SINE / 35) + MRANDOM(-15,15)), RAD(0 + MRANDOM(-15,15))), .3 / Animation_Speed) | |
| 1533 | end | |
| 1534 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / WALKSPEEDVALUE/2)) * ANGLES(RAD(10), RAD(0), RAD(0-3*SIN(SINE/WALKSPEEDVALUE))), .3 / Animation_Speed) | |
| 1535 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0+1*SIN(SINE/WALKSPEEDVALUE/2)), RAD(11), RAD(0)), 0.3 / Animation_Speed) | |
| 1536 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0-25*SIN(SINE/WALKSPEEDVALUE)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, .3 / Animation_Speed) | |
| 1537 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0+25*SIN(SINE/WALKSPEEDVALUE)), RAD(0), RAD(0)) * LEFTSHOULDERC0, .3 / Animation_Speed) | |
| 1538 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.06 * COS(SINE / WALKSPEEDVALUE / 2), -0.01) * ANGLES(RAD(10), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0+25*SIN(SINE/WALKSPEEDVALUE))), .3 / Animation_Speed) | |
| 1539 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.06 * COS(SINE / WALKSPEEDVALUE / 2), -0.01) * ANGLES(RAD(10), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0+25*SIN(SINE/WALKSPEEDVALUE))), .3 / Animation_Speed) | |
| 1540 | end | |
| 1541 | end | |
| 1542 | unanchor() | |
| 1543 | coroutine.resume(coroutine.create(function() | |
| 1544 | if TRANSFORMED == true then | |
| 1545 | WACKYEFFECT({EffectType = "Sphere", Size = VT(4,0.2,4), Size2 = VT(0,0.2,0), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,-3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1546 | end | |
| 1547 | end)) | |
| 1548 | if INTRO == false and INSTANT == false then | |
| 1549 | INTRO = true | |
| 1550 | coroutine.resume(coroutine.create(function() | |
| 1551 | sick:Play() | |
| 1552 | Intro() | |
| 1553 | end)) | |
| 1554 | end | |
| 1555 | if INTROFINISHED == false then | |
| 1556 | Weapon.Parent = nil | |
| 1557 | elseif INTROFINISHED == true then | |
| 1558 | Weapon.Parent = Character | |
| 1559 | end | |
| 1560 | if DONE == true then | |
| 1561 | WH.EyePar.ParticleEmitter:Remove() | |
| 1562 | end | |
| 1563 | if INTROFINISHED == true then | |
| 1564 | for _, c in pairs(Character:GetChildren()) do | |
| 1565 | if c.ClassName == "Part" and c.Name ~= "Detail" then | |
| 1566 | c.Transparency = 1 | |
| 1567 | if c == Head then | |
| 1568 | if c:FindFirstChild("face") then
| |
| 1569 | c.face:remove() | |
| 1570 | end | |
| 1571 | end | |
| 1572 | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
| 1573 | c:remove() | |
| 1574 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants" or c.ClassName == "ShirtGraphic") and c.Name ~= "Cloth" then | |
| 1575 | c:remove() | |
| 1576 | end | |
| 1577 | end | |
| 1578 | end | |
| 1579 | if Rooted == false then | |
| 1580 | Disable_Jump = false | |
| 1581 | Humanoid.WalkSpeed = Speed | |
| 1582 | elseif Rooted == true then | |
| 1583 | Disable_Jump = true | |
| 1584 | Humanoid.WalkSpeed = 0 | |
| 1585 | end | |
| 1586 | end | |
| 1587 | ||
| 1588 | --//=================================\\ | |
| 1589 | --\\=================================// | |
| 1590 | ||
| 1591 | ||
| 1592 | ||
| 1593 | ||
| 1594 | ||
| 1595 | --//====================================================\\-- | |
| 1596 | --|| END OF SCRIPT | |
| 1597 | --\\====================================================//-- |