SHOW:
|
|
- or go back to the newest paste.
| 1 | - | local plr = game.Players.Darxiuss |
| 1 | + | local plr = game.Players.localPlayer |
| 2 | local Player = plr.Character | |
| 3 | local Mouse = plr:GetMouse() | |
| 4 | local hum = Player.Humanoid | |
| 5 | local rarm = Player["Right Arm"] | |
| 6 | local larm= Player["Left Arm"] | |
| 7 | local rleg= Player["Right Leg"] | |
| 8 | local lleg = Player["Left Leg"] | |
| 9 | local root = Player.HumanoidRootPart | |
| 10 | local tors = Player.Torso | |
| 11 | local head = Player.Head | |
| 12 | local shirtid = 765769814 | |
| 13 | local pantsid = 781482072 | |
| 14 | ||
| 15 | local punching = false | |
| 16 | local skinCol = "Lavender" | |
| 17 | local damaged = {}
| |
| 18 | local t = tick() | |
| 19 | local faceid = 342828206 | |
| 20 | local auras = {}
| |
| 21 | local idle = true | |
| 22 | local kiBlasting = false | |
| 23 | local pwr10 = true | |
| 24 | local bv = nil | |
| 25 | local flying = false | |
| 26 | local pwr40 = false | |
| 27 | local pwr80 = false | |
| 28 | local pwr100 = false | |
| 29 | local ascendcooldown = false | |
| 30 | local descendcooldown = false | |
| 31 | local leftArmdamaging = false | |
| 32 | local rightArmdamaging = false | |
| 33 | local punching = false | |
| 34 | local action = "" | |
| 35 | local mouseDownF = false | |
| 36 | local punchDamage = 15 | |
| 37 | local KiDamage = 30 | |
| 38 | local armKi = "Right" | |
| 39 | Player:WaitForChild("Health"):Remove()
| |
| 40 | local Render = game:GetService("RunService").RenderStepped
| |
| 41 | game.Chat:Chat(Player, "Pathetic beings.. I guess its time to teach them a lesson.", "White") | |
| 42 | for i,s in pairs(Player:GetChildren()) do | |
| 43 | if s:IsA("Hat") or s:IsA("Accessory") or s:IsA("Accoutrement") or s:IsA("CharacterMesh") then
| |
| 44 | s:Destroy() | |
| 45 | end | |
| 46 | end | |
| 47 | ||
| 48 | local bd = Player:FindFirstChild("Body Colors")
| |
| 49 | if bd then | |
| 50 | bd.HeadColor = BrickColor.new(skinCol) | |
| 51 | bd.TorsoColor = BrickColor.new(skinCol) | |
| 52 | bd.LeftLegColor = BrickColor.new(skinCol) | |
| 53 | bd.RightLegColor = BrickColor.new(skinCol) | |
| 54 | bd.LeftArmColor = BrickColor.new(skinCol) | |
| 55 | bd.RightArmColor = BrickColor.new(skinCol) | |
| 56 | else | |
| 57 | bd = Instance.new("BodyColors", Player)
| |
| 58 | bd.HeadColor = BrickColor.new(skinCol) | |
| 59 | bd.TorsoColor = BrickColor.new(skinCol) | |
| 60 | bd.LeftLegColor = BrickColor.new(skinCol) | |
| 61 | bd.RightLegColor = BrickColor.new(skinCol) | |
| 62 | bd.LeftArmColor = BrickColor.new(skinCol) | |
| 63 | bd.RightArmColor = BrickColor.new(skinCol) | |
| 64 | end | |
| 65 | ||
| 66 | shirt = Player:FindFirstChild("Shirt")
| |
| 67 | if shirt then | |
| 68 | shirt.ShirtTemplate = "rbxassetid://".. shirtid .."" | |
| 69 | else | |
| 70 | shirt = Instance.new("Shirt", Player)
| |
| 71 | shirt.ShirtTemplate = "rbxassetid://".. shirtid .."" | |
| 72 | end | |
| 73 | ||
| 74 | ||
| 75 | pants = Player:FindFirstChild("Pants")
| |
| 76 | if pants then | |
| 77 | pants.PantsTemplate = "rbxassetid://".. pantsid .."" | |
| 78 | else | |
| 79 | pants = Instance.new("Pants", Player)
| |
| 80 | pants. PantsTemplate = "rbxassetid://".. pantsid .."" | |
| 81 | end | |
| 82 | face = head:FindFirstChild("face")
| |
| 83 | if face then | |
| 84 | face.Texture = "rbxassetid://".. faceid .."" | |
| 85 | else | |
| 86 | face = Instance.new("Decal", head)
| |
| 87 | face.Name = "face" | |
| 88 | face.Texture = "rbxassetid://".. faceid .."" | |
| 89 | end | |
| 90 | function aura() | |
| 91 | local aura = Instance.new("ParticleEmitter", root)
| |
| 92 | aura.Texture = "rbxassetid://445231746" | |
| 93 | aura.Color = ColorSequence.new(Color3.fromRGB(69, 0, 220)) | |
| 94 | aura.Size = NumberSequence.new(0,1) | |
| 95 | aura.Transparency = NumberSequence.new(0,1) | |
| 96 | aura.LockedToPart = true | |
| 97 | aura.LightEmission = 1 | |
| 98 | aura.LightInfluence = 1 | |
| 99 | aura.ZOffset = -1 | |
| 100 | aura.Lifetime = NumberRange.new(0.4) | |
| 101 | aura.Rate = 200 | |
| 102 | aura.Speed = NumberRange.new(2) | |
| 103 | aura.SpreadAngle = Vector2.new(0,0) | |
| 104 | aura.Enabled = true | |
| 105 | table.insert(auras, aura) | |
| 106 | aurah = aura:Clone() | |
| 107 | aurah.Parent = head | |
| 108 | table.insert(auras, aurah) | |
| 109 | auralarm = aura:Clone() | |
| 110 | auralarm.Parent = larm | |
| 111 | table.insert(auras, auralarm) | |
| 112 | aurararm = aura:Clone() | |
| 113 | aurararm.Parent = rarm | |
| 114 | table.insert(auras, aurararm) | |
| 115 | auralleg = aura:Clone() | |
| 116 | auralleg.Parent = lleg | |
| 117 | table.insert(auras, auralleg) | |
| 118 | aurarleg = aura:Clone() | |
| 119 | aurarleg.Parent = rleg | |
| 120 | table.insert(auras, aurarleg) | |
| 121 | end | |
| 122 | ||
| 123 | ||
| 124 | ||
| 125 | function aura40() | |
| 126 | local aura = Instance.new("ParticleEmitter", root)
| |
| 127 | aura.Texture = "rbxassetid://445231746" | |
| 128 | aura.Color = ColorSequence.new(Color3.fromRGB(137, 0, 217)) | |
| 129 | aura.Size = NumberSequence.new(0,1) | |
| 130 | aura.Transparency = NumberSequence.new(0,1) | |
| 131 | aura.LockedToPart = true | |
| 132 | aura.LightEmission = 1 | |
| 133 | aura.LightInfluence = 1 | |
| 134 | aura.ZOffset = -1 | |
| 135 | aura.Lifetime = NumberRange.new(0.4) | |
| 136 | aura.Rate = 200 | |
| 137 | aura.Speed = NumberRange.new(2) | |
| 138 | aura.SpreadAngle = Vector2.new(0,0) | |
| 139 | aura.Enabled = true | |
| 140 | table.insert(auras, aura) | |
| 141 | aurah = aura:Clone() | |
| 142 | aurah.Parent = head | |
| 143 | table.insert(auras, aurah) | |
| 144 | auralarm = aura:Clone() | |
| 145 | auralarm.Parent = larm | |
| 146 | table.insert(auras, auralarm) | |
| 147 | aurararm = aura:Clone() | |
| 148 | aurararm.Parent = rarm | |
| 149 | table.insert(auras, aurararm) | |
| 150 | auralleg = aura:Clone() | |
| 151 | auralleg.Parent = lleg | |
| 152 | table.insert(auras, auralleg) | |
| 153 | aurarleg = aura:Clone() | |
| 154 | aurarleg.Parent = rleg | |
| 155 | table.insert(auras, aurarleg) | |
| 156 | ||
| 157 | local aura2 = Instance.new("ParticleEmitter", root)
| |
| 158 | aura2.Texture = "rbxassetid://445231746" | |
| 159 | aura2.Color = ColorSequence.new(Color3.fromRGB(0, 0, 0)) | |
| 160 | aura2.Size = NumberSequence.new(0,1) | |
| 161 | aura2.Transparency = NumberSequence.new(0,1) | |
| 162 | aura2.LockedToPart = true | |
| 163 | aura2.LightEmission = 0 | |
| 164 | aura2.LightInfluence = 0 | |
| 165 | aura2.ZOffset = -1.1 | |
| 166 | aura2.Lifetime = NumberRange.new(0.4) | |
| 167 | aura2.Rate = 100000 | |
| 168 | aura2.Speed = NumberRange.new(2) | |
| 169 | aura2.SpreadAngle = Vector2.new(0,0) | |
| 170 | aura2.Enabled = true | |
| 171 | table.insert(auras, aura2) | |
| 172 | aurah2 = aura2:Clone() | |
| 173 | aurah2.Parent = head | |
| 174 | table.insert(auras, aurah2) | |
| 175 | auralarm2 = aura2:Clone() | |
| 176 | auralarm2.Parent = larm | |
| 177 | table.insert(auras, auralarm2) | |
| 178 | aurararm2 = aura2:Clone() | |
| 179 | aurararm2.Parent = rarm | |
| 180 | table.insert(auras, aurararm2) | |
| 181 | auralleg2 = aura2:Clone() | |
| 182 | auralleg2.Parent = lleg | |
| 183 | table.insert(auras, auralleg2) | |
| 184 | aurarleg2 = aura2:Clone() | |
| 185 | aurarleg2.Parent = rleg | |
| 186 | table.insert(auras, aurarleg2) | |
| 187 | end | |
| 188 | ||
| 189 | function aura80() | |
| 190 | local aura = Instance.new("ParticleEmitter", root)
| |
| 191 | aura.Texture = "rbxassetid://445231746" | |
| 192 | aura.Color = ColorSequence.new(Color3.fromRGB(137, 0, 217)) | |
| 193 | aura.Size = NumberSequence.new(0,1) | |
| 194 | aura.Transparency = NumberSequence.new(0,1) | |
| 195 | aura.LockedToPart = true | |
| 196 | aura.LightEmission = 1 | |
| 197 | aura.LightInfluence = 1 | |
| 198 | aura.ZOffset = -1 | |
| 199 | aura.Lifetime = NumberRange.new(0.4) | |
| 200 | aura.Rate = 100000 | |
| 201 | aura.Speed = NumberRange.new(2) | |
| 202 | aura.SpreadAngle = Vector2.new(0,0) | |
| 203 | aura.Enabled = true | |
| 204 | table.insert(auras, aura) | |
| 205 | aurah = aura:Clone() | |
| 206 | aurah.Parent = head | |
| 207 | table.insert(auras, aurah) | |
| 208 | auralarm = aura:Clone() | |
| 209 | auralarm.Parent = larm | |
| 210 | table.insert(auras, auralarm) | |
| 211 | aurararm = aura:Clone() | |
| 212 | aurararm.Parent = rarm | |
| 213 | table.insert(auras, aurararm) | |
| 214 | auralleg = aura:Clone() | |
| 215 | auralleg.Parent = lleg | |
| 216 | table.insert(auras, auralleg) | |
| 217 | aurarleg = aura:Clone() | |
| 218 | aurarleg.Parent = rleg | |
| 219 | table.insert(auras, aurarleg) | |
| 220 | ||
| 221 | local aura2 = Instance.new("ParticleEmitter", root)
| |
| 222 | aura2.Texture = "rbxassetid://445231746" | |
| 223 | aura2.Color = ColorSequence.new(Color3.fromRGB(0, 0, 0)) | |
| 224 | aura2.Size = NumberSequence.new(0,1) | |
| 225 | aura2.Transparency = NumberSequence.new(0,1) | |
| 226 | aura2.LockedToPart = true | |
| 227 | aura2.LightEmission = 0 | |
| 228 | aura2.LightInfluence = 0 | |
| 229 | aura2.ZOffset = -1.1 | |
| 230 | aura2.Lifetime = NumberRange.new(0.4) | |
| 231 | aura2.Rate = 100000 | |
| 232 | aura2.Speed = NumberRange.new(2) | |
| 233 | aura2.SpreadAngle = Vector2.new(0,0) | |
| 234 | aura2.Enabled = true | |
| 235 | table.insert(auras, aura2) | |
| 236 | aurah2 = aura2:Clone() | |
| 237 | aurah2.Parent = head | |
| 238 | table.insert(auras, aurah2) | |
| 239 | auralarm2 = aura2:Clone() | |
| 240 | auralarm2.Parent = larm | |
| 241 | table.insert(auras, auralarm2) | |
| 242 | aurararm2 = aura2:Clone() | |
| 243 | aurararm2.Parent = rarm | |
| 244 | table.insert(auras, aurararm2) | |
| 245 | auralleg2 = aura2:Clone() | |
| 246 | auralleg2.Parent = lleg | |
| 247 | table.insert(auras, auralleg2) | |
| 248 | aurarleg2 = aura2:Clone() | |
| 249 | aurarleg2.Parent = rleg | |
| 250 | table.insert(auras, aurarleg2) | |
| 251 | ||
| 252 | local aura3 = Instance.new("ParticleEmitter", root)
| |
| 253 | aura3.Texture = "rbxassetid://347730682" | |
| 254 | aura3.Color = ColorSequence.new(Color3.fromRGB(69, 0, 220)) | |
| 255 | aura3.Size = NumberSequence.new(5,5) | |
| 256 | aura3.Transparency = NumberSequence.new(0,1) | |
| 257 | aura3.LockedToPart = true | |
| 258 | aura3.LightEmission = 1 | |
| 259 | aura3.LightInfluence = 0 | |
| 260 | aura3.ZOffset = -1.5 | |
| 261 | aura3.Lifetime = NumberRange.new(0.1) | |
| 262 | aura3.Rate = 120 | |
| 263 | aura3.Speed = NumberRange.new(20) | |
| 264 | aura3.SpreadAngle = Vector2.new(0,0) | |
| 265 | aura3.Enabled = true | |
| 266 | table.insert(auras, aura3) | |
| 267 | end | |
| 268 | ||
| 269 | function aura100() | |
| 270 | local aura = Instance.new("ParticleEmitter", root)
| |
| 271 | aura.Texture = "rbxassetid://445231746" | |
| 272 | aura.Color = ColorSequence.new(Color3.fromRGB(137, 0, 217)) | |
| 273 | aura.Size = NumberSequence.new(0,1) | |
| 274 | aura.Transparency = NumberSequence.new(0,1) | |
| 275 | aura.LockedToPart = true | |
| 276 | aura.LightEmission = 1 | |
| 277 | aura.LightInfluence = 1 | |
| 278 | aura.ZOffset = -1 | |
| 279 | aura.Lifetime = NumberRange.new(0.4) | |
| 280 | aura.SpreadAngle = Vector2.new(1000,1000) | |
| 281 | aura.Rotation = NumberRange.new(200) | |
| 282 | aura.RotSpeed = NumberRange.new(200) | |
| 283 | aura.Rate = 100000 | |
| 284 | aura.Speed = NumberRange.new(5) | |
| 285 | aura.Enabled = true | |
| 286 | table.insert(auras, aura) | |
| 287 | aurah = aura:Clone() | |
| 288 | aurah.Parent = head | |
| 289 | table.insert(auras, aurah) | |
| 290 | auralarm = aura:Clone() | |
| 291 | auralarm.Parent = larm | |
| 292 | table.insert(auras, auralarm) | |
| 293 | aurararm = aura:Clone() | |
| 294 | aurararm.Parent = rarm | |
| 295 | table.insert(auras, aurararm) | |
| 296 | auralleg = aura:Clone() | |
| 297 | auralleg.Parent = lleg | |
| 298 | table.insert(auras, auralleg) | |
| 299 | aurarleg = aura:Clone() | |
| 300 | aurarleg.Parent = rleg | |
| 301 | table.insert(auras, aurarleg) | |
| 302 | ||
| 303 | local aura2 = Instance.new("ParticleEmitter", root)
| |
| 304 | aura2.Texture = "rbxassetid://445231746" | |
| 305 | aura2.Color = ColorSequence.new(Color3.fromRGB(0, 0, 0)) | |
| 306 | aura2.Size = NumberSequence.new(0,1) | |
| 307 | aura2.Transparency = NumberSequence.new(0,1) | |
| 308 | aura2.LockedToPart = true | |
| 309 | aura2.LightEmission = 0 | |
| 310 | aura2.LightInfluence = 0 | |
| 311 | aura2.ZOffset = -1.1 | |
| 312 | aura2.Lifetime = NumberRange.new(0.4) | |
| 313 | aura2.Rate = 100000 | |
| 314 | aura2.Rotation = NumberRange.new(200) | |
| 315 | aura2.RotSpeed = NumberRange.new(200) | |
| 316 | aura2.Speed = NumberRange.new(5) | |
| 317 | aura2.SpreadAngle = Vector2.new(1000,1000) | |
| 318 | aura2.Enabled = true | |
| 319 | table.insert(auras, aura2) | |
| 320 | aurah2 = aura2:Clone() | |
| 321 | aurah2.Parent = head | |
| 322 | table.insert(auras, aurah2) | |
| 323 | auralarm2 = aura2:Clone() | |
| 324 | auralarm2.Parent = larm | |
| 325 | table.insert(auras, auralarm2) | |
| 326 | aurararm2 = aura2:Clone() | |
| 327 | aurararm2.Parent = rarm | |
| 328 | table.insert(auras, aurararm2) | |
| 329 | auralleg2 = aura2:Clone() | |
| 330 | auralleg2.Parent = lleg | |
| 331 | table.insert(auras, auralleg2) | |
| 332 | aurarleg2 = aura2:Clone() | |
| 333 | aurarleg2.Parent = rleg | |
| 334 | table.insert(auras, aurarleg2) | |
| 335 | ||
| 336 | local aura3 = Instance.new("ParticleEmitter", root)
| |
| 337 | aura3.Texture = "rbxassetid://347730682" | |
| 338 | aura3.Color = ColorSequence.new(Color3.fromRGB(69, 0, 220)) | |
| 339 | aura3.Size = NumberSequence.new(5,5) | |
| 340 | aura3.Transparency = NumberSequence.new(0.9,0.9) | |
| 341 | aura3.LockedToPart = true | |
| 342 | aura3.LightEmission = 1 | |
| 343 | aura3.LightInfluence = 0 | |
| 344 | aura3.ZOffset = -1.5 | |
| 345 | aura3.Lifetime = NumberRange.new(0.1) | |
| 346 | aura3.Rate = 120 | |
| 347 | aura3.Speed = NumberRange.new(20) | |
| 348 | aura3.SpreadAngle = Vector2.new(0,0) | |
| 349 | aura3.Enabled = true | |
| 350 | table.insert(auras, aura3) | |
| 351 | end | |
| 352 | ||
| 353 | function removeAura() | |
| 354 | -- aura fade | |
| 355 | for i,a in pairs(auras) do | |
| 356 | a.Enabled = false | |
| 357 | game:GetService("Debris"):AddItem(a, 3)
| |
| 358 | end | |
| 359 | auras = {}
| |
| 360 | end | |
| 361 | ||
| 362 | ||
| 363 | ||
| 364 | ||
| 365 | hum.JumpPower = 0 | |
| 366 | hum.HipHeight = 1 | |
| 367 | hum.WalkSpeed = 10 | |
| 368 | hum.MaxHealth = 25000 | |
| 369 | wait() | |
| 370 | hum.Health = 25000 | |
| 371 | hum:WaitForChild("Animator"):Remove()
| |
| 372 | function createJoint(wp0, wp1, wc0x, wc0y, wc0z, wc1x, wc1y, wc1z, name) | |
| 373 | local joint = Instance.new("Weld", wp0)
| |
| 374 | joint.Part0 = wp0 | |
| 375 | joint.Part1 = wp1 | |
| 376 | joint.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
| 377 | joint.C1 = CFrame.new(wc1x, wc1y, wc1z) | |
| 378 | joint.Name = name | |
| 379 | return joint | |
| 380 | end | |
| 381 | ||
| 382 | local RS = createJoint(tors, rarm, 1.5, 0.5, 0, 0, 0.5, 0, "Right Shoulder") | |
| 383 | local TS = createJoint(root, tors, 0, 0, 0, 0, 0, 0, "RootJoint") | |
| 384 | local LS = createJoint(tors, larm, -1.5, 0.5, 0, 0, 0.5, 0, "Left Shoulder") | |
| 385 | local RH = createJoint(tors, rleg, 0.5, -1, 0, 0, 1, 0, "Right Hip") | |
| 386 | local LH = createJoint(tors, lleg, -0.5, -1, 0, 0, 1, 0, "Left Hip") | |
| 387 | local NK = createJoint(tors, head, 0, 1, 0, 0, -1/2, 0, "Neck") | |
| 388 | ||
| 389 | local rsc0 = RS.C0 | |
| 390 | local lsc0 = LS.C0 | |
| 391 | local tsc0 = TS.C0 | |
| 392 | local rhc0 = RH.C0 | |
| 393 | local lhc0 = LH.C0 | |
| 394 | local nkc0 = NK.C0 | |
| 395 | ||
| 396 | local ears = Instance.new("Part", Player)
| |
| 397 | ears.Size = Vector3.new(1, 1, 1) | |
| 398 | ears.CanCollide = false | |
| 399 | ears.BrickColor = BrickColor.new(skinCol) | |
| 400 | local earsMesh = Instance.new("SpecialMesh", ears)
| |
| 401 | earsMesh.MeshId = "rbxassetid://101176852" | |
| 402 | earsMesh.Scale = Vector3.new(0.9, 1, 0.9) | |
| 403 | createJoint(head, ears, 0, 0.9, 0, 0, 0, 0, "EarWeld") | |
| 404 | local tail = Instance.new("Part", Player)
| |
| 405 | tail.Size = Vector3.new(1, 1, 1) | |
| 406 | tail.CanCollide = false | |
| 407 | tail.BrickColor = BrickColor.new(skinCol) | |
| 408 | local tailMesh = Instance.new("SpecialMesh", tail)
| |
| 409 | tailMesh.MeshId = "rbxassetid://534615496" | |
| 410 | tailMesh.Scale = Vector3.new(0.7, 0.7, 0.7) | |
| 411 | tailWeld = createJoint(tors, tail, 0, 0.5, 1.5, 0, 0, 0, "TailWeld") | |
| 412 | tailWeld.C0 = tailWeld.C0 * CFrame.Angles(math.rad(-50), 0, math.rad(-90)) | |
| 413 | ||
| 414 | function createSound(soundid, volume, looped, parent, pitch, lifetime) | |
| 415 | local sound = Instance.new("Sound", parent)
| |
| 416 | sound.SoundId = "rbxassetid://".. soundid .."" | |
| 417 | sound.Volume = volume | |
| 418 | sound.Pitch = pitch | |
| 419 | game:GetService("Debris"):AddItem(sound, lifetime)
| |
| 420 | return sound | |
| 421 | end | |
| 422 | ||
| 423 | ||
| 424 | ||
| 425 | function damageLeftarm() | |
| 426 | function Damage(model) | |
| 427 | for i,s in pairs(model:GetChildren()) do | |
| 428 | Damage(s) | |
| 429 | if s.Name == "HumanoidRootPart" and s:IsA("BasePart") and s.Parent ~= Player then
| |
| 430 | if (larm.Position - s.Position).magnitude < 2.364 and leftArmdamaging and punching then | |
| 431 | local hum = s.Parent:FindFirstChild("Humanoid")
| |
| 432 | if hum then | |
| 433 | if damaged[hum.Parent] == nil then | |
| 434 | if vel then | |
| 435 | vel:Remove() | |
| 436 | end | |
| 437 | ||
| 438 | vel = Instance.new("BodyVelocity", s)
| |
| 439 | vel.Velocity = CFrame.new(s.CFrame.p, Player.HumanoidRootPart.CFrame.lookVector * 120).lookVector | |
| 440 | game:GetService("Debris"):AddItem(vel, 0.25)
| |
| 441 | ||
| 442 | damaged[hum.Parent] = true | |
| 443 | hum:TakeDamage(punchDamage +(math.random(-10, 10)/10)) | |
| 444 | local punchSound = createSound("169380525", 1, false, Player.Head, 1 + (math.random(0, 5)/10), 1)
| |
| 445 | punchSound:Play() | |
| 446 | end | |
| 447 | end | |
| 448 | end | |
| 449 | end | |
| 450 | end | |
| 451 | end | |
| 452 | Damage(workspace) | |
| 453 | ||
| 454 | end | |
| 455 | ||
| 456 | ||
| 457 | function damageRightarm() | |
| 458 | function Damage(model) | |
| 459 | for i,s in pairs(model:GetChildren()) do | |
| 460 | Damage(s) | |
| 461 | if s.Name == "HumanoidRootPart" and s:IsA("BasePart") and s.Parent ~= Player then
| |
| 462 | if (rarm.Position - s.Position).magnitude < 2.364 and rightArmdamaging and punching then | |
| 463 | local hum = s.Parent:FindFirstChild("Humanoid")
| |
| 464 | if hum then | |
| 465 | if damaged[hum.Parent] == nil then | |
| 466 | if vel then | |
| 467 | vel:Remove() | |
| 468 | end | |
| 469 | ||
| 470 | vel = Instance.new("BodyVelocity", s)
| |
| 471 | vel.Velocity = CFrame.new(s.CFrame.p, Player.HumanoidRootPart.CFrame.lookVector * 120).lookVector | |
| 472 | game:GetService("Debris"):AddItem(vel, 0.25)
| |
| 473 | ||
| 474 | damaged[hum.Parent] = true | |
| 475 | hum:TakeDamage(punchDamage +(math.random(-10, 10)/10)) | |
| 476 | local punchSound = createSound("169380525", 1, false, Player.Head, 1 + (math.random(0, 5)/10), 1)
| |
| 477 | punchSound:Play() | |
| 478 | end | |
| 479 | end | |
| 480 | end | |
| 481 | end | |
| 482 | end | |
| 483 | end | |
| 484 | Damage(workspace) | |
| 485 | ||
| 486 | end | |
| 487 | ||
| 488 | ||
| 489 | ||
| 490 | Render:connect(function() | |
| 491 | t = t + 0.5 | |
| 492 | ||
| 493 | if flying then | |
| 494 | Player.HumanoidRootPart.CFrame = CFrame.new(Player.HumanoidRootPart.Position, Vector3.new(Mouse.Hit.p.x, Player.HumanoidRootPart.Position.y, Mouse.Hit.p.z)) | |
| 495 | if mouseDownF then | |
| 496 | if bv then | |
| 497 | bv.Velocity = Mouse.Hit.lookVector * 100 | |
| 498 | end | |
| 499 | else | |
| 500 | if bv then | |
| 501 | bv.Velocity = Vector3.new(0, 0, 0) | |
| 502 | end | |
| 503 | end | |
| 504 | end | |
| 505 | local exactVel = CFrame.new(Player.HumanoidRootPart.CFrame:vectorToObjectSpace(Player.HumanoidRootPart.Velocity)) | |
| 506 | if idle then | |
| 507 | if math.abs(Player.HumanoidRootPart.Velocity.x) < 1 and math.abs(Player.HumanoidRootPart.Velocity.z) < 1 then | |
| 508 | TS.C0 = TS.C0:lerp(tsc0 * CFrame.new(0, math.sin(t/10)/5, 0), 0.05) | |
| 509 | NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(math.cos(t/10)/10, 0, 0), 0.05) | |
| 510 | LS.C0 = LS.C0:lerp(lsc0 * CFrame.new(0.5, 0.05 + math.cos(t/10)/10, 0) | |
| 511 | * CFrame.Angles(math.rad(-45), 0, math.rad(25) + -math.cos(t/10)/10), 0.05) | |
| 512 | RS.C0 = RS.C0:lerp(rsc0 * CFrame.new(-0.5, 0.05 + math.cos(t/10)/10, 0) | |
| 513 | * CFrame.Angles(math.rad(-45), 0, math.rad(-25) + math.cos(t/10)/10), 0.05) | |
| 514 | RH.C0 = RH.C0:lerp(rhc0 * CFrame.new(0, 0.3 + math.cos(t/10)/10, -0.2) | |
| 515 | * CFrame.Angles(math.rad(-5) + math.cos(t/10)/10/20, 0, math.rad(5)), 0.05) | |
| 516 | LH.C0 = LH.C0:lerp(lhc0 * CFrame.new(0, 0.3 + math.cos(t/10)/10, -0.2) | |
| 517 | * CFrame.Angles(math.rad(-5) + math.cos(t/10)/10/20, 0, math.rad(-5)), 0.05) | |
| 518 | else | |
| 519 | TS.C0 = TS.C0:lerp(tsc0 * CFrame.new(0, math.cos(t/10)/5, 0) | |
| 520 | * CFrame.Angles(math.rad(exactVel.p.z), 0, math.rad(-exactVel.p.x)), 0.05) | |
| 521 | NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(math.rad(-exactVel.p.z)/2,0, math.rad(exactVel.p.x)/2), 0.05) | |
| 522 | RS.C0 = RS.C0:lerp(rsc0 * CFrame.Angles(math.rad(exactVel.p.z)/2, 0, math.rad(10) + math.cos(t/10)/30 + math.rad(-exactVel.p.x)), 0.05) | |
| 523 | LS.C0 = LS.C0:lerp(lsc0 * CFrame.Angles(math.rad(exactVel.p.z)/2, 0, math.rad(-10) + -math.cos(t/10)/30 + math.rad(-exactVel.p.x)), 0.05) | |
| 524 | RH.C0 = RH.C0:lerp(rhc0 * CFrame.Angles(0, 0, math.rad(5) + math.cos(t/10)/30 + math.rad(-exactVel.p.x)) | |
| 525 | * CFrame.new(0, 0.3, -0.2), 0.05) | |
| 526 | LH.C0 = LH.C0:lerp(lhc0 * CFrame.Angles(0, 0, math.rad(-5) + -math.cos(t/10)/30 + math.rad(-exactVel.p.x)) | |
| 527 | * CFrame.new(0, 0.3, -0.2), 0.05) | |
| 528 | ||
| 529 | end | |
| 530 | else | |
| 531 | if action == "Punch1" then | |
| 532 | local speed = 0.8 | |
| 533 | ||
| 534 | TS.C0 = TS.C0:lerp(tsc0 * CFrame.new(0, 0, -0.5) | |
| 535 | * CFrame.Angles(0, 0, math.rad(-exactVel.p.x)) | |
| 536 | * CFrame.Angles(math.rad(-10) + math.rad(exactVel.p.z)/2, math.rad(50), 0), speed) | |
| 537 | NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(math.rad(8), math.rad(-40), 0), speed) | |
| 538 | RH.C0 = RH.C0:lerp(rhc0 * CFrame.Angles(math.rad(30), math.rad(-45), 0), speed) | |
| 539 | LH.C0 = LH.C0:lerp(lhc0 * CFrame.Angles(0, math.rad(-45), 0) | |
| 540 | * CFrame.Angles(math.rad(-45), 0, 0), speed) | |
| 541 | LS.C0 = LS.C0:lerp(lsc0 * CFrame.Angles(math.rad(100) + math.rad(-exactVel.p.z)/2, math.rad(-45), 0), speed) | |
| 542 | RS.C0 = RS.C0:lerp(rsc0 * CFrame.Angles(math.rad(-exactVel.p.z)/2 + math.rad(10), math.rad(-45), math.rad(-20)) | |
| 543 | * CFrame.Angles(math.rad(90), 0, math.rad(-45)), speed) | |
| 544 | elseif action == "Punch2" then | |
| 545 | local speed = 0.8 | |
| 546 | TS.C0 = TS.C0:lerp(tsc0 * CFrame.new(0, 0, -0.5) | |
| 547 | * CFrame.Angles(0, 0, math.rad(-exactVel.p.x)) | |
| 548 | * CFrame.Angles(math.rad(-10) + math.rad(exactVel.p.z)/2, math.rad(-50), 0), speed) | |
| 549 | NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(math.rad(8), math.rad(40), 0), speed) | |
| 550 | RH.C0 = RH.C0:lerp(rhc0 * CFrame.Angles(0, math.rad(45), 0) | |
| 551 | * CFrame.Angles(math.rad(-45), 0, 0), speed) | |
| 552 | LH.C0 = LH.C0:lerp(lhc0 * CFrame.Angles(math.rad(30), math.rad(45), 0), speed) | |
| 553 | LS.C0 = LS.C0:lerp(lsc0 * CFrame.Angles(math.rad(-exactVel.p.z)/2 + math.rad(10), math.rad(45), math.rad(20)) | |
| 554 | * CFrame.Angles(math.rad(100), 0, math.rad(45)), speed) | |
| 555 | RS.C0 = RS.C0:lerp(rsc0 * CFrame.Angles(math.rad(100) + math.rad(-exactVel.p.z)/2, math.rad(-45), 0), speed) | |
| 556 | elseif action == "Punch3" then | |
| 557 | local speed = 0.8 | |
| 558 | ||
| 559 | TS.C0 = TS.C0:lerp(tsc0 * CFrame.new(0, 0, -0.5) | |
| 560 | * CFrame.Angles(0, 0, math.rad(-exactVel.p.x)) | |
| 561 | * CFrame.Angles(math.rad(-10) + math.rad(exactVel.p.z)/2, math.rad(40), 0), speed) | |
| 562 | NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(math.rad(8), math.rad(-40), 0), speed) | |
| 563 | RH.C0 = RH.C0:lerp(rhc0 * CFrame.Angles(math.rad(30), math.rad(-45), 0), speed) | |
| 564 | LH.C0 = LH.C0:lerp(lhc0 * CFrame.Angles(0, math.rad(-45), 0) | |
| 565 | * CFrame.Angles(math.rad(-45), 0, 0), speed) | |
| 566 | LS.C0 = LS.C0:lerp(lsc0 * CFrame.Angles(math.rad(100) + math.rad(-exactVel.p.z)/2, math.rad(-45), 0), speed) | |
| 567 | RS.C0 = RS.C0:lerp(rsc0 * CFrame.Angles(math.rad(-exactVel.p.z)/2 + math.rad(10), math.rad(-45), math.rad(-20)) | |
| 568 | * CFrame.Angles(math.rad(80), 0, 0), speed) | |
| 569 | elseif action == "Punch4" then | |
| 570 | local speed = 0.8 | |
| 571 | ||
| 572 | TS.C0 = TS.C0:lerp(tsc0 * CFrame.new(0, 0, -0.5) | |
| 573 | * CFrame.Angles(0, 0, math.rad(-exactVel.p.x)) | |
| 574 | * CFrame.Angles(math.rad(-10) + math.rad(exactVel.p.z)/2, math.rad(-40), 0), speed) | |
| 575 | NK.C0 = NK.C0:lerp(nkc0 * CFrame.Angles(math.rad(8), math.rad(40), 0), speed) | |
| 576 | RH.C0 = RH.C0:lerp(rhc0 * CFrame.Angles(0, math.rad(45), 0) | |
| 577 | * CFrame.Angles(math.rad(-45), 0, 0), speed) | |
| 578 | LH.C0 = LH.C0:lerp(lhc0 * CFrame.Angles(math.rad(30), math.rad(45), 0), speed) | |
| 579 | LS.C0 = LS.C0:lerp(lsc0 * CFrame.Angles(math.rad(-exactVel.p.z)/2 + math.rad(10), math.rad(45), math.rad(-20)) | |
| 580 | * CFrame.Angles(math.rad(70), 0, 0), speed) | |
| 581 | RS.C0 = RS.C0:lerp(rsc0 * CFrame.Angles(math.rad(100) + math.rad(-exactVel.p.z)/2, math.rad(-45), 0), speed) | |
| 582 | end | |
| 583 | ||
| 584 | ||
| 585 | damageLeftarm() | |
| 586 | damageRightarm() | |
| 587 | end | |
| 588 | end) | |
| 589 | ||
| 590 | ||
| 591 | function ascend() | |
| 592 | if pwr10 == true then | |
| 593 | pwr40 = true | |
| 594 | punchDamage = 30 | |
| 595 | KiDamage = 50 | |
| 596 | hum.WalkSpeed = 24 | |
| 597 | pwr10 = false | |
| 598 | removeAura() | |
| 599 | aura40() | |
| 600 | elseif pwr40 == true then | |
| 601 | pwr80 = true | |
| 602 | punchDamage = 60 | |
| 603 | KiDamage = 60 | |
| 604 | hum.WalkSpeed = 38 | |
| 605 | pwr40 = false | |
| 606 | removeAura() | |
| 607 | aura80() | |
| 608 | elseif pwr80 == true then | |
| 609 | pwr100 = true | |
| 610 | punchDamage = 90 | |
| 611 | KiDamage = 70 | |
| 612 | hum.WalkSpeed = 56 | |
| 613 | pwr80 = false | |
| 614 | removeAura() | |
| 615 | aura100() | |
| 616 | end | |
| 617 | end | |
| 618 | ||
| 619 | function descend() | |
| 620 | if pwr100 == true then | |
| 621 | pwr80 = true | |
| 622 | punchDamage = 60 | |
| 623 | KiDamage = 60 | |
| 624 | hum.WalkSpeed = 38 | |
| 625 | pwr100 = false | |
| 626 | removeAura() | |
| 627 | aura80() | |
| 628 | elseif pwr80 == true then | |
| 629 | pwr40 = true | |
| 630 | punchDamage = 30 | |
| 631 | KiDamage = 60 | |
| 632 | hum.WalkSpeed = 24 | |
| 633 | pwr80 = false | |
| 634 | removeAura() | |
| 635 | aura40() | |
| 636 | elseif pwr40 == true then | |
| 637 | pwr10 = true | |
| 638 | punchDamage = 20 | |
| 639 | KiDamage = 30 | |
| 640 | hum.WalkSpeed = 16 | |
| 641 | pwr40 = false | |
| 642 | removeAura() | |
| 643 | end | |
| 644 | end | |
| 645 | ||
| 646 | function base() | |
| 647 | pwr10 = true | |
| 648 | pwr40 = false | |
| 649 | pwr80 = false | |
| 650 | pwr100 = false | |
| 651 | punchDamage = 20 | |
| 652 | hum.WalkSpeed = 16 | |
| 653 | removeAura() | |
| 654 | end | |
| 655 | ||
| 656 | function lerpt(item,max,num,speed) | |
| 657 | for i = num, max, speed do | |
| 658 | item.Transparency = i | |
| 659 | wait() | |
| 660 | end | |
| 661 | item:Destroy() | |
| 662 | end | |
| 663 | ||
| 664 | function blast(pos) | |
| 665 | spawn(function() | |
| 666 | local damaged = {}
| |
| 667 | local x = math.random(-5, 5) | |
| 668 | local y = math.random(-5, 5) | |
| 669 | local z = math.random(-5, 5) | |
| 670 | local ki = Instance.new("Part", Player)
| |
| 671 | ki.Size = Vector3.new(1.1,1.1,1.1) | |
| 672 | ki.Material = "Neon" | |
| 673 | ki.CFrame = tors.CFrame * CFrame.new(x, y, -2) | |
| 674 | ki.Anchored = false | |
| 675 | ki.CanCollide = false | |
| 676 | ki.TopSurface = 10 | |
| 677 | ki.BottomSurface = 10 | |
| 678 | ki.BrickColor = BrickColor.new("Lilac")
| |
| 679 | ki.LeftSurface = 10 | |
| 680 | ki.RightSurface = 10 | |
| 681 | ki.FrontSurface = 10 | |
| 682 | ki.BackSurface = 10 | |
| 683 | local kim = Instance.new("SpecialMesh", ki)
| |
| 684 | kim.MeshType = "Sphere" | |
| 685 | local bp = Instance.new("BodyPosition", ki)
| |
| 686 | bp.Position = pos + Vector3.new(x, y, z) | |
| 687 | bp.P = math.random(20000,100000) | |
| 688 | bp.D = 1000 | |
| 689 | bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 690 | repeat wait() until (ki.Position-bp.Position).magnitude < 3 | |
| 691 | local ki2 = Instance.new("Part", Player)
| |
| 692 | function Damage(model) | |
| 693 | for i,s in pairs(model:GetChildren()) do | |
| 694 | Damage(s) | |
| 695 | if s.Name == "HumanoidRootPart" and s:IsA("BasePart") and s.Parent ~= Player then
| |
| 696 | if (ki2.Position - s.Position).magnitude < 7 then | |
| 697 | local hum = s.Parent:FindFirstChild("Humanoid")
| |
| 698 | if hum then | |
| 699 | if damaged[hum.Parent] == nil then | |
| 700 | damaged[hum.Parent] = true | |
| 701 | if vel then | |
| 702 | vel:Remove() | |
| 703 | end | |
| 704 | vel = Instance.new("BodyVelocity", s)
| |
| 705 | vel.Velocity = CFrame.new(s.CFrame.p, Player.HumanoidRootPart.CFrame.lookVector * 120).lookVector | |
| 706 | game:GetService("Debris"):AddItem(vel, 0.5)
| |
| 707 | hum:TakeDamage(KiDamage +(math.random(-10, 10)/10)) | |
| 708 | end | |
| 709 | end | |
| 710 | end | |
| 711 | end | |
| 712 | end | |
| 713 | end | |
| 714 | ki2.Size = Vector3.new(1,1,1) | |
| 715 | ki2.Material = "Neon" | |
| 716 | ki2.Anchored = true | |
| 717 | ki2.BrickColor = BrickColor.new("Lilac")
| |
| 718 | ki2.CFrame = CFrame.new(pos + Vector3.new(x, y, z)) | |
| 719 | ki2.CanCollide = false | |
| 720 | ki2.TopSurface = 10 | |
| 721 | ki2.BottomSurface = 10 | |
| 722 | ki2.LeftSurface = 10 | |
| 723 | ki2.RightSurface = 10 | |
| 724 | ki2.FrontSurface = 10 | |
| 725 | ki2.BackSurface = 10 | |
| 726 | local kim2 = Instance.new("SpecialMesh", ki2)
| |
| 727 | kim2.MeshType = "Sphere" | |
| 728 | spawn(function() | |
| 729 | for i = 0,15,3 do | |
| 730 | wait() | |
| 731 | ki2.Size = Vector3.new(i,i,i) | |
| 732 | Damage(workspace) | |
| 733 | end | |
| 734 | spawn(function() | |
| 735 | lerpt(ki2,1,0,0.2) | |
| 736 | end) | |
| 737 | end) | |
| 738 | ki:Destroy() | |
| 739 | end) | |
| 740 | end | |
| 741 | Mouse.KeyDown:connect(function(k) | |
| 742 | if k:lower() == "b" and not ascendcooldown then | |
| 743 | spawn(function() | |
| 744 | ascendcooldown = true | |
| 745 | wait(5) | |
| 746 | ascendcooldown = false | |
| 747 | end) | |
| 748 | ascend() | |
| 749 | elseif k:lower() == "n" and not descendcooldown then | |
| 750 | spawn(function() | |
| 751 | descendcooldown = true | |
| 752 | wait(2) | |
| 753 | descendcooldown = false | |
| 754 | end) | |
| 755 | descend() | |
| 756 | elseif k == "m" then | |
| 757 | base() | |
| 758 | elseif k == "q" then | |
| 759 | action = "Punching" | |
| 760 | idle = false | |
| 761 | punching = true | |
| 762 | repeat | |
| 763 | ||
| 764 | if punching == false then | |
| 765 | attacking = false | |
| 766 | idle = true | |
| 767 | end | |
| 768 | damaged = {}
| |
| 769 | action = "Punch1" | |
| 770 | ||
| 771 | leftArmdamaging = false | |
| 772 | rightArmdamaging = true | |
| 773 | wait(speed) | |
| 774 | ||
| 775 | if punching == false then | |
| 776 | attacking = false | |
| 777 | idle = true | |
| 778 | end | |
| 779 | damaged = {}
| |
| 780 | action = "Punch2" | |
| 781 | ||
| 782 | leftArmdamaging = true | |
| 783 | rightArmdamaging = false | |
| 784 | wait(speed) | |
| 785 | ||
| 786 | if keyDown == false then | |
| 787 | attacking = false | |
| 788 | idle = true | |
| 789 | end | |
| 790 | damaged = {}
| |
| 791 | action = "Punch3" | |
| 792 | ||
| 793 | leftArmdamaging = false | |
| 794 | rightArmdamaging = true | |
| 795 | wait(speed) | |
| 796 | ||
| 797 | if keyDown == false then | |
| 798 | attacking = false | |
| 799 | idle = true | |
| 800 | end | |
| 801 | damaged = {}
| |
| 802 | action = "Punch4" | |
| 803 | ||
| 804 | wait(speed) | |
| 805 | ||
| 806 | until punching == false | |
| 807 | elseif k:lower() == "f" then | |
| 808 | if flying then | |
| 809 | flying = false | |
| 810 | if bv then | |
| 811 | bv:Remove() | |
| 812 | end | |
| 813 | else | |
| 814 | flying = true | |
| 815 | bv = Instance.new("BodyVelocity", root)
| |
| 816 | bv.Velocity = Vector3.new(0, 0, 0) | |
| 817 | end | |
| 818 | ||
| 819 | elseif k:lower() == "e" then | |
| 820 | kiBlasting = true | |
| 821 | repeat | |
| 822 | idle = false | |
| 823 | if armKi == "Right" then | |
| 824 | action = "Punch3" | |
| 825 | else | |
| 826 | action = "Punch4" | |
| 827 | end | |
| 828 | blast(Mouse.Hit.p) | |
| 829 | wait(0.05) | |
| 830 | if armKi == "Right" then | |
| 831 | armKi = "Left" | |
| 832 | else | |
| 833 | armKi = "Right" | |
| 834 | end | |
| 835 | until kiBlasting == false | |
| 836 | end | |
| 837 | end) | |
| 838 | ||
| 839 | Mouse.KeyUp:connect(function(k) | |
| 840 | if k:lower() == "q" then | |
| 841 | action = "" | |
| 842 | punching = false | |
| 843 | idle = true | |
| 844 | leftArmdamaging = false | |
| 845 | rightArmdamaging = false | |
| 846 | elseif k:lower() == "e" and kiBlasting then | |
| 847 | kiBlasting = false | |
| 848 | action = "" | |
| 849 | idle = true | |
| 850 | end | |
| 851 | end) | |
| 852 | ||
| 853 | Mouse.Button1Down:connect(function() | |
| 854 | if flying then | |
| 855 | mouseDownF = true | |
| 856 | end | |
| 857 | end) | |
| 858 | Mouse.Button1Up:connect(function() | |
| 859 | if flying then | |
| 860 | mouseDownF = false | |
| 861 | end | |
| 862 | end) | |
| 863 | ||
| 864 | base() |