SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
| |
| 2 | print("FE Compatibility: by WaverlyCole & Mokiros")
| |
| 3 | InternalData = {}
| |
| 4 | do | |
| 5 | script.Parent = owner.Character | |
| 6 | local Event = Instance.new("RemoteEvent")
| |
| 7 | Event.Name = "UserInput" | |
| 8 | local function NewFakeEvent() | |
| 9 | local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
| |
| 10 | return Fake | |
| 11 | end | |
| 12 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
| |
| 13 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
| |
| 14 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
| |
| 15 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
| |
| 16 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
| 17 | local function TriggerEvent(self,Event,...) | |
| 18 | local Trigger = Mouse[Event] | |
| 19 | if Trigger and Trigger.fakeEvent and Trigger.Function then | |
| 20 | Trigger.Function(...) | |
| 21 | end | |
| 22 | end | |
| 23 | Mouse.TrigEvent = TriggerEvent | |
| 24 | UserInputService.TrigEvent = TriggerEvent | |
| 25 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
| 26 | if FiredBy.Name ~= owner.Name then end | |
| 27 | if Input.MouseEvent then | |
| 28 | Mouse.Target = Input.Target | |
| 29 | Mouse.Hit = Input.Hit | |
| 30 | else | |
| 31 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
| 32 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 33 | return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") | |
| 34 | end | |
| 35 | for _,Action in pairs(ContextActionService.Actions) do | |
| 36 | for _,Key in pairs(Action.Keys) do | |
| 37 | if Key==Input.KeyCode then | |
| 38 | Action.Function(Action.Name,Input.UserInputState,Input) | |
| 39 | end | |
| 40 | end | |
| 41 | end | |
| 42 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
| 43 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
| 44 | end | |
| 45 | end) | |
| 46 | InternalData["Mouse"] = Mouse | |
| 47 | InternalData["ContextActionService"] = ContextActionService | |
| 48 | InternalData["UserInputService"] = UserInputService | |
| 49 | Event.Parent = NLS([[ | |
| 50 | local Player = owner | |
| 51 | local Event = script:WaitForChild("UserInput")
| |
| 52 | local UserInputService = game:GetService("UserInputService")
| |
| 53 | local Mouse = Player:GetMouse() | |
| 54 | local Input = function(Input,gameProcessedEvent) | |
| 55 | if gameProcessedEvent then return end | |
| 56 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
| |
| 57 | end | |
| 58 | UserInputService.InputBegan:Connect(Input) | |
| 59 | UserInputService.InputEnded:Connect(Input) | |
| 60 | local Hit,Target | |
| 61 | while wait(1/30) do | |
| 62 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
| 63 | Hit,Targer = Mouse.Hit,Mouse.Target | |
| 64 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
| |
| 65 | end | |
| 66 | end | |
| 67 | ]],owner.Character) | |
| 68 | end | |
| 69 | RealGame = game;game = setmetatable({},{
| |
| 70 | __index = function (self,Index) | |
| 71 | local Sandbox = function (Thing) | |
| 72 | if Thing:IsA("Player") then
| |
| 73 | local RealPlayer = Thing | |
| 74 | return setmetatable({},{
| |
| 75 | __index = function (self,Index) | |
| 76 | local Type = type(RealPlayer[Index]) | |
| 77 | if Type == "function" then | |
| 78 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
| 79 | return function (self) | |
| 80 | return InternalData["Mouse"] | |
| 81 | end | |
| 82 | end | |
| 83 | return function (self,...) | |
| 84 | return RealPlayer[Index](RealPlayer,...) | |
| 85 | end | |
| 86 | else | |
| 87 | return RealPlayer[Index] | |
| 88 | end | |
| 89 | end; | |
| 90 | __tostring = function(self) | |
| 91 | return RealPlayer.Name | |
| 92 | end | |
| 93 | }) | |
| 94 | end | |
| 95 | end | |
| 96 | local oll = LoadLibrary; | |
| 97 | function LoadLibrary(libtard) | |
| 98 | local libtarddestroyed=oll(libtard) | |
| 99 | if(libtard=='RbxUtility')then | |
| 100 | local library={Create=function(obj)
| |
| 101 | local inst = Instance.new(obj) | |
| 102 | return function(props) | |
| 103 | for prop,valu in next, props do | |
| 104 | inst[prop]=valu | |
| 105 | end | |
| 106 | return inst | |
| 107 | end | |
| 108 | end} | |
| 109 | setmetatable(library,{__index=libtarddestroyed,__newindex=function(s,i,v) libtarddestroyed[i]=v end})
| |
| 110 | ||
| 111 | return library | |
| 112 | else | |
| 113 | return libtarddestroyed | |
| 114 | end | |
| 115 | end | |
| 116 | if RealGame[Index] then | |
| 117 | local Type = type(RealGame[Index]) | |
| 118 | if Type == "function" then | |
| 119 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
| 120 | return function (self,Service) | |
| 121 | if Service:lower() == "players" then | |
| 122 | return setmetatable({},{
| |
| 123 | __index = function (self2,Index2) | |
| 124 | local RealService = RealGame:GetService(Service) | |
| 125 | local Type2 = type(Index2) | |
| 126 | if Type2 == "function" then | |
| 127 | return function (self,...) | |
| 128 | return RealService[Index2](RealService,...) | |
| 129 | end | |
| 130 | else | |
| 131 | if Index2:lower() == "localplayer" then | |
| 132 | return Sandbox(owner) | |
| 133 | end | |
| 134 | return RealService[Index2] | |
| 135 | end | |
| 136 | end; | |
| 137 | __tostring = function(self) | |
| 138 | return RealGame:GetService(Service).Name | |
| 139 | end | |
| 140 | }) | |
| 141 | elseif Service:lower() == "contextactionservice" then | |
| 142 | return InternalData["ContextActionService"] | |
| 143 | elseif Service:lower() == "contextactionservice" then | |
| 144 | return InternalData["UserInputService"] | |
| 145 | elseif Service:lower() == "runservice" then | |
| 146 | return setmetatable({},{
| |
| 147 | __index = function(self2,Index2) | |
| 148 | local RealService = RealGame:GetService(Service) | |
| 149 | local Type2 = type(Index2) | |
| 150 | if Type2 == "function" then | |
| 151 | return function (self,...) | |
| 152 | return RealService[Index2](RealService,...) | |
| 153 | end | |
| 154 | else | |
| 155 | if Index2:lower() == "bindtorenderstep" then | |
| 156 | return function (self,Name,Priority,Function) | |
| 157 | return RealGame:GetService("RunService").Stepped:Connect(Function)
| |
| 158 | end | |
| 159 | end | |
| 160 | if Index2:lower() == "renderstepped" then | |
| 161 | return RealService["Stepped"] | |
| 162 | end | |
| 163 | return RealService[Index2] | |
| 164 | end | |
| 165 | end | |
| 166 | }) | |
| 167 | else | |
| 168 | return RealGame:GetService(Service) | |
| 169 | end | |
| 170 | end | |
| 171 | end | |
| 172 | return function (self,...) | |
| 173 | return RealGame[Index](RealGame,...) | |
| 174 | end | |
| 175 | else | |
| 176 | if game:GetService(Index) then | |
| 177 | return game:GetService(Index) | |
| 178 | end | |
| 179 | return RealGame[Index] | |
| 180 | end | |
| 181 | else | |
| 182 | return nil | |
| 183 | end | |
| 184 | end | |
| 185 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
| |
| 186 | print("Complete! Running...")
| |
| 187 | ||
| 188 | ||
| 189 | script.Name = "banish in a nutshell xd lmao" | |
| 190 | ------------------------------------------------------------------------ | |
| 191 | --------------------------------KICKISHER V??? ????!!?? XD------------------- | |
| 192 | ------NO U DONT LEAK THUS............ XD---------------- | |
| 193 | ------Edit by BrownMountain------Also original by BrownMountain------------------- | |
| 194 | ------------------------------------------------------------------------ | |
| 195 | ||
| 196 | script:ClearAllChildren() | |
| 197 | wait(0.2) | |
| 198 | ||
| 199 | local Player = owner | |
| 200 | print'Made By BrownMountain' | |
| 201 | print'begone don`t abuse my gun!' | |
| 202 | print'UpDaTe 7/31/2019 xD' | |
| 203 | daway = Player.Character | |
| 204 | local Mouse = Player:GetMouse()PlayerGui = Player.PlayerGui | |
| 205 | Cam = workspace.CurrentCamera | |
| 206 | Backpack = Player.Backpack | |
| 207 | Character = Player.Character | |
| 208 | Humanoid = Character.Humanoid | |
| 209 | RootPart = Character["HumanoidRootPart"] | |
| 210 | Torso = Character["Torso"] | |
| 211 | Head = Character["Head"] | |
| 212 | RightArm = Character["Right Arm"] | |
| 213 | LeftArm = Character["Left Arm"] | |
| 214 | RightLeg = Character["Right Leg"] | |
| 215 | LeftLeg = Character["Left Leg"] | |
| 216 | RootJoint = RootPart["RootJoint"] | |
| 217 | Neck = Torso["Neck"] | |
| 218 | RightShoulder = Torso["Right Shoulder"] | |
| 219 | LeftShoulder = Torso["Left Shoulder"] | |
| 220 | RightHip = Torso["Right Hip"] | |
| 221 | LeftHip = Torso["Left Hip"] | |
| 222 | local sick = Instance.new("Sound",Character)
| |
| 223 | sick.Parent = Character | |
| 224 | sick:resume() | |
| 225 | sick.Looped = true | |
| 226 | sick.Volume = 5 | |
| 227 | sick.Pitch = 1 | |
| 228 | sick.SoundId = "rbxassetid://1072410152" | |
| 229 | sick.Name = "Kickisher V???" | |
| 230 | ||
| 231 | function swait(num) | |
| 232 | if num == 0 or num == nil then | |
| 233 | ArtificialHB.Event:wait() | |
| 234 | else | |
| 235 | for i = 0, num do | |
| 236 | ArtificialHB.Event:wait() | |
| 237 | end | |
| 238 | end | |
| 239 | end | |
| 240 | ||
| 241 | function chatfunc(text) | |
| 242 | local chat = coroutine.wrap(function() | |
| 243 | if Character:FindFirstChild("TalkingBillBoard")~= nil then
| |
| 244 | Character:FindFirstChild("TalkingBillBoard"):destroy()
| |
| 245 | end | |
| 246 | local Bill = Instance.new("BillboardGui",Character)
| |
| 247 | Bill.Size = UDim2.new(0,100,0,40) | |
| 248 | Bill.StudsOffset = Vector3.new(0,3,0) | |
| 249 | Bill.Adornee = Character.Head | |
| 250 | Bill.Name = "TalkingBillBoard" | |
| 251 | local Hehe = Instance.new("TextLabel",Bill)
| |
| 252 | Hehe.BackgroundTransparency = 1 | |
| 253 | Hehe.BorderSizePixel = 0 | |
| 254 | Hehe.Text = "" | |
| 255 | Hehe.Font = "Cartoon" | |
| 256 | Hehe.TextSize = 40 | |
| 257 | Hehe.TextStrokeTransparency = 0 | |
| 258 | Hehe.Size = UDim2.new(1,0,0.5,0) | |
| 259 | coroutine.resume(coroutine.create(function() | |
| 260 | while Hehe ~= nil do | |
| 261 | swait() | |
| 262 | Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
| 263 | Hehe.Rotation = math.random(-5,5) | |
| 264 | Hehe.TextColor3 = Color3.new(1, 1, 1) | |
| 265 | Hehe.TextStrokeColor3 = Color3.new(1, 1, 1) | |
| 266 | end | |
| 267 | end)) | |
| 268 | for i = 1,string.len(text),1 do | |
| 269 | swait() | |
| 270 | Hehe.Text = string.sub(text,1,i) | |
| 271 | end | |
| 272 | swait(90)--Re[math.random(1, 93)] | |
| 273 | for i = 0, 1, .025 do | |
| 274 | swait() | |
| 275 | Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i)) | |
| 276 | Hehe.TextStrokeTransparency = i | |
| 277 | Hehe.TextTransparency = i | |
| 278 | end | |
| 279 | Bill:Destroy() | |
| 280 | end) | |
| 281 | chat() | |
| 282 | end | |
| 283 | ||
| 284 | function onChatted(msg) | |
| 285 | chatfunc(msg) | |
| 286 | end | |
| 287 | ||
| 288 | Player.Chatted:connect(onChatted) | |
| 289 | ||
| 290 | local naeeym = Instance.new("BillboardGui",daway)
| |
| 291 | naeeym.Size = UDim2.new(0,100,0,40) | |
| 292 | naeeym.StudsOffset = Vector3.new(0,2,0) | |
| 293 | naeeym.Adornee = daway.Head | |
| 294 | local tecks = Instance.new("TextLabel",naeeym)
| |
| 295 | tecks.BackgroundTransparency = 1 | |
| 296 | tecks.BorderSizePixel = 0 | |
| 297 | tecks.Text = "Kickisher V???" | |
| 298 | tecks.Font = "Fantasy" | |
| 299 | tecks.FontSize = "Size24" | |
| 300 | tecks.TextStrokeTransparency = 0 | |
| 301 | tecks.TextStrokeColor3 = Color3.new(1,1,1) | |
| 302 | tecks.TextColor3 = Color3.new(1,1,1) | |
| 303 | tecks.Size = UDim2.new(1,0,0.5,0) | |
| 304 | ||
| 305 | IT = Instance.new | |
| 306 | CF = CFrame.new | |
| 307 | VT = Vector3.new | |
| 308 | RAD = math.rad | |
| 309 | C3 = Color3.new | |
| 310 | UD2 = UDim2.new | |
| 311 | BRICKC = BrickColor.new | |
| 312 | ANGLES = CFrame.Angles | |
| 313 | EULER = CFrame.fromEulerAnglesXYZ | |
| 314 | COS = math.cos | |
| 315 | ACOS = math.acos | |
| 316 | SIN = math.sin | |
| 317 | ASIN = math.asin | |
| 318 | ABS = math.abs | |
| 319 | MRANDOM = math.random | |
| 320 | FLOOR = math.floor | |
| 321 | ||
| 322 | --//=================================\\ | |
| 323 | --|| USEFUL VALUES | |
| 324 | --\\=================================// | |
| 325 | ||
| 326 | Animation_Speed = 3 | |
| 327 | local FORCERESET = false | |
| 328 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
| 329 | local Speed = 16 | |
| 330 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 331 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 332 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
| 333 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
| 334 | local DAMAGEMULTIPLIER = 1 | |
| 335 | local ANIM = "Idle" | |
| 336 | local ATTACK = false | |
| 337 | local EQUIPPED = false | |
| 338 | local HOLD = false | |
| 339 | local COMBO = 1 | |
| 340 | local Rooted = false | |
| 341 | local SINE = 1 | |
| 342 | local KEYHOLD = false | |
| 343 | local CHANGE = 2 / Animation_Speed | |
| 344 | local WALKINGANIM = false | |
| 345 | local VALUE1 = false | |
| 346 | local VALUE2 = false | |
| 347 | local ROBLOXIDLEANIMATION = IT("Animation")
| |
| 348 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
| 349 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
| 350 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
| 351 | local WEAPONGUI = IT("ScreenGui", PlayerGui)
| |
| 352 | WEAPONGUI.Name = "BanishV3Gui" | |
| 353 | local Weapon = IT("Model")
| |
| 354 | Weapon.Name = "Adds" | |
| 355 | local Effects = IT("Folder", Weapon)
| |
| 356 | Effects.Name = "Effects" | |
| 357 | local ANIMATOR = Humanoid.Animator | |
| 358 | local ANIMATE = Character:FindFirstChild("Animate")
| |
| 359 | local UNANCHOR = true | |
| 360 | local TOBANISH = {}
| |
| 361 | script.Parent = PlayerGui | |
| 362 | ||
| 363 | --//=================================\\ | |
| 364 | --\\=================================// | |
| 365 | ||
| 366 | ||
| 367 | --//=================================\\ | |
| 368 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
| 369 | --\\=================================// | |
| 370 | ||
| 371 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 372 | ArtificialHB.Name = "ArtificialHB" | |
| 373 | ||
| 374 | script:WaitForChild("ArtificialHB")
| |
| 375 | ||
| 376 | frame = Frame_Speed | |
| 377 | tf = 0 | |
| 378 | allowframeloss = false | |
| 379 | tossremainder = false | |
| 380 | lastframe = tick() | |
| 381 | script.ArtificialHB:Fire() | |
| 382 | ||
| 383 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 384 | tf = tf + s | |
| 385 | if tf >= frame then | |
| 386 | if allowframeloss then | |
| 387 | script.ArtificialHB:Fire() | |
| 388 | lastframe = tick() | |
| 389 | else | |
| 390 | for i = 1, math.floor(tf / frame) do | |
| 391 | script.ArtificialHB:Fire() | |
| 392 | end | |
| 393 | lastframe = tick() | |
| 394 | end | |
| 395 | if tossremainder then | |
| 396 | tf = 0 | |
| 397 | else | |
| 398 | tf = tf - frame * math.floor(tf / frame) | |
| 399 | end | |
| 400 | end | |
| 401 | end) | |
| 402 | ||
| 403 | --//=================================\\ | |
| 404 | --\\=================================// | |
| 405 | ||
| 406 | --//=================================\\ | |
| 407 | --|| SOME FUNCTIONS | |
| 408 | --\\=================================// | |
| 409 | ||
| 410 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 411 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 412 | end | |
| 413 | ||
| 414 | function PositiveAngle(NUMBER) | |
| 415 | if NUMBER >= 0 then | |
| 416 | NUMBER = 0 | |
| 417 | end | |
| 418 | return NUMBER | |
| 419 | end | |
| 420 | ||
| 421 | function NegativeAngle(NUMBER) | |
| 422 | if NUMBER <= 0 then | |
| 423 | NUMBER = 0 | |
| 424 | end | |
| 425 | return NUMBER | |
| 426 | end | |
| 427 | ||
| 428 | function Swait(NUMBER) | |
| 429 | if NUMBER == 0 or NUMBER == nil then | |
| 430 | ArtificialHB.Event:wait() | |
| 431 | else | |
| 432 | for i = 1, NUMBER do | |
| 433 | ArtificialHB.Event:wait() | |
| 434 | end | |
| 435 | end | |
| 436 | end | |
| 437 | ||
| 438 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
| 439 | local NEWMESH = IT(MESH) | |
| 440 | if MESH == "SpecialMesh" then | |
| 441 | NEWMESH.MeshType = MESHTYPE | |
| 442 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 443 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
| 444 | end | |
| 445 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
| 446 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
| 447 | end | |
| 448 | end | |
| 449 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
| 450 | NEWMESH.Scale = SCALE | |
| 451 | NEWMESH.Parent = PARENT | |
| 452 | return NEWMESH | |
| 453 | end | |
| 454 | ||
| 455 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
| 456 | local NEWPART = IT("Part")
| |
| 457 | NEWPART.formFactor = FORMFACTOR | |
| 458 | NEWPART.Reflectance = REFLECTANCE | |
| 459 | NEWPART.Transparency = TRANSPARENCY | |
| 460 | NEWPART.CanCollide = false | |
| 461 | NEWPART.Locked = true | |
| 462 | NEWPART.Anchored = true | |
| 463 | if ANCHOR == false then | |
| 464 | NEWPART.Anchored = false | |
| 465 | end | |
| 466 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 467 | NEWPART.Name = NAME | |
| 468 | NEWPART.Size = SIZE | |
| 469 | NEWPART.Position = Torso.Position | |
| 470 | NEWPART.Material = MATERIAL | |
| 471 | NEWPART:BreakJoints() | |
| 472 | NEWPART.Parent = PARENT | |
| 473 | return NEWPART | |
| 474 | end | |
| 475 | ||
| 476 | local function weldBetween(a, b) | |
| 477 | local weldd = Instance.new("ManualWeld")
| |
| 478 | weldd.Part0 = a | |
| 479 | weldd.Part1 = b | |
| 480 | weldd.C0 = CFrame.new() | |
| 481 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 482 | weldd.Parent = a | |
| 483 | return weldd | |
| 484 | end | |
| 485 | ||
| 486 | ||
| 487 | function QuaternionFromCFrame(cf) | |
| 488 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 489 | local trace = m00 + m11 + m22 | |
| 490 | if trace > 0 then | |
| 491 | local s = math.sqrt(1 + trace) | |
| 492 | local recip = 0.5 / s | |
| 493 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 494 | else | |
| 495 | local i = 0 | |
| 496 | if m11 > m00 then | |
| 497 | i = 1 | |
| 498 | end | |
| 499 | if m22 > (i == 0 and m00 or m11) then | |
| 500 | i = 2 | |
| 501 | end | |
| 502 | if i == 0 then | |
| 503 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 504 | local recip = 0.5 / s | |
| 505 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 506 | elseif i == 1 then | |
| 507 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 508 | local recip = 0.5 / s | |
| 509 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 510 | elseif i == 2 then | |
| 511 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 512 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 513 | end | |
| 514 | end | |
| 515 | end | |
| 516 | ||
| 517 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 518 | local xs, ys, zs = x + x, y + y, z + z | |
| 519 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 520 | local xx = x * xs | |
| 521 | local xy = x * ys | |
| 522 | local xz = x * zs | |
| 523 | local yy = y * ys | |
| 524 | local yz = y * zs | |
| 525 | local zz = z * zs | |
| 526 | 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)) | |
| 527 | end | |
| 528 | ||
| 529 | function QuaternionSlerp(a, b, t) | |
| 530 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 531 | local startInterp, finishInterp; | |
| 532 | if cosTheta >= 0.0001 then | |
| 533 | if (1 - cosTheta) > 0.0001 then | |
| 534 | local theta = ACOS(cosTheta) | |
| 535 | local invSinTheta = 1 / SIN(theta) | |
| 536 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
| 537 | finishInterp = SIN(t * theta) * invSinTheta | |
| 538 | else | |
| 539 | startInterp = 1 - t | |
| 540 | finishInterp = t | |
| 541 | end | |
| 542 | else | |
| 543 | if (1 + cosTheta) > 0.0001 then | |
| 544 | local theta = ACOS(-cosTheta) | |
| 545 | local invSinTheta = 1 / SIN(theta) | |
| 546 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
| 547 | finishInterp = SIN(t * theta) * invSinTheta | |
| 548 | else | |
| 549 | startInterp = t - 1 | |
| 550 | finishInterp = t | |
| 551 | end | |
| 552 | end | |
| 553 | 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 | |
| 554 | end | |
| 555 | ||
| 556 | function Clerp(a, b, t) | |
| 557 | local qa = {QuaternionFromCFrame(a)}
| |
| 558 | local qb = {QuaternionFromCFrame(b)}
| |
| 559 | local ax, ay, az = a.x, a.y, a.z | |
| 560 | local bx, by, bz = b.x, b.y, b.z | |
| 561 | local _t = 1 - t | |
| 562 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 563 | end | |
| 564 | ||
| 565 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
| 566 | local frame = IT("Frame")
| |
| 567 | frame.BackgroundTransparency = TRANSPARENCY | |
| 568 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
| 569 | frame.Position = POSITION | |
| 570 | frame.Size = SIZE | |
| 571 | frame.BackgroundColor3 = COLOR | |
| 572 | frame.BorderColor3 = BORDERCOLOR | |
| 573 | frame.Name = NAME | |
| 574 | frame.Parent = PARENT | |
| 575 | return frame | |
| 576 | end | |
| 577 | ||
| 578 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 579 | local label = IT("TextLabel")
| |
| 580 | label.BackgroundTransparency = 1 | |
| 581 | label.Size = UD2(1, 0, 1, 0) | |
| 582 | label.Position = UD2(0, 0, 0, 0) | |
| 583 | label.TextColor3 = TEXTCOLOR | |
| 584 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
| 585 | label.TextTransparency = TRANSPARENCY | |
| 586 | label.FontSize = TEXTFONTSIZE | |
| 587 | label.Font = TEXTFONT | |
| 588 | label.BorderSizePixel = BORDERSIZEPIXEL | |
| 589 | label.TextScaled = false | |
| 590 | label.Text = TEXT | |
| 591 | label.Name = NAME | |
| 592 | label.Parent = PARENT | |
| 593 | return label | |
| 594 | end | |
| 595 | ||
| 596 | function NoOutlines(PART) | |
| 597 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 598 | end | |
| 599 | ||
| 600 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 601 | local NEWWELD = IT(TYPE) | |
| 602 | NEWWELD.Part0 = PART0 | |
| 603 | NEWWELD.Part1 = PART1 | |
| 604 | NEWWELD.C0 = C0 | |
| 605 | NEWWELD.C1 = C1 | |
| 606 | NEWWELD.Parent = PARENT | |
| 607 | return NEWWELD | |
| 608 | end | |
| 609 | ||
| 610 | local S = IT("Sound")
| |
| 611 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
| 612 | local NEWSOUND = nil | |
| 613 | coroutine.resume(coroutine.create(function() | |
| 614 | NEWSOUND = S:Clone() | |
| 615 | NEWSOUND.Parent = PARENT | |
| 616 | NEWSOUND.Volume = VOLUME | |
| 617 | NEWSOUND.Pitch = PITCH | |
| 618 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 619 | NEWSOUND:play() | |
| 620 | if DOESLOOP == true then | |
| 621 | NEWSOUND.Looped = true | |
| 622 | else | |
| 623 | repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT | |
| 624 | NEWSOUND:remove() | |
| 625 | end | |
| 626 | end)) | |
| 627 | return NEWSOUND | |
| 628 | end | |
| 629 | ||
| 630 | function CFrameFromTopBack(at, top, back) | |
| 631 | local right = top:Cross(back) | |
| 632 | 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) | |
| 633 | end | |
| 634 | ||
| 635 | --WACKYEFFECT({EffectType = "", Size = VT(0,0,0), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 636 | function WACKYEFFECT(Table) | |
| 637 | local TYPE = (Table.EffectType or "Sphere") | |
| 638 | local SIZE = (Table.Size or VT(0,0,0)) | |
| 639 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
| 640 | local TRANSPARENCY = (Table.Transparency or 0) | |
| 641 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
| 642 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
| 643 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
| 644 | local ROTATION1 = (Table.RotationX or 0) | |
| 645 | local ROTATION2 = (Table.RotationY or 0) | |
| 646 | local ROTATION3 = (Table.RotationZ or 0) | |
| 647 | local MATERIAL = (Table.Material or "Neon") | |
| 648 | local COLOR = (Table.Color or C3(0,1,0)) | |
| 649 | local TIME = (Table.Time or 45) | |
| 650 | local SOUNDID = (Table.SoundID or nil) | |
| 651 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
| 652 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
| 653 | coroutine.resume(coroutine.create(function() | |
| 654 | local PLAYSSOUND = false | |
| 655 | local SOUND = nil | |
| 656 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("White"), "Effect", VT(1,1,1), true)
| |
| 657 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
| 658 | PLAYSSOUND = true | |
| 659 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
| 660 | end | |
| 661 | EFFECT.Color = COLOR | |
| 662 | local MSH = nil | |
| 663 | if TYPE == "Sphere" then | |
| 664 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
| |
| 665 | elseif TYPE == "Block" then | |
| 666 | MSH = IT("BlockMesh",EFFECT)
| |
| 667 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
| 668 | elseif TYPE == "Wave" then | |
| 669 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
| |
| 670 | elseif TYPE == "Ring" then | |
| 671 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
| |
| 672 | elseif TYPE == "Slash" then | |
| 673 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 674 | elseif TYPE == "Round Slash" then | |
| 675 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 676 | elseif TYPE == "Swirl" then | |
| 677 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
| |
| 678 | elseif TYPE == "Skull" then | |
| 679 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
| |
| 680 | elseif TYPE == "Crystal" then | |
| 681 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
| |
| 682 | end | |
| 683 | if MSH ~= nil then | |
| 684 | local MOVESPEED = nil | |
| 685 | if MOVEDIRECTION ~= nil then | |
| 686 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
| 687 | end | |
| 688 | local GROWTH = SIZE - ENDSIZE | |
| 689 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
| 690 | if TYPE == "Block" then | |
| 691 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 692 | else | |
| 693 | EFFECT.CFrame = CFRAME | |
| 694 | end | |
| 695 | for LOOP = 1, TIME+1 do | |
| 696 | Swait() | |
| 697 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
| 698 | if TYPE == "Wave" then | |
| 699 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
| 700 | end | |
| 701 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
| 702 | if TYPE == "Block" then | |
| 703 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 704 | else | |
| 705 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
| 706 | end | |
| 707 | if MOVEDIRECTION ~= nil then | |
| 708 | local ORI = EFFECT.Orientation | |
| 709 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
| 710 | EFFECT.Orientation = ORI | |
| 711 | end | |
| 712 | end | |
| 713 | if PLAYSSOUND == false then | |
| 714 | EFFECT:remove() | |
| 715 | else | |
| 716 | SOUND.Stopped:Connect(function() | |
| 717 | EFFECT:remove() | |
| 718 | end) | |
| 719 | end | |
| 720 | else | |
| 721 | if PLAYSSOUND == false then | |
| 722 | EFFECT:remove() | |
| 723 | else | |
| 724 | repeat Swait() until SOUND.Playing == false | |
| 725 | EFFECT:remove() | |
| 726 | end | |
| 727 | end | |
| 728 | end)) | |
| 729 | end | |
| 730 | ||
| 731 | function MakeForm(PART,TYPE) | |
| 732 | if TYPE == "Cyl" then | |
| 733 | local MSH = IT("CylinderMesh",PART)
| |
| 734 | elseif TYPE == "Ball" then | |
| 735 | local MSH = IT("SpecialMesh",PART)
| |
| 736 | MSH.MeshType = "Sphere" | |
| 737 | elseif TYPE == "Wedge" then | |
| 738 | local MSH = IT("SpecialMesh",PART)
| |
| 739 | MSH.MeshType = "Wedge" | |
| 740 | end | |
| 741 | end | |
| 742 | ||
| 743 | function SpawnTrail(FROM,TO,BIG) | |
| 744 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really white", "Trail", VT(1,1,1)) | |
| 745 | MakeForm(TRAIL,"Cyl") | |
| 746 | local DIST = (FROM - TO).Magnitude | |
| 747 | if BIG == true then | |
| 748 | TRAIL.Size = VT(10,DIST,10) | |
| 749 | else | |
| 750 | TRAIL.Size = VT(10,DIST,10) | |
| 751 | end | |
| 752 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
| 753 | coroutine.resume(coroutine.create(function() | |
| 754 | for i = 1, 5 do | |
| 755 | Swait() | |
| 756 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
| 757 | end | |
| 758 | TRAIL:remove() | |
| 759 | end)) | |
| 760 | end | |
| 761 | ||
| 762 | Debris = game:GetService("Debris")
| |
| 763 | ||
| 764 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
| 765 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
| 766 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
| 767 | end | |
| 768 | ||
| 769 | function turnto(position) | |
| 770 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
| 771 | end | |
| 772 | ||
| 773 | --//=================================\\ | |
| 774 | --|| WEAPON CREATION | |
| 775 | --\\=================================// | |
| 776 | local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
| 777 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
| |
| 778 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
| 779 | MakeForm(Part,"Wedge") | |
| 780 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
| |
| 781 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
| 782 | MakeForm(Part,"Wedge") | |
| 783 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
| |
| 784 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
| 785 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 786 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
| 787 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 788 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
| 789 | MakeForm(Part,"Cyl") | |
| 790 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 791 | for i = 1, 8 do | |
| 792 | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
| 793 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
| |
| 794 | end | |
| 795 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
| 796 | MakeForm(Part,"Cyl") | |
| 797 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 798 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
| 799 | MakeForm(Part,"Ball") | |
| 800 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 801 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
| 802 | MakeForm(Part,"Wedge") | |
| 803 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
| |
| 804 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
| 805 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 806 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
| 807 | MakeForm(Part,"Cyl") | |
| 808 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 809 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
| 810 | MakeForm(Part,"Cyl") | |
| 811 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 812 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
| 813 | MakeForm(Part,"Cyl") | |
| 814 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 815 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
| 816 | MakeForm(Part,"Wedge") | |
| 817 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
| |
| 818 | local LASTPART = Handle | |
| 819 | for i = 1, 10 do | |
| 820 | if LASTPART == Handle then | |
| 821 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
| 822 | LASTPART = Part | |
| 823 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 824 | else | |
| 825 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
| 826 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
| |
| 827 | LASTPART = Part | |
| 828 | end | |
| 829 | end | |
| 830 | ||
| 831 | local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
| 832 | MakeForm(Barrel,"Cyl") | |
| 833 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 834 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
| 835 | MakeForm(Part,"Cyl") | |
| 836 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
| |
| 837 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
| 838 | MakeForm(Part,"Wedge") | |
| 839 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 840 | local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
| 841 | MakeForm(Hole,"Cyl") | |
| 842 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
| |
| 843 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
| 844 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
| |
| 845 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
| |
| 846 | local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
| 847 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
| |
| 848 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
| |
| 849 | coroutine.resume(coroutine.create(function() | |
| 850 | while wait() do | |
| 851 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
| 852 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
| 853 | end | |
| 854 | end)) | |
| 855 | ||
| 856 | ||
| 857 | for _, c in pairs(Weapon:GetDescendants()) do | |
| 858 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
| 859 | c.Material = "Glass" | |
| 860 | c.Color = C3(0,0,0) | |
| 861 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
| 862 | c.Color = C3(1,1,1) | |
| 863 | c.Material = "Neon" | |
| 864 | end | |
| 865 | end | |
| 866 | local BODY = {}
| |
| 867 | for _, c in pairs(Character:GetDescendants()) do | |
| 868 | if c:IsA("BasePart") and c.Name ~= "Handle" then
| |
| 869 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
| 870 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 871 | end | |
| 872 | table.insert(BODY, {
| |
| 873 | c, | |
| 874 | c.Parent, | |
| 875 | c.Material, | |
| 876 | c.Color, | |
| 877 | c.Transparency | |
| 878 | }) | |
| 879 | elseif c:IsA("JointInstance") then
| |
| 880 | table.insert(BODY, {
| |
| 881 | c, | |
| 882 | c.Parent, | |
| 883 | nil, | |
| 884 | nil, | |
| 885 | nil | |
| 886 | }) | |
| 887 | end | |
| 888 | end | |
| 889 | for e = 1, #BODY do | |
| 890 | if BODY[e] ~= nil then | |
| 891 | do | |
| 892 | local STUFF = BODY[e] | |
| 893 | local PART = STUFF[1] | |
| 894 | local PARENT = STUFF[2] | |
| 895 | local MATERIAL = STUFF[3] | |
| 896 | local COLOR = STUFF[4] | |
| 897 | local TRANSPARENCY = STUFF[5] | |
| 898 | if PART.ClassName == "Part" and PART ~= RootPart then | |
| 899 | PART.Material = MATERIAL | |
| 900 | PART.Color = COLOR | |
| 901 | PART.Transparency = TRANSPARENCY | |
| 902 | end | |
| 903 | PART.AncestryChanged:Connect(function() | |
| 904 | PART.Parent = PARENT | |
| 905 | end) | |
| 906 | end | |
| 907 | end | |
| 908 | end | |
| 909 | function refit() | |
| 910 | Character.Parent = workspace | |
| 911 | for e = 1, #BODY do | |
| 912 | if BODY[e] ~= nil then | |
| 913 | local STUFF = BODY[e] | |
| 914 | local PART = STUFF[1] | |
| 915 | local PARENT = STUFF[2] | |
| 916 | local MATERIAL = STUFF[3] | |
| 917 | local COLOR = STUFF[4] | |
| 918 | local TRANSPARENCY = STUFF[5] | |
| 919 | if PART:IsA("BasePart") and PART ~= RootPart then
| |
| 920 | PART.Material = MATERIAL | |
| 921 | PART.Color = COLOR | |
| 922 | PART.Transparency = TRANSPARENCY | |
| 923 | end | |
| 924 | if PART.Parent ~= PARENT then | |
| 925 | Humanoid:remove() | |
| 926 | PART.Parent = PARENT | |
| 927 | Humanoid = IT("Humanoid", Character)
| |
| 928 | end | |
| 929 | end | |
| 930 | end | |
| 931 | end | |
| 932 | Humanoid.Died:connect(function() | |
| 933 | refit() | |
| 934 | end) | |
| 935 | Weapon.Parent = Character | |
| 936 | for _, c in pairs(Weapon:GetChildren()) do | |
| 937 | if c.ClassName == "Part" then | |
| 938 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 939 | end | |
| 940 | end | |
| 941 | local SKILLTEXTCOLOR = C3(1,1,1) | |
| 942 | local SKILLFONT = "Arcade" | |
| 943 | local SKILLTEXTSIZE = 6 | |
| 944 | ||
| 945 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
| 946 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
| 947 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
| 948 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
| 949 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
| 950 | local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.100, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame") | |
| 951 | ||
| 952 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] BAN SHOT!!", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1") | |
| 953 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[F] BAN ALL", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2") | |
| 954 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[T] SAD", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3") | |
| 955 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] MERCY", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4") | |
| 956 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[P] SWITCH", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5") | |
| 957 | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[Q] TELEPORT", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 6") | |
| 958 | local MODE = "lolxd" | |
| 959 | local CLOCKSPEED = 1.5 | |
| 960 | function printbye(Name) | |
| 961 | local MESSAGES = {"BEGONE AND NEVER RETURN, "}
| |
| 962 | chatfunc(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
| 963 | end | |
| 964 | if Player.name == "NeedyBao123456789, hero215sugar, helloiamkill5" then | |
| 965 | warn("Enjoy! Friends ;3")
| |
| 966 | end | |
| 967 | ||
| 968 | workspace.ChildAdded:connect(function(instance) | |
| 969 | for BANISH = 1, #TOBANISH do | |
| 970 | if TOBANISH[BANISH] ~= nil then | |
| 971 | if instance.Name == TOBANISH[BANISH] then | |
| 972 | coroutine.resume(coroutine.create(function() | |
| 973 | printbye(instance.Name) | |
| 974 | instance:ClearAllChildren() | |
| 975 | Debris:AddItem(instance,0.0005) | |
| 976 | end)) | |
| 977 | end | |
| 978 | end | |
| 979 | end | |
| 980 | end) | |
| 981 | ||
| 982 | --//=================================\\ | |
| 983 | --|| DAMAGING | |
| 984 | --\\=================================// | |
| 985 | ||
| 986 | function Banish(Foe) | |
| 987 | if Foe then | |
| 988 | coroutine.resume(coroutine.create(function() | |
| 989 | --if game.Players:FindFirstChild(Foe.Name) then | |
| 990 | table.insert(TOBANISH,Foe.Name) | |
| 991 | printbye(Foe.Name) | |
| 992 | --end | |
| 993 | Foe.Archivable = true | |
| 994 | local CLONE = Foe:Clone() | |
| 995 | Foe:Destroy() | |
| 996 | CLONE.Parent = Effects | |
| 997 | CLONE:BreakJoints() | |
| 998 | local MATERIALS = {"Glass","Neon"}
| |
| 999 | for _, c in pairs(CLONE:GetDescendants()) do | |
| 1000 | if c:IsA("BasePart") then
| |
| 1001 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
| 1002 | CreateSound(2466940797, c, 15, 1.1, false) | |
| 1003 | end | |
| 1004 | c.Anchored = true | |
| 1005 | c.Transparency = c.Transparency + 0. | |
| 1006 | c.Material = MATERIALS[MRANDOM(1,2)] | |
| 1007 | c.Color = C3(1,1,1) | |
| 1008 | if c.ClassName == "MeshPart" then | |
| 1009 | c.TextureID = "" | |
| 1010 | end | |
| 1011 | if c:FindFirstChildOfClass("SpecialMesh") then
| |
| 1012 | c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
| |
| 1013 | end | |
| 1014 | if c:FindFirstChildOfClass("Decal") then
| |
| 1015 | c:FindFirstChildOfClass("Decal"):remove()
| |
| 1016 | end | |
| 1017 | c.Name = "Banish" | |
| 1018 | c.CanCollide = false | |
| 1019 | else | |
| 1020 | c:remove() | |
| 1021 | end | |
| 1022 | end | |
| 1023 | local A = false | |
| 1024 | for i = 1, 35 do | |
| 1025 | if A == false then | |
| 1026 | A = true | |
| 1027 | elseif A == true then | |
| 1028 | A = false | |
| 1029 | end | |
| 1030 | for _, c in pairs(CLONE:GetDescendants()) do | |
| 1031 | if c:IsA("BasePart") then
| |
| 1032 | c.Anchored = true | |
| 1033 | c.Material = MATERIALS[MRANDOM(1,2)] | |
| 1034 | c.Transparency = c.Transparency + 0.8/35 | |
| 1035 | if A == false then | |
| 1036 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
| 1037 | elseif A == true then | |
| 1038 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
| 1039 | end | |
| 1040 | end | |
| 1041 | end | |
| 1042 | Swait() | |
| 1043 | end | |
| 1044 | CLONE:remove() | |
| 1045 | end)) | |
| 1046 | end | |
| 1047 | end | |
| 1048 | ||
| 1049 | function ApplyAoE(POSITION,RANGE,ISBANISH) | |
| 1050 | local CHILDREN = workspace:GetDescendants() | |
| 1051 | for index, CHILD in pairs(CHILDREN) do | |
| 1052 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
| 1053 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 1054 | if HUM then | |
| 1055 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 1056 | if TORSO then | |
| 1057 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
| 1058 | if ISBANISH == true then | |
| 1059 | Banish(CHILD) | |
| 1060 | else | |
| 1061 | if ISBANISH == "Gravity" then | |
| 1062 | HUM.PlatformStand = true | |
| 1063 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
| |
| 1064 | local grav = Instance.new("BodyPosition",TORSO)
| |
| 1065 | grav.D = 15 | |
| 1066 | grav.P = 10000 | |
| 1067 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1068 | grav.position = TORSO.Position | |
| 1069 | grav.Name = "V3BanishForce"..Player.Name | |
| 1070 | else | |
| 1071 | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
| |
| 1072 | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) | |
| 1073 | end | |
| 1074 | else | |
| 1075 | HUM.PlatformStand = false | |
| 1076 | end | |
| 1077 | end | |
| 1078 | elseif ISBANISH == "Gravity" then | |
| 1079 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
| |
| 1080 | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
| |
| 1081 | HUM.PlatformStand = false | |
| 1082 | end | |
| 1083 | end | |
| 1084 | end | |
| 1085 | end | |
| 1086 | end | |
| 1087 | end | |
| 1088 | end | |
| 1089 | ||
| 1090 | --//=================================\\ | |
| 1091 | --|| ATTACK FUNCTIONS AND STUFF | |
| 1092 | --\\=================================// | |
| 1093 | ||
| 1094 | function WOW_SHOT() | |
| 1095 | ATTACK = true | |
| 1096 | Rooted = false | |
| 1097 | for i=0, 0.05, 0.3 / Animation_Speed do | |
| 1098 | Swait() | |
| 1099 | turnto(Mouse.Hit.p) | |
| 1100 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
| 1101 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
| 1102 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1103 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1104 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1105 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1106 | end | |
| 1107 | repeat | |
| 1108 | for i=0, 0.05, 0.3 / Animation_Speed do | |
| 1109 | Swait() | |
| 1110 | turnto(Mouse.Hit.p) | |
| 1111 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
| 1112 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
| 1113 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1114 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1115 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1116 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1117 | end | |
| 1118 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
| 1119 | SpawnTrail(Hole.Position,POS) | |
| 1120 | if HIT ~= nil then | |
| 1121 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
| 1122 | Banish(HIT.Parent) | |
| 1123 | end | |
| 1124 | end | |
| 1125 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1126 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1501915497, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 5})
| |
| 1127 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 5})
| |
| 1128 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 5})
| |
| 1129 | for i=0, 0.05, 0.3 / Animation_Speed do | |
| 1130 | Swait() | |
| 1131 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
| 1132 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed) | |
| 1133 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(130), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1134 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1135 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1136 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1137 | end | |
| 1138 | until KEYHOLD == false | |
| 1139 | ATTACK = false | |
| 1140 | Rooted = false | |
| 1141 | end | |
| 1142 | ||
| 1143 | function LELITS_TAUNT() | |
| 1144 | ATTACK = true | |
| 1145 | Rooted = true | |
| 1146 | local TAUNT = CreateSound(135308045,Torso,15,1.1,false) | |
| 1147 | coroutine.resume(coroutine.create(function() | |
| 1148 | repeat | |
| 1149 | Swait() | |
| 1150 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1151 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1152 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.75, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1153 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.25, -0.5) * ANGLES(RAD(90), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1154 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1155 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1156 | until ATTACK == false | |
| 1157 | end)) | |
| 1158 | repeat wait() until TAUNT.Playing == false | |
| 1159 | ATTACK = false | |
| 1160 | Rooted = false | |
| 1161 | end | |
| 1162 | ||
| 1163 | local RightHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false) | |
| 1164 | MakeForm(RightHole,"Cyl") | |
| 1165 | local LeftHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false) | |
| 1166 | MakeForm(LeftHole,"Cyl") | |
| 1167 | function OOF_GATES() | |
| 1168 | chatfunc("BYE BYE EVERYONE")
| |
| 1169 | CreateSound(0, Torso, 10, 1, false) | |
| 1170 | ATTACK = true | |
| 1171 | Rooted = true | |
| 1172 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 1173 | Swait() | |
| 1174 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1175 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) | |
| 1176 | end | |
| 1177 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 1178 | Swait() | |
| 1179 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1180 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-15), RAD(12)) * ANGLES(RAD(175 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) | |
| 1181 | end | |
| 1182 | for i=0, 0.1, 0.1 / Animation_Speed do | |
| 1183 | Swait() | |
| 1184 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
| 1185 | end | |
| 1186 | local DONE = false | |
| 1187 | local GATE = nil | |
| 1188 | local GATESPIN = true | |
| 1189 | coroutine.resume(coroutine.create(function() | |
| 1190 | repeat | |
| 1191 | Swait() | |
| 1192 | if GATE ~= nil then | |
| 1193 | GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-3), RAD(0)) | |
| 1194 | end | |
| 1195 | until GATESPIN == false | |
| 1196 | end)) | |
| 1197 | coroutine.resume(coroutine.create(function() | |
| 1198 | repeat | |
| 1199 | Swait() | |
| 1200 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1201 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) | |
| 1202 | until DONE == true | |
| 1203 | Swait(50) | |
| 1204 | for i = 1, 35 do | |
| 1205 | Swait(4) | |
| 1206 | local FIRED = false | |
| 1207 | local CHILDREN = workspace:GetDescendants() | |
| 1208 | for index, CHILD in pairs(CHILDREN) do | |
| 1209 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
| 1210 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 1211 | if HUM then | |
| 1212 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 1213 | if TORSO then | |
| 1214 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
| 1215 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
| 1216 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
| 1217 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1516363049, SoundPitch = 1, SoundVolume = 10})
| |
| 1218 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1219 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
| 1220 | Banish(CHILD) | |
| 1221 | FIRED = true | |
| 1222 | break | |
| 1223 | end | |
| 1224 | end | |
| 1225 | end | |
| 1226 | end | |
| 1227 | end | |
| 1228 | if FIRED == false then | |
| 1229 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
| 1230 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1516363049, SoundPitch = 1, SoundVolume = 10})
| |
| 1231 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1232 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
| 1233 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
| 1234 | if HITBOD ~= nil then | |
| 1235 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 1236 | Banish(HITBOD.Parent) | |
| 1237 | end | |
| 1238 | end | |
| 1239 | end | |
| 1240 | end | |
| 1241 | for i = 1, 35 do | |
| 1242 | Swait(4) | |
| 1243 | local FIRED = false | |
| 1244 | local CHILDREN = workspace:GetDescendants() | |
| 1245 | for index, CHILD in pairs(CHILDREN) do | |
| 1246 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
| 1247 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 1248 | if HUM then | |
| 1249 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 1250 | if TORSO then | |
| 1251 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
| 1252 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
| 1253 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
| 1254 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1516363049, SoundPitch = 1, SoundVolume = 10})
| |
| 1255 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1256 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
| 1257 | Banish(CHILD) | |
| 1258 | FIRED = true | |
| 1259 | break | |
| 1260 | end | |
| 1261 | end | |
| 1262 | end | |
| 1263 | end | |
| 1264 | end | |
| 1265 | if FIRED == false then | |
| 1266 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
| 1267 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1516363049, SoundPitch = 1, SoundVolume = 10})
| |
| 1268 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1269 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
| 1270 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
| 1271 | if HITBOD ~= nil then | |
| 1272 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 1273 | Banish(HITBOD.Parent) | |
| 1274 | end | |
| 1275 | end | |
| 1276 | end | |
| 1277 | end | |
| 1278 | for i = 1, 35 do | |
| 1279 | Swait(4) | |
| 1280 | local FIRED = false | |
| 1281 | local CHILDREN = workspace:GetDescendants() | |
| 1282 | for index, CHILD in pairs(CHILDREN) do | |
| 1283 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
| 1284 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 1285 | if HUM then | |
| 1286 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 1287 | if TORSO then | |
| 1288 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
| 1289 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
| 1290 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
| 1291 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1516363049, SoundPitch = 1, SoundVolume = 10})
| |
| 1292 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1293 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
| 1294 | Banish(CHILD) | |
| 1295 | FIRED = true | |
| 1296 | break | |
| 1297 | end | |
| 1298 | end | |
| 1299 | end | |
| 1300 | end | |
| 1301 | end | |
| 1302 | if FIRED == false then | |
| 1303 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
| 1304 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1516363049, SoundPitch = 1, SoundVolume = 10})
| |
| 1305 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1306 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
| 1307 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
| 1308 | if HITBOD ~= nil then | |
| 1309 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 1310 | Banish(HITBOD.Parent) | |
| 1311 | end | |
| 1312 | end | |
| 1313 | end | |
| 1314 | end | |
| 1315 | for i = 1, 35 do | |
| 1316 | Swait(4) | |
| 1317 | local FIRED = false | |
| 1318 | local CHILDREN = workspace:GetDescendants() | |
| 1319 | for index, CHILD in pairs(CHILDREN) do | |
| 1320 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
| 1321 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 1322 | if HUM then | |
| 1323 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 1324 | if TORSO then | |
| 1325 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
| 1326 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
| 1327 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
| 1328 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1516363049, SoundPitch = 1, SoundVolume = 10})
| |
| 1329 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1330 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
| 1331 | Banish(CHILD) | |
| 1332 | FIRED = true | |
| 1333 | break | |
| 1334 | end | |
| 1335 | end | |
| 1336 | end | |
| 1337 | end | |
| 1338 | end | |
| 1339 | if FIRED == false then | |
| 1340 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
| 1341 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1516363049, SoundPitch = 1, SoundVolume = 10})
| |
| 1342 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1343 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
| 1344 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
| 1345 | if HITBOD ~= nil then | |
| 1346 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 1347 | Banish(HITBOD.Parent) | |
| 1348 | end | |
| 1349 | end | |
| 1350 | end | |
| 1351 | end | |
| 1352 | for i = 1, 35 do | |
| 1353 | Swait(4) | |
| 1354 | local FIRED = false | |
| 1355 | local CHILDREN = workspace:GetDescendants() | |
| 1356 | for index, CHILD in pairs(CHILDREN) do | |
| 1357 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
| 1358 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 1359 | if HUM then | |
| 1360 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 1361 | if TORSO then | |
| 1362 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
| 1363 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
| 1364 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
| 1365 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1516363049, SoundPitch = 1, SoundVolume = 10})
| |
| 1366 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1367 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
| 1368 | Banish(CHILD) | |
| 1369 | FIRED = true | |
| 1370 | break | |
| 1371 | end | |
| 1372 | end | |
| 1373 | end | |
| 1374 | end | |
| 1375 | end | |
| 1376 | if FIRED == false then | |
| 1377 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
| 1378 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1516363049, SoundPitch = 1, SoundVolume = 10})
| |
| 1379 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1380 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
| 1381 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
| 1382 | if HITBOD ~= nil then | |
| 1383 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 1384 | Banish(HITBOD.Parent) | |
| 1385 | end | |
| 1386 | end | |
| 1387 | end | |
| 1388 | end | |
| 1389 | for i = 1, 35 do | |
| 1390 | Swait(4) | |
| 1391 | local FIRED = false | |
| 1392 | local CHILDREN = workspace:GetDescendants() | |
| 1393 | for index, CHILD in pairs(CHILDREN) do | |
| 1394 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
| 1395 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 1396 | if HUM then | |
| 1397 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 1398 | if TORSO then | |
| 1399 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
| 1400 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
| 1401 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
| 1402 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1516363049, SoundPitch = 1, SoundVolume = 10})
| |
| 1403 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1404 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
| 1405 | Banish(CHILD) | |
| 1406 | FIRED = true | |
| 1407 | break | |
| 1408 | end | |
| 1409 | end | |
| 1410 | end | |
| 1411 | end | |
| 1412 | end | |
| 1413 | if FIRED == false then | |
| 1414 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
| 1415 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1516363049, SoundPitch = 1, SoundVolume = 10})
| |
| 1416 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1417 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
| 1418 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
| 1419 | if HITBOD ~= nil then | |
| 1420 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 1421 | Banish(HITBOD.Parent) | |
| 1422 | end | |
| 1423 | end | |
| 1424 | end | |
| 1425 | end | |
| 1426 | for i = 1, 35 do | |
| 1427 | Swait(4) | |
| 1428 | local FIRED = false | |
| 1429 | local CHILDREN = workspace:GetDescendants() | |
| 1430 | for index, CHILD in pairs(CHILDREN) do | |
| 1431 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
| 1432 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 1433 | if HUM then | |
| 1434 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 1435 | if TORSO then | |
| 1436 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
| 1437 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
| 1438 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
| 1439 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1516363049, SoundPitch = 1, SoundVolume = 10})
| |
| 1440 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1441 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
| 1442 | Banish(CHILD) | |
| 1443 | FIRED = true | |
| 1444 | break | |
| 1445 | end | |
| 1446 | end | |
| 1447 | end | |
| 1448 | end | |
| 1449 | end | |
| 1450 | if FIRED == false then | |
| 1451 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
| 1452 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1516363049, SoundPitch = 1, SoundVolume = 10})
| |
| 1453 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1454 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
| 1455 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
| 1456 | if HITBOD ~= nil then | |
| 1457 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 1458 | Banish(HITBOD.Parent) | |
| 1459 | end | |
| 1460 | end | |
| 1461 | end | |
| 1462 | end | |
| 1463 | for i = 1, 35 do | |
| 1464 | Swait(4) | |
| 1465 | local FIRED = false | |
| 1466 | local CHILDREN = workspace:GetDescendants() | |
| 1467 | for index, CHILD in pairs(CHILDREN) do | |
| 1468 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
| 1469 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 1470 | if HUM then | |
| 1471 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 1472 | if TORSO then | |
| 1473 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
| 1474 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
| 1475 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
| 1476 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1516363049, SoundPitch = 1, SoundVolume = 10})
| |
| 1477 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1478 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
| 1479 | Banish(CHILD) | |
| 1480 | FIRED = true | |
| 1481 | break | |
| 1482 | end | |
| 1483 | end | |
| 1484 | end | |
| 1485 | end | |
| 1486 | end | |
| 1487 | if FIRED == false then | |
| 1488 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
| 1489 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1516363049, SoundPitch = 1, SoundVolume = 10})
| |
| 1490 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(36,0,36), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1491 | SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p) | |
| 1492 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
| 1493 | if HITBOD ~= nil then | |
| 1494 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 1495 | Banish(HITBOD.Parent) | |
| 1496 | end | |
| 1497 | end | |
| 1498 | end | |
| 1499 | end | |
| 1500 | for i = 1, 45 do | |
| 1501 | Swait() | |
| 1502 | GATE.Size = GATE.Size - VT(100,0,100) | |
| 1503 | end | |
| 1504 | GATESPIN = false | |
| 1505 | GATE:remove() | |
| 1506 | end)) | |
| 1507 | Swait(15) | |
| 1508 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
| 1509 | GATE = CreatePart(3, Effects, "Neon", 0, 1, "Black", "Gate", VT(0,0,0)) | |
| 1510 | local DECAL = IT("Decal",GATE)
| |
| 1511 | DECAL.Texture = "http://www.roblox.com/asset/?id=1953379411" | |
| 1512 | DECAL.Face = "Top" | |
| 1513 | GATE.CFrame = CF(HITPOS) | |
| 1514 | CreateSound(0, GATE, 7, 1.3, false) | |
| 1515 | for i = 1, 45 do | |
| 1516 | Swait() | |
| 1517 | GATE.Size = GATE.Size + VT(16,0,16) | |
| 1518 | end | |
| 1519 | CreateSound(213603013, RightHole, 7, 1, false) | |
| 1520 | CreateSound(213603013, LeftHole, 7, 1, false) | |
| 1521 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(8,8,8), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1522 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(8,8,8), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1523 | ATTACK = false | |
| 1524 | Rooted = false | |
| 1525 | DONE = true | |
| 1526 | end | |
| 1527 | ||
| 1528 | Player_Size = 1 | |
| 1529 | function SwItCh() | |
| 1530 | ATTACK = true | |
| 1531 | Rooted = true | |
| 1532 | if MODE == "lolxd" then | |
| 1533 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 1534 | Swait() | |
| 1535 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1536 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) | |
| 1537 | end | |
| 1538 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 1539 | Swait() | |
| 1540 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1541 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-15), RAD(12)) * ANGLES(RAD(175 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) | |
| 1542 | end | |
| 1543 | for i=0, 0.1, 0.1 / Animation_Speed do | |
| 1544 | Swait() | |
| 1545 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
| 1546 | end | |
| 1547 | WACKYEFFECT({EffectType = "Block", Size = VT(6,6,6), Size2 = VT(15,15,15), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Really white").Color, SoundID = nil, SoundPitch = 1, SoundVolume = 5})
| |
| 1548 | ||
| 1549 | for i=0, 0.01, 0.1 / Animation_Speed do | |
| 1550 | Swait() | |
| 1551 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed) | |
| 1552 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
| 1553 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, 0.5) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
| 1554 | end | |
| 1555 | sick.SoundId = "rbxassetid://1027314531" | |
| 1556 | sick.Pitch = 0.99 | |
| 1557 | CLOCKSPEED = 0.3 | |
| 1558 | tecks.Text = "TRUE KICKISHER!!!" | |
| 1559 | MODE = "" | |
| 1560 | elseif MODE == "" then | |
| 1561 | CreateSound(1027314531, Torso, 4, 1.3, false) | |
| 1562 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 1563 | Swait() | |
| 1564 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1565 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) | |
| 1566 | end | |
| 1567 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 1568 | Swait() | |
| 1569 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1570 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-15), RAD(12)) * ANGLES(RAD(175 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) | |
| 1571 | end | |
| 1572 | for i=0, 0.1, 0.1 / Animation_Speed do | |
| 1573 | Swait() | |
| 1574 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
| 1575 | end | |
| 1576 | WACKYEFFECT({EffectType = "Block", Size = VT(6,6,6), Size2 = VT(15,15,15), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Really white").Color, SoundID = nil, SoundPitch = 1, SoundVolume = 5})
| |
| 1577 | sick.SoundId = "rbxassetid://1072410152" | |
| 1578 | CLOCKSPEED = 0 | |
| 1579 | tecks.Text = "Kickisher V???" | |
| 1580 | MODE = "lolxd" | |
| 1581 | end | |
| 1582 | ATTACK = false | |
| 1583 | Rooted = false | |
| 1584 | end | |
| 1585 | ||
| 1586 | function AttackTemplate() | |
| 1587 | ATTACK = true | |
| 1588 | Rooted = false | |
| 1589 | for i=0, 1, 0.1 / Animation_Speed do | |
| 1590 | Swait() | |
| 1591 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1592 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1593 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1594 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1595 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.1 / Animation_Speed) | |
| 1596 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.1 / Animation_Speed) | |
| 1597 | end | |
| 1598 | ATTACK = false | |
| 1599 | Rooted = false | |
| 1600 | end | |
| 1601 | ||
| 1602 | --//=================================\\ | |
| 1603 | --|| ASSIGN THINGS TO KEYS | |
| 1604 | --\\=================================// | |
| 1605 | ||
| 1606 | function MouseDown(owner) | |
| 1607 | if ATTACK == false then | |
| 1608 | end | |
| 1609 | end | |
| 1610 | ||
| 1611 | function MouseUp(owner) | |
| 1612 | HOLD = false | |
| 1613 | end | |
| 1614 | ||
| 1615 | function KeyDown(Key) | |
| 1616 | KEYHOLD = true | |
| 1617 | if Key == "z" and ATTACK == false then | |
| 1618 | WOW_SHOT() | |
| 1619 | end | |
| 1620 | ||
| 1621 | if Key == "f" and ATTACK == false then | |
| 1622 | OOF_GATES() | |
| 1623 | end | |
| 1624 | ||
| 1625 | if Key == "v" and ATTACK == false then | |
| 1626 | chatfunc("I Will Spare You...")
| |
| 1627 | wait(2) | |
| 1628 | chatfunc("Only If Don`t Abuse At All At All Costs!")
| |
| 1629 | TOBANISH = {}
| |
| 1630 | end | |
| 1631 | ||
| 1632 | if Key == "q" and ATTACK == false then | |
| 1633 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 1634 | Swait() | |
| 1635 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1636 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) | |
| 1637 | end | |
| 1638 | local pos = RootPart.Position | |
| 1639 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),pos) | |
| 1640 | CreateSound("173620765", Torso, 30, 1)
| |
| 1641 | end | |
| 1642 | ||
| 1643 | if Key == "t" and ATTACK == false then | |
| 1644 | LELITS_TAUNT() | |
| 1645 | end | |
| 1646 | ||
| 1647 | if Key == "p" and ATTACK == false then | |
| 1648 | SwItCh() | |
| 1649 | end | |
| 1650 | end | |
| 1651 | ||
| 1652 | function KeyUp(Key) | |
| 1653 | KEYHOLD = false end | |
| 1654 | ||
| 1655 | Mouse.Button1Down:connect(function(NEWKEY) | |
| 1656 | MouseDown(NEWKEY) | |
| 1657 | end) | |
| 1658 | Mouse.Button1Up:connect(function(NEWKEY) | |
| 1659 | MouseUp(NEWKEY) | |
| 1660 | end) | |
| 1661 | Mouse.KeyDown:connect(function(NEWKEY) | |
| 1662 | KeyDown(NEWKEY) | |
| 1663 | end) | |
| 1664 | Mouse.KeyUp:connect(function(NEWKEY) | |
| 1665 | KeyUp(NEWKEY) | |
| 1666 | end) | |
| 1667 | ||
| 1668 | --//=================================\\ | |
| 1669 | --\\=================================// | |
| 1670 | ||
| 1671 | ||
| 1672 | function unanchor() | |
| 1673 | if UNANCHOR == true then | |
| 1674 | g = Character:GetChildren() | |
| 1675 | for i = 1, #g do | |
| 1676 | if g[i].ClassName == "Part" then | |
| 1677 | g[i].Anchored = false | |
| 1678 | end | |
| 1679 | end | |
| 1680 | end | |
| 1681 | end | |
| 1682 | ||
| 1683 | ||
| 1684 | --//=================================\\ | |
| 1685 | --|| WRAP THE WHOLE SCRIPT UP | |
| 1686 | --\\=================================// | |
| 1687 | ||
| 1688 | Humanoid.Changed:connect(function(Jump) | |
| 1689 | if Jump == "Jump" and (Disable_Jump == true) then | |
| 1690 | Humanoid.Jump = false | |
| 1691 | end | |
| 1692 | end) | |
| 1693 | ||
| 1694 | local CONNECT = nil | |
| 1695 | ||
| 1696 | while true do | |
| 1697 | Swait() | |
| 1698 | ANIMATE.Parent = nil | |
| 1699 | if Character:FindFirstChildOfClass("Humanoid") == nil then
| |
| 1700 | Humanoid = IT("Humanoid",Character)
| |
| 1701 | end | |
| 1702 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
| 1703 | v:Stop(); | |
| 1704 | end | |
| 1705 | SINE = SINE + CHANGE | |
| 1706 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
| 1707 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
| 1708 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
| 1709 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
| 1710 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
| 1711 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1712 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1713 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1714 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1715 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
| 1716 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1717 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1718 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1719 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1720 | end | |
| 1721 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
| 1722 | ANIM = "Jump" | |
| 1723 | if ATTACK == false then | |
| 1724 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1725 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1726 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1727 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1728 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
| 1729 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 1730 | end | |
| 1731 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
| 1732 | ANIM = "Fall" | |
| 1733 | if ATTACK == false then | |
| 1734 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1735 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1736 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1737 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1738 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 1739 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
| 1740 | end | |
| 1741 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
| 1742 | ANIM = "Idle" | |
| 1743 | if ATTACK == false then | |
| 1744 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.15 / Animation_Speed) | |
| 1745 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed) | |
| 1746 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(-75), RAD(45), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1747 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1748 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1749 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1750 | end | |
| 1751 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
| 1752 | ANIM = "Walk" | |
| 1753 | if ATTACK == false then | |
| 1754 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1755 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1756 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1757 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed) | |
| 1758 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
| 1759 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
| 1760 | end | |
| 1761 | end | |
| 1762 | unanchor() | |
| 1763 | refit() | |
| 1764 | Humanoid.MaxHealth = 9000 | |
| 1765 | Humanoid.Health = 9000 | |
| 1766 | if Rooted == false then | |
| 1767 | Disable_Jump = false | |
| 1768 | Humanoid.WalkSpeed = Speed | |
| 1769 | elseif Rooted == true then | |
| 1770 | Disable_Jump = true | |
| 1771 | Humanoid.WalkSpeed = 0 | |
| 1772 | end | |
| 1773 | end | |
| 1774 | ||
| 1775 | --//=================================\\ | |
| 1776 | --\\=================================// | |
| 1777 | ||
| 1778 | ||
| 1779 | ||
| 1780 | ||
| 1781 | ||
| 1782 | --//====================================================\\-- | |
| 1783 | --|| END OF SCRIPT | |
| 1784 | --\\====================================================//-- |