SHOW:
|
|
- or go back to the newest paste.
| 1 | - | script.Name = "Banisher Gun V3 / 1" |
| 1 | + | |
| 2 | script:ClearAllChildren() | |
| 3 | - | --|| CREATED BY SHACKLUSTER Edit By NameClan |
| 3 | + | |
| 4 | - | --\\====================================================//-- |
| 4 | + | |
| 5 | local LIGHTHITSOUNDS = {"1177780949","1177781153","1177784554"}
| |
| 6 | local FireSound = "904051531" | |
| 7 | local LAUGHS = {834001699,834001752,834001797,834001828}
| |
| 8 | Player = game:GetService("Players").LocalPlayer
| |
| 9 | PlayerGui = Player.PlayerGui | |
| 10 | Cam = workspace.CurrentCamera | |
| 11 | Backpack = Player.Backpack | |
| 12 | Character = Player.Character | |
| 13 | Humanoid = Character.Humanoid | |
| 14 | Mouse = Player:GetMouse() | |
| 15 | RootPart = Character["HumanoidRootPart"] | |
| 16 | Torso = Character["Torso"] | |
| 17 | Head = Character["Head"] | |
| 18 | RightArm = Character["Right Arm"] | |
| 19 | LeftArm = Character["Left Arm"] | |
| 20 | RightLeg = Character["Right Leg"] | |
| 21 | LeftLeg = Character["Left Leg"] | |
| 22 | local sick = Instance.new("Sound",Character)
| |
| 23 | q = Character:GetChildren() | |
| 24 | for u = 1, #q do | |
| 25 | if q[u].ClassName == "Accessory" then | |
| 26 | q[u]:Destroy() | |
| 27 | elseif q[u].ClassName == "CharacterMesh" then | |
| 28 | q[u]:Destroy() | |
| 29 | end | |
| 30 | end | |
| 31 | Head.face:Destroy() | |
| 32 | Head.Mesh:Destroy() | |
| 33 | newmesh = Instance.new("SpecialMesh")
| |
| 34 | newmesh.Scale = Vector3.new(1.1,1.1,1.1) | |
| 35 | newmesh.MeshId = "http://www.roblox.com/asset/?id=0" | |
| 36 | newmesh.TextureId = "http://www.roblox.com/asset/?id=0" | |
| 37 | newmesh.Parent = Head | |
| 38 | ||
| 39 | local function weldBetween(a, b) | |
| 40 | local weldd = Instance.new("ManualWeld")
| |
| 41 | weldd.Part0 = a | |
| 42 | weldd.Part1 = b | |
| 43 | weldd.C0 = CFrame.new() | |
| 44 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 45 | weldd.Parent = a | |
| 46 | return weldd | |
| 47 | end | |
| 48 | RootJoint = RootPart["RootJoint"] | |
| 49 | Neck = Torso["Neck"] | |
| 50 | RightShoulder = Torso["Right Shoulder"] | |
| 51 | LeftShoulder = Torso["Left Shoulder"] | |
| 52 | RightHip = Torso["Right Hip"] | |
| 53 | LeftHip = Torso["Left Hip"] | |
| 54 | local TIME = 0 | |
| 55 | local sick = Instance.new("Sound",Torso)
| |
| 56 | ||
| 57 | IT = Instance.new | |
| 58 | CF = CFrame.new | |
| 59 | VT = Vector3.new | |
| 60 | RAD = math.rad | |
| 61 | C3 = Color3.new | |
| 62 | UD2 = UDim2.new | |
| 63 | BRICKC = BrickColor.new | |
| 64 | ANGLES = CFrame.Angles | |
| 65 | EULER = CFrame.fromEulerAnglesXYZ | |
| 66 | COS = math.cos | |
| 67 | ACOS = math.acos | |
| 68 | SIN = math.sin | |
| 69 | ASIN = math.asin | |
| 70 | ABS = math.abs | |
| 71 | MRANDOM = math.random | |
| 72 | FLOOR = math.floor | |
| 73 | ||
| 74 | ||
| 75 | it = Instance.new | |
| 76 | ||
| 77 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
| 78 | local fp=it("Part")
| |
| 79 | fp.formFactor=formfactor | |
| 80 | fp.Parent=parent | |
| 81 | fp.Reflectance=reflectance | |
| 82 | fp.Transparency=transparency | |
| 83 | fp.CanCollide=false | |
| 84 | fp.Locked=true | |
| 85 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
| 86 | fp.Name=name | |
| 87 | fp.Size=size | |
| 88 | fp.Position=Character.Torso.Position | |
| 89 | fp.Material=material | |
| 90 | fp:BreakJoints() | |
| 91 | return fp | |
| 92 | end | |
| 93 | ||
| 94 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
| 95 | local mesh=it(Mesh) | |
| 96 | mesh.Parent=part | |
| 97 | if Mesh=="SpecialMesh" then | |
| 98 | mesh.MeshType=meshtype | |
| 99 | mesh.MeshId=meshid | |
| 100 | end | |
| 101 | mesh.Offset=offset | |
| 102 | mesh.Scale=scale | |
| 103 | return mesh | |
| 104 | end | |
| 105 | ||
| 106 | function weld(parent,part0,part1,c0,c1) | |
| 107 | local weld=it("Weld")
| |
| 108 | weld.Parent=parent | |
| 109 | weld.Part0=part0 | |
| 110 | weld.Part1=part1 | |
| 111 | weld.C0=c0 | |
| 112 | weld.C1=c1 | |
| 113 | return weld | |
| 114 | end | |
| 115 | ||
| 116 | q = "Really black" | |
| 117 | Claw1=part(Enum.FormFactor.Custom,Character,Enum.Material.SmoothPlastic,0,0,q,"Claw",Vector3.new(0.400000006, 0.400000036, 0.400000006)) | |
| 118 | Claw1weld=weld(Character,RightArm,Claw1,CFrame.new(0.25, -2.3, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00980377197, -0.0303750038, 0.719708443, -5, 3.10001451e-005, 3.09999632e-005, 3.10008145e-005, 0, 0, 0, -4, -1)) | |
| 119 | mesh("SpecialMesh",Claw1,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=10681506",Vector3.new(0, 0, 0),Vector3.new(-1,-1.8,-1))
| |
| 120 | Claw2=part(Enum.FormFactor.Custom,Character,Enum.Material.SmoothPlastic,0,0,q,"Claw",Vector3.new(0.400000006, 0.400000036, 0.400000006)) | |
| 121 | Claw2weld=weld(Character,LeftArm,Claw2,CFrame.new(-0.25, -2.3, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00980377197, -0.0303750038, 0.719708443, 5, 3.10001451e-005, 3.09999632e-005, 3.10008145e-005, 0, 0, 0, -4, -1)) | |
| 122 | mesh("SpecialMesh",Claw2,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=10681506",Vector3.new(0, 0, 0),Vector3.new(-1,-1.8,-1))
| |
| 123 | ||
| 124 | --//=================================\\ | |
| 125 | --|| USEFUL VALUES | |
| 126 | --\\=================================// | |
| 127 | ||
| 128 | Animation_Speed = 3 | |
| 129 | local FORCERESET = false | |
| 130 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
| 131 | local Speed = 16 | |
| 132 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 133 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 134 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
| 135 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
| 136 | local DAMAGEMULTIPLIER = 1 | |
| 137 | local ANIM = "Idle" | |
| 138 | local ATTACK = false | |
| 139 | local EQUIPPED = false | |
| 140 | local HOLD = false | |
| 141 | local COMBO = 1 | |
| 142 | local COMBO2 = 1 | |
| 143 | local Rooted = false | |
| 144 | local SINE = 0 | |
| 145 | local STAGGERHITANIM = false | |
| 146 | local STAGGERANIM = false | |
| 147 | local KEYHOLD = false | |
| 148 | local CHANGE = 2 / Animation_Speed | |
| 149 | local WALKINGANIM = false | |
| 150 | local VALUE1 = false | |
| 151 | local NOWALK = false | |
| 152 | local VALUE2 = false | |
| 153 | local INTRO = false | |
| 154 | local TRANSFORMED = false | |
| 155 | local ROBLOXIDLEANIMATION = IT("Animation")
| |
| 156 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
| 157 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
| 158 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
| 159 | local WEAPONGUI = IT("ScreenGui", PlayerGui)
| |
| 160 | WEAPONGUI.Name = "BanishV3Gui" | |
| 161 | local Weapon = IT("Model")
| |
| 162 | Weapon.Name = "Adds" | |
| 163 | local Effects = IT("Folder", Weapon)
| |
| 164 | Effects.Name = "Effects" | |
| 165 | local ANIMATOR = Humanoid.Animator | |
| 166 | local ANIMATE = Character:FindFirstChild("Animate")
| |
| 167 | local UNANCHOR = true | |
| 168 | local TOBANISH = {}
| |
| 169 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
| |
| 170 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
| |
| 171 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
| |
| 172 | local HITBLOCKSOUNDS = {"199148933", "199148947"}
| |
| 173 | script.Parent = PlayerGui | |
| 174 | ||
| 175 | --//=================================\\ | |
| 176 | --\\=================================// | |
| 177 | ||
| 178 | ||
| 179 | --//=================================\\ | |
| 180 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
| 181 | --\\=================================// | |
| 182 | ||
| 183 | ||
| 184 | Class_Name = "Beserker" | |
| 185 | Weapon_Name = "Claws" | |
| 186 | ||
| 187 | Custom_Colors = {
| |
| 188 | Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
| |
| 189 | Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
| |
| 190 | ||
| 191 | Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
| |
| 192 | Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
| |
| 193 | Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
| |
| 194 | Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
| |
| 195 | Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
| |
| 196 | ||
| 197 | Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
| |
| 198 | Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
| |
| 199 | Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
| |
| 200 | Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
| |
| 201 | Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
| |
| 202 | } | |
| 203 | ||
| 204 | Mana_Bar_Background_Transparency = 0 --Transparency for the background of the mana bar. | |
| 205 | Secondary_Mana_Bar_Background_Transparency = 0 --Transparency for the background of the secondary mana bar. | |
| 206 | Health_Bar_Background_Transparency = 0 --Transparency for the background of the health bar. | |
| 207 | Stun_Bar_Background_Transparency = 0 --Transparency for the background of the stun bar. | |
| 208 | Ability_Background_Transparency = 0 --Transparency for the background of the abilities. | |
| 209 | Stat_Background_Transparency = 0 --Transparency for the background of the stats. | |
| 210 | ||
| 211 | Player_Size = 1 --Size of the player. | |
| 212 | Animation_Speed = 2 | |
| 213 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
| 214 | ||
| 215 | Enable_Gui = false --Enables or disables the Weapon Gui. Also functions as hiding or showing the Gui. | |
| 216 | Enable_Stats = false --Enables or disables stats. | |
| 217 | Put_Stats_In_Character = false --Places stats in Character. | |
| 218 | Enable_Stagger_Hit = false --Enables or disables staggering when hitting a hitbox of some sort. | |
| 219 | Play_Hitbox_Hit_Sound = true --Plays a hit sound when hitting a hitbox of some sort. | |
| 220 | Enable_Stagger = false --Enables or disables staggering. | |
| 221 | Enable_Stun = false --Enables or disables the stun mechanic. | |
| 222 | Enable_Abilities = false --Enables abilites with cooldowns and mana costs. | |
| 223 | Enable_Secondary_Bar = false --Enables the secondary mana bar, if true. | |
| 224 | ||
| 225 | Start_Equipped = false --Starts the player equipped with their weapon. | |
| 226 | Start_Equipped_With_Equipped_Animation = false --Used in conjunction with the above option. Starts your equip animation. | |
| 227 | Can_Equip_Or_Unequip = true --Enables or disables the ability to unequip or equip your weapon. | |
| 228 | Disable_Animator = true --Disables the Animator in the humanoid. | |
| 229 | Disable_Animate = true --Disables the Animate script in the character. | |
| 230 | Disable_Moving_Arms = false --Keeps the arms from moving around. | |
| 231 | Use_Motors_Instead_Of_Welds = false --Uses motors instead of welds to disable moving arms. | |
| 232 | Walkspeed_Depends_On_Movement_Value = false --Walkspeed depends on movement value. Self-explanatory. | |
| 233 | Disable_Jump = false --Disables jumping. | |
| 234 | Use_HopperBin = true --Uses a hopperbin to do things. | |
| 235 | ||
| 236 | Player_Size = 1 --Size of the player. | |
| 237 | Animation_Speed = 2 | |
| 238 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
| 239 | ||
| 240 | Cooldown_1 = 0 --Cooldowns for abilites. | |
| 241 | Cooldown_2 = 0 | |
| 242 | Cooldown_3 = 0 | |
| 243 | Cooldown_4 = 0 | |
| 244 | Skill_1_Mana_Cost = 0 --How much mana is required to use the skill. | |
| 245 | Skill_2_Mana_Cost = 0 | |
| 246 | Skill_3_Mana_Cost = 0 | |
| 247 | Skill_4_Mana_Cost = 0 | |
| 248 | Max_Mana = 0 --Maximum amount of mana you can have. | |
| 249 | Max_Secondary_Mana = 0 --Maximum amount of secondary mana you can have. | |
| 250 | Mana_Name = "Mana" --Name for the mana bar. | |
| 251 | Secondary_Mana_Name = "Block" --Name for the secondary mana bar. | |
| 252 | Max_Stun = 1 --Maximum amount of stun you can have. | |
| 253 | Recover_Mana = 0 --How much mana you gain. | |
| 254 | Mana_Regen_Mode = "1" --Basically switches from one mana regen system to another. | |
| 255 | Secondary_Mana_Regen_Mode = "1" --Basically switches from one secondary mana regen system to another. | |
| 256 | Stun_Lose_Mode = "1" --Basically switches from one secondary stun loss system to another. | |
| 257 | Recover_Secondary_Mana = 0 --How much secondary mana you gain. | |
| 258 | Lose_Stun = 0 --How much stun you lose. | |
| 259 | Stun_Wait = 0 --Delay between losing stun. | |
| 260 | Mana_Wait = 0 --Delay between gaining mana. | |
| 261 | Secondary_Mana_Wait = 0 --Delay between gaining secondary mana. | |
| 262 | Menu_Update_Speed = 0 --How fast the Weapon Gui will update. | |
| 263 | Constant_Update = false --Removes the delay between updating the Weapon GUI. | |
| 264 | Show_Stats = false --Hides or shows stats. | |
| 265 | Stat_Offset = 0.74 --For cosmetic purposes. {0.74, 0.78}
| |
| 266 | ||
| 267 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 268 | ArtificialHB.Name = "ArtificialHB" | |
| 269 | ||
| 270 | script:WaitForChild("ArtificialHB")
| |
| 271 | ||
| 272 | frame = Frame_Speed | |
| 273 | tf = 0 | |
| 274 | allowframeloss = false | |
| 275 | tossremainder = false | |
| 276 | lastframe = tick() | |
| 277 | script.ArtificialHB:Fire() | |
| 278 | ||
| 279 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 280 | tf = tf + s | |
| 281 | if tf >= frame then | |
| 282 | if allowframeloss then | |
| 283 | script.ArtificialHB:Fire() | |
| 284 | lastframe = tick() | |
| 285 | else | |
| 286 | for i = 1, math.floor(tf / frame) do | |
| 287 | script.ArtificialHB:Fire() | |
| 288 | end | |
| 289 | lastframe = tick() | |
| 290 | end | |
| 291 | if tossremainder then | |
| 292 | tf = 0 | |
| 293 | else | |
| 294 | tf = tf - frame * math.floor(tf / frame) | |
| 295 | end | |
| 296 | end | |
| 297 | end) | |
| 298 | ||
| 299 | --//=================================\\ | |
| 300 | --\\=================================// | |
| 301 | ||
| 302 | --//=================================\\ | |
| 303 | --|| SOME FUNCTIONS | |
| 304 | --\\=================================// | |
| 305 | ||
| 306 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 307 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 308 | end | |
| 309 | ||
| 310 | function PositiveAngle(NUMBER) | |
| 311 | if NUMBER >= 0 then | |
| 312 | NUMBER = 0 | |
| 313 | end | |
| 314 | return NUMBER | |
| 315 | end | |
| 316 | ||
| 317 | function NegativeAngle(NUMBER) | |
| 318 | if NUMBER <= 0 then | |
| 319 | NUMBER = 0 | |
| 320 | end | |
| 321 | return NUMBER | |
| 322 | end | |
| 323 | ||
| 324 | function Swait(NUMBER) | |
| 325 | if NUMBER == 0 or NUMBER == nil then | |
| 326 | ArtificialHB.Event:wait() | |
| 327 | else | |
| 328 | for i = 1, NUMBER do | |
| 329 | ArtificialHB.Event:wait() | |
| 330 | end | |
| 331 | end | |
| 332 | end | |
| 333 | ||
| 334 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
| 335 | local NEWMESH = IT(MESH) | |
| 336 | if MESH == "SpecialMesh" then | |
| 337 | NEWMESH.MeshType = MESHTYPE | |
| 338 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 339 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
| 340 | end | |
| 341 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
| 342 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
| 343 | end | |
| 344 | end | |
| 345 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
| 346 | NEWMESH.Scale = SCALE | |
| 347 | NEWMESH.Parent = PARENT | |
| 348 | return NEWMESH | |
| 349 | end | |
| 350 | ||
| 351 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
| 352 | local NEWPART = IT("Part")
| |
| 353 | NEWPART.formFactor = FORMFACTOR | |
| 354 | NEWPART.Reflectance = REFLECTANCE | |
| 355 | NEWPART.Transparency = TRANSPARENCY | |
| 356 | NEWPART.CanCollide = false | |
| 357 | NEWPART.Locked = true | |
| 358 | NEWPART.Anchored = true | |
| 359 | if ANCHOR == false then | |
| 360 | NEWPART.Anchored = false | |
| 361 | end | |
| 362 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 363 | NEWPART.Name = NAME | |
| 364 | NEWPART.Size = SIZE | |
| 365 | NEWPART.Position = Torso.Position | |
| 366 | NEWPART.Material = MATERIAL | |
| 367 | NEWPART:BreakJoints() | |
| 368 | NEWPART.Parent = PARENT | |
| 369 | return NEWPART | |
| 370 | end | |
| 371 | ||
| 372 | local function weldBetween(a, b) | |
| 373 | local weldd = Instance.new("ManualWeld")
| |
| 374 | weldd.Part0 = a | |
| 375 | weldd.Part1 = b | |
| 376 | weldd.C0 = CFrame.new() | |
| 377 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 378 | weldd.Parent = a | |
| 379 | return weldd | |
| 380 | end | |
| 381 | ||
| 382 | ||
| 383 | function QuaternionFromCFrame(cf) | |
| 384 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 385 | local trace = m00 + m11 + m22 | |
| 386 | if trace > 0 then | |
| 387 | local s = math.sqrt(1 + trace) | |
| 388 | local recip = 0.5 / s | |
| 389 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 390 | else | |
| 391 | local i = 0 | |
| 392 | if m11 > m00 then | |
| 393 | i = 1 | |
| 394 | end | |
| 395 | if m22 > (i == 0 and m00 or m11) then | |
| 396 | i = 2 | |
| 397 | end | |
| 398 | if i == 0 then | |
| 399 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 400 | local recip = 0.5 / s | |
| 401 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 402 | elseif i == 1 then | |
| 403 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 404 | local recip = 0.5 / s | |
| 405 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 406 | elseif i == 2 then | |
| 407 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 408 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 409 | end | |
| 410 | end | |
| 411 | end | |
| 412 | ||
| 413 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 414 | local xs, ys, zs = x + x, y + y, z + z | |
| 415 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 416 | local xx = x * xs | |
| 417 | local xy = x * ys | |
| 418 | local xz = x * zs | |
| 419 | local yy = y * ys | |
| 420 | local yz = y * zs | |
| 421 | local zz = z * zs | |
| 422 | 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)) | |
| 423 | end | |
| 424 | ||
| 425 | function QuaternionSlerp(a, b, t) | |
| 426 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 427 | local startInterp, finishInterp; | |
| 428 | if cosTheta >= 0.0001 then | |
| 429 | if (1 - cosTheta) > 0.0001 then | |
| 430 | local theta = ACOS(cosTheta) | |
| 431 | local invSinTheta = 1 / SIN(theta) | |
| 432 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
| 433 | finishInterp = SIN(t * theta) * invSinTheta | |
| 434 | else | |
| 435 | startInterp = 1 - t | |
| 436 | finishInterp = t | |
| 437 | end | |
| 438 | else | |
| 439 | if (1 + cosTheta) > 0.0001 then | |
| 440 | local theta = ACOS(-cosTheta) | |
| 441 | local invSinTheta = 1 / SIN(theta) | |
| 442 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
| 443 | finishInterp = SIN(t * theta) * invSinTheta | |
| 444 | else | |
| 445 | startInterp = t - 1 | |
| 446 | finishInterp = t | |
| 447 | end | |
| 448 | end | |
| 449 | 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 | |
| 450 | end | |
| 451 | ||
| 452 | function Clerp(a, b, t) | |
| 453 | local qa = {QuaternionFromCFrame(a)}
| |
| 454 | local qb = {QuaternionFromCFrame(b)}
| |
| 455 | local ax, ay, az = a.x, a.y, a.z | |
| 456 | local bx, by, bz = b.x, b.y, b.z | |
| 457 | local _t = 1 - t | |
| 458 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 459 | end | |
| 460 | ||
| 461 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
| 462 | local frame = IT("Frame")
| |
| 463 | frame.BackgroundTransparency = TRANSPARENCY | |
| 464 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
| 465 | frame.Position = POSITION | |
| 466 | frame.Size = SIZE | |
| 467 | frame.BackgroundColor3 = COLOR | |
| 468 | frame.BorderColor3 = BORDERCOLOR | |
| 469 | frame.Name = NAME | |
| 470 | frame.Parent = PARENT | |
| 471 | return frame | |
| 472 | end | |
| 473 | ||
| 474 | ||
| 475 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 476 | local label = IT("TextLabel")
| |
| 477 | label.BackgroundTransparency = 1 | |
| 478 | label.Size = UD2(1, 0, 1, 0) | |
| 479 | label.Position = UD2(0, 0, 0, 0) | |
| 480 | label.TextColor3 = TEXTCOLOR | |
| 481 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
| 482 | label.TextTransparency = TRANSPARENCY | |
| 483 | label.FontSize = TEXTFONTSIZE | |
| 484 | label.Font = TEXTFONT | |
| 485 | label.BorderSizePixel = BORDERSIZEPIXEL | |
| 486 | label.TextScaled = false | |
| 487 | label.Text = TEXT | |
| 488 | label.Name = NAME | |
| 489 | label.Parent = PARENT | |
| 490 | return label | |
| 491 | end | |
| 492 | ||
| 493 | function NoOutlines(PART) | |
| 494 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 495 | end | |
| 496 | ||
| 497 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 498 | local NEWWELD = IT(TYPE) | |
| 499 | NEWWELD.Part0 = PART0 | |
| 500 | NEWWELD.Part1 = PART1 | |
| 501 | NEWWELD.C0 = C0 | |
| 502 | NEWWELD.C1 = C1 | |
| 503 | NEWWELD.Parent = PARENT | |
| 504 | return NEWWELD | |
| 505 | end | |
| 506 | ||
| 507 | local S = IT("Sound")
| |
| 508 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
| 509 | local NEWSOUND = nil | |
| 510 | coroutine.resume(coroutine.create(function() | |
| 511 | NEWSOUND = S:Clone() | |
| 512 | NEWSOUND.Parent = PARENT | |
| 513 | NEWSOUND.Volume = VOLUME | |
| 514 | NEWSOUND.Pitch = PITCH | |
| 515 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 516 | NEWSOUND:play() | |
| 517 | if DOESLOOP == true then | |
| 518 | NEWSOUND.Looped = true | |
| 519 | else | |
| 520 | repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT | |
| 521 | NEWSOUND:remove() | |
| 522 | end | |
| 523 | end)) | |
| 524 | return NEWSOUND | |
| 525 | end | |
| 526 | ||
| 527 | function CFrameFromTopBack(at, top, back) | |
| 528 | local right = top:Cross(back) | |
| 529 | 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) | |
| 530 | end | |
| 531 | ||
| 532 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 533 | function WACKYEFFECT(Table) | |
| 534 | local TYPE = (Table.EffectType or "Sphere") | |
| 535 | local SIZE = (Table.Size or VT(1,1,1)) | |
| 536 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
| 537 | local TRANSPARENCY = (Table.Transparency or 0) | |
| 538 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
| 539 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
| 540 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
| 541 | local ROTATION1 = (Table.RotationX or 0) | |
| 542 | local ROTATION2 = (Table.RotationY or 0) | |
| 543 | local ROTATION3 = (Table.RotationZ or 0) | |
| 544 | local MATERIAL = (Table.Material or "Neon") | |
| 545 | local COLOR = (Table.Color or C3(1,1,1)) | |
| 546 | local TIME = (Table.Time or 45) | |
| 547 | local SOUNDID = (Table.SoundID or nil) | |
| 548 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
| 549 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
| 550 | coroutine.resume(coroutine.create(function() | |
| 551 | local PLAYSSOUND = false | |
| 552 | local SOUND = nil | |
| 553 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
| |
| 554 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
| 555 | PLAYSSOUND = true | |
| 556 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
| 557 | end | |
| 558 | EFFECT.Color = COLOR | |
| 559 | local MSH = nil | |
| 560 | if TYPE == "Sphere" then | |
| 561 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
| |
| 562 | elseif TYPE == "Block" then | |
| 563 | MSH = IT("BlockMesh",EFFECT)
| |
| 564 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
| 565 | elseif TYPE == "Wave" then | |
| 566 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
| |
| 567 | elseif TYPE == "Ring" then | |
| 568 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
| |
| 569 | elseif TYPE == "Slash" then | |
| 570 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 571 | elseif TYPE == "Round Slash" then | |
| 572 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 573 | elseif TYPE == "Swirl" then | |
| 574 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
| |
| 575 | elseif TYPE == "Skull" then | |
| 576 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
| |
| 577 | elseif TYPE == "Crystal" then | |
| 578 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
| |
| 579 | end | |
| 580 | if MSH ~= nil then | |
| 581 | local MOVESPEED = nil | |
| 582 | if MOVEDIRECTION ~= nil then | |
| 583 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
| 584 | end | |
| 585 | local GROWTH = SIZE - ENDSIZE | |
| 586 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
| 587 | if TYPE == "Block" then | |
| 588 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 589 | else | |
| 590 | EFFECT.CFrame = CFRAME | |
| 591 | end | |
| 592 | for LOOP = 1, TIME+1 do | |
| 593 | Swait() | |
| 594 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
| 595 | if TYPE == "Wave" then | |
| 596 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
| 597 | end | |
| 598 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
| 599 | if TYPE == "Block" then | |
| 600 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 601 | else | |
| 602 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
| 603 | end | |
| 604 | if MOVEDIRECTION ~= nil then | |
| 605 | local ORI = EFFECT.Orientation | |
| 606 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
| 607 | EFFECT.Orientation = ORI | |
| 608 | end | |
| 609 | end | |
| 610 | if PLAYSSOUND == false then | |
| 611 | EFFECT:remove() | |
| 612 | else | |
| 613 | SOUND.Stopped:Connect(function() | |
| 614 | EFFECT:remove() | |
| 615 | end) | |
| 616 | end | |
| 617 | else | |
| 618 | if PLAYSSOUND == false then | |
| 619 | EFFECT:remove() | |
| 620 | else | |
| 621 | repeat Swait() until SOUND.Playing == false | |
| 622 | EFFECT:remove() | |
| 623 | end | |
| 624 | end | |
| 625 | end)) | |
| 626 | end | |
| 627 | ||
| 628 | function MakeForm(PART,TYPE) | |
| 629 | if TYPE == "Cyl" then | |
| 630 | local MSH = IT("CylinderMesh",PART)
| |
| 631 | elseif TYPE == "Ball" then | |
| 632 | local MSH = IT("SpecialMesh",PART)
| |
| 633 | MSH.MeshType = "Sphere" | |
| 634 | elseif TYPE == "Wedge" then | |
| 635 | local MSH = IT("SpecialMesh",PART)
| |
| 636 | MSH.MeshType = "Wedge" | |
| 637 | end | |
| 638 | end | |
| 639 | ||
| 640 | local asd = Instance.new("ParticleEmitter")
| |
| 641 | asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0)) | |
| 642 | asd.LightEmission = .1 | |
| 643 | asd.Texture = "http://www.roblox.com/asset/?ID=291880914" | |
| 644 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
| |
| 645 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
| |
| 646 | asd.Transparency = bbb | |
| 647 | asd.Size = aaa | |
| 648 | asd.ZOffset = .9 | |
| 649 | asd.Acceleration = Vector3.new(0, -15, 0) | |
| 650 | asd.LockedToPart = false | |
| 651 | asd.EmissionDirection = "Back" | |
| 652 | asd.Lifetime = NumberRange.new(1, 2) | |
| 653 | asd.Rotation = NumberRange.new(-100, 100) | |
| 654 | asd.RotSpeed = NumberRange.new(-100, 100) | |
| 655 | asd.Speed = NumberRange.new(10) | |
| 656 | asd.Enabled = false | |
| 657 | asd.VelocitySpread = 999 | |
| 658 | ||
| 659 | function getbloody(victim,amount) | |
| 660 | local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size) | |
| 661 | PART.CFrame = victim.CFrame | |
| 662 | local HITPLAYERSOUNDS = {"356551938","264486467"}
| |
| 663 | Debris:AddItem(PART,5) | |
| 664 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
| 665 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
| 666 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
| 667 | local prtcl = asd:Clone() | |
| 668 | prtcl.Parent = PART | |
| 669 | prtcl:Emit(amount*10) | |
| 670 | end | |
| 671 | ||
| 672 | local Particle = IT("ParticleEmitter",nil)
| |
| 673 | Particle.Enabled = false | |
| 674 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
| |
| 675 | Particle.LightEmission = 0.5 | |
| 676 | Particle.Rate = 150 | |
| 677 | Particle.ZOffset = 1 | |
| 678 | Particle.Rotation = NumberRange.new(-180, 180) | |
| 679 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
| 680 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
| 681 | Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0)) | |
| 682 | ||
| 683 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
| |
| 684 | function ParticleEmitter(Table) | |
| 685 | local PRTCL = Particle:Clone() | |
| 686 | local Speed = Table.Speed or 5 | |
| 687 | local Drag = Table.Drag or 0 | |
| 688 | local Size1 = Table.Size1 or 1 | |
| 689 | local Size2 = Table.Size2 or 5 | |
| 690 | local Lifetime1 = Table.Lifetime1 or 1 | |
| 691 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
| 692 | local Parent = Table.Parent or Torso | |
| 693 | local Emit = Table.Emit or 100 | |
| 694 | local Offset = Table.Offset or 360 | |
| 695 | local Acel = Table.Acel or VT(0,0,0) | |
| 696 | local Enabled = Table.Enabled or false | |
| 697 | PRTCL.Parent = Parent | |
| 698 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
| 699 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
| 700 | PRTCL.Speed = NumberRange.new(Speed) | |
| 701 | PRTCL.VelocitySpread = Offset | |
| 702 | PRTCL.Drag = Drag | |
| 703 | PRTCL.Acceleration = Acel | |
| 704 | if Enabled == false then | |
| 705 | PRTCL:Emit(Emit) | |
| 706 | Debris:AddItem(PRTCL,Lifetime2) | |
| 707 | else | |
| 708 | PRTCL.Enabled = true | |
| 709 | end | |
| 710 | return PRTCL | |
| 711 | end | |
| 712 | ||
| 713 | function SpawnTrail(FROM,TO,BIG) | |
| 714 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0)) | |
| 715 | MakeForm(TRAIL,"Cyl") | |
| 716 | local DIST = (FROM - TO).Magnitude | |
| 717 | if BIG == true then | |
| 718 | TRAIL.Size = VT(0.5,DIST,0.5) | |
| 719 | else | |
| 720 | TRAIL.Size = VT(0.25,DIST,0.25) | |
| 721 | end | |
| 722 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
| 723 | coroutine.resume(coroutine.create(function() | |
| 724 | for i = 1, 5 do | |
| 725 | Swait() | |
| 726 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
| 727 | end | |
| 728 | TRAIL:remove() | |
| 729 | end)) | |
| 730 | end | |
| 731 | ||
| 732 | Debris = game:GetService("Debris")
| |
| 733 | ||
| 734 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
| 735 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
| 736 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
| 737 | end | |
| 738 | ||
| 739 | function turnto(position) | |
| 740 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
| 741 | end | |
| 742 | ||
| 743 | --//=================================\\ | |
| 744 | --|| RESIZE PLAYER | |
| 745 | --\\=================================// | |
| 746 | ||
| 747 | if Player_Size ~= 1 then | |
| 748 | RootPart.Size = RootPart.Size * Player_Size | |
| 749 | Torso.Size = Torso.Size * Player_Size | |
| 750 | Head.Size = Head.Size * Player_Size | |
| 751 | RightArm.Size = RightArm.Size * Player_Size | |
| 752 | LeftArm.Size = LeftArm.Size * Player_Size | |
| 753 | RightLeg.Size = RightLeg.Size * Player_Size | |
| 754 | LeftLeg.Size = LeftLeg.Size * Player_Size | |
| 755 | RootJoint.Parent = RootPart | |
| 756 | Neck.Parent = Torso | |
| 757 | RightShoulder.Parent = Torso | |
| 758 | LeftShoulder.Parent = Torso | |
| 759 | RightHip.Parent = Torso | |
| 760 | LeftHip.Parent = Torso | |
| 761 | ||
| 762 | RootJoint.C0 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 763 | RootJoint.C1 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 764 | Neck.C0 = NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 765 | Neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 766 | RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0 | |
| 767 | LeftShoulder.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0 | |
| 768 | if Disable_Moving_Arms == false then | |
| 769 | RightShoulder.C1 = ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5) | |
| 770 | LeftShoulder.C1 = ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5) | |
| 771 | else | |
| 772 | RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) | |
| 773 | LeftShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) | |
| 774 | end | |
| 775 | RightHip.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 776 | LeftHip.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 777 | RightHip.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 778 | LeftHip.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 779 | end | |
| 780 | ||
| 781 | ||
| 782 | --//=================================\\ | |
| 783 | --\\=================================// | |
| 784 | ||
| 785 | --//=================================\\ | |
| 786 | --|| WEAPON CREATION | |
| 787 | --\\=================================// | |
| 788 | ||
| 789 | local PRT = CreatePart(3, char, "Fabric", 0, 0, "", "The Mask", VT(1,1,1),false) | |
| 790 | PRT.Color = C3(0,0,0) | |
| 791 | local MaskWeld = CreateWeldOrSnapOrMotor("Weld", hed, hed, PRT, CF(0,0.2,0), CF(0, 0.15, 0))
| |
| 792 | CreateMesh("SpecialMesh", PRT, "FileMesh", "62146989", "145633085", VT(1.1,1.1,1.1)*1.05, VT(0,0,0))
| |
| 793 | ||
| 794 | function SHAKECAM(POSITION, RANGE, INTENSITY, TIME) | |
| 795 | local TORSO = Torso | |
| 796 | local HUM = Humanoid | |
| 797 | if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then | |
| 798 | coroutine.wrap(function() | |
| 799 | VT = Vector3.new | |
| 800 | MRANDOM = math.random | |
| 801 | local A = TIME | |
| 802 | local B = INTENSITY | |
| 803 | local C = true | |
| 804 | local HUMANOID = Humanoid | |
| 805 | local TIMER = A or 35 | |
| 806 | local SHAKE = B or 5 | |
| 807 | local FADE = C or true | |
| 808 | if HUMANOID then | |
| 809 | local FADER = SHAKE / TIMER | |
| 810 | for i = 1, TIMER do | |
| 811 | wait() | |
| 812 | HUMANOID.CameraOffset = VT(MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10) | |
| 813 | end | |
| 814 | HUMANOID.CameraOffset = VT(0, 0, 0) | |
| 815 | end | |
| 816 | ||
| 817 | end)() | |
| 818 | end | |
| 819 | end | |
| 820 | ||
| 821 | ||
| 822 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false) | |
| 823 | PRT.Color = C3(0,0,0) | |
| 824 | local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0))
| |
| 825 | CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0))
| |
| 826 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Scarf", VT(1,1,1),false) | |
| 827 | PRT.Color = C3(0,0,0) | |
| 828 | ||
| 829 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1.1,1,0.525),false) | |
| 830 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(-0.75, 0.51, 0) * ANGLES(RAD(180), RAD(-90), RAD(0)), CF(0, 0, 0))
| |
| 831 | MakeForm(Part,"Wedge") | |
| 832 | ||
| 833 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1,1,1.2),false) | |
| 834 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 835 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false) | |
| 836 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), CF(0, 0, 0))
| |
| 837 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false) | |
| 838 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), CF(0, 0, 0))
| |
| 839 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Dark stone grey", "Metal", VT(0.8,0.8,1.225),false) | |
| 840 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 841 | local Eon = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eon", VT(0.5,0.5,1.25),false) | |
| 842 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Eon, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 843 | ||
| 844 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1.1,1,0.525),false) | |
| 845 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Part, CF(-0.75, 0.51, 0) * ANGLES(RAD(180), RAD(-90), RAD(0)), CF(0, 0, 0))
| |
| 846 | MakeForm(Part,"Wedge") | |
| 847 | ||
| 848 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1,1,1.2),false) | |
| 849 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 850 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false) | |
| 851 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), CF(0, 0, 0))
| |
| 852 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false) | |
| 853 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), CF(0, 0, 0))
| |
| 854 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Dark stone grey", "Metal", VT(0.8,0.8,1.225),false) | |
| 855 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 856 | local Eon = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eon", VT(0.5,0.5,1.25),false) | |
| 857 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Eon, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 858 | ||
| 859 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1.1,1,0.525),false) | |
| 860 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Part, CF(-0.75, 0.51, 0) * ANGLES(RAD(180), RAD(-90), RAD(0)), CF(0, 0, 0))
| |
| 861 | MakeForm(Part,"Wedge") | |
| 862 | ||
| 863 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1,1,1.2),false) | |
| 864 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 865 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false) | |
| 866 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), CF(0, 0, 0))
| |
| 867 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false) | |
| 868 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), CF(0, 0, 0))
| |
| 869 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Dark stone grey", "Metal", VT(0.8,0.8,1.225),false) | |
| 870 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 871 | local Eon = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eon", VT(0.5,0.5,1.25),false) | |
| 872 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Eon, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 873 | ||
| 874 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 875 | function WACKYEFFECT(Table) | |
| 876 | local TYPE = (Table.EffectType or "Sphere") | |
| 877 | local SIZE = (Table.Size or VT(1,1,1)) | |
| 878 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
| 879 | local TRANSPARENCY = (Table.Transparency or 0) | |
| 880 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
| 881 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
| 882 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
| 883 | local ROTATION1 = (Table.RotationX or 0) | |
| 884 | local ROTATION2 = (Table.RotationY or 0) | |
| 885 | local ROTATION3 = (Table.RotationZ or 0) | |
| 886 | local MATERIAL = (Table.Material or "Neon") | |
| 887 | local COLOR = (Table.Color or C3(1,1,1)) | |
| 888 | local TIME = (Table.Time or 45) | |
| 889 | local SOUNDID = (Table.SoundID or nil) | |
| 890 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
| 891 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
| 892 | coroutine.resume(coroutine.create(function() | |
| 893 | local PLAYSSOUND = false | |
| 894 | local SOUND = nil | |
| 895 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Really red"), "Effect", VT(1,1,1), true)
| |
| 896 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
| 897 | PLAYSSOUND = true | |
| 898 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
| 899 | end | |
| 900 | EFFECT.Color = COLOR | |
| 901 | local MSH = nil | |
| 902 | if TYPE == "Sphere" then | |
| 903 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
| |
| 904 | elseif TYPE == "Block" then | |
| 905 | MSH = IT("BlockMesh",EFFECT)
| |
| 906 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
| 907 | elseif TYPE == "Wave" then | |
| 908 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
| |
| 909 | elseif TYPE == "Ring" then | |
| 910 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
| |
| 911 | elseif TYPE == "Slash" then | |
| 912 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 913 | elseif TYPE == "Round Slash" then | |
| 914 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 915 | elseif TYPE == "Swirl" then | |
| 916 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
| |
| 917 | elseif TYPE == "Skull" then | |
| 918 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
| |
| 919 | elseif TYPE == "Crystal" then | |
| 920 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
| |
| 921 | end | |
| 922 | if MSH ~= nil then | |
| 923 | local MOVESPEED = nil | |
| 924 | if MOVEDIRECTION ~= nil then | |
| 925 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
| 926 | end | |
| 927 | local GROWTH = SIZE - ENDSIZE | |
| 928 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
| 929 | if TYPE == "Block" then | |
| 930 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 931 | else | |
| 932 | EFFECT.CFrame = CFRAME | |
| 933 | end | |
| 934 | for LOOP = 1, TIME+1 do | |
| 935 | Swait() | |
| 936 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
| 937 | if TYPE == "Wave" then | |
| 938 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
| 939 | end | |
| 940 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
| 941 | if TYPE == "Block" then | |
| 942 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 943 | else | |
| 944 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
| 945 | end | |
| 946 | if MOVEDIRECTION ~= nil then | |
| 947 | local ORI = EFFECT.Orientation | |
| 948 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
| 949 | EFFECT.Orientation = ORI | |
| 950 | end | |
| 951 | end | |
| 952 | if PLAYSSOUND == false then | |
| 953 | EFFECT:remove() | |
| 954 | else | |
| 955 | SOUND.Stopped:Connect(function() | |
| 956 | EFFECT:remove() | |
| 957 | end) | |
| 958 | end | |
| 959 | else | |
| 960 | if PLAYSSOUND == false then | |
| 961 | EFFECT:remove() | |
| 962 | else | |
| 963 | repeat Swait() until SOUND.Playing == false | |
| 964 | EFFECT:remove() | |
| 965 | end | |
| 966 | end | |
| 967 | end)) | |
| 968 | end | |
| 969 | ||
| 970 | ||
| 971 | function CreateRing(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW) | |
| 972 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0)) | |
| 973 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0, 0, 0))
| |
| 974 | wave.CFrame = CFRAME | |
| 975 | coroutine.resume(coroutine.create(function(PART) | |
| 976 | for i = 1, WAIT do | |
| 977 | Swait() | |
| 978 | mesh.Scale = mesh.Scale + GROW | |
| 979 | if DOESROT == true then | |
| 980 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0) | |
| 981 | end | |
| 982 | wave.Transparency = wave.Transparency + 0.5 / WAIT | |
| 983 | if wave.Transparency > 0.99 then | |
| 984 | wave:remove() | |
| 985 | end | |
| 986 | end | |
| 987 | end)) | |
| 988 | end | |
| 989 | ||
| 990 | function CreateWave(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW) | |
| 991 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0)) | |
| 992 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8))
| |
| 993 | wave.CFrame = CFRAME | |
| 994 | coroutine.resume(coroutine.create(function(PART) | |
| 995 | for i = 1, WAIT do | |
| 996 | Swait() | |
| 997 | mesh.Scale = mesh.Scale + GROW | |
| 998 | mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8)) | |
| 999 | if DOESROT == true then | |
| 1000 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0) | |
| 1001 | end | |
| 1002 | wave.Transparency = wave.Transparency + 0.5 / WAIT | |
| 1003 | if wave.Transparency > 0.99 then | |
| 1004 | wave:remove() | |
| 1005 | end | |
| 1006 | end | |
| 1007 | end)) | |
| 1008 | end | |
| 1009 | ||
| 1010 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1011 | function WACKYEFFECT(Table) | |
| 1012 | local TYPE = (Table.EffectType or "Sphere") | |
| 1013 | local SIZE = (Table.Size or VT(1,1,1)) | |
| 1014 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
| 1015 | local TRANSPARENCY = (Table.Transparency or 0) | |
| 1016 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
| 1017 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
| 1018 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
| 1019 | local ROTATION1 = (Table.RotationX or 0) | |
| 1020 | local ROTATION2 = (Table.RotationY or 0) | |
| 1021 | local ROTATION3 = (Table.RotationZ or 0) | |
| 1022 | local MATERIAL = (Table.Material or "Neon") | |
| 1023 | local COLOR = (Table.Color or C3(1,1,1)) | |
| 1024 | local TIME = (Table.Time or 45) | |
| 1025 | local SOUNDID = (Table.SoundID or nil) | |
| 1026 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
| 1027 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
| 1028 | coroutine.resume(coroutine.create(function() | |
| 1029 | local PLAYSSOUND = false | |
| 1030 | local SOUND = nil | |
| 1031 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
| |
| 1032 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
| 1033 | PLAYSSOUND = true | |
| 1034 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
| 1035 | end | |
| 1036 | EFFECT.Color = COLOR | |
| 1037 | local MSH = nil | |
| 1038 | if TYPE == "Sphere" then | |
| 1039 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
| |
| 1040 | elseif TYPE == "Block" then | |
| 1041 | MSH = IT("BlockMesh",EFFECT)
| |
| 1042 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
| 1043 | elseif TYPE == "Wave" then | |
| 1044 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
| |
| 1045 | elseif TYPE == "Ring" then | |
| 1046 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
| |
| 1047 | elseif TYPE == "Slash" then | |
| 1048 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 1049 | elseif TYPE == "Round Slash" then | |
| 1050 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 1051 | elseif TYPE == "Swirl" then | |
| 1052 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
| |
| 1053 | elseif TYPE == "Skull" then | |
| 1054 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
| |
| 1055 | elseif TYPE == "Crystal" then | |
| 1056 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
| |
| 1057 | end | |
| 1058 | if MSH ~= nil then | |
| 1059 | local MOVESPEED = nil | |
| 1060 | if MOVEDIRECTION ~= nil then | |
| 1061 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
| 1062 | end | |
| 1063 | local GROWTH = SIZE - ENDSIZE | |
| 1064 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
| 1065 | if TYPE == "Block" then | |
| 1066 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 1067 | else | |
| 1068 | EFFECT.CFrame = CFRAME | |
| 1069 | end | |
| 1070 | for LOOP = 1, TIME+1 do | |
| 1071 | Swait() | |
| 1072 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
| 1073 | if TYPE == "Wave" then | |
| 1074 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
| 1075 | end | |
| 1076 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
| 1077 | if TYPE == "Block" then | |
| 1078 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 1079 | else | |
| 1080 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
| 1081 | end | |
| 1082 | if MOVEDIRECTION ~= nil then | |
| 1083 | local ORI = EFFECT.Orientation | |
| 1084 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
| 1085 | EFFECT.Orientation = ORI | |
| 1086 | end | |
| 1087 | end | |
| 1088 | if PLAYSSOUND == false then | |
| 1089 | EFFECT:remove() | |
| 1090 | else | |
| 1091 | SOUND.Stopped:Connect(function() | |
| 1092 | EFFECT:remove() | |
| 1093 | end) | |
| 1094 | end | |
| 1095 | else | |
| 1096 | if PLAYSSOUND == false then | |
| 1097 | EFFECT:remove() | |
| 1098 | else | |
| 1099 | repeat Swait() until SOUND.Playing == false | |
| 1100 | EFFECT:remove() | |
| 1101 | end | |
| 1102 | end | |
| 1103 | end)) | |
| 1104 | end | |
| 1105 | ||
| 1106 | function Slice(KIND, SIZE, WAIT, CFRAME, COLOR, GROW) | |
| 1107 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1, 1, 1), true) | |
| 1108 | local mesh | |
| 1109 | if KIND == "Base" then | |
| 1110 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0, SIZE / 10, SIZE / 10), VT(0, 0, 0))
| |
| 1111 | elseif KIND == "Thin" then | |
| 1112 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
| |
| 1113 | elseif KIND == "Round" then | |
| 1114 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
| |
| 1115 | end | |
| 1116 | wave.CFrame = CFRAME | |
| 1117 | coroutine.resume(coroutine.create(function(PART) | |
| 1118 | for i = 1, WAIT do | |
| 1119 | Swait() | |
| 1120 | mesh.Scale = mesh.Scale + GROW / 10 | |
| 1121 | wave.Transparency = wave.Transparency + 0.5 / WAIT | |
| 1122 | if wave.Transparency > 0.99 then | |
| 1123 | wave:remove() | |
| 1124 | end | |
| 1125 | end | |
| 1126 | end)) | |
| 1127 | end | |
| 1128 | ||
| 1129 | function CreateRing(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW) | |
| 1130 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0)) | |
| 1131 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0, 0, 0))
| |
| 1132 | wave.CFrame = CFRAME | |
| 1133 | coroutine.resume(coroutine.create(function(PART) | |
| 1134 | for i = 1, WAIT do | |
| 1135 | Swait() | |
| 1136 | mesh.Scale = mesh.Scale + GROW | |
| 1137 | if DOESROT == true then | |
| 1138 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0) | |
| 1139 | end | |
| 1140 | wave.Transparency = wave.Transparency + 0.5 / WAIT | |
| 1141 | if wave.Transparency > 0.99 then | |
| 1142 | wave:remove() | |
| 1143 | end | |
| 1144 | end | |
| 1145 | end)) | |
| 1146 | end | |
| 1147 | function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW) | |
| 1148 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1, 1, 1), true) | |
| 1149 | local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0, 0, 0))
| |
| 1150 | wave.CFrame = CFRAME | |
| 1151 | coroutine.resume(coroutine.create(function(PART) | |
| 1152 | for i = 1, WAIT do | |
| 1153 | Swait() | |
| 1154 | mesh.Scale = mesh.Scale + GROW | |
| 1155 | wave.Transparency = wave.Transparency + 1 / WAIT | |
| 1156 | if wave.Transparency > 0.99 then | |
| 1157 | wave:remove() | |
| 1158 | end | |
| 1159 | end | |
| 1160 | end)) | |
| 1161 | end | |
| 1162 | ||
| 1163 | function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW) | |
| 1164 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1, 1, 1), true) | |
| 1165 | local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0, 0, 0))
| |
| 1166 | wave.CFrame = CFRAME | |
| 1167 | coroutine.resume(coroutine.create(function(PART) | |
| 1168 | for i = 1, WAIT do | |
| 1169 | Swait() | |
| 1170 | mesh.Scale = mesh.Scale + GROW | |
| 1171 | wave.Transparency = wave.Transparency + 1 / WAIT | |
| 1172 | if wave.Transparency > 0.99 then | |
| 1173 | wave:remove() | |
| 1174 | end | |
| 1175 | end | |
| 1176 | end)) | |
| 1177 | end | |
| 1178 | ||
| 1179 | ||
| 1180 | local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
| 1181 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
| |
| 1182 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
| 1183 | MakeForm(Part,"Wedge") | |
| 1184 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
| |
| 1185 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
| 1186 | MakeForm(Part,"Wedge") | |
| 1187 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
| |
| 1188 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
| 1189 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1190 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
| 1191 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1192 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
| 1193 | MakeForm(Part,"Cyl") | |
| 1194 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1195 | for i = 1, 8 do | |
| 1196 | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
| 1197 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
| |
| 1198 | end | |
| 1199 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
| 1200 | MakeForm(Part,"Cyl") | |
| 1201 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1202 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
| 1203 | MakeForm(Part,"Ball") | |
| 1204 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1205 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
| 1206 | MakeForm(Part,"Wedge") | |
| 1207 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
| |
| 1208 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
| 1209 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1210 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
| 1211 | MakeForm(Part,"Cyl") | |
| 1212 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1213 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
| 1214 | MakeForm(Part,"Cyl") | |
| 1215 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1216 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
| 1217 | MakeForm(Part,"Cyl") | |
| 1218 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1219 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
| 1220 | MakeForm(Part,"Wedge") | |
| 1221 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
| |
| 1222 | local LASTPART = Handle | |
| 1223 | for i = 1, 10 do | |
| 1224 | if LASTPART == Handle then | |
| 1225 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
| 1226 | LASTPART = Part | |
| 1227 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1228 | else | |
| 1229 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
| 1230 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
| |
| 1231 | LASTPART = Part | |
| 1232 | end | |
| 1233 | end | |
| 1234 | ||
| 1235 | local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
| 1236 | MakeForm(Barrel,"Cyl") | |
| 1237 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1238 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
| 1239 | MakeForm(Part,"Cyl") | |
| 1240 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
| |
| 1241 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
| 1242 | MakeForm(Part,"Wedge") | |
| 1243 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1244 | local Hole2 = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
| 1245 | MakeForm(Hole2,"Cyl") | |
| 1246 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole2, CF(0, 0.98, 0), CF(0, 0, 0))
| |
| 1247 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
| 1248 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
| |
| 1249 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
| |
| 1250 | local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
| 1251 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
| |
| 1252 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
| |
| 1253 | coroutine.resume(coroutine.create(function() | |
| 1254 | while wait() do | |
| 1255 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
| 1256 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
| 1257 | end | |
| 1258 | end)) | |
| 1259 | ||
| 1260 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole2, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
| |
| 1261 | --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
| |
| 1262 | ||
| 1263 | for _, c in pairs(Weapon:GetDescendants()) do | |
| 1264 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
| 1265 | c.Material = "Glass" | |
| 1266 | c.Color = C3(0,0,0) | |
| 1267 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
| 1268 | c.Color = C3(1,0,0) | |
| 1269 | c.Material = "Neon" | |
| 1270 | end | |
| 1271 | end | |
| 1272 | ||
| 1273 | Weapon.Parent = Character | |
| 1274 | for _, c in pairs(Weapon:GetChildren()) do | |
| 1275 | if c.ClassName == "Part" then | |
| 1276 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 1277 | end | |
| 1278 | end | |
| 1279 | ||
| 1280 | function ParticleEmitter(Table) | |
| 1281 | local PRTCL = Particle:Clone() | |
| 1282 | local Speed = Table.Speed or 5 | |
| 1283 | local Drag = Table.Drag or 0 | |
| 1284 | local Size1 = Table.Size1 or 1 | |
| 1285 | local Size2 = Table.Size2 or 5 | |
| 1286 | local Lifetime1 = Table.Lifetime1 or 1 | |
| 1287 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
| 1288 | local Parent = Table.Parent or Torso | |
| 1289 | local Emit = Table.Emit or 100 | |
| 1290 | local Offset = Table.Offset or 360 | |
| 1291 | local Acel = Table.Acel or VT(0,0,0) | |
| 1292 | local Enabled = Table.Enabled or false | |
| 1293 | PRTCL.Parent = Parent | |
| 1294 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
| 1295 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
| 1296 | PRTCL.Speed = NumberRange.new(Speed) | |
| 1297 | PRTCL.VelocitySpread = Offset | |
| 1298 | PRTCL.Drag = Drag | |
| 1299 | PRTCL.Acceleration = Acel | |
| 1300 | if Enabled == false then | |
| 1301 | PRTCL:Emit(Emit) | |
| 1302 | Debris:AddItem(PRTCL,Lifetime2) | |
| 1303 | else | |
| 1304 | PRTCL.Enabled = true | |
| 1305 | end | |
| 1306 | return PRTCL | |
| 1307 | end | |
| 1308 | ||
| 1309 | local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
| 1310 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
| |
| 1311 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
| 1312 | MakeForm(Part,"Wedge") | |
| 1313 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
| |
| 1314 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
| 1315 | MakeForm(Part,"Wedge") | |
| 1316 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
| |
| 1317 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
| 1318 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1319 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
| 1320 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1321 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
| 1322 | MakeForm(Part,"Cyl") | |
| 1323 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1324 | for i = 1, 8 do | |
| 1325 | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
| 1326 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
| |
| 1327 | end | |
| 1328 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
| 1329 | MakeForm(Part,"Cyl") | |
| 1330 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1331 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
| 1332 | MakeForm(Part,"Ball") | |
| 1333 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1334 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
| 1335 | MakeForm(Part,"Wedge") | |
| 1336 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
| |
| 1337 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
| 1338 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1339 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
| 1340 | MakeForm(Part,"Cyl") | |
| 1341 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1342 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
| 1343 | MakeForm(Part,"Cyl") | |
| 1344 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1345 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
| 1346 | MakeForm(Part,"Cyl") | |
| 1347 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1348 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
| 1349 | MakeForm(Part,"Wedge") | |
| 1350 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
| |
| 1351 | local LASTPART = Handle | |
| 1352 | for i = 1, 10 do | |
| 1353 | if LASTPART == Handle then | |
| 1354 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
| 1355 | LASTPART = Part | |
| 1356 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1357 | else | |
| 1358 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
| 1359 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
| |
| 1360 | LASTPART = Part | |
| 1361 | end | |
| 1362 | end | |
| 1363 | ||
| 1364 | local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
| 1365 | MakeForm(Barrel,"Cyl") | |
| 1366 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1367 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
| 1368 | MakeForm(Part,"Cyl") | |
| 1369 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
| |
| 1370 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
| 1371 | MakeForm(Part,"Wedge") | |
| 1372 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 1373 | local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
| 1374 | MakeForm(Hole,"Cyl") | |
| 1375 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
| |
| 1376 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
| 1377 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
| |
| 1378 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
| |
| 1379 | local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
| 1380 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
| |
| 1381 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
| |
| 1382 | coroutine.resume(coroutine.create(function() | |
| 1383 | while wait() do | |
| 1384 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
| 1385 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
| 1386 | end | |
| 1387 | end)) | |
| 1388 | ||
| 1389 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
| |
| 1390 | --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
| |
| 1391 | ||
| 1392 | for _, c in pairs(Weapon:GetDescendants()) do | |
| 1393 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
| 1394 | c.Material = "Glass" | |
| 1395 | c.Color = C3(0,0,0) | |
| 1396 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
| 1397 | c.Color = C3(1,0,0) | |
| 1398 | c.Material = "Neon" | |
| 1399 | end | |
| 1400 | end | |
| 1401 | ||
| 1402 | Weapon.Parent = Character | |
| 1403 | for _, c in pairs(Weapon:GetChildren()) do | |
| 1404 | if c.ClassName == "Part" then | |
| 1405 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 1406 | end | |
| 1407 | end | |
| 1408 | ||
| 1409 | local SKILLTEXTCOLOR = C3(1,0,0) | |
| 1410 | local SKILLFONT = "Antique" | |
| 1411 | local SKILLTEXTSIZE = 7 | |
| 1412 | ||
| 1413 | Humanoid.Died:connect(function() | |
| 1414 | ATTACK = true | |
| 1415 | end) | |
| 1416 | ||
| 1417 | 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") | |
| 1418 | --[[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") | |
| 1419 | 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") | |
| 1420 | 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") | |
| 1421 | 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") | |
| 1422 | ]] | |
| 1423 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banisher Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1") | |
| 1424 | --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2") | |
| 1425 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3") | |
| 1426 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4") | |
| 1427 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5") | |
| 1428 | ]] | |
| 1429 | function printbye(Name) | |
| 1430 | local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
| |
| 1431 | warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
| 1432 | end | |
| 1433 | ||
| 1434 | workspace.ChildAdded:connect(function(instance) | |
| 1435 | for BANISH = 1, #TOBANISH do | |
| 1436 | if TOBANISH[BANISH] ~= nil then | |
| 1437 | if instance.Name == TOBANISH[BANISH] then | |
| 1438 | coroutine.resume(coroutine.create(function() | |
| 1439 | printbye(instance.Name) | |
| 1440 | instance:ClearAllChildren() | |
| 1441 | Debris:AddItem(instance,0.0005) | |
| 1442 | end)) | |
| 1443 | end | |
| 1444 | end | |
| 1445 | end | |
| 1446 | end) | |
| 1447 | ||
| 1448 | --//=================================\\ | |
| 1449 | --|| DAMAGING | |
| 1450 | --\\=================================// | |
| 1451 | ||
| 1452 | function Banish(Foe) | |
| 1453 | if Foe then | |
| 1454 | coroutine.resume(coroutine.create(function() | |
| 1455 | --if game.Players:FindFirstChild(Foe.Name) then | |
| 1456 | table.insert(TOBANISH,Foe.Name) | |
| 1457 | printbye(Foe.Name) | |
| 1458 | --end | |
| 1459 | Foe.Archivable = true | |
| 1460 | local CLONE = Foe:Clone() | |
| 1461 | Foe:Destroy() | |
| 1462 | CLONE.Parent = Effects | |
| 1463 | CLONE:BreakJoints() | |
| 1464 | local MATERIALS = {"Glass","Neon"}
| |
| 1465 | for _, c in pairs(CLONE:GetDescendants()) do | |
| 1466 | if c:IsA("BasePart") then
| |
| 1467 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
| 1468 | CreateSound(340722848, c, 10, 1, false) | |
| 1469 | end | |
| 1470 | c.Anchored = true | |
| 1471 | c.Transparency = c.Transparency + 0.2 | |
| 1472 | c.Material = MATERIALS[MRANDOM(1,2)] | |
| 1473 | c.Color = C3(1,0,0) | |
| 1474 | if c.ClassName == "MeshPart" then | |
| 1475 | c.TextureID = "" | |
| 1476 | end | |
| 1477 | if c:FindFirstChildOfClass("SpecialMesh") then
| |
| 1478 | c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
| |
| 1479 | end | |
| 1480 | if c:FindFirstChildOfClass("Decal") then
| |
| 1481 | c:FindFirstChildOfClass("Decal"):remove()
| |
| 1482 | end | |
| 1483 | c.Name = "Banished" | |
| 1484 | c.CanCollide = false | |
| 1485 | else | |
| 1486 | c:remove() | |
| 1487 | end | |
| 1488 | end | |
| 1489 | local A = false | |
| 1490 | for i = 1, 35 do | |
| 1491 | if A == false then | |
| 1492 | A = true | |
| 1493 | elseif A == true then | |
| 1494 | A = false | |
| 1495 | end | |
| 1496 | for _, c in pairs(CLONE:GetDescendants()) do | |
| 1497 | if c:IsA("BasePart") then
| |
| 1498 | c.Anchored = true | |
| 1499 | c.Material = MATERIALS[MRANDOM(1,2)] | |
| 1500 | c.Transparency = c.Transparency + 0.8/35 | |
| 1501 | if A == false then | |
| 1502 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
| 1503 | elseif A == true then | |
| 1504 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
| 1505 | end | |
| 1506 | end | |
| 1507 | end | |
| 1508 | Swait() | |
| 1509 | end | |
| 1510 | CLONE:remove() | |
| 1511 | end)) | |
| 1512 | end | |
| 1513 | end | |
| 1514 | ||
| 1515 | function ApplyAoE(POSITION,RANGE,ISBANISH) | |
| 1516 | local CHILDREN = workspace:GetDescendants() | |
| 1517 | for index, CHILD in pairs(CHILDREN) do | |
| 1518 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
| 1519 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 1520 | if HUM then | |
| 1521 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 1522 | if TORSO then | |
| 1523 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
| 1524 | if ISBANISH == true then | |
| 1525 | Banish(CHILD) | |
| 1526 | else | |
| 1527 | if ISBANISH == "Gravity" then | |
| 1528 | HUM.PlatformStand = true | |
| 1529 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
| |
| 1530 | local grav = Instance.new("BodyPosition",TORSO)
| |
| 1531 | grav.D = 15 | |
| 1532 | grav.P = 20000 | |
| 1533 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1534 | grav.position = TORSO.Position | |
| 1535 | grav.Name = "V3BanishForce"..Player.Name | |
| 1536 | else | |
| 1537 | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
| |
| 1538 | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) | |
| 1539 | end | |
| 1540 | else | |
| 1541 | HUM.PlatformStand = false | |
| 1542 | end | |
| 1543 | end | |
| 1544 | elseif ISBANISH == "Gravity" then | |
| 1545 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
| |
| 1546 | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
| |
| 1547 | HUM.PlatformStand = false | |
| 1548 | end | |
| 1549 | end | |
| 1550 | end | |
| 1551 | end | |
| 1552 | end | |
| 1553 | end | |
| 1554 | end | |
| 1555 | ||
| 1556 | function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR) | |
| 1557 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
| 1558 | STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0)) | |
| 1559 | local BODYGYRO = IT("BodyGyro", STATPART)
| |
| 1560 | local BODYPOSITION = IT("BodyPosition", STATPART)
| |
| 1561 | BODYPOSITION.P = 2000 | |
| 1562 | BODYPOSITION.D = 100 | |
| 1563 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
| 1564 | if LABELTYPE == "Normal" then | |
| 1565 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2)) | |
| 1566 | elseif LABELTYPE == "Debuff" then | |
| 1567 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2)) | |
| 1568 | elseif LABELTYPE == "Interruption" then | |
| 1569 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2)) | |
| 1570 | end | |
| 1571 | game:GetService("Debris"):AddItem(STATPART ,5)
| |
| 1572 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
| |
| 1573 | BILLBOARDGUI.Adornee = STATPART | |
| 1574 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
| 1575 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
| 1576 | BILLBOARDGUI.AlwaysOnTop = false | |
| 1577 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
| |
| 1578 | TEXTLABEL.BackgroundTransparency = 1 | |
| 1579 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
| 1580 | TEXTLABEL.Text = TEXT | |
| 1581 | TEXTLABEL.Font = "SourceSans" | |
| 1582 | TEXTLABEL.FontSize="Size42" | |
| 1583 | TEXTLABEL.TextColor3 = COLOR | |
| 1584 | TEXTLABEL.TextStrokeTransparency = 0 | |
| 1585 | TEXTLABEL.TextScaled = true | |
| 1586 | TEXTLABEL.TextWrapped = true | |
| 1587 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
| 1588 | wait(0.2) | |
| 1589 | for i=1, 5 do | |
| 1590 | wait() | |
| 1591 | THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0) | |
| 1592 | end | |
| 1593 | wait(1.2) | |
| 1594 | for i=1, 5 do | |
| 1595 | wait() | |
| 1596 | THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2 | |
| 1597 | THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2 | |
| 1598 | THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0) | |
| 1599 | end | |
| 1600 | THEPART.Parent = nil | |
| 1601 | end),STATPART, BODYPOSITION, TEXTLABEL) | |
| 1602 | end | |
| 1603 | ||
| 1604 | function IncreaseOrDecreaseStat(LOCATION, STAT, AMOUNT, DURATION, SHOWTHESTAT) | |
| 1605 | if LOCATION:FindFirstChild("Stats") ~= nil then
| |
| 1606 | if LOCATION.Stats:FindFirstChild("Block") ~= nil then
| |
| 1607 | if LOCATION.Stats:FindFirstChild("Block").Value == true then
| |
| 1608 | return | |
| 1609 | end | |
| 1610 | end | |
| 1611 | if LOCATION.Stats:FindFirstChild("ChangeStat") ~= nil and LOCATION.Stats:FindFirstChild("Block").Value == false then
| |
| 1612 | local NewStatChange = IT("NumberValue")
| |
| 1613 | NewStatChange.Value = AMOUNT | |
| 1614 | if STAT == "Defense" then | |
| 1615 | NewStatChange.Name = "ChangeDefense" | |
| 1616 | elseif STAT == "Damage" then | |
| 1617 | NewStatChange.Name = "ChangeDamage" | |
| 1618 | elseif STAT == "Movement" then | |
| 1619 | NewStatChange.Name = "ChangeMovement" | |
| 1620 | end | |
| 1621 | if SHOWTHESTAT == true then | |
| 1622 | if AMOUNT < 0 then | |
| 1623 | StatLabel("Debuff", LOCATION.Head.CFrame * CF(0, 0 + (LOCATION.Head.Size.z - 1), 0), "-"..STAT, C3(1, 1, 1))
| |
| 1624 | elseif AMOUNT > 0 then | |
| 1625 | StatLabel("Debuff", LOCATION.Head.CFrame * CF(0, 0 + (LOCATION.Head.Size.z - 1), 0), "+"..STAT, C3(1, 1, 1))
| |
| 1626 | end | |
| 1627 | end | |
| 1628 | if DURATION ~= nil and DURATION ~= 0 then | |
| 1629 | local StatDuration = IT("NumberValue")
| |
| 1630 | StatDuration.Name = "Duration" | |
| 1631 | StatDuration.Value = DURATION | |
| 1632 | StatDuration.Parent = NewStatChange | |
| 1633 | end | |
| 1634 | NewStatChange.Parent = LOCATION.Stats:FindFirstChild("ChangeStat")
| |
| 1635 | end | |
| 1636 | end | |
| 1637 | end | |
| 1638 | ||
| 1639 | --Usage: DamageFunction(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, hit, false, 5, 10, MRANDOM(5, 10), "Normal", Part, 0.5, false, true, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false) | |
| 1640 | function DamageFunction(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, HIT, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, DECREASETHESTAT, DECREASEAMOUNT, DECREASEDURATION, SHOWDECREASEDSTAT) | |
| 1641 | if HIT.Parent == nil then | |
| 1642 | return | |
| 1643 | end | |
| 1644 | local HITHUMANOID = HIT.Parent:FindFirstChild("Humanoid")
| |
| 1645 | for _, v in pairs(HIT.Parent:GetChildren()) do | |
| 1646 | if v:IsA("Humanoid") then
| |
| 1647 | HITHUMANOID = v | |
| 1648 | end | |
| 1649 | end | |
| 1650 | if HIT.Name == "Hitbox" and RANGED ~= true and HIT.Parent ~= Weapon and Enable_Stagger_Hit == true then | |
| 1651 | StaggerHit.Value = true | |
| 1652 | if Play_Hitbox_Hit_Sound == true then | |
| 1653 | if HITWEAPONSOUND ~= "" and HITWEAPONSOUND ~= "nil" then | |
| 1654 | CreateSound(HITWEAPONSOUND, HIT, 1, HITWEAPONSOUNDPITCH) | |
| 1655 | end | |
| 1656 | end | |
| 1657 | return | |
| 1658 | end | |
| 1659 | if HIT.Parent.Parent:FindFirstChild("Torso") ~= nil or HIT.Parent.Parent:FindFirstChild("UpperTorso") ~= nil then
| |
| 1660 | HITHUMANOID = HIT.Parent.Parent:FindFirstChild("Humanoid")
| |
| 1661 | end | |
| 1662 | if HIT.Parent.ClassName == "Hat" or HIT.ClassName == "Accessory" then | |
| 1663 | HIT = HIT.Parent.Parent:FindFirstChild("Head")
| |
| 1664 | end | |
| 1665 | if HITHUMANOID ~= nil and HIT.Parent.Name ~= Character.Name and (HIT.Parent:FindFirstChild("Torso") ~= nil or HIT.Parent:FindFirstChild("UpperTorso") ~= nil) then
| |
| 1666 | if HIT.Parent:FindFirstChild("DebounceHit") ~= nil then
| |
| 1667 | if HIT.Parent.DebounceHit.Value == true then | |
| 1668 | return | |
| 1669 | end | |
| 1670 | end | |
| 1671 | if AntiTeamKill.Value == true then | |
| 1672 | if Player.Neutral == false and game.Players:GetPlayerFromCharacter(HIT.Parent) ~= nil then | |
| 1673 | if game.Players:GetPlayerFromCharacter(HIT.Parent).TeamColor == Player.TeamColor then | |
| 1674 | return | |
| 1675 | end | |
| 1676 | end | |
| 1677 | end | |
| 1678 | if HITEVENWHENDEAD == false then | |
| 1679 | if HIT.Parent:FindFirstChild("Humanoid") ~= nil then
| |
| 1680 | if HIT.Parent:FindFirstChild("Humanoid").Health <= 0 then
| |
| 1681 | return | |
| 1682 | end | |
| 1683 | end | |
| 1684 | end | |
| 1685 | if HIT.Parent:FindFirstChild("Stats") ~= nil then
| |
| 1686 | if HIT.Parent.Stats:FindFirstChild("StunValue") ~= nil then
| |
| 1687 | HIT.Parent.Stats:FindFirstChild("StunValue").Value = HIT.Parent.Stats:FindFirstChild("StunValue").Value + INCREASESTUN
| |
| 1688 | end | |
| 1689 | end | |
| 1690 | if HIT.Parent:FindFirstChild("Stats") ~= nil then
| |
| 1691 | if HIT.Parent.Stats:FindFirstChild("Stagger") ~= nil then
| |
| 1692 | if STAGGER == true and Enable_Stagger == true then | |
| 1693 | HIT.Parent.Stats:FindFirstChild("Stagger").Value = true
| |
| 1694 | end | |
| 1695 | end | |
| 1696 | end | |
| 1697 | if HIT.Parent:FindFirstChild("Stats") ~= nil then
| |
| 1698 | if HIT.Parent.Stats:FindFirstChild("Block") ~= nil then
| |
| 1699 | if HIT.Parent.Stats:FindFirstChild("Block").Value == true then
| |
| 1700 | HASBEENBLOCKED = true | |
| 1701 | if HIT.Parent.Stats:FindFirstChild("Block"):FindFirstChild("BlockDebounce") == nil then
| |
| 1702 | StatLabel("Interruption", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Blocked!", C3(0, 100 / 255, 255 / 255))
| |
| 1703 | if RANGED ~= true then | |
| 1704 | if HITBLOCKSOUND ~= "" and HITBLOCKSOUND ~= "nil" then | |
| 1705 | CreateSound(HITBLOCKSOUND, HIT, 1, HITBLOCKSOUNDPITCH) | |
| 1706 | end | |
| 1707 | end | |
| 1708 | local BlockDebounce = IT("BoolValue", HIT.Parent.Stats:FindFirstChild("Block"))
| |
| 1709 | BlockDebounce.Name = "BlockDebounce" | |
| 1710 | BlockDebounce.Value = true | |
| 1711 | if RANGED ~= true then | |
| 1712 | game:GetService("Debris"):AddItem(BlockDebounce, 0.5)
| |
| 1713 | else | |
| 1714 | game:GetService("Debris"):AddItem(BlockDebounce, 0.1)
| |
| 1715 | end | |
| 1716 | end | |
| 1717 | if RANGED ~= true and Enable_Stagger == true then | |
| 1718 | HIT.Parent.Stats:FindFirstChild("Block").Value = false
| |
| 1719 | Stagger.Value = true | |
| 1720 | end | |
| 1721 | return | |
| 1722 | end | |
| 1723 | end | |
| 1724 | end | |
| 1725 | if DECREASETHESTAT ~= nil then | |
| 1726 | if HIT.Parent:FindFirstChild("Stats") ~= nil then
| |
| 1727 | IncreaseOrDecreaseStat(HIT.Parent, DECREASETHESTAT, DECREASEAMOUNT, DECREASEDURATION, SHOWDECREASEDSTAT) | |
| 1728 | end | |
| 1729 | end | |
| 1730 | local DAMAGE = MRANDOM(MINIMUMDAMAGE,MAXIMUMDAMAGE) * Damage.Value | |
| 1731 | if HIT.Parent:FindFirstChild("Stats") ~= nil then
| |
| 1732 | if HIT.Parent.Stats:FindFirstChild("Defense") ~= nil then
| |
| 1733 | if CanPenetrateArmor.Value == true then | |
| 1734 | DAMAGE = DAMAGE | |
| 1735 | else | |
| 1736 | DAMAGE = DAMAGE / HIT.Parent.Stats:FindFirstChild("Defense").Value
| |
| 1737 | end | |
| 1738 | elseif HIT.Parent.Stats:FindFirstChild("Defense") == nil then
| |
| 1739 | DAMAGE = DAMAGE | |
| 1740 | end | |
| 1741 | end | |
| 1742 | if CanCrit.Value == true then | |
| 1743 | CRITCHANCENUMBER = MRANDOM(1, CritChance.Value) | |
| 1744 | if CRITCHANCENUMBER == 1 then | |
| 1745 | DAMAGE = DAMAGE * 2 | |
| 1746 | end | |
| 1747 | end | |
| 1748 | DAMAGE = math.floor(DAMAGE) | |
| 1749 | if HASBEENBLOCKED == false then | |
| 1750 | HITHUMANOID.Health = HITHUMANOID.Health - DAMAGE | |
| 1751 | end | |
| 1752 | if DAMAGE <= 3 and HASBEENBLOCKED == false then | |
| 1753 | if STAGGERHIT == true and Enable_Stagger_Hit == true and RANGED ~= true then | |
| 1754 | StaggerHit.Value = true | |
| 1755 | end | |
| 1756 | if HITARMORSOUND ~= "" and HITARMORSOUND ~= "nil" then | |
| 1757 | CreateSound(HITARMORSOUND, HIT, 1, HITARMORSOUNDPITCH) | |
| 1758 | end | |
| 1759 | elseif DAMAGE > 3 and HASBEENBLOCKED == false then | |
| 1760 | if HITPLAYERSOUND ~= "" and HITPLAYERSOUND ~= "nil" then | |
| 1761 | CreateSound(HITPLAYERSOUND, HIT, 1, HITPLAYERSOUNDPITCH) | |
| 1762 | end | |
| 1763 | end | |
| 1764 | if DAMAGE > 3 and DAMAGE < 20 and HASBEENBLOCKED == false then | |
| 1765 | if CanCrit.Value == true and CRITCHANCENUMBER == 1 then | |
| 1766 | StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Crit! \n"..DAMAGE, C3(200/255, 0, 0))
| |
| 1767 | CreateSound("296102734", HIT, 1, 1)
| |
| 1768 | else | |
| 1769 | StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), DAMAGE, C3(255/255, 220/255, 0))
| |
| 1770 | end | |
| 1771 | elseif DAMAGE >= 20 and HASBEENBLOCKED == false then | |
| 1772 | if CanCrit.Value == true and CRITCHANCENUMBER == 1 then | |
| 1773 | StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Crit! \n"..DAMAGE, C3(200/255, 0, 0))
| |
| 1774 | CreateSound("296102734", HIT, 1, 1)
| |
| 1775 | else | |
| 1776 | StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), DAMAGE, C3(255/255, 0, 0))
| |
| 1777 | end | |
| 1778 | elseif DAMAGE <= 3 and HASBEENBLOCKED == false then | |
| 1779 | if CanCrit.Value == true and CRITCHANCENUMBER == 1 then | |
| 1780 | StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Crit! \n"..DAMAGE, C3(200/255, 0, 0))
| |
| 1781 | CreateSound("296102734", HIT, 1, 1)
| |
| 1782 | else | |
| 1783 | StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), DAMAGE, C3(225/255, 225/255, 225/255))
| |
| 1784 | end | |
| 1785 | end | |
| 1786 | if TYPE == "Normal" then | |
| 1787 | local vp = IT("BodyVelocity")
| |
| 1788 | vp.P=500 | |
| 1789 | vp.maxForce = VT(math.huge, 0, math.huge) | |
| 1790 | if KNOCKBACKTYPE == 1 then | |
| 1791 | vp.Velocity = PROPERTY.CFrame.lookVector * KNOCKBACK + PROPERTY.Velocity / 1.05 | |
| 1792 | elseif KNOCKBACKTYPE == 2 then | |
| 1793 | vp.Velocity = PROPERTY.CFrame.lookVector * KNOCKBACK | |
| 1794 | end | |
| 1795 | if KNOCKBACK > 0 and HASBEENBLOCKED == false then | |
| 1796 | vp.Parent = HIT--.Parent.Torso | |
| 1797 | end | |
| 1798 | game:GetService("Debris"):AddItem(vp, 0.5)
| |
| 1799 | end | |
| 1800 | HASBEENBLOCKED = false | |
| 1801 | RecentEnemy.Value = HIT.Parent | |
| 1802 | local DebounceHit = IT("BoolValue", HIT.Parent)
| |
| 1803 | DebounceHit.Name = "DebounceHit" | |
| 1804 | DebounceHit.Value = true | |
| 1805 | game:GetService("Debris"):AddItem(DebounceHit, DELAY)
| |
| 1806 | end | |
| 1807 | end | |
| 1808 | ||
| 1809 | --Usage: MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, Part, 5, true, 5, 10, MRANDOM(5, 10), "Normal", Part, 0.5, false, true, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false) | |
| 1810 | function MagnitudeDamage(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, PART, MAGNITUDE, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, MAGNITUDEDECREASETHESTAT, MAGNITUDEDECREASEAMOUNT, MAGNITUDEDECREASEDURATION, MAGNITUDESHOWDECREASEDSTAT) | |
| 1811 | for _, c in pairs(workspace:GetChildren()) do | |
| 1812 | local HUMANOID = c:FindFirstChild("Humanoid")
| |
| 1813 | local HEAD = nil | |
| 1814 | if HUMANOID ~= nil then | |
| 1815 | for _, d in pairs(c:GetChildren()) do | |
| 1816 | if d.ClassName == "Model" and RANGED ~= true then | |
| 1817 | HEAD = d:FindFirstChild("Hitbox")
| |
| 1818 | if HEAD ~= nil then | |
| 1819 | local THEMAGNITUDE = (HEAD.Position - PART.Position).magnitude | |
| 1820 | if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and c.Name ~= Player.Name then | |
| 1821 | if Play_Hitbox_Hit_Sound == true then | |
| 1822 | local HitRefpart = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
| 1823 | HitRefpart.Anchored = true | |
| 1824 | HitRefpart.CFrame = CF(HEAD.Position) | |
| 1825 | CreateSound(HITWEAPONSOUND, HitRefpart, 1, HITWEAPONSOUNDPITCH) | |
| 1826 | end | |
| 1827 | if Enable_Stagger_Hit == true then | |
| 1828 | StaggerHit.Value = true | |
| 1829 | end | |
| 1830 | end | |
| 1831 | end | |
| 1832 | elseif d:IsA"BasePart" then | |
| 1833 | HEAD = d | |
| 1834 | if HEAD ~= nil then | |
| 1835 | local THEMAGNITUDE = (HEAD.Position - PART.Position).magnitude | |
| 1836 | if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and c.Name ~= Player.Name then | |
| 1837 | DamageFunction(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, HEAD, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, MAGNITUDEDECREASETHESTAT, MAGNITUDEDECREASEAMOUNT, MAGNITUDEDECREASEDURATION, MAGNITUDESHOWDECREASEDSTAT) | |
| 1838 | end | |
| 1839 | end | |
| 1840 | end | |
| 1841 | end | |
| 1842 | end | |
| 1843 | end | |
| 1844 | end | |
| 1845 | ||
| 1846 | --Usage: MagnitudeBuffOrDebuff(Part, 5, "Defense", -0.1, 3, true, true) | |
| 1847 | function MagnitudeBuffOrDebuff(PART, MAGNITUDE, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF, APPLYTOOTHERSINSTEAD) | |
| 1848 | if Player.Neutral == true then | |
| 1849 | IncreaseOrDecreaseStat(Character, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF) | |
| 1850 | end | |
| 1851 | for _, c in pairs(workspace:GetChildren()) do | |
| 1852 | local HUMANOID = c:FindFirstChild("Humanoid")
| |
| 1853 | local THEHEAD = nil | |
| 1854 | if HUMANOID ~= nil then | |
| 1855 | if c:FindFirstChild("Torso") ~= nil then
| |
| 1856 | THEHEAD = c:FindFirstChild("Torso")
| |
| 1857 | elseif c:FindFirstChild("UpperTorso") ~= nil then
| |
| 1858 | THEHEAD = c:FindFirstChild("UpperTorso")
| |
| 1859 | end | |
| 1860 | if THEHEAD ~= nil then | |
| 1861 | local THEMAGNITUDE = (THEHEAD.Position - PART.Position).magnitude | |
| 1862 | print("yes 1")
| |
| 1863 | if APPLYTOOTHERSINSTEAD == true then | |
| 1864 | if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and c.Name ~= Player.Name then | |
| 1865 | if Player.Neutral == false and game.Players:GetPlayerFromCharacter(THEHEAD.Parent) ~= nil then | |
| 1866 | if game.Players:GetPlayerFromCharacter(THEHEAD.Parent).TeamColor == Player.TeamColor then | |
| 1867 | IncreaseOrDecreaseStat(THEHEAD.Parent, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF) | |
| 1868 | end | |
| 1869 | end | |
| 1870 | end | |
| 1871 | elseif APPLYTOOTHERSINSTEAD == false then | |
| 1872 | if THEMAGNITUDE <= (MAGNITUDE * Player_Size) then | |
| 1873 | if Player.Neutral == false and game.Players:GetPlayerFromCharacter(THEHEAD.Parent) ~= nil then | |
| 1874 | if game.Players:GetPlayerFromCharacter(THEHEAD.Parent).TeamColor == Player.TeamColor then | |
| 1875 | IncreaseOrDecreaseStat(THEHEAD.Parent, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF) | |
| 1876 | end | |
| 1877 | end | |
| 1878 | end | |
| 1879 | end | |
| 1880 | end | |
| 1881 | end | |
| 1882 | end | |
| 1883 | end | |
| 1884 | ||
| 1885 | ||
| 1886 | ||
| 1887 | function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier,CanBeDodgedByJumping) | |
| 1888 | local dmg = math.random(min,max) | |
| 1889 | for i,v in ipairs(workspace:GetChildren()) do | |
| 1890 | if v:FindFirstChild("HitBy"..Player.Name) == nil then
| |
| 1891 | local body = v:GetChildren() | |
| 1892 | for part = 1, #body do | |
| 1893 | if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
| |
| 1894 | if(body[part].Position - position).Magnitude < radius then | |
| 1895 | if v.ClassName == "Model" then | |
| 1896 | if v:FindFirstChildOfClass("Humanoid") then
| |
| 1897 | if CanBeDodgedByJumping == true then | |
| 1898 | if body[part].Position.Y < position.Y+5 then | |
| 1899 | ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
| |
| 1900 | end | |
| 1901 | else | |
| 1902 | ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
| |
| 1903 | end | |
| 1904 | local bv = Instance.new("BodyVelocity")
| |
| 1905 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 1906 | bv.velocity = RootPart.CFrame.lookVector*maxstrength | |
| 1907 | bv.Parent = body[part] | |
| 1908 | Debris:AddItem(bv,0.2) | |
| 1909 | end | |
| 1910 | end | |
| 1911 | end | |
| 1912 | end | |
| 1913 | end | |
| 1914 | end | |
| 1915 | if v:FindFirstChild("HitBy"..Player.Name) then
| |
| 1916 | v:FindFirstChild("HitBy"..Player.Name):remove()
| |
| 1917 | end | |
| 1918 | end | |
| 1919 | end | |
| 1920 | ||
| 1921 | function ApplyDamage(Humanoid,Damage,CritRate,CritMultiplier) | |
| 1922 | local defence = Instance.new("BoolValue",Humanoid.Parent)
| |
| 1923 | defence.Name = ("HitBy"..Player.Name)
| |
| 1924 | game:GetService("Debris"):AddItem(defence, 0.5)
| |
| 1925 | Humanoid.Health = Humanoid.Health - Damage | |
| 1926 | if Humanoid.Parent:FindFirstChild("Head") then
| |
| 1927 | StatLabel("Normal", Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), Damage, C3(0, 0, 0))
| |
| 1928 | end | |
| 1929 | end | |
| 1930 | ||
| 1931 | ||
| 1932 | --//=================================\\ | |
| 1933 | --|| ATTACK FUNCTIONS AND STUFF | |
| 1934 | --\\=================================// | |
| 1935 | ||
| 1936 | function Oblivion() | |
| 1937 | ATTACK = true | |
| 1938 | Rooted = true | |
| 1939 | for i=0, 2, 0.1 / Animation_Speed do | |
| 1940 | Swait() | |
| 1941 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1942 | 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) | |
| 1943 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1944 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(65)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1945 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1946 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1947 | end | |
| 1948 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 1949 | Swait() | |
| 1950 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1951 | 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.5 / Animation_Speed) | |
| 1952 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75,0) * ANGLES(RAD(0), RAD(0), RAD(85)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1953 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1954 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(-15)), 0.5 / Animation_Speed) | |
| 1955 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(15)), 0.5 / Animation_Speed) | |
| 1956 | end | |
| 1957 | for i = 1, 75 do | |
| 1958 | Swait() | |
| 1959 | MagicSphere(VT(0.5,0.5,5),50,CF(Torso.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,Torso.Position),"Really red",VT(-0.005,-0.005,0.03),0) | |
| 1960 | end | |
| 1961 | CreateSound(LIGHTHITSOUNDS[MRANDOM(1,#LIGHTHITSOUNDS)], Torso, 10, 0.5) | |
| 1962 | CreateSound(LIGHTHITSOUNDS[MRANDOM(1,#LIGHTHITSOUNDS)], Torso, 10, 0.5) | |
| 1963 | AoEDamage(Torso.Position,45,45,58,0,false,2,2,false,true) | |
| 1964 | MagicSphere(VT(0,0,0),25,Torso.CFrame,"Really red",VT(5,5,5)) | |
| 1965 | MagicSphere(VT(0,0,0),50,Torso.CFrame,"Lime green",VT(2.5,2.5,2.5)) | |
| 1966 | MagicSphere(VT(0,0.2,0),30,Torso.CFrame*ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))),"Really black",VT(6,0,6)) | |
| 1967 | MagicSphere(VT(0,0.2,0),30,Torso.CFrame*ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))),"Pearl",VT(6,0,6)) | |
| 1968 | ATTACK = false | |
| 1969 | Rooted = false | |
| 1970 | end | |
| 1971 | ||
| 1972 | function kiss() | |
| 1973 | ATTACK = true | |
| 1974 | Rooted = false | |
| 1975 | local HASGRABBED = false | |
| 1976 | local GRABTARGET = nil | |
| 1977 | local TORS = nil | |
| 1978 | local WELD = nil | |
| 1979 | for i=0, 1, 0.1 / Animation_Speed do | |
| 1980 | Swait() | |
| 1981 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1982 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-17.5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1983 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1984 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1985 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1986 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1987 | end | |
| 1988 | local GRAB1 = RightArm.Touched:Connect(function(hit) | |
| 1989 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 1990 | if hit.Parent.Humanoid.Health ~= 0 then | |
| 1991 | UNANCHOR = false | |
| 1992 | RootPart.Anchored = true | |
| 1993 | TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
| |
| 1994 | TORS.CFrame = RootPart.CFrame * CF(0,0,-1.8) * ANGLES(RAD(0),RAD(180),RAD(0)) | |
| 1995 | WELD = weldBetween(RootPart,TORS) | |
| 1996 | HASGRABBED = true | |
| 1997 | Rooted = true | |
| 1998 | end | |
| 1999 | end | |
| 2000 | end) | |
| 2001 | local GRAB2 = LeftArm.Touched:Connect(function(hit) | |
| 2002 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 2003 | if hit.Parent.Humanoid.Health ~= 0 then | |
| 2004 | UNANCHOR = false | |
| 2005 | RootPart.Anchored = true | |
| 2006 | TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
| |
| 2007 | TORS.CFrame = RootPart.CFrame * CF(0,0,-1.8) * ANGLES(RAD(0),RAD(180),RAD(0)) | |
| 2008 | WELD = weldBetween(RootPart,TORS) | |
| 2009 | HASGRABBED = true | |
| 2010 | Rooted = true | |
| 2011 | end | |
| 2012 | end | |
| 2013 | end) | |
| 2014 | for i=0, 1, 0.1 / Animation_Speed do | |
| 2015 | Swait() | |
| 2016 | if HASGRABBED == true then | |
| 2017 | break | |
| 2018 | end | |
| 2019 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 2020 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-17.5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 2021 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 2022 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(35)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 2023 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 2024 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 2025 | end | |
| 2026 | GRAB1:disconnect() | |
| 2027 | GRAB2:disconnect() | |
| 2028 | if HASGRABBED == true then | |
| 2029 | TORS.Anchored = false | |
| 2030 | GRABTARGET = TORS.Parent | |
| 2031 | HED = GRABTARGET:FindFirstChild("Head")
| |
| 2032 | for i=0, 2, 0.1 / Animation_Speed do | |
| 2033 | Swait() | |
| 2034 | 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) | |
| 2035 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 2036 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 2037 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 2038 | 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.15 / Animation_Speed) | |
| 2039 | 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.15 / Animation_Speed) | |
| 2040 | end | |
| 2041 | local heart = CreatePart(1, HED, "SmoothPlastic", 0, 0, "Really red", "Heart", VT(1,1,1), false) | |
| 2042 | local msh = CreateMesh("SpecialMesh", heart, "FileMesh", "431221914", "", VT(0.3, 0.3, 0.3), VT(0,0,0))
| |
| 2043 | CreateWeldOrSnapOrMotor("Weld", HED, heart, HED,CF(0, -2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 2044 | local ECH = 0 | |
| 2045 | ||
| 2046 | for i=0, 8, 0.1 / Animation_Speed do | |
| 2047 | Swait() | |
| 2048 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 2049 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-17.5 - 2.5 * SIN(SINE / 12)), RAD(25 * SIN(SINE / 3)), RAD(0)), 0.5 / Animation_Speed) | |
| 2050 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 2051 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 2052 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 2053 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 2054 | end | |
| 2055 | WELD:remove() | |
| 2056 | end | |
| 2057 | UNANCHOR = true | |
| 2058 | ATTACK = false | |
| 2059 | Rooted = false | |
| 2060 | end | |
| 2061 | ||
| 2062 | function Kick() | |
| 2063 | ATTACK = true | |
| 2064 | Rooted = false | |
| 2065 | VALUE1 = true | |
| 2066 | NOWALK = true | |
| 2067 | if COMBO2 == 1 then | |
| 2068 | COMBO2 = 2 | |
| 2069 | CreateSound("199150686", Torso, 1, MRANDOM(11,13)/10)
| |
| 2070 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 2071 | Swait() | |
| 2072 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(45)), 2 / Animation_Speed) | |
| 2073 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-45)), 2 / Animation_Speed) | |
| 2074 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 2075 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
| 2076 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(90), RAD(0)) * ANGLES(RAD(-38), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 2077 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 2078 | end | |
| 2079 | elseif COMBO2 == 2 then | |
| 2080 | COMBO2 = 1 | |
| 2081 | CreateSound("199150686", Torso, 1, MRANDOM(11,13)/10)
| |
| 2082 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 2083 | Swait() | |
| 2084 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(-45)), 2 / Animation_Speed) | |
| 2085 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(45)), 2 / Animation_Speed) | |
| 2086 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 2087 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
| 2088 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 2089 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(-90), RAD(0)) * ANGLES(RAD(-38), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 2090 | end | |
| 2091 | end | |
| 2092 | NOWALK = false | |
| 2093 | VALUE1 = false | |
| 2094 | ATTACK = false | |
| 2095 | Rooted = false | |
| 2096 | end | |
| 2097 | ||
| 2098 | function StaggerHitAnimation() | |
| 2099 | ATTACK = true | |
| 2100 | if Weapon:FindFirstChild("Hitbox") ~= nil then
| |
| 2101 | for i = 1, MRANDOM(2, 4) do | |
| 2102 | ClangEffect("Bright yellow", "Neon", CF(Weapon:FindFirstChild("Hitbox").Position) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), 20, 5, 0.2, MRANDOM(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
| |
| 2103 | end | |
| 2104 | end | |
| 2105 | for i = 0, 1, 0.1 / Animation_Speed do | |
| 2106 | Swait() | |
| 2107 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-10), RAD(0), RAD(-30)), 0.3 / Animation_Speed) | |
| 2108 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(30)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
| 2109 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-30), RAD(0), RAD(60)) * ANGLES(RAD(0), RAD(-30), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) | |
| 2110 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-20)) * ANGLES(RAD(0), RAD(20), RAD(0)) * LEFTSHOULDERC0, 0.3 / Animation_Speed) | |
| 2111 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.9 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-20)), 0.3 / Animation_Speed) | |
| 2112 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1.1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(10)), 0.3 / Animation_Speed) | |
| 2113 | if Stagger.Value == true or Stun.Value == true then | |
| 2114 | break | |
| 2115 | end | |
| 2116 | end | |
| 2117 | ATTACK = false | |
| 2118 | end | |
| 2119 | ||
| 2120 | function Shot() | |
| 2121 | ATTACK = true | |
| 2122 | Rooted = false | |
| 2123 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 2124 | Swait() | |
| 2125 | turnto(Mouse.Hit.p) | |
| 2126 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 2127 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(15), RAD(0)), 0.5 / Animation_Speed) | |
| 2128 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(83), RAD(30), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 2129 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0.5) * ANGLES(RAD(83), RAD(-30), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 2130 | 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.5 / Animation_Speed) | |
| 2131 | 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.5 / Animation_Speed) | |
| 2132 | end | |
| 2133 | repeat | |
| 2134 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 2135 | Swait() | |
| 2136 | turnto(Mouse.Hit.p) | |
| 2137 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 2138 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(15), RAD(0)), 0.5 / Animation_Speed) | |
| 2139 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(83), RAD(30), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 2140 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0.5) * ANGLES(RAD(83), RAD(-30), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 2141 | 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.5 / Animation_Speed) | |
| 2142 | 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.5 / Animation_Speed) | |
| 2143 | end | |
| 2144 | local HIT,POS = CastProperRay(Hole2.Position, Mouse.Hit.p, 1000, Character) | |
| 2145 | SpawnTrail(Hole2.Position,POS) | |
| 2146 | if HIT ~= nil then | |
| 2147 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
| 2148 | Banish(HIT.Parent) | |
| 2149 | end | |
| 2150 | end | |
| 2151 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
| 2152 | SpawnTrail(Hole.Position,POS) | |
| 2153 | if HIT ~= nil then | |
| 2154 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
| 2155 | Banish(HIT.Parent) | |
| 2156 | end | |
| 2157 | end | |
| 2158 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = Hole2.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 2159 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
| |
| 2160 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
| |
| 2161 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
| |
| 2162 | CreateSound("159882477", Head, 6, 1)
| |
| 2163 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 2164 | Swait() | |
| 2165 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 2166 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(15), RAD(0)), 0.5 / Animation_Speed) | |
| 2167 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 2168 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 2169 | 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.5 / Animation_Speed) | |
| 2170 | 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.5 / Animation_Speed) | |
| 2171 | end | |
| 2172 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), 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,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 2173 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
| |
| 2174 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), 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,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
| |
| 2175 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), 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,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
| |
| 2176 | until KEYHOLD == false | |
| 2177 | ATTACK = false | |
| 2178 | Rooted = false | |
| 2179 | end | |
| 2180 | ||
| 2181 | function Punch() | |
| 2182 | ATTACK = true | |
| 2183 | Rooted = false | |
| 2184 | for i=0, 0.2, 0.1 / Animation_Speed do | |
| 2185 | Swait() | |
| 2186 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2187 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2188 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0+ 0.15 * COS(SINE / 12), -0.2) * ANGLES(RAD(150), RAD(35), RAD(-5)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 2189 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0 + 0.15 * COS(SINE / 12), -0.2) * ANGLES(RAD(130), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 2190 | 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)), 1 / Animation_Speed) | |
| 2191 | 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)), 1 / Animation_Speed) | |
| 2192 | end | |
| 2193 | VALUE1 = true | |
| 2194 | if COMBO == 1 then | |
| 2195 | COMBO = 2 | |
| 2196 | CreateSound("199150686", Torso, 1, MRANDOM(11,13)/10)
| |
| 2197 | for i=0, 0.3, 0.1 / Animation_Speed do | |
| 2198 | Swait() | |
| 2199 | RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.1) | |
| 2200 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 2 / Animation_Speed) | |
| 2201 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(65)), 2 / Animation_Speed) | |
| 2202 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 2203 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(25)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
| 2204 | 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)), 2 / Animation_Speed) | |
| 2205 | 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)), 2 / Animation_Speed) | |
| 2206 | end | |
| 2207 | elseif COMBO == 2 then | |
| 2208 | COMBO = 1 | |
| 2209 | CreateSound("199150686", Torso, 1, MRANDOM(11,13)/10)
| |
| 2210 | for i=0, 0.3, 0.1 / Animation_Speed do | |
| 2211 | Swait() | |
| 2212 | RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.1) | |
| 2213 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(85)), 2 / Animation_Speed) | |
| 2214 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-80)), 2 / Animation_Speed) | |
| 2215 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 2216 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
| 2217 | 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)), 2 / Animation_Speed) | |
| 2218 | 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)), 2 / Animation_Speed) | |
| 2219 | end | |
| 2220 | end | |
| 2221 | VALUE1 = false | |
| 2222 | ATTACK = false | |
| 2223 | Rooted = false | |
| 2224 | end | |
| 2225 | ||
| 2226 | function AttackTemplate() | |
| 2227 | ATTACK = true | |
| 2228 | Rooted = false | |
| 2229 | for i=0, 1, 0.1 / Animation_Speed do | |
| 2230 | Swait() | |
| 2231 | 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) | |
| 2232 | 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) | |
| 2233 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 2234 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 2235 | 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.15 / Animation_Speed) | |
| 2236 | 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.15 / Animation_Speed) | |
| 2237 | end | |
| 2238 | ATTACK = false | |
| 2239 | Rooted = false | |
| 2240 | end | |
| 2241 | ||
| 2242 | function Nuke() | |
| 2243 | ATTACK = true | |
| 2244 | Rooted = true | |
| 2245 | local CHARGE = false | |
| 2246 | local BLASTS = {468991944, 468991990}
| |
| 2247 | coroutine.resume(coroutine.create(function() | |
| 2248 | repeat | |
| 2249 | Swait() | |
| 2250 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(-45)), 2 / Animation_Speed) | |
| 2251 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(45)), 2 / Animation_Speed) | |
| 2252 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 2253 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
| 2254 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 2255 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(-90), RAD(0)) * ANGLES(RAD(-38), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 2256 | until CHARGE == true | |
| 2257 | for i = 0, 0.4, 0.1 / Animation_Speed do | |
| 2258 | Swait() | |
| 2259 | WACKYEFFECT({
| |
| 2260 | Time = 15, | |
| 2261 | EffectType = "Sphere", | |
| 2262 | Size = VT(60, 60, 60), | |
| 2263 | Size2 = VT(0, 0, 0), | |
| 2264 | Transparency = 1, | |
| 2265 | Transparency2 = 0.7, | |
| 2266 | CFrame = CF(RootPart.Position), | |
| 2267 | MoveToPos = nil, | |
| 2268 | RotationX = 0, | |
| 2269 | RotationY = 0, | |
| 2270 | RotationZ = 0, | |
| 2271 | Material = "Neon", | |
| 2272 | Color = C3(0, 0, 0), | |
| 2273 | SoundID = nil, | |
| 2274 | SoundPitch = nil, | |
| 2275 | SoundVolume = nil | |
| 2276 | }) | |
| 2277 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(45)), 2 / Animation_Speed) | |
| 2278 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-45)), 2 / Animation_Speed) | |
| 2279 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 2280 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
| 2281 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(90), RAD(0)) * ANGLES(RAD(-38), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 2282 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 2283 | end | |
| 2284 | coroutine.resume(coroutine.create(function() | |
| 2285 | local POS = RootPart.Position | |
| 2286 | wait(0.2) | |
| 2287 | for i = 1, 5 do | |
| 2288 | WACKYEFFECT({
| |
| 2289 | Time = 65, | |
| 2290 | EffectType = "Sphere", | |
| 2291 | Size = VT(2, 2, 2), | |
| 2292 | Size2 = VT(0, 0, 500), | |
| 2293 | Transparency = 1, | |
| 2294 | Transparency2 = 0, | |
| 2295 | CFrame = CF(POS), | |
| 2296 | MoveToPos = nil, | |
| 2297 | RotationX = MRANDOM(-2, 2), | |
| 2298 | RotationY = MRANDOM(-12, 12), | |
| 2299 | RotationZ = MRANDOM(-2, 2), | |
| 2300 | Material = "Neon", | |
| 2301 | Color = C3(1, 0, 0), | |
| 2302 | SoundID = nil, | |
| 2303 | SoundPitch = nil, | |
| 2304 | SoundVolume = nil | |
| 2305 | }) | |
| 2306 | end | |
| 2307 | wait(1) | |
| 2308 | SHAKECAM(POS, 9999999999, 25, 25) | |
| 2309 | ApplyAoE(POS, 450, true) | |
| 2310 | WACKYEFFECT({
| |
| 2311 | Time = 85, | |
| 2312 | EffectType = "Sphere", | |
| 2313 | Size = VT(120, 120, 120), | |
| 2314 | Size2 = VT(350, 350, 350), | |
| 2315 | Transparency = 0, | |
| 2316 | Transparency2 = 1, | |
| 2317 | CFrame = CF(POS), | |
| 2318 | MoveToPos = nil, | |
| 2319 | RotationX = 0, | |
| 2320 | RotationY = 0, | |
| 2321 | RotationZ = 0, | |
| 2322 | Material = "Neon", | |
| 2323 | Color = C3(1, 1, 1), | |
| 2324 | SoundID = nil, | |
| 2325 | SoundPitch = 1, | |
| 2326 | SoundVolume = 10 | |
| 2327 | }) | |
| 2328 | for i = 1, 20 do | |
| 2329 | WACKYEFFECT({
| |
| 2330 | Time = 85, | |
| 2331 | EffectType = "Sphere", | |
| 2332 | Size = VT(120, 120, 120), | |
| 2333 | Size2 = VT(120, 120, 144) + VT(i * 3, i * 3, i * 3), | |
| 2334 | Transparency = 0.8, | |
| 2335 | Transparency2 = 1, | |
| 2336 | CFrame = CF(POS), | |
| 2337 | MoveToPos = nil, | |
| 2338 | RotationX = 0, | |
| 2339 | RotationY = 0, | |
| 2340 | RotationZ = 0, | |
| 2341 | Material = "Neon", | |
| 2342 | Color = C3(0, 1, 0), | |
| 2343 | SoundID = nil, | |
| 2344 | SoundPitch = 1, | |
| 2345 | SoundVolume = 10 | |
| 2346 | }) | |
| 2347 | WACKYEFFECT({
| |
| 2348 | Time = 100, | |
| 2349 | EffectType = "Wave", | |
| 2350 | Size = VT(25, 2, 25), | |
| 2351 | Size2 = VT(400, 0, 400) * 1.2, | |
| 2352 | Transparency = 0, | |
| 2353 | Transparency2 = 1, | |
| 2354 | CFrame = CF(POS) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), | |
| 2355 | MoveToPos = nil, | |
| 2356 | RotationX = 0, | |
| 2357 | RotationY = 0, | |
| 2358 | RotationZ = 0, | |
| 2359 | Material = "Neon", | |
| 2360 | Color = C3(0, 0, 0), | |
| 2361 | SoundID = nil, | |
| 2362 | SoundPitch = nil, | |
| 2363 | SoundVolume = nil | |
| 2364 | }) | |
| 2365 | end | |
| 2366 | local HITFLOOR, HITPOS = Raycast(POS, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 150, Character) | |
| 2367 | for i = 1, 5 do | |
| 2368 | CreateSound(438666077, Effects, 15, 1 - i / 15, false) | |
| 2369 | WACKYEFFECT({
| |
| 2370 | Time = 120, | |
| 2371 | EffectType = "Wave", | |
| 2372 | Size = VT(150, 2, 150), | |
| 2373 | Size2 = VT(300 + i * 170, 0, 300 + i * 170) * 1.2, | |
| 2374 | Transparency = 0, | |
| 2375 | Transparency2 = 1, | |
| 2376 | CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)), | |
| 2377 | MoveToPos = nil, | |
| 2378 | RotationX = 0, | |
| 2379 | RotationY = 0, | |
| 2380 | RotationZ = 0, | |
| 2381 | Material = "Neon", | |
| 2382 | Color = C3(1, 0, 0), | |
| 2383 | SoundID = nil, | |
| 2384 | SoundPitch = nil, | |
| 2385 | SoundVolume = nil | |
| 2386 | }) | |
| 2387 | end | |
| 2388 | end)) | |
| 2389 | for i = 0, 1, 0.1 / Animation_Speed do | |
| 2390 | Swait() | |
| 2391 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2392 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2393 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0+ 0.15 * COS(SINE / 12), -0.2) * ANGLES(RAD(150), RAD(35), RAD(-5)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 2394 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0 + 0.15 * COS(SINE / 12), -0.2) * ANGLES(RAD(130), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 2395 | 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)), 1 / Animation_Speed) | |
| 2396 | 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)), 1 / Animation_Speed) | |
| 2397 | end | |
| 2398 | ATTACK = false | |
| 2399 | Rooted = false | |
| 2400 | end)) | |
| 2401 | for i = 1, 30 do | |
| 2402 | wait(0.01) | |
| 2403 | local POS = CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * CF(0, 0, MRANDOM(10, 150)) | |
| 2404 | local HITFLOOR, HITPOS = Raycast(POS.p, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 150, Character) | |
| 2405 | if HITFLOOR then | |
| 2406 | ApplyAoE(HITPOS, 65, true) | |
| 2407 | local TURN = ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * ANGLES(RAD(MRANDOM(0, 25)), RAD(0), RAD(0)) | |
| 2408 | WACKYEFFECT({
| |
| 2409 | Time = 25, | |
| 2410 | EffectType = "Sphere", | |
| 2411 | Size = VT(22, 22, 22), | |
| 2412 | Size2 = VT(85, 85, 85), | |
| 2413 | Transparency = 0, | |
| 2414 | Transparency2 = 1, | |
| 2415 | CFrame = CF(HITPOS), | |
| 2416 | MoveToPos = nil, | |
| 2417 | RotationX = 0, | |
| 2418 | RotationY = 0, | |
| 2419 | RotationZ = 0, | |
| 2420 | Material = "Neon", | |
| 2421 | Color = C3(0, 0, 0), | |
| 2422 | SoundID = BLASTS[MRANDOM(1, #BLASTS)], | |
| 2423 | SoundPitch = MRANDOM(9, 12) / 10, | |
| 2424 | SoundVolume = 10 | |
| 2425 | }) | |
| 2426 | for e = 1, 3 do | |
| 2427 | WACKYEFFECT({
| |
| 2428 | EffectType = "Wave", | |
| 2429 | Size = VT(25, 0, 25), | |
| 2430 | Size2 = VT(40, 0, 40) + VT(e * 6, e / 5, e * 6), | |
| 2431 | Transparency = 0, | |
| 2432 | Transparency2 = 1, | |
| 2433 | CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(72 * i), RAD(0)), | |
| 2434 | MoveToPos = nil, | |
| 2435 | RotationX = 0, | |
| 2436 | RotationY = 3, | |
| 2437 | RotationZ = 0, | |
| 2438 | Material = "Neon", | |
| 2439 | Color = C3(0, 1, 0), | |
| 2440 | SoundID = nil, | |
| 2441 | SoundPitch = nil, | |
| 2442 | SoundVolume = nil | |
| 2443 | }) | |
| 2444 | WACKYEFFECT({
| |
| 2445 | Time = 35, | |
| 2446 | EffectType = "Sphere", | |
| 2447 | Size = VT(22, 45, 22), | |
| 2448 | Size2 = VT(25, 45 + e * 75, 25), | |
| 2449 | Transparency = 0, | |
| 2450 | Transparency2 = 1, | |
| 2451 | CFrame = CF(HITPOS) * TURN, | |
| 2452 | MoveToPos = nil, | |
| 2453 | RotationX = 0, | |
| 2454 | RotationY = 0, | |
| 2455 | RotationZ = 0, | |
| 2456 | Material = "Neon", | |
| 2457 | Color = C3(1, 1, 1), | |
| 2458 | SoundID = nil, | |
| 2459 | SoundPitch = MRANDOM(9, 12) / 10, | |
| 2460 | SoundVolume = 10 | |
| 2461 | }) | |
| 2462 | end | |
| 2463 | end | |
| 2464 | end | |
| 2465 | CHARGE = true | |
| 2466 | end | |
| 2467 | ||
| 2468 | function Taunt() | |
| 2469 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 1, false) | |
| 2470 | ATTACK = true | |
| 2471 | Rooted = true | |
| 2472 | for i=0, 0.3, 0.1 / Animation_Speed do | |
| 2473 | Swait() | |
| 2474 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2475 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2476 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2477 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-180)) * ANGLES(RAD(0), RAD(-45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2478 | if HITFLOOR then | |
| 2479 | 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)), 2 / Animation_Speed) | |
| 2480 | 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)), 2 / Animation_Speed) | |
| 2481 | elseif HITFLOOR == nil then | |
| 2482 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed) | |
| 2483 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed) | |
| 2484 | end | |
| 2485 | end | |
| 2486 | for i = 1, 8 do | |
| 2487 | for i=0, 0.2, 0.1 / Animation_Speed do | |
| 2488 | Swait() | |
| 2489 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2490 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2491 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.15, 0) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2492 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-180)) * ANGLES(RAD(0), RAD(-45), RAD(0)) * LEFTSHOULDERC0, 0.7 / Animation_Speed) | |
| 2493 | if HITFLOOR then | |
| 2494 | 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)), 2 / Animation_Speed) | |
| 2495 | 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)), 2 / Animation_Speed) | |
| 2496 | elseif HITFLOOR == nil then | |
| 2497 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed) | |
| 2498 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed) | |
| 2499 | end | |
| 2500 | end | |
| 2501 | CreateSound(FireSound, Gun1, 5, 1, false) | |
| 2502 | for i=0, 0.2, 0.1 / Animation_Speed do | |
| 2503 | Swait() | |
| 2504 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2505 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2506 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.7 / Animation_Speed) | |
| 2507 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, 0) * ANGLES(RAD(0), RAD(0), RAD(-180)) * ANGLES(RAD(0), RAD(-45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2508 | if HITFLOOR then | |
| 2509 | 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)), 2 / Animation_Speed) | |
| 2510 | 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)), 2 / Animation_Speed) | |
| 2511 | elseif HITFLOOR == nil then | |
| 2512 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed) | |
| 2513 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed) | |
| 2514 | end | |
| 2515 | end | |
| 2516 | CreateSound(FireSound, Gun2, 5, 1, false) | |
| 2517 | end | |
| 2518 | ATTACK = false | |
| 2519 | Rooted = false | |
| 2520 | end | |
| 2521 | --//=================================\\ | |
| 2522 | --|| ASSIGN THINGS TO KEYS | |
| 2523 | --\\=================================// | |
| 2524 | ||
| 2525 | function MouseDown(Mouse) | |
| 2526 | if ATTACK == false then | |
| 2527 | end | |
| 2528 | end | |
| 2529 | ||
| 2530 | function MouseUp(Mouse) | |
| 2531 | HOLD = falseW | |
| 2532 | end | |
| 2533 | ||
| 2534 | function KeyDown(Key) | |
| 2535 | KEYHOLD = true | |
| 2536 | if Key == "z" and ATTACK == false then | |
| 2537 | Shot() | |
| 2538 | end | |
| 2539 | ||
| 2540 | if Key == "b" and ATTACK == false then | |
| 2541 | Kick() | |
| 2542 | end | |
| 2543 | ||
| 2544 | if Key == "n" and ATTACK == false then | |
| 2545 | Punch() | |
| 2546 | end | |
| 2547 | ||
| 2548 | if Key == "t" and ATTACK == false then | |
| 2549 | Taunt() | |
| 2550 | end | |
| 2551 | ||
| 2552 | if Key == "c" and ATTACK == false then | |
| 2553 | kiss() | |
| 2554 | end | |
| 2555 | ||
| 2556 | if Key == "v" and ATTACK == false then | |
| 2557 | Oblivion() | |
| 2558 | end | |
| 2559 | ||
| 2560 | if Key == "x" and ATTACK == false then | |
| 2561 | Nuke() | |
| 2562 | end | |
| 2563 | end | |
| 2564 | ||
| 2565 | function KeyUp(Key) | |
| 2566 | KEYHOLD = false | |
| 2567 | end | |
| 2568 | ||
| 2569 | Mouse.Button1Down:connect(function(NEWKEY) | |
| 2570 | MouseDown(NEWKEY) | |
| 2571 | end) | |
| 2572 | Mouse.Button1Up:connect(function(NEWKEY) | |
| 2573 | MouseUp(NEWKEY) | |
| 2574 | end) | |
| 2575 | Mouse.KeyDown:connect(function(NEWKEY) | |
| 2576 | KeyDown(NEWKEY) | |
| 2577 | end) | |
| 2578 | Mouse.KeyUp:connect(function(NEWKEY) | |
| 2579 | KeyUp(NEWKEY) | |
| 2580 | end) | |
| 2581 | ||
| 2582 | --//=================================\\ | |
| 2583 | --\\=================================// | |
| 2584 | ||
| 2585 | ||
| 2586 | function unanchor() | |
| 2587 | if UNANCHOR == true then | |
| 2588 | g = Character:GetChildren() | |
| 2589 | for i = 1, #g do | |
| 2590 | if g[i].ClassName == "Part" then | |
| 2591 | g[i].Anchored = false | |
| 2592 | end | |
| 2593 | end | |
| 2594 | end | |
| 2595 | end | |
| 2596 | ||
| 2597 | ||
| 2598 | --//=================================\\ | |
| 2599 | --|| WRAP THE WHOLE SCRIPT UP | |
| 2600 | --\\=================================// | |
| 2601 | ||
| 2602 | Humanoid.Changed:connect(function(Jump) | |
| 2603 | if Jump == "Jump" and (Disable_Jump == true) then | |
| 2604 | Humanoid.Jump = false | |
| 2605 | end | |
| 2606 | end) | |
| 2607 | ||
| 2608 | local CONNECT = nil | |
| 2609 | ||
| 2610 | while true do | |
| 2611 | Swait() | |
| 2612 | ANIMATE.Parent = nil | |
| 2613 | if Character:FindFirstChildOfClass("Humanoid") == nil then
| |
| 2614 | Humanoid = IT("Humanoid",Character)
| |
| 2615 | end | |
| 2616 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
| 2617 | v:Stop(); | |
| 2618 | end | |
| 2619 | SINE = SINE + CHANGE | |
| 2620 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
| 2621 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
| 2622 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
| 2623 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
| 2624 | if ANIM == "Walk" and TORSOVELOCITY > 1 and NOWALK == false then | |
| 2625 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 2626 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * 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) | |
| 2627 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * 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) | |
| 2628 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * 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) | |
| 2629 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or NOWALK == true then | |
| 2630 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2631 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2632 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2633 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2634 | end | |
| 2635 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
| 2636 | ANIM = "Jump" | |
| 2637 | if ATTACK == false then | |
| 2638 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2639 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2640 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 2641 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 2642 | 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) | |
| 2643 | 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) | |
| 2644 | end | |
| 2645 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
| 2646 | ANIM = "Fall" | |
| 2647 | if ATTACK == false then | |
| 2648 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2649 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2650 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 2651 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 2652 | 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) | |
| 2653 | 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) | |
| 2654 | end | |
| 2655 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
| 2656 | ANIM = "Idle" | |
| 2657 | if ATTACK == false then | |
| 2658 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.15 / Animation_Speed) | |
| 2659 | 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) | |
| 2660 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0+ 0.15 * COS(SINE / 12), -0.2) * ANGLES(RAD(150), RAD(35), RAD(-5)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 2661 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0 + 0.15 * COS(SINE / 12), -0.2) * ANGLES(RAD(130), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 2662 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 2663 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-76), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 2664 | end | |
| 2665 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
| 2666 | ANIM = "Walk" | |
| 2667 | if ATTACK == false then | |
| 2668 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(5), RAD(0), RAD(25)), 0.15 / Animation_Speed) | |
| 2669 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.15 / Animation_Speed) | |
| 2670 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0+ 0.15 * COS(SINE / 12), -0.2) * ANGLES(RAD(150), RAD(35), RAD(-5)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 2671 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0 + 0.15 * COS(SINE / 12), -0.2) * ANGLES(RAD(130), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 2672 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
| 2673 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.5+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-115), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
| 2674 | end | |
| 2675 | end | |
| 2676 | unanchor() | |
| 2677 | Humanoid.MaxHealth = "inf" | |
| 2678 | Humanoid.Health = "inf" | |
| 2679 | if Rooted == false then | |
| 2680 | Disable_Jump = false | |
| 2681 | Humanoid.WalkSpeed = Speed | |
| 2682 | elseif Rooted == true then | |
| 2683 | Disable_Jump = true | |
| 2684 | Humanoid.WalkSpeed = 0 | |
| 2685 | end | |
| 2686 | ||
| 2687 | sick.Parent = Torso | |
| 2688 | sick:resume() | |
| 2689 | sick.Volume = 1 | |
| 2690 | sick.Pitch = 1 | |
| 2691 | sick.SoundId = "rbxassetid://733456981" | |
| 2692 | sick.Name = "Un sen" | |
| 2693 | end | |
| 2694 | --//=================================\\ | |
| 2695 | --\\=================================// | |
| 2696 | ||
| 2697 | ||
| 2698 | --//====================================================\\-- | |
| 2699 | --|| END OF SCRIPT | |
| 2700 | --\\====================================================//-- |