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