SHOW:
|
|
- or go back to the newest paste.
| 1 | - | Player = game.Players.emilixs -- username |
| 1 | + | Player = game.Players.Webooz -- username |
| 2 | Character = Player.Character | |
| 3 | PlayerGui = Player.PlayerGui | |
| 4 | Backpack = Player.Backpack | |
| 5 | Torso = Character.Torso | |
| 6 | Head = Character.Head | |
| 7 | LeftArm = Character["Left Arm"] | |
| 8 | LeftLeg = Character["Left Leg"] | |
| 9 | RightArm = Character["Right Arm"] | |
| 10 | RightLeg = Character["Right Leg"] | |
| 11 | LS = Torso["Left Shoulder"] | |
| 12 | LH = Torso["Left Hip"] | |
| 13 | RS = Torso["Right Shoulder"] | |
| 14 | RH = Torso["Right Hip"] | |
| 15 | ModelName = "Weapon" | |
| 16 | attack = false | |
| 17 | attacktype = 1 | |
| 18 | Hitdeb = 0 | |
| 19 | Neck = Torso.Neck | |
| 20 | local neckcf0 = Neck.C0 | |
| 21 | MMouse = nil | |
| 22 | local bonusdmg = 0 | |
| 23 | ---------------------------- | |
| 24 | --Customize | |
| 25 | ||
| 26 | mindamage = 120 | |
| 27 | maxdamage = 120 | |
| 28 | crtmaxdamage = 120 | |
| 29 | omindamage = mindamage | |
| 30 | omaxdamage = maxdamage | |
| 31 | ocrtmaxdamage = crtmaxdamage | |
| 32 | crtrate = 12 | |
| 33 | ||
| 34 | handlecolor = BrickColor.new("White")
| |
| 35 | bcolor = BrickColor.new("Really black")
| |
| 36 | gemcolor = BrickColor.new("White")
| |
| 37 | ||
| 38 | ToolName = "Spear" | |
| 39 | ||
| 40 | --------------------------------------------------------------------------------------------------------------------------------------- | |
| 41 | if Character:findFirstChild("EquippedVal",true) ~= nil then
| |
| 42 | Character:findFirstChild("EquippedVal",true).Parent = nil
| |
| 43 | end | |
| 44 | ||
| 45 | ev = Instance.new("BoolValue",Character)
| |
| 46 | ev.Name = "EquippedVal" | |
| 47 | ev.Value = false | |
| 48 | ||
| 49 | ||
| 50 | --player | |
| 51 | player = nil | |
| 52 | --welds | |
| 53 | RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld")
| |
| 54 | --what anim | |
| 55 | anim = "none" | |
| 56 | --other var | |
| 57 | player = Player | |
| 58 | ch = Character | |
| 59 | --save shoulders | |
| 60 | AoETrue = {}
| |
| 61 | RSH, LSH , RHL, LHL = ch.Torso["Right Shoulder"], ch.Torso["Left Shoulder"] , ch.Torso["Right Hip"] , ch.Torso["Left Hip"] | |
| 62 | ||
| 63 | ||
| 64 | function RWFunc() | |
| 65 | RW.Part1 = ch["Right Arm"] | |
| 66 | RSH.Part1 = nil | |
| 67 | end | |
| 68 | function LWFunc() | |
| 69 | LW.Part1 = ch["Left Arm"] | |
| 70 | LSH.Part1 = nil | |
| 71 | end | |
| 72 | function RWLFunc() | |
| 73 | RWL.Part1 = ch["Right Leg"] | |
| 74 | RHL.Part1 = nil | |
| 75 | ch["Right Leg"].Name = "RightLeg" | |
| 76 | RightLeg.CanCollide = false | |
| 77 | end | |
| 78 | ||
| 79 | function LWLFunc() | |
| 80 | LWL.Part1 = ch["Left Leg"] | |
| 81 | LHL.Part1 = nil | |
| 82 | ch["Left Leg"].Name = "LeftLeg" | |
| 83 | LeftLeg.CanCollide = true | |
| 84 | end | |
| 85 | ||
| 86 | function RWLRem() | |
| 87 | RightLeg.Name = "Right Leg" | |
| 88 | RWL.Part1 = nil | |
| 89 | RHL.Part1 = ch["Right Leg"] | |
| 90 | RightLeg.CanCollide = false | |
| 91 | end | |
| 92 | function LWLRem() | |
| 93 | LeftLeg.Name = "Left Leg" | |
| 94 | LWL.Part1 = nil | |
| 95 | LHL.Part1 = ch["Left Leg"] | |
| 96 | LeftLeg.CanCollide = false | |
| 97 | end | |
| 98 | function RWRem() | |
| 99 | RW.Part1 = nil | |
| 100 | RSH.Part1 = ch["Right Arm"] | |
| 101 | end | |
| 102 | function LWRem() | |
| 103 | LW.Part1 = nil | |
| 104 | LSH.Part1 = ch["Left Arm"] | |
| 105 | end | |
| 106 | ||
| 107 | ||
| 108 | ||
| 109 | ||
| 110 | if Character:findFirstChild(ModelName,true) ~= nil then | |
| 111 | Character:findFirstChild(ModelName,true).Parent = nil | |
| 112 | RHL.Part1 = ch["Right Leg"] | |
| 113 | LHL.Part1 = ch["Left Leg"] | |
| 114 | RSH.Part1 = ch["Right Arm"] | |
| 115 | LSH.Part1 = ch["Left Arm"] | |
| 116 | end | |
| 117 | ||
| 118 | ||
| 119 | ||
| 120 | ||
| 121 | ||
| 122 | ||
| 123 | local swordholder = Instance.new("Model")
| |
| 124 | swordholder.Name = ModelName | |
| 125 | swordholder.Parent = Character | |
| 126 | ||
| 127 | --derp | |
| 128 | RW.Part0 = ch.Torso | |
| 129 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 130 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 131 | RW.Parent = swordholder | |
| 132 | -- | |
| 133 | LW.Part0 = ch.Torso | |
| 134 | LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
| 135 | LW.C1 = CFrame.new(0, 0.5, 0) | |
| 136 | LW.Parent = swordholder | |
| 137 | -- | |
| 138 | RWL.Part0 = ch.Torso | |
| 139 | RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, 0) | |
| 140 | RWL.C1 = CFrame.new(0.5, 1, 0) | |
| 141 | RWL.Parent = swordholder | |
| 142 | -- | |
| 143 | LWL.Part0 = ch.Torso | |
| 144 | LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, 0) | |
| 145 | LWL.C1 = CFrame.new(-0.5, 1, 0) | |
| 146 | LWL.Parent = swordholder | |
| 147 | ||
| 148 | ||
| 149 | ||
| 150 | ||
| 151 | local msh1 = Instance.new("CylinderMesh")
| |
| 152 | msh1.Scale = Vector3.new(1,1,1) | |
| 153 | local msh2 = Instance.new("CylinderMesh")
| |
| 154 | msh2.Scale = Vector3.new(1.1,1,1.1) | |
| 155 | local msh3 = Instance.new("CylinderMesh")
| |
| 156 | msh3.Scale = Vector3.new(0.5,1.075,0.5) | |
| 157 | local msh4 = Instance.new("SpecialMesh")
| |
| 158 | msh4.Scale = Vector3.new(0.35,0.85,0.35) | |
| 159 | msh4.MeshId = "http://www.roblox.com/Asset/?id=9756362" | |
| 160 | local msh5 = Instance.new("SpecialMesh")
| |
| 161 | msh5.Scale = Vector3.new(0.35,0.85,0.35) | |
| 162 | msh5.MeshId = "http://www.roblox.com/Asset/?id=9756362" | |
| 163 | local msh6 = Instance.new("SpecialMesh")
| |
| 164 | msh6.Scale = Vector3.new(0.35,1.5,0.35) | |
| 165 | msh6.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
| 166 | local msh7 = Instance.new("SpecialMesh")
| |
| 167 | msh7.Scale = Vector3.new(0.35,1.5,0.35) | |
| 168 | msh7.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
| 169 | local msh8 = Instance.new("SpecialMesh")
| |
| 170 | msh8.Scale = Vector3.new(0.2,0.3,0.2) | |
| 171 | msh8.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 172 | local msh9 = Instance.new("SpecialMesh")
| |
| 173 | msh9.Scale = Vector3.new(0.2,0.3,0.2) | |
| 174 | msh9.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 175 | local msh10 = Instance.new("CylinderMesh")
| |
| 176 | msh10.Scale = Vector3.new(1,0.1,1) | |
| 177 | local msh11 = Instance.new("CylinderMesh")
| |
| 178 | msh11.Scale = Vector3.new(1,0.1,1) | |
| 179 | ||
| 180 | local prt1 = Instance.new("Part")
| |
| 181 | prt1.formFactor = 3 | |
| 182 | prt1.CanCollide = false | |
| 183 | prt1.Name = "Handle" | |
| 184 | prt1.Locked = true | |
| 185 | prt1.Size = Vector3.new(0.2,6.5,0.2) | |
| 186 | prt1.Parent = swordholder | |
| 187 | msh1.Parent = prt1 | |
| 188 | prt1.BrickColor = handlecolor | |
| 189 | local prt2 = Instance.new("Part")
| |
| 190 | prt2.formFactor = 3 | |
| 191 | prt2.CanCollide = false | |
| 192 | prt2.Name = "Handle2" | |
| 193 | prt2.Locked = true | |
| 194 | prt2.Size = Vector3.new(0.2,1,0.2) | |
| 195 | prt2.Parent = swordholder | |
| 196 | msh2.Parent = prt2 | |
| 197 | prt2.BrickColor = bcolor | |
| 198 | local prt3 = Instance.new("Part")
| |
| 199 | prt3.formFactor = 3 | |
| 200 | prt3.CanCollide = false | |
| 201 | prt3.Name = "HandleDesign1" | |
| 202 | prt3.Locked = true | |
| 203 | prt3.Size = Vector3.new(0.2,0.2,0.2) | |
| 204 | prt3.Parent = swordholder | |
| 205 | msh3.Parent = prt3 | |
| 206 | prt3.BrickColor = handlecolor | |
| 207 | local prt3a = prt3:clone() | |
| 208 | prt3a.Parent = swordholder | |
| 209 | local prt4 = Instance.new("Part")
| |
| 210 | prt4.formFactor = 3 | |
| 211 | prt4.CanCollide = false | |
| 212 | prt4.Name = "Tip1" | |
| 213 | prt4.Locked = true | |
| 214 | prt4.Size = Vector3.new(0.2,msh4.Scale.Y,0.2) | |
| 215 | prt4.Parent = swordholder | |
| 216 | prt4.Reflectance = 0.25 | |
| 217 | msh4.Parent = prt4 | |
| 218 | prt4.BrickColor = handlecolor | |
| 219 | local prt5 = Instance.new("Part")
| |
| 220 | prt5.formFactor = 3 | |
| 221 | prt5.CanCollide = false | |
| 222 | prt5.Name = "Tip2" | |
| 223 | prt5.Locked = true | |
| 224 | prt5.Size = Vector3.new(0.2,msh5.Scale.Y,0.2) | |
| 225 | prt5.Parent = swordholder | |
| 226 | prt5.Reflectance = 0.25 | |
| 227 | msh5.Parent = prt5 | |
| 228 | prt5.BrickColor = handlecolor | |
| 229 | local prt6 = Instance.new("Part")
| |
| 230 | prt6.formFactor = 3 | |
| 231 | prt6.CanCollide = false | |
| 232 | prt6.Name = "TipDesign1" | |
| 233 | prt6.Locked = true | |
| 234 | prt6.Size = Vector3.new(0.2,0.2,0.2) | |
| 235 | prt6.Parent = swordholder | |
| 236 | prt6.Transparency = 0.2 | |
| 237 | msh6.Parent = prt6 | |
| 238 | prt6.BrickColor = bcolor | |
| 239 | local prt7 = Instance.new("Part")
| |
| 240 | prt7.formFactor = 3 | |
| 241 | prt7.CanCollide = false | |
| 242 | prt7.Name = "TipDesign2" | |
| 243 | prt7.Locked = true | |
| 244 | prt7.Size = Vector3.new(0.2,0.2,0.2) | |
| 245 | prt7.Parent = swordholder | |
| 246 | prt7.Transparency = 0.2 | |
| 247 | msh7.Parent = prt7 | |
| 248 | prt7.BrickColor = bcolor | |
| 249 | local prt8 = Instance.new("Part")
| |
| 250 | prt8.formFactor = 3 | |
| 251 | prt8.CanCollide = false | |
| 252 | prt8.Name = "TipDesign3" | |
| 253 | prt8.Locked = true | |
| 254 | prt8.Size = Vector3.new(0.2,0.2,0.2) | |
| 255 | prt8.Parent = swordholder | |
| 256 | msh8.Parent = prt8 | |
| 257 | prt8.BrickColor = gemcolor | |
| 258 | local prt9 = Instance.new("Part")
| |
| 259 | prt9.formFactor = 3 | |
| 260 | prt9.CanCollide = false | |
| 261 | prt9.Name = "TipDesign4" | |
| 262 | prt9.Locked = true | |
| 263 | prt9.Size = Vector3.new(0.2,0.2,0.2) | |
| 264 | prt9.Parent = swordholder | |
| 265 | msh9.Parent = prt9 | |
| 266 | prt9.BrickColor = gemcolor | |
| 267 | local prt10 = Instance.new("Part")
| |
| 268 | prt10.formFactor = 3 | |
| 269 | prt10.CanCollide = false | |
| 270 | prt10.Name = "TipDesign5" | |
| 271 | prt10.Locked = true | |
| 272 | prt10.Size = Vector3.new(0.3,0.2,0.3) | |
| 273 | prt10.Parent = swordholder | |
| 274 | msh10.Parent = prt10 | |
| 275 | prt10.BrickColor = gemcolor | |
| 276 | local prt11 = Instance.new("Part")
| |
| 277 | prt11.formFactor = 3 | |
| 278 | prt11.CanCollide = false | |
| 279 | prt11.Name = "TipDesign6" | |
| 280 | prt11.Locked = true | |
| 281 | prt11.Size = Vector3.new(0.3,0.2,0.3) | |
| 282 | prt11.Parent = swordholder | |
| 283 | msh11.Parent = prt11 | |
| 284 | prt11.BrickColor = gemcolor | |
| 285 | ||
| 286 | ||
| 287 | local w1 = Instance.new("Weld")
| |
| 288 | w1.Parent = prt1 | |
| 289 | w1.Part0 = prt1 | |
| 290 | local w2 = Instance.new("Weld")
| |
| 291 | w2.Parent = prt2 | |
| 292 | w2.Part0 = prt2 | |
| 293 | w2.Part1 = prt1 | |
| 294 | w2.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0) | |
| 295 | w2.C0 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0) | |
| 296 | local w3 = Instance.new("Weld")
| |
| 297 | w3.Parent = prt3 | |
| 298 | w3.Part0 = prt3 | |
| 299 | w3.Part1 = prt1 | |
| 300 | w3.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0) | |
| 301 | w3.C0 = CFrame.new(0, 0,0) * CFrame.Angles(math.rad(90), 0, 0) | |
| 302 | local w3a = Instance.new("Weld")
| |
| 303 | w3a.Parent = prt3a | |
| 304 | w3a.Part0 = prt3a | |
| 305 | w3a.Part1 = prt1 | |
| 306 | w3a.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0) | |
| 307 | w3a.C0 = CFrame.new(0, 0,0) * CFrame.Angles(math.rad(90), math.rad(90), 0) | |
| 308 | local w4 = Instance.new("Weld")
| |
| 309 | w4.Parent = prt4 | |
| 310 | w4.Part0 = prt4 | |
| 311 | w4.Part1 = prt1 | |
| 312 | w4.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0) | |
| 313 | w4.C0 = CFrame.new(0, 3.25,0) * CFrame.Angles(0, 0, 0) | |
| 314 | local w5 = Instance.new("Weld")
| |
| 315 | w5.Parent = prt5 | |
| 316 | w5.Part0 = prt5 | |
| 317 | w5.Part1 = prt1 | |
| 318 | w5.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0) | |
| 319 | w5.C0 = CFrame.new(0, -3.25,0) * CFrame.Angles(0, 0, 0) | |
| 320 | local w6 = Instance.new("Weld")
| |
| 321 | w6.Parent = prt6 | |
| 322 | w6.Part0 = prt6 | |
| 323 | w6.Part1 = prt1 | |
| 324 | w6.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0) | |
| 325 | w6.C0 = CFrame.new(0, 2.3 ,0) * CFrame.Angles(0, 0, 0) | |
| 326 | local w7 = Instance.new("Weld")
| |
| 327 | w7.Parent = prt7 | |
| 328 | w7.Part0 = prt7 | |
| 329 | w7.Part1 = prt1 | |
| 330 | w7.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0) | |
| 331 | w7.C0 = CFrame.new(0, 2.3 ,0) * CFrame.Angles(math.rad(180), 0, 0) | |
| 332 | local w8 = Instance.new("Weld")
| |
| 333 | w8.Parent = prt8 | |
| 334 | w8.Part0 = prt8 | |
| 335 | w8.Part1 = prt1 | |
| 336 | w8.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0) | |
| 337 | w8.C0 = CFrame.new(0, 2.8 ,0) * CFrame.Angles(0, 0, 0) | |
| 338 | local w9 = Instance.new("Weld")
| |
| 339 | w9.Parent = prt9 | |
| 340 | w9.Part0 = prt9 | |
| 341 | w9.Part1 = prt1 | |
| 342 | w9.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0) | |
| 343 | w9.C0 = CFrame.new(0, 2.8 ,0) * CFrame.Angles(math.rad(180), 0, 0) | |
| 344 | local w10 = Instance.new("Weld")
| |
| 345 | w10.Parent = prt10 | |
| 346 | w10.Part0 = prt10 | |
| 347 | w10.Part1 = prt1 | |
| 348 | w10.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0) | |
| 349 | w10.C0 = CFrame.new(0, 2.95 ,0) * CFrame.Angles(0, 0, 0) | |
| 350 | local w11 = Instance.new("Weld")
| |
| 351 | w11.Parent = prt11 | |
| 352 | w11.Part0 = prt11 | |
| 353 | w11.Part1 = prt1 | |
| 354 | w11.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0) | |
| 355 | w11.C0 = CFrame.new(0, -2.95 ,0) * CFrame.Angles(0, 0, 0) | |
| 356 | ||
| 357 | local RAP = Instance.new("Part")
| |
| 358 | RAP.formFactor = 0 | |
| 359 | RAP.CanCollide = false | |
| 360 | RAP.Name = "RAPart" | |
| 361 | RAP.Locked = true | |
| 362 | RAP.Size = Vector3.new(1,1,1) | |
| 363 | RAP.Parent = swordholder | |
| 364 | RAP.Transparency = 1 | |
| 365 | local w = Instance.new("Weld")
| |
| 366 | w.Parent = RAP | |
| 367 | w.Part0 = RAP | |
| 368 | w.Part1 = RightArm | |
| 369 | w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 370 | w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 1, 0) | |
| 371 | ||
| 372 | ||
| 373 | function unequipweld() | |
| 374 | w1.Part1 = Torso | |
| 375 | w1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0, 0,0) | |
| 376 | w1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.5, -0.5, -0.6) | |
| 377 | end | |
| 378 | ||
| 379 | unequipweld() | |
| 380 | ||
| 381 | ||
| 382 | ||
| 383 | function equipweld() | |
| 384 | w1.Part1 = RAP | |
| 385 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 386 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0) | |
| 387 | end | |
| 388 | ||
| 389 | ||
| 390 | function ss(parent,p,v) --Slash | |
| 391 | ||
| 392 | local SlashSound = Instance.new("Sound")
| |
| 393 | SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav" | |
| 394 | SlashSound.Parent = parent | |
| 395 | SlashSound.Volume = (v or .7) | |
| 396 | SlashSound.Pitch = p | |
| 397 | SlashSound.PlayOnRemove = true | |
| 398 | coroutine.resume(coroutine.create(function() | |
| 399 | wait() | |
| 400 | SlashSound.Parent = nil | |
| 401 | end)) | |
| 402 | end | |
| 403 | function uss(parent,p,v) --unsheath | |
| 404 | ||
| 405 | local SlashSound = Instance.new("Sound")
| |
| 406 | SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav" | |
| 407 | SlashSound.Parent = parent | |
| 408 | SlashSound.Volume = (v or .7) | |
| 409 | SlashSound.Pitch = p | |
| 410 | SlashSound.PlayOnRemove = true | |
| 411 | coroutine.resume(coroutine.create(function() | |
| 412 | wait() | |
| 413 | SlashSound.Parent = nil | |
| 414 | end)) | |
| 415 | end | |
| 416 | function cs(parent,p,v) --Magic Charge | |
| 417 | ||
| 418 | local SlashSound = Instance.new("Sound")
| |
| 419 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2101137" | |
| 420 | SlashSound.Parent = parent | |
| 421 | SlashSound.Volume = (v or .7) | |
| 422 | SlashSound.Pitch = p | |
| 423 | SlashSound.PlayOnRemove = true | |
| 424 | coroutine.resume(coroutine.create(function() | |
| 425 | wait() | |
| 426 | SlashSound.Parent = nil | |
| 427 | end)) | |
| 428 | ||
| 429 | end | |
| 430 | function ls(parent,p,v) --Lazer Sound | |
| 431 | ||
| 432 | local SlashSound = Instance.new("Sound")
| |
| 433 | SlashSound.SoundId = "http://www.roblox.com/asset?id=1369158" | |
| 434 | SlashSound.Parent = parent | |
| 435 | SlashSound.Volume = (v or .7) | |
| 436 | SlashSound.Pitch = p | |
| 437 | SlashSound.PlayOnRemove = true | |
| 438 | coroutine.resume(coroutine.create(function() | |
| 439 | wait() | |
| 440 | SlashSound.Parent = nil | |
| 441 | end)) | |
| 442 | end | |
| 443 | function ts(parent,p,v) --Thunder sound | |
| 444 | ||
| 445 | local SlashSound = Instance.new("Sound")
| |
| 446 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=12222030" | |
| 447 | SlashSound.Parent = parent | |
| 448 | SlashSound.Volume = (v or .7) | |
| 449 | SlashSound.Pitch = p | |
| 450 | SlashSound.PlayOnRemove = true | |
| 451 | coroutine.resume(coroutine.create(function() | |
| 452 | wait() | |
| 453 | SlashSound.Parent = nil | |
| 454 | end)) | |
| 455 | end | |
| 456 | function fs(parent,p,v) --Fire Sound | |
| 457 | ||
| 458 | local SlashSound = Instance.new("Sound")
| |
| 459 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=31758982" | |
| 460 | SlashSound.Parent = parent | |
| 461 | SlashSound.Volume = (v or .7) | |
| 462 | SlashSound.Pitch = p | |
| 463 | SlashSound.PlayOnRemove = true | |
| 464 | coroutine.resume(coroutine.create(function() | |
| 465 | wait() | |
| 466 | SlashSound.Parent = nil | |
| 467 | end)) | |
| 468 | end | |
| 469 | function srfs(parent,p,v) | |
| 470 | ||
| 471 | local SlashSound = Instance.new("Sound")
| |
| 472 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=12222132" | |
| 473 | SlashSound.Parent = parent | |
| 474 | SlashSound.Volume = (v or .7) | |
| 475 | SlashSound.Pitch = p | |
| 476 | SlashSound.PlayOnRemove = true | |
| 477 | coroutine.resume(coroutine.create(function() | |
| 478 | wait(0.1) | |
| 479 | SlashSound.Parent = nil | |
| 480 | end)) | |
| 481 | end | |
| 482 | ||
| 483 | -- | |
| 484 | ||
| 485 | function returndmg() | |
| 486 | mindamage = omindamage | |
| 487 | maxdamage = omaxdamage | |
| 488 | crtmaxdamage = ocrtmaxdamage | |
| 489 | end | |
| 490 | ||
| 491 | function subdmg(sub) | |
| 492 | mindamage = omindamage - sub | |
| 493 | maxdamage = omaxdamage - sub | |
| 494 | crtmaxdamage = ocrtmaxdamage - sub | |
| 495 | end | |
| 496 | ||
| 497 | function prcntdmg(sub) | |
| 498 | mindamage = math.floor(omindamage - (omindamage*(sub/100))) | |
| 499 | maxdamage = math.floor(omaxdamage - (omaxdamage*(sub/100))) | |
| 500 | crtmaxdamage = math.floor(ocrtmaxdamage - (ocrtmaxdamage*(sub/100))) | |
| 501 | end | |
| 502 | ||
| 503 | function tagHumanoid(humanoid, player) | |
| 504 | local creator_tag = Instance.new("ObjectValue")
| |
| 505 | creator_tag.Value = player | |
| 506 | creator_tag.Name = "creator" | |
| 507 | creator_tag.Parent = humanoid | |
| 508 | end | |
| 509 | ||
| 510 | function untagHumanoid(humanoid) | |
| 511 | if humanoid ~= nil then | |
| 512 | local tag = humanoid:findFirstChild("creator")
| |
| 513 | if tag ~= nil then | |
| 514 | tag.Parent = nil | |
| 515 | end | |
| 516 | end | |
| 517 | end | |
| 518 | ||
| 519 | local function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , Ignore Descendants | |
| 520 | return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
| 521 | end | |
| 522 | ||
| 523 | ||
| 524 | ||
| 525 | function hideanim() | |
| 526 | attack = true | |
| 527 | for i = 0 , 1 , 0.1 do | |
| 528 | wait() | |
| 529 | RW.C0 = CFrame.new(1+0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(90+90*i), 0, math.rad(-45+90*i)) | |
| 530 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 531 | LW.C0 = CFrame.new(-1+0.5*i, 0.5, -0.5-0.5*i) * CFrame.Angles(math.rad(45+90*i), 0, math.rad(45+35*i)) | |
| 532 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 533 | w1.C0 = CFrame.Angles(math.rad(-45-45*i), math.rad(0), math.rad(0)) | |
| 534 | end | |
| 535 | for i = 0 , 1 , 0.1 do | |
| 536 | wait() | |
| 537 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(180+90*i), 0, math.rad(45-80*i)) | |
| 538 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 539 | LW.C0 = CFrame.new(-0.5+0.5*i, 0.5, -1) * CFrame.Angles(math.rad(135), 0, math.rad(85)) | |
| 540 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-45*i), 0, 0) | |
| 541 | w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
| 542 | end | |
| 543 | unequipweld() | |
| 544 | for i = 0 , 1 , 0.1 do | |
| 545 | wait() | |
| 546 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(270-270*i), 0, math.rad(-35+35*i)) | |
| 547 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 548 | LW.C0 = CFrame.new(-1.5*i, 0.5, -1+1*i) * CFrame.Angles(math.rad(135-135*i), 0, math.rad(85-85*i)) | |
| 549 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-45+45*i), 0, 0) | |
| 550 | end | |
| 551 | LWRem() | |
| 552 | RWRem() | |
| 553 | ||
| 554 | attack = false | |
| 555 | end | |
| 556 | ||
| 557 | ||
| 558 | function equipanim() | |
| 559 | attack = true | |
| 560 | RWFunc() | |
| 561 | LWFunc() | |
| 562 | uss(Head,1,0.5) | |
| 563 | for i = 0 , 1 , 0.2 do | |
| 564 | wait() | |
| 565 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-90*i), 0, math.rad(-45*i)) | |
| 566 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 567 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 568 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 569 | end | |
| 570 | equipweld() | |
| 571 | for i = 0 , 1 , 0.1 do | |
| 572 | wait() | |
| 573 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-90+180*i), 0, math.rad(-45+90*i)) | |
| 574 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 575 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 576 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 577 | w1.C0 = CFrame.Angles(math.rad(-90+180*i), 0, math.rad(90)) | |
| 578 | end | |
| 579 | for i = 0 , 1 , 0.1 do | |
| 580 | wait() | |
| 581 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90+90*i), 0, math.rad(45-45*i)) | |
| 582 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 583 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 584 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 585 | w1.C0 = CFrame.Angles(math.rad(90+180*i), 0, math.rad(90)) | |
| 586 | end | |
| 587 | for i = 0 , 1 , 0.1 do | |
| 588 | wait() | |
| 589 | RW.C0 = CFrame.new(1.5-0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(180-90*i), 0, math.rad(-45*i)) | |
| 590 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 591 | LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(45*i), 0, math.rad(45*i)) | |
| 592 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 593 | w1.C0 = CFrame.Angles(math.rad(-90+45*i), math.rad(0), math.rad(90-90*i)) | |
| 594 | end | |
| 595 | ||
| 596 | attack = false | |
| 597 | end | |
| 598 | ||
| 599 | ||
| 600 | if (script.Parent.className ~= "HopperBin") then | |
| 601 | Tool = Instance.new("HopperBin")
| |
| 602 | Tool.Parent = Backpack | |
| 603 | Tool.Name = ToolName | |
| 604 | script.Parent = Tool | |
| 605 | end | |
| 606 | Bin = script.Parent | |
| 607 | ||
| 608 | function damagesplat(dmg,hit) | |
| 609 | local mo = Instance.new("Model")
| |
| 610 | mo.Name = dmg | |
| 611 | local pa = Instance.new("Part",mo)
| |
| 612 | pa.formFactor = 3 | |
| 613 | pa.Size = Vector3.new(0.8,0.3,0.8) | |
| 614 | pa.BrickColor = BrickColor.new("Bright red")
| |
| 615 | pa.CFrame = CFrame.new(hit.Position) * CFrame.new(0, 3, 0) | |
| 616 | pa.Name = "Head" | |
| 617 | local hah = Instance.new("Humanoid")
| |
| 618 | hah.Parent = mo | |
| 619 | hah.MaxHealth = 0 | |
| 620 | hah.Health = 0 | |
| 621 | local bp = Instance.new("BodyPosition")
| |
| 622 | bp.P = 14000 | |
| 623 | bp.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
| 624 | bp.position = hit.Position + Vector3.new(0, 5, 0) | |
| 625 | coroutine.resume(coroutine.create(function() | |
| 626 | wait() | |
| 627 | mo.Parent = workspace | |
| 628 | bp.Parent = pa | |
| 629 | wait(1.4) | |
| 630 | mo:remove() | |
| 631 | end)) | |
| 632 | end | |
| 633 | ||
| 634 | function damage(hum,dmg,critornot) | |
| 635 | damagesplat(dmg,hum.Torso,critornot) | |
| 636 | hum:TakeDamage(dmg) | |
| 637 | coroutine.resume(coroutine.create(function() | |
| 638 | tagHumanoid(hum,Player) | |
| 639 | wait(1) | |
| 640 | untagHumanoid(hum) | |
| 641 | end)) | |
| 642 | end | |
| 643 | ||
| 644 | ||
| 645 | function OT(hit) --Normal Damage | |
| 646 | if Hitdeb == 1 then return end | |
| 647 | if hit.Parent == nil then return end | |
| 648 | local hum = hit.Parent:findFirstChild("Humanoid") if hum ~= nil and hum ~= Character.Humanoid then
| |
| 649 | local critrandomizer = math.random(crtrate) | |
| 650 | if critrandomizer ~= 1 then | |
| 651 | local rndmdamage = math.random(mindamage,maxdamage) + bonusdmg | |
| 652 | damage(hum,rndmdamage,false) | |
| 653 | elseif critrandomizer == 1 then | |
| 654 | local rndmdamage = math.random(maxdamage,crtmaxdamage) + bonusdmg | |
| 655 | damage(hum,rndmdamage,true) | |
| 656 | end | |
| 657 | Hitdeb = 1 | |
| 658 | end | |
| 659 | end | |
| 660 | ||
| 661 | function OT2(hit) --Flip Damage | |
| 662 | if Hitdeb == 1 then return end | |
| 663 | if hit.Parent == nil then return end | |
| 664 | local hum = hit.Parent:findFirstChild("Humanoid") if hum ~= nil and hum ~= Character.Humanoid then
| |
| 665 | local critrandomizer = math.random(crtrate) | |
| 666 | if critrandomizer ~= 1 then | |
| 667 | local rndmdamage = math.random(mindamage,maxdamage) + bonusdmg | |
| 668 | damage(hum,rndmdamage,false) | |
| 669 | hit.Parent.Torso.CFrame = hit.Parent.Torso.CFrame * CFrame.Angles(-0.5*math.random(),0,0) | |
| 670 | elseif critrandomizer == 1 then | |
| 671 | local rndmdamage = math.random(maxdamage,crtmaxdamage) + bonusdmg | |
| 672 | damage(hum,rndmdamage,true) | |
| 673 | hit.Parent.Torso.CFrame = hit.Parent.Torso.CFrame * CFrame.Angles(-0.5*math.random(),0,0) | |
| 674 | end | |
| 675 | Hitdeb = 1 | |
| 676 | end | |
| 677 | end | |
| 678 | ||
| 679 | ||
| 680 | ||
| 681 | function AoE(p,magnitude) | |
| 682 | local c = game.Workspace:GetChildren(); | |
| 683 | for i = 1, #c do | |
| 684 | local hum = c[i]:findFirstChild("Humanoid")
| |
| 685 | if hum ~= nil and hum.Health ~= 0 then | |
| 686 | local head = c[i]:findFirstChild("Head");
| |
| 687 | if head ~= nil then | |
| 688 | local mag = (head.Position - p).magnitude; | |
| 689 | if mag <= magnitude and c[i].Name ~= Character.Name then | |
| 690 | local foundd = false | |
| 691 | for ii = 1 , #AoETrue do | |
| 692 | if AoETrue[ii] == c[i].Name then | |
| 693 | ||
| 694 | foundd = true | |
| 695 | end | |
| 696 | end | |
| 697 | if foundd then | |
| 698 | ||
| 699 | end | |
| 700 | -- | |
| 701 | if not foundd then | |
| 702 | local critrandomizer = math.random(crtrate) | |
| 703 | if critrandomizer ~= 1 then | |
| 704 | local rndmdamage = math.random(mindamage,maxdamage) + bonusdmg | |
| 705 | damage(hum,rndmdamage,false) | |
| 706 | elseif critrandomizer == 1 then | |
| 707 | local rndmdamage = math.random(maxdamage,crtmaxdamage) + bonusdmg | |
| 708 | damage(hum,rndmdamage,true) | |
| 709 | end | |
| 710 | table.insert(AoETrue,c[i].Name) | |
| 711 | end | |
| 712 | end | |
| 713 | end | |
| 714 | end | |
| 715 | end | |
| 716 | for ii = 1 , #AoETrue do | |
| 717 | table.remove(AoETrue,#AoETrue) | |
| 718 | end | |
| 719 | end | |
| 720 | ||
| 721 | -- | |
| 722 | -- | |
| 723 | ||
| 724 | LastPoint = prt1.CFrame * CFrame.new(0,prt1.Size.Y/2,0) | |
| 725 | function effect(Color,Ref,LP,P1,returnn) | |
| 726 | local effectsmsh = Instance.new("BlockMesh")
| |
| 727 | effectsmsh.Scale = Vector3.new(1,1,1) | |
| 728 | effectsmsh.Name = "Mesh" | |
| 729 | local effectsg = Instance.new("Part")
| |
| 730 | effectsg.formFactor = 3 | |
| 731 | effectsg.CanCollide = false | |
| 732 | effectsg.Name = "Eff" | |
| 733 | effectsg.Locked = true | |
| 734 | effectsg.Anchored = true | |
| 735 | effectsg.Size = Vector3.new(0.2,1,0.2) | |
| 736 | effectsg.Parent = swordholder | |
| 737 | effectsmsh.Parent = effectsg | |
| 738 | effectsg.BrickColor = BrickColor.new(Color) | |
| 739 | effectsg.Reflectance = Ref | |
| 740 | local point1 = P1 | |
| 741 | local mg = (LP.p - point1.p).magnitude | |
| 742 | effectsg.Size = Vector3.new(0.2,mg,0.2) | |
| 743 | effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0) | |
| 744 | if returnn then return effectsg end | |
| 745 | coroutine.resume(coroutine.create(function() | |
| 746 | if not returnn then | |
| 747 | for i = 0 , 1 , 0.1 do | |
| 748 | wait() | |
| 749 | effectsg.Transparency = 1*i | |
| 750 | effectsmsh.Scale = Vector3.new(1-1*i,1,1-1*i) | |
| 751 | end | |
| 752 | wait() | |
| 753 | effectsg.Parent = nil | |
| 754 | end | |
| 755 | end)) | |
| 756 | end | |
| 757 | -- | |
| 758 | ||
| 759 | con = nil | |
| 760 | ||
| 761 | function dmgcnnct() | |
| 762 | if con ~= nil then | |
| 763 | con:disconnect() | |
| 764 | Hitdeb = 0 | |
| 765 | end | |
| 766 | con = prt1.Touched:connect(OT) | |
| 767 | end | |
| 768 | ||
| 769 | function dmgflipcnnct() | |
| 770 | if con ~= nil then | |
| 771 | con:disconnect() | |
| 772 | Hitdeb = 0 | |
| 773 | end | |
| 774 | con = prt1.Touched:connect(OT2) | |
| 775 | end | |
| 776 | ||
| 777 | function dmgdc() | |
| 778 | if con ~= nil then | |
| 779 | con:disconnect() | |
| 780 | Hitdeb = 0 | |
| 781 | end | |
| 782 | end | |
| 783 | ||
| 784 | function rptddmg(value,des,inc) | |
| 785 | coroutine.resume(coroutine.create(function() | |
| 786 | repeat | |
| 787 | wait(inc) | |
| 788 | Hitdeb = 0 | |
| 789 | until value == des | |
| 790 | end)) | |
| 791 | end | |
| 792 | ||
| 793 | function atktype(s,e) | |
| 794 | coroutine.resume(coroutine.create(function () | |
| 795 | attacktype = e | |
| 796 | wait(0.5) | |
| 797 | attacktype = s | |
| 798 | end)) | |
| 799 | end | |
| 800 | ||
| 801 | function Slash1() | |
| 802 | attack = true | |
| 803 | local LastPoint = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0) | |
| 804 | local LastPoint2 = prt1.CFrame * CFrame.new(0,prt1.Size.Y/2,0) | |
| 805 | for i = 0 , 1 , 0.2 do | |
| 806 | wait() | |
| 807 | local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0) | |
| 808 | local Point2 = prt1.CFrame * CFrame.new(0,prt1.Size.Y/2,0) | |
| 809 | effect("Really red",0.5,LastPoint,Point)
| |
| 810 | effect("Really red",0.5,LastPoint2,Point2)
| |
| 811 | LastPoint = Point | |
| 812 | LastPoint2 = Point2 | |
| 813 | RW.C0 = CFrame.new(1, 0.5+1*i, -0.5) * CFrame.Angles(math.rad(90+90*i), 0, math.rad(-45)) | |
| 814 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 815 | LW.C0 = CFrame.new(-1, 0.5+1*i, -0.5) * CFrame.Angles(math.rad(45+135*i), 0, math.rad(45)) | |
| 816 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 817 | w1.C0 = CFrame.Angles(math.rad(-45-45*i), math.rad(0), math.rad(135*i)) | |
| 818 | end | |
| 819 | local TorsPos = Torso.Position | |
| 820 | local bp = Instance.new("BodyPosition",Torso)
| |
| 821 | bp.maxForce = Vector3.new(0, math.huge,0) | |
| 822 | bp.P = 14000 | |
| 823 | bp.position = TorsPos + Vector3.new(0,2,0) | |
| 824 | local mesh = Instance.new("CylinderMesh")
| |
| 825 | mesh.Scale = Vector3.new(5.1,0.1,5.1) | |
| 826 | local shell = Instance.new("Part")
| |
| 827 | mesh.Parent = shell | |
| 828 | shell.Anchored = true | |
| 829 | shell.formFactor = 3 | |
| 830 | shell.Size = Vector3.new(1,0.5,1) | |
| 831 | shell.CFrame = CFrame.new() + prt1.Position | |
| 832 | shell.Parent = swordholder | |
| 833 | shell.Transparency = 0.5 | |
| 834 | shell.BrickColor = BrickColor.new("Really red")
| |
| 835 | shell.CanCollide = false | |
| 836 | local mesh2 = Instance.new("SpecialMesh")
| |
| 837 | mesh2.Scale = Vector3.new(5.5,1,5.5) | |
| 838 | mesh2.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
| 839 | local shell2 = Instance.new("Part")
| |
| 840 | shell2.Anchored = true | |
| 841 | mesh2.Parent = shell2 | |
| 842 | shell2.formFactor = 3 | |
| 843 | shell2.Size = Vector3.new(0.2,0.2,0.2) | |
| 844 | shell2.CFrame = shell.CFrame * CFrame.Angles(math.rad(180),0,0) | |
| 845 | shell2.Parent = swordholder | |
| 846 | shell2.Transparency = 0.5 | |
| 847 | shell2.BrickColor = BrickColor.new("Really red")
| |
| 848 | shell2.CanCollide = false | |
| 849 | ||
| 850 | local derp = false | |
| 851 | ||
| 852 | coroutine.resume(coroutine.create(function() | |
| 853 | for i = 0 , 1 , 0.2 do | |
| 854 | wait() | |
| 855 | shell.Transparency = 1-0.5*i | |
| 856 | shell2.Transparency = 1-0.5*i | |
| 857 | end | |
| 858 | end)) | |
| 859 | coroutine.resume(coroutine.create(function() | |
| 860 | local ii = 0 | |
| 861 | local yy = 1 | |
| 862 | repeat | |
| 863 | wait() | |
| 864 | ii = ii + 50 | |
| 865 | yy = yy + 0.25 | |
| 866 | shell.CFrame = CFrame.Angles(0,math.rad(ii),0) + prt1.Position | |
| 867 | shell2.CFrame = shell.CFrame * CFrame.Angles(math.rad(180),0,0) | |
| 868 | mesh2.Scale = Vector3.new(5.5,yy,5.5) | |
| 869 | until derp | |
| 870 | for i = 0 , 1 , 0.1 do | |
| 871 | wait() | |
| 872 | yy = yy + 0.5 | |
| 873 | shell.Transparency = 0.5+0.5*i | |
| 874 | shell2.Transparency = 0.5+0.5*i | |
| 875 | mesh2.Scale = Vector3.new(5.5-2*i,yy,5.5-2*i) | |
| 876 | end | |
| 877 | shell.Parent = nil | |
| 878 | shell2.Parent = nil | |
| 879 | end)) | |
| 880 | ||
| 881 | dmgcnnct() | |
| 882 | prcntdmg(50) | |
| 883 | rptddmg(derp,true,0.75) | |
| 884 | for rep = 1 , 2 do | |
| 885 | ss(Head,1,0.5) | |
| 886 | for i = 0 , 1 , 0.2 do | |
| 887 | wait() | |
| 888 | local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0) | |
| 889 | local Point2 = prt1.CFrame * CFrame.new(0,prt1.Size.Y/2,0) | |
| 890 | effect("Really red",0.5,LastPoint,Point)
| |
| 891 | effect("Really red",0.5,LastPoint2,Point2)
| |
| 892 | LastPoint = Point | |
| 893 | LastPoint2 = Point2 | |
| 894 | w1.C0 = CFrame.Angles(math.rad(-90), math.rad(180*i), math.rad(135)) | |
| 895 | end | |
| 896 | ss(Head,1,0.5) | |
| 897 | for i = 0 , 1 , 0.2 do | |
| 898 | wait() | |
| 899 | local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0) | |
| 900 | local Point2 = prt1.CFrame * CFrame.new(0,prt1.Size.Y/2,0) | |
| 901 | effect("Really red",0.5,LastPoint,Point)
| |
| 902 | effect("Really red",0.5,LastPoint2,Point2)
| |
| 903 | LastPoint = Point | |
| 904 | LastPoint2 = Point2 | |
| 905 | w1.C0 = CFrame.Angles(math.rad(-90), math.rad(180+180*i), math.rad(135)) | |
| 906 | end | |
| 907 | end | |
| 908 | returndmg() | |
| 909 | dmgdc() | |
| 910 | derp = true | |
| 911 | local done = false | |
| 912 | local hit,pos = nil,nil | |
| 913 | for i = 0 , 1 , 0.2 do | |
| 914 | wait() | |
| 915 | local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0) | |
| 916 | effect("Really red",0.5,LastPoint,Point)
| |
| 917 | LastPoint = Point | |
| 918 | RW.C0 = CFrame.new(1+0.5*i, 1.5-1*i, -0.5+0.5*i) * CFrame.Angles(math.rad(180-45*i), 0, math.rad(-45+90*i)) | |
| 919 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 920 | LW.C0 = CFrame.new(-1-0.5*i, 1.5-1*i, -0.5+0.5*i) * CFrame.Angles(math.rad(180-45*i), 0, math.rad(45-90*i)) | |
| 921 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 922 | w1.C0 = CFrame.Angles(math.rad(-90+45*i), math.rad(0), math.rad(135-135*i)) | |
| 923 | w1.C1 = CFrame.new(0,0,0) | |
| 924 | if i > 0.5 and not done then | |
| 925 | hit,pos = rayCast(Torso.Position, (Torso.CFrame * CFrame.Angles(math.rad(-90),0,0)).lookVector, 100, Character) | |
| 926 | bp.position = pos + Vector3.new(0,1,0) | |
| 927 | bp.P = 5000 | |
| 928 | done = true | |
| 929 | end | |
| 930 | end | |
| 931 | dmgcnnct() | |
| 932 | ||
| 933 | local p1 = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0) | |
| 934 | for i = 0 , 1 , 0.2 do | |
| 935 | wait() | |
| 936 | RW.C0 = CFrame.new(1.5-1*i, 0.5, -1*i) * CFrame.Angles(math.rad(135-90*i), 0, math.rad(45-90*i)) | |
| 937 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 938 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(135-180*i), 0, math.rad(-45)) | |
| 939 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 940 | w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0)) | |
| 941 | w1.C1 = CFrame.new(0,0,0) | |
| 942 | end | |
| 943 | bp.Parent = nil | |
| 944 | ss(Head,1.5,1) | |
| 945 | for i = 0 , 1 , 0.2 do | |
| 946 | wait() | |
| 947 | RW.C0 = CFrame.new(0.5, 0.5, -1) * CFrame.Angles(math.rad(45-10*i), 0, math.rad(-45-10*i)) | |
| 948 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 949 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-45), 0, math.rad(-45)) | |
| 950 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 951 | w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0)) | |
| 952 | w1.C1 = CFrame.new(0,0,0) | |
| 953 | end | |
| 954 | local effectsmsh = Instance.new("SpecialMesh")
| |
| 955 | effectsmsh.Scale = Vector3.new(0.5,1,0.5) | |
| 956 | effectsmsh.MeshId = "http://www.roblox.com/asset/?id=13425802" | |
| 957 | local effectsg = Instance.new("Part")
| |
| 958 | effectsg.formFactor = 3 | |
| 959 | effectsg.CanCollide = false | |
| 960 | effectsg.Name = "Eff" | |
| 961 | effectsg.Locked = true | |
| 962 | effectsg.Anchored = true | |
| 963 | effectsg.Size = Vector3.new(0.2,0.2,0.2) | |
| 964 | effectsg.Parent = swordholder | |
| 965 | effectsmsh.Parent = effectsg | |
| 966 | effectsg.BrickColor = bcolor | |
| 967 | effectsg.Reflectance = 0.25 | |
| 968 | local point1 = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0) | |
| 969 | local LP = p1 | |
| 970 | local mg = (LP.p - point1.p).magnitude | |
| 971 | effectsmsh.Scale = Vector3.new(mg/3,1,0.2) | |
| 972 | effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,math.rad(-90)) | |
| 973 | coroutine.resume(coroutine.create(function() | |
| 974 | for i = 0 , 1 , 0.1 do | |
| 975 | wait() | |
| 976 | effectsg.Transparency = 1*i | |
| 977 | end | |
| 978 | wait() | |
| 979 | effectsg.Parent = nil | |
| 980 | end)) | |
| 981 | wait(0.2) | |
| 982 | dmgdc() | |
| 983 | for i = 0 , 1 , 0.1 do | |
| 984 | wait() | |
| 985 | RW.C0 = CFrame.new(0.5+0.5*i, 0.5, -1+0.5*i) * CFrame.Angles(math.rad(35+55*i), 0, math.rad(-55+10*i)) | |
| 986 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 987 | LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(-45+90*i), 0, math.rad(-45+90*i)) | |
| 988 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 989 | w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0)) | |
| 990 | end | |
| 991 | attack = false | |
| 992 | end | |
| 993 | ||
| 994 | ||
| 995 | function RoundSlash() | |
| 996 | attack = true | |
| 997 | ss(Head,1,0.5) | |
| 998 | local TorsCF = Torso.CFrame | |
| 999 | local bg = Instance.new("BodyGyro",Torso)
| |
| 1000 | bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge) | |
| 1001 | bg.P = bg.p * 25 | |
| 1002 | bg.cframe = TorsCF | |
| 1003 | for i = 0 , 1 , 0.2 do | |
| 1004 | wait() | |
| 1005 | RW.C0 = CFrame.new(1+0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(90+45*i), 0, math.rad(-45+90*i)) | |
| 1006 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1007 | LW.C0 = CFrame.new(-1-0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(45+25*i), 0, math.rad(45-90*i)) | |
| 1008 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1009 | w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0)) | |
| 1010 | end | |
| 1011 | dmgcnnct() | |
| 1012 | LastPoint = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0) | |
| 1013 | for i = 0 , 1 , 0.2 do | |
| 1014 | wait() | |
| 1015 | RW.C0 = CFrame.new(1.5-1*i, 0.5, -1*i) * CFrame.Angles(math.rad(135-90*i), 0, math.rad(45-90*i)) | |
| 1016 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1017 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(70-90*i), 0, math.rad(-45)) | |
| 1018 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1019 | w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(45*i)) | |
| 1020 | w1.C1 = CFrame.Angles(math.rad(-25*i),0,0) | |
| 1021 | bg.cframe = TorsCF * CFrame.Angles(0,math.rad(180*i),0) | |
| 1022 | local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0) | |
| 1023 | effect("Really red",0.5,LastPoint,Point)
| |
| 1024 | LastPoint = Point | |
| 1025 | end | |
| 1026 | Hitdeb=0 | |
| 1027 | RWLFunc() LWLFunc() | |
| 1028 | for i = 0 , 1 , 0.1 do | |
| 1029 | wait() | |
| 1030 | RW.C0 = CFrame.new(0.5, 0.5, -1) * CFrame.Angles(math.rad(45), 0, math.rad(-45-25*i)) | |
| 1031 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1032 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-20), 0, math.rad(-45)) | |
| 1033 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1034 | RWL.C0 = CFrame.new(1, -1+1*i, -1*i) * CFrame.Angles(0, 0, 0) | |
| 1035 | RWL.C1 = CFrame.new(0.5, 1, 0) | |
| 1036 | LWL.C0 = CFrame.new(-1, -1-0.5*i, -0.5*i) * CFrame.Angles(math.rad(-90*i), 0, 0) | |
| 1037 | LWL.C1 = CFrame.new(-0.5, 1, 0) | |
| 1038 | w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(45)) | |
| 1039 | w1.C1 = CFrame.Angles(math.rad(-25),0,0) | |
| 1040 | bg.cframe = TorsCF * CFrame.Angles(0,math.rad(180+180*i),0) | |
| 1041 | local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0) | |
| 1042 | effect("Really red",0.5,LastPoint,Point)
| |
| 1043 | LastPoint = Point | |
| 1044 | end | |
| 1045 | dmgdc() | |
| 1046 | for i = 0 , 1 , 0.1 do | |
| 1047 | wait() | |
| 1048 | RW.C0 = CFrame.new(0.5+0.5*i, 0.5, -1+0.5*i) * CFrame.Angles(math.rad(45+45*i), 0, math.rad(-70+25*i)) | |
| 1049 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1050 | LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(-20+65*i), 0, math.rad(-45+90*i)) | |
| 1051 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1052 | RWL.C0 = CFrame.new(1, -1*i, -1+1*i) * CFrame.Angles(0, 0, 0) | |
| 1053 | RWL.C1 = CFrame.new(0.5, 1, 0) | |
| 1054 | LWL.C0 = CFrame.new(-1, -1.5+0.5*i, -0.5+0.5*i) * CFrame.Angles(math.rad(-90+90*i), 0, 0) | |
| 1055 | LWL.C1 = CFrame.new(-0.5, 1, 0) | |
| 1056 | w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(45-45*i)) | |
| 1057 | w1.C1 = CFrame.Angles(math.rad(-25+25*i),0,0) | |
| 1058 | bg.cframe = TorsCF * CFrame.Angles(0,math.rad(360*i),0) | |
| 1059 | local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0) | |
| 1060 | effect("Really red",0.5,LastPoint,Point)
| |
| 1061 | LastPoint = Point | |
| 1062 | end | |
| 1063 | RWLRem() LWLRem() | |
| 1064 | wait(0.1) | |
| 1065 | local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0) | |
| 1066 | effect("Really red",0.5,LastPoint,Point)
| |
| 1067 | LastPoint = Point | |
| 1068 | bg.Parent = nil | |
| 1069 | wait(0.1) | |
| 1070 | attack = false | |
| 1071 | end | |
| 1072 | ||
| 1073 | ||
| 1074 | function Combo1() | |
| 1075 | attack = true | |
| 1076 | ss(Head,1,0.5) | |
| 1077 | ss(Head,2,0.5) | |
| 1078 | LastPoint = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0) | |
| 1079 | dmgcnnct() | |
| 1080 | for i = 0 , 1 , 0.1 do | |
| 1081 | wait() | |
| 1082 | RW.C0 = CFrame.new(1+0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(90+90*i),math.rad(-45*i), math.rad(-45+90*i)) | |
| 1083 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1084 | LW.C0 = CFrame.new(-1+1*i, 0.5, -0.5-0.5*i) * CFrame.Angles(math.rad(45+90*i), 0, math.rad(45+45*i)) | |
| 1085 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1086 | w1.C0 = CFrame.Angles(math.rad(-45-270*i), math.rad(0), math.rad(0)) | |
| 1087 | local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0) | |
| 1088 | effect("Really red",0.5,LastPoint,Point)
| |
| 1089 | LastPoint = Point | |
| 1090 | if i > 0.2 then ss(Head,2,0.5) end | |
| 1091 | end | |
| 1092 | Hitdeb=0 | |
| 1093 | for i = 0 , 1 , 0.2 do | |
| 1094 | wait() | |
| 1095 | RW.C0 = CFrame.new(1.5-0.8*i, 0.5, -1*i) * CFrame.Angles(math.rad(180-145*i),math.rad(-45), math.rad(45-90*i)) | |
| 1096 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1097 | LW.C0 = CFrame.new(-1*i, 0.5, -1+0.5*i) * CFrame.Angles(math.rad(135-45*i), 0, math.rad(90-80*i)) | |
| 1098 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1099 | w1.C0 = CFrame.Angles(math.rad(-315), math.rad(0), math.rad(0)) | |
| 1100 | local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0) | |
| 1101 | effect("Really red",0.5,LastPoint,Point)
| |
| 1102 | LastPoint = Point | |
| 1103 | end | |
| 1104 | dmgdc() | |
| 1105 | atktype(1,2) | |
| 1106 | attack = false | |
| 1107 | for i = 0 , 1 , 0.1 do | |
| 1108 | if attack then return end | |
| 1109 | wait() | |
| 1110 | RW.C0 = CFrame.new(0.7-0.2*i, 0.5, -1) * CFrame.Angles(math.rad(35-20*i),math.rad(-45), math.rad(-45-20*i)) | |
| 1111 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1112 | LW.C0 = CFrame.new(-1, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(10)) | |
| 1113 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1114 | w1.C0 = CFrame.Angles(math.rad(-315), math.rad(0), math.rad(0)) | |
| 1115 | local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0) | |
| 1116 | effect("Really red",0.5,LastPoint,Point)
| |
| 1117 | LastPoint = Point | |
| 1118 | end | |
| 1119 | for i = 0 , 1 , 0.1 do | |
| 1120 | if attack then return end | |
| 1121 | wait() | |
| 1122 | RW.C0 = CFrame.new(0.5+0.5*i, 0.5, -1+0.5*i) * CFrame.Angles(math.rad(15+75*i),math.rad(-45+45*i), math.rad(-65+20*i)) | |
| 1123 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1124 | LW.C0 = CFrame.new(-1, 0.5, -0.5) * CFrame.Angles(math.rad(90-45*i), 0, math.rad(10+35*i)) | |
| 1125 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1126 | w1.C0 = CFrame.Angles(math.rad(-315-90*i), math.rad(0), math.rad(0)) | |
| 1127 | end | |
| 1128 | end | |
| 1129 | ||
| 1130 | function Combo2() | |
| 1131 | attack = true | |
| 1132 | ss(Head,1,0.5) | |
| 1133 | for i = 0 , 1 ,0.1 do | |
| 1134 | wait() | |
| 1135 | RW.C0 = CFrame.new(0.7, 0.5, -1) * CFrame.Angles(math.rad(35+55*i),math.rad(-45+135*i), math.rad(-45+45*i)) | |
| 1136 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-60*i), 0, 0) | |
| 1137 | LW.C0 = CFrame.new(-1-0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(90), 0, math.rad(10)) | |
| 1138 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1139 | w1.C0 = CFrame.Angles(math.rad(-315-90*i), math.rad(0), math.rad(0)) | |
| 1140 | end | |
| 1141 | dmgflipcnnct() | |
| 1142 | LastPoint = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0) | |
| 1143 | for i = 0 , 1 ,0.2 do | |
| 1144 | wait() | |
| 1145 | RW.C0 = CFrame.new(0.7-0.8*i, 0.5, -1+1*i) * CFrame.Angles(math.rad(90),math.rad(90), math.rad(0)) | |
| 1146 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-60+195*i), 0, 0) | |
| 1147 | LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -1*i) * CFrame.Angles(math.rad(90), 0, math.rad(10+80*i)) | |
| 1148 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1149 | w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0)) | |
| 1150 | local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0) | |
| 1151 | effect("Really red",0.5,LastPoint,Point)
| |
| 1152 | LastPoint = Point | |
| 1153 | end | |
| 1154 | dmgdc() | |
| 1155 | local TorsCF = Torso.CFrame | |
| 1156 | local bg = Instance.new("BodyGyro",Torso)
| |
| 1157 | bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge) | |
| 1158 | bg.P = 100000 | |
| 1159 | bg.cframe = TorsCF | |
| 1160 | ss(Head,1,0.5) | |
| 1161 | dmgflipcnnct() | |
| 1162 | for i = 0 , 1 ,0.15 do | |
| 1163 | wait() | |
| 1164 | RW.C0 = CFrame.new(1.5-0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(90),math.rad(90), math.rad(0)) | |
| 1165 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(135-180*i), 0, 0) | |
| 1166 | LW.C0 = CFrame.new(-1-0.5*i, 0.5, -1+1*i) * CFrame.Angles(math.rad(90), 0, math.rad(90-180*i)) | |
| 1167 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1168 | w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0)) | |
| 1169 | bg.cframe = TorsCF * CFrame.Angles(0,math.rad(-90*i),0) | |
| 1170 | end | |
| 1171 | LastPoint = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0) | |
| 1172 | for i = 0 , 1 ,0.1 do | |
| 1173 | wait() | |
| 1174 | RW.C0 = CFrame.new(1+0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(90),math.rad(90), math.rad(0)) | |
| 1175 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-45+180*i), 0, 0) | |
| 1176 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(-90)) | |
| 1177 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1178 | w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0)) | |
| 1179 | bg.cframe = TorsCF * CFrame.Angles(0,math.rad(-90-270*i),0) | |
| 1180 | local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0) | |
| 1181 | effect("Really red",0.5,LastPoint,Point)
| |
| 1182 | LastPoint = Point | |
| 1183 | end | |
| 1184 | dmgdc() | |
| 1185 | bg.Parent = nil | |
| 1186 | attack = false | |
| 1187 | atktype(1,3) | |
| 1188 | for i = 0 , 1 ,0.2 do | |
| 1189 | if attack then break end | |
| 1190 | wait() | |
| 1191 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(90), math.rad(0)) | |
| 1192 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(135+20*i), 0, 0) | |
| 1193 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(-90)) | |
| 1194 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1195 | w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0)) | |
| 1196 | end | |
| 1197 | for i = 0 , 1 ,0.1 do | |
| 1198 | if attack then break end | |
| 1199 | wait() | |
| 1200 | RW.C0 = CFrame.new(1.5-0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(90),math.rad(90-90*i), math.rad(-45*i)) | |
| 1201 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(155-155*i), 0, 0) | |
| 1202 | LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(90-45*i), 0, math.rad(-90+135*i)) | |
| 1203 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1204 | w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0)) | |
| 1205 | end | |
| 1206 | ||
| 1207 | end | |
| 1208 | ||
| 1209 | function Combo3() | |
| 1210 | attack=true | |
| 1211 | wait(0.1) | |
| 1212 | local TorsCF = Torso.CFrame | |
| 1213 | local bg = Instance.new("BodyGyro",Torso)
| |
| 1214 | bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge) | |
| 1215 | bg.P = 100000 | |
| 1216 | bg.cframe = TorsCF | |
| 1217 | for i = 0 , 1 ,0.1 do | |
| 1218 | wait() | |
| 1219 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(90-90*i), math.rad(90*i)) | |
| 1220 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(135-90*i), 0, 0) | |
| 1221 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(-90)) | |
| 1222 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1223 | w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0)) | |
| 1224 | Neck.C0 = neckcf0 * CFrame.Angles(0,0,math.rad(-90*i)) | |
| 1225 | bg.cframe = TorsCF * CFrame.Angles(0,math.rad(90*i),0) | |
| 1226 | end | |
| 1227 | local P1 = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0) | |
| 1228 | local hitt = nil | |
| 1229 | local TorsPos = P1.p | |
| 1230 | local bp = Instance.new("BodyPosition")
| |
| 1231 | bp.maxForce = Vector3.new(math.huge, math.huge,math.huge) | |
| 1232 | bp.P = 14000 | |
| 1233 | bp.position = TorsPos+Vector3.new(0,5,0) | |
| 1234 | local connection = prt1.Touched:connect(function(hit) | |
| 1235 | if hitt ~= nil then | |
| 1236 | if hit.Parent:findFirstChild("Humanoid") ~= nil then
| |
| 1237 | hitt = hit.Parent.Torso | |
| 1238 | bp.Parent=hitt | |
| 1239 | wait(2) | |
| 1240 | bp.Parent = nil | |
| 1241 | end | |
| 1242 | end | |
| 1243 | end) | |
| 1244 | subdmg(-10) | |
| 1245 | dmgflipcnnct() | |
| 1246 | for i = 0 , 1 ,0.2 do | |
| 1247 | wait() | |
| 1248 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0), math.rad(90)) | |
| 1249 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(45-135*i), 0, 0) | |
| 1250 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(-90)) | |
| 1251 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1252 | w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0)) | |
| 1253 | Neck.C0 = neckcf0 * CFrame.Angles(0,0,math.rad(-90)) | |
| 1254 | bg.cframe = TorsCF * CFrame.Angles(0,math.rad(90),0) | |
| 1255 | end | |
| 1256 | srfs(Head,1,0.5) | |
| 1257 | ss(Head,1,0.5) | |
| 1258 | returndmg() | |
| 1259 | dmgdc() | |
| 1260 | local P2 = CFrame.new(P1.p) * CFrame.new(0,15,0) * CFrame.Angles(math.rad(-10),0,0) | |
| 1261 | local effectsmsh = Instance.new("SpecialMesh")
| |
| 1262 | effectsmsh.MeshType = "Sphere" | |
| 1263 | local effectsg = Instance.new("Part")
| |
| 1264 | effectsg.formFactor = 3 | |
| 1265 | effectsg.CanCollide = false | |
| 1266 | effectsg.Name = "Eff" | |
| 1267 | effectsg.Locked = true | |
| 1268 | effectsg.Anchored = true | |
| 1269 | effectsg.Size = Vector3.new(1,1,1) | |
| 1270 | effectsg.Parent = swordholder | |
| 1271 | effectsmsh.Parent = effectsg | |
| 1272 | effectsg.BrickColor = bcolor | |
| 1273 | effectsg.Reflectance = 0.25 | |
| 1274 | local point1 = P2 | |
| 1275 | local LP = P1 | |
| 1276 | local mg = (LP.p - point1.p).magnitude | |
| 1277 | effectsmsh.Scale = Vector3.new(mg/5,mg*2,mg/5) | |
| 1278 | effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0) + Vector3.new(0,-mg,0) | |
| 1279 | coroutine.resume(coroutine.create(function() | |
| 1280 | for i = 0 , 1 , 0.1 do | |
| 1281 | wait() | |
| 1282 | effectsg.Transparency = 1*i | |
| 1283 | end | |
| 1284 | wait() | |
| 1285 | effectsg.Parent = nil | |
| 1286 | end)) | |
| 1287 | connection:disconnect() | |
| 1288 | for i = 0 , 1 ,0.2 do | |
| 1289 | wait() | |
| 1290 | RW.C0 = CFrame.new(1.5-0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(90),math.rad(0), math.rad(90-135*i)) | |
| 1291 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-90+90*i), 0, 0) | |
| 1292 | LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(90-45*i), 0, math.rad(-90+135*i)) | |
| 1293 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1294 | w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0)) | |
| 1295 | Neck.C0 = neckcf0 * CFrame.Angles(0,0,math.rad(-90+90*i)) | |
| 1296 | bg.cframe = TorsCF * CFrame.Angles(0,math.rad(90-90*i),0) | |
| 1297 | end | |
| 1298 | Neck.C0 = neckcf0 | |
| 1299 | bg.Parent = nil | |
| 1300 | attack=false | |
| 1301 | end | |
| 1302 | ||
| 1303 | ||
| 1304 | ||
| 1305 | local helm = Instance.new("Part")
| |
| 1306 | helm.formFactor = 3 | |
| 1307 | helm.CanCollide = false | |
| 1308 | helm.Name = "LancerHelm" | |
| 1309 | helm.Locked = true | |
| 1310 | helm.Size = Vector3.new(0.2,0.2,0.2) | |
| 1311 | helm.BrickColor = bcolor | |
| 1312 | local helmm = Instance.new("SpecialMesh")
| |
| 1313 | helmm.MeshId = "http://www.roblox.com/asset/?id=27719952" | |
| 1314 | helmm.Parent = helm | |
| 1315 | local helmw = Instance.new("Weld")
| |
| 1316 | local LancerM = false | |
| 1317 | ||
| 1318 | function LancerMode() | |
| 1319 | attack=true | |
| 1320 | if not LancerM then | |
| 1321 | for i = 0,1,0.2 do | |
| 1322 | wait() | |
| 1323 | RW.C0 = CFrame.new(1+0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(90), 0, math.rad(-45+135*i)) | |
| 1324 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1325 | LW.C0 = CFrame.new(-1-0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(45-45*i), 0, math.rad(45-45*i)) | |
| 1326 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1327 | w1.C0 = CFrame.Angles(math.rad(-45-45*i), math.rad(0), math.rad(0)) | |
| 1328 | end | |
| 1329 | for i = 0,1,0.1 do | |
| 1330 | wait() | |
| 1331 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(90), 0, math.rad(90)) | |
| 1332 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1333 | LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, 0) * CFrame.Angles(math.rad(-45*i), 0, math.rad(45*i)) | |
| 1334 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1335 | w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
| 1336 | end | |
| 1337 | ||
| 1338 | helm.Parent = swordholder | |
| 1339 | helmw.Parent = helm | |
| 1340 | helmw.Part0 = helm | |
| 1341 | helmw.Part1 = LeftArm | |
| 1342 | helmw.C0 = CFrame.Angles(math.rad(90),0,math.rad(90)) | |
| 1343 | helmw.C1 = CFrame.new(0,-1.5,0) | |
| 1344 | bonusdmg = 10 | |
| 1345 | LancerM = true | |
| 1346 | wait() | |
| 1347 | for i = 0,1,0.1 do | |
| 1348 | wait() | |
| 1349 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(90), 0, math.rad(90)) | |
| 1350 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0 , 0) | |
| 1351 | LW.C0 = CFrame.new(-1-0.5*i, 0.5, 0) * CFrame.Angles(math.rad(-45+90*i), 0, math.rad(45-90*i)) | |
| 1352 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1353 | w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
| 1354 | end | |
| 1355 | for i = 0,1,0.1 do | |
| 1356 | wait() | |
| 1357 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(90), 0, math.rad(90)) | |
| 1358 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0 , 0) | |
| 1359 | LW.C0 = CFrame.new(-1.5-0.5*i, 0.5+1*i, 0) * CFrame.Angles(math.rad(45+45*i), 0, math.rad(-45+135*i)) | |
| 1360 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1361 | w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
| 1362 | end | |
| 1363 | helmw.Part1 = Head | |
| 1364 | helmw.C0 = CFrame.new(0,-0.25,0) | |
| 1365 | helmw.C1 = CFrame.new() | |
| 1366 | coroutine.resume(coroutine.create(function() | |
| 1367 | local meshb = Instance.new("SpecialMesh")
| |
| 1368 | meshb.Scale = Vector3.new(0,0,0) | |
| 1369 | meshb.MeshType = "Sphere" | |
| 1370 | local shellb = Instance.new("Part")
| |
| 1371 | meshb.Parent = shellb | |
| 1372 | shellb.Anchored = true | |
| 1373 | shellb.formFactor = 3 | |
| 1374 | shellb.Size = Vector3.new(1,1,1) | |
| 1375 | shellb.CFrame = Torso.CFrame | |
| 1376 | shellb.Parent = swordholder | |
| 1377 | shellb.Transparency = 0 | |
| 1378 | shellb.BrickColor = bcolor | |
| 1379 | shellb.CanCollide = false | |
| 1380 | coroutine.resume(coroutine.create(function() | |
| 1381 | for i = 0 ,1,0.05 do | |
| 1382 | wait() | |
| 1383 | shellb.Transparency = 1*i | |
| 1384 | meshb.Scale = Vector3.new(20*i,20*i,20*i) | |
| 1385 | end | |
| 1386 | shellb.Parent = nil | |
| 1387 | end)) | |
| 1388 | local spinval = 0 | |
| 1389 | local SlashSound = Instance.new("Sound")
| |
| 1390 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2101137" | |
| 1391 | SlashSound.Parent = Head | |
| 1392 | SlashSound.Volume = 0.25 | |
| 1393 | SlashSound.Pitch = 0.1 | |
| 1394 | SlashSound.PlayOnRemove = true | |
| 1395 | SlashSound.Looped = true | |
| 1396 | coroutine.resume(coroutine.create(function() | |
| 1397 | wait() | |
| 1398 | SlashSound.Parent = nil | |
| 1399 | end)) | |
| 1400 | local SlashSound2 = Instance.new("Sound")
| |
| 1401 | SlashSound2.SoundId = "http://www.roblox.com/asset?id=1369158" | |
| 1402 | SlashSound2.Parent = Head | |
| 1403 | SlashSound2.Volume = 1 | |
| 1404 | SlashSound2.Pitch = 0.05 | |
| 1405 | SlashSound2.PlayOnRemove = true | |
| 1406 | SlashSound2.Looped = true | |
| 1407 | coroutine.resume(coroutine.create(function() | |
| 1408 | wait() | |
| 1409 | SlashSound2.Parent = nil | |
| 1410 | end)) | |
| 1411 | local ws = Character.Humanoid.WalkSpeed | |
| 1412 | repeat | |
| 1413 | wait(0.05) | |
| 1414 | Character.Humanoid.WalkSpeed = ws * 1.25 | |
| 1415 | spinval = spinval + 0.1 | |
| 1416 | local mesh = Instance.new("SpecialMesh")
| |
| 1417 | mesh.Scale = Vector3.new(5.1,5,5.1) | |
| 1418 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 1419 | local shell = Instance.new("Part")
| |
| 1420 | mesh.Parent = shell | |
| 1421 | shell.Anchored = true | |
| 1422 | shell.formFactor = 3 | |
| 1423 | shell.Size = Vector3.new(0.2,0.2,0.2) | |
| 1424 | shell.CFrame = Torso.CFrame * CFrame.Angles(0,spinval,0) + Vector3.new(0,-2.5,0) | |
| 1425 | shell.Parent = swordholder | |
| 1426 | shell.Transparency = 1 | |
| 1427 | shell.BrickColor = handlecolor | |
| 1428 | shell.CanCollide = false | |
| 1429 | local mesh2 = Instance.new("SpecialMesh")
| |
| 1430 | mesh2.Scale = Vector3.new(8,8,8) | |
| 1431 | mesh2.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
| 1432 | local shell2 = Instance.new("Part")
| |
| 1433 | mesh2.Parent = shell2 | |
| 1434 | shell2.Anchored = true | |
| 1435 | shell2.formFactor = 3 | |
| 1436 | shell2.Size = Vector3.new(0.2,0.2,0.2) | |
| 1437 | shell2.CFrame = Torso.CFrame * CFrame.Angles(0,spinval,0) + Vector3.new(0,-2.5,0) | |
| 1438 | shell2.Parent = swordholder | |
| 1439 | shell2.Transparency = 1 | |
| 1440 | shell2.BrickColor = bcolor | |
| 1441 | shell2.CanCollide = false | |
| 1442 | local mesh3 = Instance.new("BlockMesh")
| |
| 1443 | mesh3.Scale = Vector3.new(5,5,5) | |
| 1444 | local shell3 = Instance.new("Part")
| |
| 1445 | mesh3.Parent = shell3 | |
| 1446 | shell3.Anchored = true | |
| 1447 | shell3.formFactor = 3 | |
| 1448 | shell3.Size = Vector3.new(1,1,1) | |
| 1449 | shell3.CFrame = Torso.CFrame * CFrame.Angles(math.random(),math.random(),math.random()) | |
| 1450 | shell3.Parent = swordholder | |
| 1451 | shell3.Transparency = 0.5 | |
| 1452 | shell3.BrickColor = bcolor | |
| 1453 | shell3.CanCollide = false | |
| 1454 | coroutine.resume(coroutine.create(function() | |
| 1455 | for i = 0 ,1,0.2 do | |
| 1456 | wait() | |
| 1457 | shell.Transparency = 1-1*i | |
| 1458 | shell2.Transparency = 1-1*i | |
| 1459 | shell3.Transparency = 0.5+0.25*i | |
| 1460 | end | |
| 1461 | for i = 0 ,1,0.2 do | |
| 1462 | wait() | |
| 1463 | shell.Transparency = 1*i | |
| 1464 | shell2.Transparency = 1*i | |
| 1465 | shell3.Transparency = 0.75+0.25*i | |
| 1466 | end | |
| 1467 | shell.Parent = nil | |
| 1468 | shell2.Parent = nil | |
| 1469 | shell3.Parent = nil | |
| 1470 | end)) | |
| 1471 | until not LancerM | |
| 1472 | Character.Humanoid.WalkSpeed = ws | |
| 1473 | SlashSound:Stop() SlashSound2:Stop() | |
| 1474 | end)) | |
| 1475 | for i = 0,1,0.1 do | |
| 1476 | wait() | |
| 1477 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.Angles(math.rad(90), 0, math.rad(90-135*i)) | |
| 1478 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0 , 0) | |
| 1479 | LW.C0 = CFrame.new(-1, 1.5-1*i, -0.5*i) * CFrame.Angles(math.rad(90-45*i), 0, math.rad(90-45*i)) | |
| 1480 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1481 | w1.C0 = CFrame.Angles(math.rad(-90+45*i), math.rad(0), math.rad(0)) | |
| 1482 | end | |
| 1483 | elseif LancerM then | |
| 1484 | LancerM = false | |
| 1485 | local meshb = Instance.new("SpecialMesh")
| |
| 1486 | meshb.Scale = Vector3.new(0,0,0) | |
| 1487 | meshb.MeshId = "http://www.roblox.com/asset/?id=1038653" | |
| 1488 | local shellb = Instance.new("Part")
| |
| 1489 | meshb.Parent = shellb | |
| 1490 | shellb.Anchored = true | |
| 1491 | shellb.formFactor = 3 | |
| 1492 | shellb.Size = Vector3.new(1,1,1) | |
| 1493 | shellb.CFrame = Torso.CFrame | |
| 1494 | shellb.Parent = swordholder | |
| 1495 | shellb.Transparency = 1 | |
| 1496 | shellb.Reflectance = 0.25 | |
| 1497 | shellb.BrickColor = bcolor | |
| 1498 | shellb.CanCollide = false | |
| 1499 | local meshb2 = Instance.new("SpecialMesh")
| |
| 1500 | meshb2.Scale = Vector3.new(0,0,0) | |
| 1501 | meshb2.MeshType = "Sphere" | |
| 1502 | local shellb2 = Instance.new("Part")
| |
| 1503 | meshb2.Parent = shellb2 | |
| 1504 | shellb2.Anchored = true | |
| 1505 | shellb2.formFactor = 3 | |
| 1506 | shellb2.Size = Vector3.new(1,1,1) | |
| 1507 | shellb2.CFrame = Torso.CFrame | |
| 1508 | shellb2.Parent = swordholder | |
| 1509 | shellb2.Transparency = 1 | |
| 1510 | shellb2.Reflectance = 0.25 | |
| 1511 | shellb2.BrickColor = bcolor | |
| 1512 | shellb2.CanCollide = false | |
| 1513 | coroutine.resume(coroutine.create(function() | |
| 1514 | for i = 0 ,1,0.05 do | |
| 1515 | wait() | |
| 1516 | shellb.Transparency = 1-1*i | |
| 1517 | meshb.Scale = Vector3.new(30*i,30*i,30*i) | |
| 1518 | shellb2.Transparency = 1-1*i | |
| 1519 | meshb2.Scale = Vector3.new(15*i,100*i,15*i) | |
| 1520 | end | |
| 1521 | for i = 0 ,1,0.05 do | |
| 1522 | wait() | |
| 1523 | shellb.Transparency = 1*i | |
| 1524 | meshb.Scale = Vector3.new(30+50*i,30+50*i,30+50*i) | |
| 1525 | shellb2.Transparency = 1*i | |
| 1526 | meshb2.Scale = Vector3.new(15-15*i,100+100*i,15-15*i) | |
| 1527 | end | |
| 1528 | shellb2.Parent = nil | |
| 1529 | shellb.Parent = nil | |
| 1530 | end)) | |
| 1531 | for i = 0 , 1 , 0.1 do | |
| 1532 | wait() | |
| 1533 | RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(-45+45*i)) | |
| 1534 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1535 | LW.C0 = CFrame.new(-1, 0.5+1*i, -0.5+0.5*i) * CFrame.Angles(math.rad(45+45*i), 0, math.rad(45+45*i)) | |
| 1536 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1537 | w1.C0 = CFrame.Angles(math.rad(-45-45*i), math.rad(0), math.rad(0)) | |
| 1538 | end | |
| 1539 | helmw.Part1 = LeftArm | |
| 1540 | helmw.C0 = CFrame.Angles(math.rad(90),0,math.rad(90)) | |
| 1541 | helmw.C1 = CFrame.new(0,-1.5,0) | |
| 1542 | for i = 0 , 1 , 0.1 do | |
| 1543 | wait() | |
| 1544 | RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(0)) | |
| 1545 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1546 | LW.C0 = CFrame.new(-1-0.5*i, 1.5-1*i, 0) * CFrame.Angles(math.rad(90-45*i), 0, math.rad(90-135*i)) | |
| 1547 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1548 | w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
| 1549 | end | |
| 1550 | for i = 0 , 1 , 0.2 do | |
| 1551 | wait() | |
| 1552 | RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(0)) | |
| 1553 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1554 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45-90*i), 0, math.rad(-45+90*i)) | |
| 1555 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1556 | w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
| 1557 | end | |
| 1558 | helm.Parent = nil | |
| 1559 | helmw.Parent = nil | |
| 1560 | for i = 0 , 1 , 0.1 do | |
| 1561 | wait() | |
| 1562 | RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(-45*i)) | |
| 1563 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1564 | LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(-45+90*i), 0, math.rad(45)) | |
| 1565 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1566 | w1.C0 = CFrame.Angles(math.rad(-90+45*i), math.rad(0), math.rad(0)) | |
| 1567 | end | |
| 1568 | end | |
| 1569 | attack=false | |
| 1570 | end | |
| 1571 | ||
| 1572 | local recentlyjumped = false | |
| 1573 | ||
| 1574 | function Jump() | |
| 1575 | attack=true | |
| 1576 | local vel = Instance.new("BodyVelocity")
| |
| 1577 | vel.maxForce = Vector3.new(0,math.huge,0) | |
| 1578 | vel.P = vel.P * 2 | |
| 1579 | vel.velocity = Vector3.new(0,80,0) | |
| 1580 | vel.Parent = Torso | |
| 1581 | wait(0.1) | |
| 1582 | vel.Parent = nil | |
| 1583 | local floor = false | |
| 1584 | coroutine.resume(coroutine.create(function() | |
| 1585 | repeat | |
| 1586 | wait(0.05) | |
| 1587 | hit,pos = rayCast(Torso.Position, (CFrame.new(Torso.Position,Torso.Position - Vector3.new(0,6,0))).lookVector, 6, Character) | |
| 1588 | if hit ~= nil then | |
| 1589 | floor = true | |
| 1590 | end | |
| 1591 | until floor | |
| 1592 | end)) | |
| 1593 | local spinval = 0 | |
| 1594 | ss(Head,1,0.25) | |
| 1595 | coroutine.resume(coroutine.create(function() | |
| 1596 | for i = 0 , 1 , 0.1 do | |
| 1597 | if floor then return end | |
| 1598 | wait() | |
| 1599 | RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90-45*i), 0, math.rad(-45)) | |
| 1600 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1601 | LW.C0 = CFrame.new(-1, 0.5, -0.5) * CFrame.Angles(math.rad(45), 0, math.rad(45)) | |
| 1602 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1603 | w1.C0 = CFrame.new(0,-1*i,0) * CFrame.Angles(math.rad(-45-90*i), 0, math.rad(-45*i)) | |
| 1604 | end | |
| 1605 | end)) | |
| 1606 | repeat | |
| 1607 | wait(0.05) | |
| 1608 | spinval = spinval + 0.1 | |
| 1609 | local mesh = Instance.new("SpecialMesh")
| |
| 1610 | mesh.Scale = Vector3.new(5.1,5,5.1) | |
| 1611 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 1612 | local shell = Instance.new("Part")
| |
| 1613 | mesh.Parent = shell | |
| 1614 | shell.Anchored = true | |
| 1615 | shell.formFactor = 3 | |
| 1616 | shell.Size = Vector3.new(0.2,0.2,0.2) | |
| 1617 | shell.CFrame = Torso.CFrame * CFrame.Angles(0,spinval,0) + Vector3.new(0,-2.5,0) | |
| 1618 | shell.Parent = swordholder | |
| 1619 | shell.Transparency = 1 | |
| 1620 | shell.BrickColor = handlecolor | |
| 1621 | shell.CanCollide = false | |
| 1622 | local mesh2 = Instance.new("SpecialMesh")
| |
| 1623 | mesh2.Scale = Vector3.new(8,8,8) | |
| 1624 | mesh2.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
| 1625 | local shell2 = Instance.new("Part")
| |
| 1626 | mesh2.Parent = shell2 | |
| 1627 | shell2.Anchored = true | |
| 1628 | shell2.formFactor = 3 | |
| 1629 | shell2.Size = Vector3.new(0.2,0.2,0.2) | |
| 1630 | shell2.CFrame = Torso.CFrame * CFrame.Angles(0,spinval,0) + Vector3.new(0,-2.5,0) | |
| 1631 | shell2.Parent = swordholder | |
| 1632 | shell2.Transparency = 1 | |
| 1633 | shell2.BrickColor = bcolor | |
| 1634 | shell2.CanCollide = false | |
| 1635 | coroutine.resume(coroutine.create(function() | |
| 1636 | for i = 0 ,1,0.2 do | |
| 1637 | wait() | |
| 1638 | shell.Transparency = 1-1*i | |
| 1639 | shell2.Transparency = 1-1*i | |
| 1640 | end | |
| 1641 | for i = 0 ,1,0.2 do | |
| 1642 | wait() | |
| 1643 | shell.Transparency = 1*i | |
| 1644 | shell2.Transparency = 1*i | |
| 1645 | end | |
| 1646 | shell.Parent = nil | |
| 1647 | shell2.Parent = nil | |
| 1648 | end)) | |
| 1649 | until floor | |
| 1650 | local ps = Instance.new("BodyPosition")
| |
| 1651 | ps.Parent = Torso | |
| 1652 | ps.position = Torso.Position | |
| 1653 | ps.maxForce = Vector3.new(1,1,1) * math.huge | |
| 1654 | ps.P = ps.P * 2 | |
| 1655 | coroutine.resume(coroutine.create(function() wait(0.05) ps.Parent = nil end)) | |
| 1656 | for rep = 1,3 do | |
| 1657 | srfs(Head,0.45+0.2*math.random(),0.5) ls(Head,0.15+0.2*math.random(),0.5) cs(Head,0.4+0.2*math.random(),0.5) | |
| 1658 | end | |
| 1659 | local meshb = Instance.new("SpecialMesh")
| |
| 1660 | meshb.Scale = Vector3.new(0,0,0) | |
| 1661 | meshb.MeshId = "http://www.roblox.com/asset/?id=1038653" | |
| 1662 | local shellb = Instance.new("Part")
| |
| 1663 | meshb.Parent = shellb | |
| 1664 | shellb.Anchored = true | |
| 1665 | shellb.formFactor = 3 | |
| 1666 | shellb.Size = Vector3.new(1,1,1) | |
| 1667 | shellb.CFrame = CFrame.new(Torso.Position) | |
| 1668 | shellb.Parent = swordholder | |
| 1669 | shellb.Transparency = 1 | |
| 1670 | shellb.Reflectance = 0.25 | |
| 1671 | shellb.BrickColor = bcolor | |
| 1672 | shellb.CanCollide = false | |
| 1673 | local meshb2 = Instance.new("SpecialMesh")
| |
| 1674 | meshb2.Scale = Vector3.new(0,0,0) | |
| 1675 | meshb2.MeshType = "Sphere" | |
| 1676 | local shellb2 = Instance.new("Part")
| |
| 1677 | meshb2.Parent = shellb2 | |
| 1678 | shellb2.Anchored = true | |
| 1679 | shellb2.formFactor = 3 | |
| 1680 | shellb2.Size = Vector3.new(1,1,1) | |
| 1681 | shellb2.CFrame = CFrame.new(Torso.Position) | |
| 1682 | shellb2.Parent = swordholder | |
| 1683 | shellb2.Transparency = 1 | |
| 1684 | shellb2.Reflectance = 0.25 | |
| 1685 | shellb2.BrickColor = bcolor | |
| 1686 | shellb2.CanCollide = false | |
| 1687 | local meshb3 = Instance.new("SpecialMesh")
| |
| 1688 | meshb3.Scale = Vector3.new(0,0,0) | |
| 1689 | meshb3.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
| 1690 | local shellb3 = Instance.new("Part")
| |
| 1691 | meshb3.Parent = shellb3 | |
| 1692 | shellb3.Anchored = true | |
| 1693 | shellb3.formFactor = 3 | |
| 1694 | shellb3.Size = Vector3.new(1,1,1) | |
| 1695 | shellb3.CFrame = CFrame.new(Torso.Position+Vector3.new(0,10,0)) * CFrame.Angles(math.rad(180),0,0) | |
| 1696 | shellb3.Parent = swordholder | |
| 1697 | shellb3.Transparency = 1 | |
| 1698 | shellb3.Reflectance = 0.25 | |
| 1699 | shellb3.BrickColor = bcolor | |
| 1700 | shellb3.CanCollide = false | |
| 1701 | coroutine.resume(coroutine.create(function() | |
| 1702 | local spinv = 0 | |
| 1703 | for i = 0 ,1,0.05 do | |
| 1704 | wait() | |
| 1705 | spinv = spinv+0.5 | |
| 1706 | shellb.Transparency = 1-1*i | |
| 1707 | meshb.Scale = Vector3.new(25*i,25*i,25*i) | |
| 1708 | shellb2.Transparency = 1-1*i | |
| 1709 | meshb2.Scale = Vector3.new(50*i,5*i,50*i) | |
| 1710 | shellb3.Transparency = 1-1*i | |
| 1711 | meshb3.Scale = Vector3.new(40*i,40,40*i) | |
| 1712 | shellb3.CFrame = shellb3.CFrame * CFrame.Angles(0,spinval,0) | |
| 1713 | end | |
| 1714 | prcntdmg(-50) | |
| 1715 | AoE(Torso.Position,25) | |
| 1716 | for i = 0 ,1,0.05 do | |
| 1717 | wait() | |
| 1718 | spinv = spinv+0.5 | |
| 1719 | shellb.Transparency = 1*i | |
| 1720 | meshb.Scale = Vector3.new(25+25*i,25+25*i,25+25*i) | |
| 1721 | shellb2.Transparency = 1*i | |
| 1722 | meshb2.Scale = Vector3.new(50+25*i,5-5*i,50+25*i) | |
| 1723 | shellb3.Transparency = 1*i | |
| 1724 | meshb3.Scale = Vector3.new(40+40*i,40,40+40*i) | |
| 1725 | shellb3.CFrame = shellb3.CFrame * CFrame.Angles(0,spinval,0) | |
| 1726 | end | |
| 1727 | AoE(Torso.Position,35) | |
| 1728 | returndmg() | |
| 1729 | shellb3.Parent = nil | |
| 1730 | shellb2.Parent = nil | |
| 1731 | shellb.Parent = nil | |
| 1732 | end)) | |
| 1733 | for i = 0 , 1 , 0.1 do | |
| 1734 | wait() | |
| 1735 | RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(45+45*i), 0, math.rad(-45)) | |
| 1736 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1737 | LW.C0 = CFrame.new(-1, 0.5, -0.5) * CFrame.Angles(math.rad(45), 0, math.rad(45)) | |
| 1738 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1739 | w1.C0 = CFrame.new(0,-1+1*i,0) * CFrame.Angles(math.rad(-135+90*i), 0, math.rad(-45+45*i)) | |
| 1740 | end | |
| 1741 | attack=false | |
| 1742 | coroutine.resume(coroutine.create(function() | |
| 1743 | recentlyjumped = true | |
| 1744 | wait(5) | |
| 1745 | recentlyjumped = false | |
| 1746 | end)) | |
| 1747 | end | |
| 1748 | ||
| 1749 | function Dash() | |
| 1750 | attack = true | |
| 1751 | for i = 0 , 1 ,0.1 do | |
| 1752 | wait() | |
| 1753 | RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(-45)) | |
| 1754 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1755 | LW.C0 = CFrame.new(-1, 0.5, -0.5) * CFrame.Angles(math.rad(45), 0, math.rad(45)) | |
| 1756 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1757 | w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0)) | |
| 1758 | end | |
| 1759 | attack = false | |
| 1760 | end | |
| 1761 | ||
| 1762 | ||
| 1763 | function returnwelds() | |
| 1764 | RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(-45)) | |
| 1765 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1766 | LW.C0 = CFrame.new(-1, 0.5, -0.5) * CFrame.Angles(math.rad(45), 0, math.rad(45)) | |
| 1767 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 1768 | w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0)) | |
| 1769 | RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, 0) | |
| 1770 | RWL.C1 = CFrame.new(0.5, 1, 0) | |
| 1771 | LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, 0) | |
| 1772 | LWL.C1 = CFrame.new(-0.5, 1, 0) | |
| 1773 | end | |
| 1774 | ||
| 1775 | ||
| 1776 | function ob1d(mouse) | |
| 1777 | hold = true | |
| 1778 | if attack then return end | |
| 1779 | if attacktype == 1 then | |
| 1780 | Combo1() | |
| 1781 | elseif attacktype == 2 then | |
| 1782 | Combo2() | |
| 1783 | elseif attacktype == 3 then | |
| 1784 | Combo3() | |
| 1785 | end | |
| 1786 | ||
| 1787 | end | |
| 1788 | ||
| 1789 | function ob1u(mouse) | |
| 1790 | end | |
| 1791 | ||
| 1792 | buttonhold = false | |
| 1793 | ||
| 1794 | ||
| 1795 | local last_attack = 0 | |
| 1796 | function key(key) | |
| 1797 | if attack then return end | |
| 1798 | t = game:service("RunService").Stepped:wait()
| |
| 1799 | if key == "q" then | |
| 1800 | Slash1() | |
| 1801 | end | |
| 1802 | if key == "e" then | |
| 1803 | RoundSlash() | |
| 1804 | end | |
| 1805 | if key == "f" then | |
| 1806 | LancerMode() | |
| 1807 | end | |
| 1808 | if key == "w" and (t - last_attack < 0.5) then | |
| 1809 | buttonhold = true | |
| 1810 | Dash() | |
| 1811 | end | |
| 1812 | if key == " " and (t - last_attack < 0.5) and (Torso.Velocity.y > -15) and not recentlyjumped then | |
| 1813 | Jump() | |
| 1814 | end | |
| 1815 | ||
| 1816 | last_attack = t | |
| 1817 | end | |
| 1818 | ||
| 1819 | ||
| 1820 | function key2(key) | |
| 1821 | if key == "w" then | |
| 1822 | buttonhold = false | |
| 1823 | end | |
| 1824 | end | |
| 1825 | ||
| 1826 | function s(mouse) | |
| 1827 | repeat wait() until not attack | |
| 1828 | repeat wait() until not ev.Value | |
| 1829 | ||
| 1830 | mouse.Button1Down:connect(function() ob1d(mouse) end) | |
| 1831 | mouse.Button1Up:connect(function() ob1u(mouse) end) | |
| 1832 | mouse.KeyDown:connect(key) | |
| 1833 | mouse.KeyUp:connect(key2) | |
| 1834 | equipanim() | |
| 1835 | MMouse = mouse | |
| 1836 | ev.Value = true | |
| 1837 | end | |
| 1838 | ||
| 1839 | function ds(mouse) | |
| 1840 | repeat wait() until not attack | |
| 1841 | repeat wait() until ev.Value | |
| 1842 | ||
| 1843 | hideanim() | |
| 1844 | wait(0.1) | |
| 1845 | ev.Value = false | |
| 1846 | end | |
| 1847 | ||
| 1848 | Bin.Selected:connect(s) | |
| 1849 | Bin.Deselected:connect(ds) |