SHOW:
|
|
- or go back to the newest paste.
| 1 | - | Player = game:GetService("Players").Max5709
|
| 1 | + | Player = game:GetService("Players").CDOGLEDOUX1
|
| 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 | ToolName = "Yamato" | |
| 17 | attack = false | |
| 18 | attacktype = 1 | |
| 19 | mindamage = 15 | |
| 20 | maxdamage = 25 | |
| 21 | crtmaxdamage = 45 | |
| 22 | omindamage = 15 | |
| 23 | omaxdamage = 25 | |
| 24 | ocrtmaxdamage = 45 | |
| 25 | crtrate = 12 | |
| 26 | fireboost = 0 | |
| 27 | iceboost = 0 | |
| 28 | darkboost = 0 | |
| 29 | Mode = "None" | |
| 30 | ssh = false | |
| 31 | atktypez = 1 | |
| 32 | Hitdeb = 0 | |
| 33 | ammo = 1 | |
| 34 | MMouse = nil | |
| 35 | point = false | |
| 36 | offset = 0 | |
| 37 | radv = 90 | |
| 38 | ---------------------------- | |
| 39 | --Customize | |
| 40 | DarkFire = true | |
| 41 | MaxFT = 40 | |
| 42 | ||
| 43 | ||
| 44 | ||
| 45 | --------------------------------------------------------------------------------------------------------------------------------------- | |
| 46 | if Character:findFirstChild("EquippedVal",true) ~= nil then
| |
| 47 | Character:findFirstChild("EquippedVal",true).Parent = nil
| |
| 48 | end | |
| 49 | ev = Instance.new("BoolValue")
| |
| 50 | ev.Parent = Character | |
| 51 | ev.Name = "EquippedVal" | |
| 52 | ev.Value = false | |
| 53 | --player | |
| 54 | player = nil | |
| 55 | --welds | |
| 56 | RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld")
| |
| 57 | --what anim | |
| 58 | anim = "none" | |
| 59 | --other var | |
| 60 | player = Player | |
| 61 | ch = Character | |
| 62 | --save shoulders | |
| 63 | AoETrue = {}
| |
| 64 | RSH, LSH , RHL, LHL = ch.Torso["Right Shoulder"], ch.Torso["Left Shoulder"] , ch.Torso["Right Hip"] , ch.Torso["Left Hip"] | |
| 65 | ||
| 66 | function RWFunc() | |
| 67 | RW.Part1 = ch["Right Arm"] | |
| 68 | RSH.Part1 = nil | |
| 69 | end | |
| 70 | function LWFunc() | |
| 71 | LW.Part1 = ch["Left Arm"] | |
| 72 | LSH.Part1 = nil | |
| 73 | end | |
| 74 | function RWLFunc() | |
| 75 | RWL.Part1 = ch["Right Leg"] | |
| 76 | RHL.Part1 = nil | |
| 77 | ch["Right Leg"].Name = "RightLeg" | |
| 78 | RightLeg.CanCollide = false | |
| 79 | end | |
| 80 | function LWLFunc() | |
| 81 | LWL.Part1 = ch["Left Leg"] | |
| 82 | LHL.Part1 = nil | |
| 83 | ch["Left Leg"].Name = "LeftLeg" | |
| 84 | LeftLeg.CanCollide = true | |
| 85 | end | |
| 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 | if Character:findFirstChild(ModelName,true) ~= nil then | |
| 109 | Character:findFirstChild(ModelName,true).Parent = nil | |
| 110 | RHL.Part1 = ch["Right Leg"] | |
| 111 | LHL.Part1 = ch["Left Leg"] | |
| 112 | RSH.Part1 = ch["Right Arm"] | |
| 113 | LSH.Part1 = ch["Left Arm"] | |
| 114 | end | |
| 115 | ||
| 116 | ||
| 117 | ||
| 118 | local swordholder = Instance.new("Model")
| |
| 119 | swordholder.Name = ModelName | |
| 120 | swordholder.Parent = Character | |
| 121 | --derp | |
| 122 | RW.Part0 = ch.Torso | |
| 123 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 124 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 125 | RW.Parent = swordholder | |
| 126 | -- | |
| 127 | LW.Part0 = ch.Torso | |
| 128 | LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
| 129 | LW.C1 = CFrame.new(0, 0.5, 0) | |
| 130 | LW.Parent = swordholder | |
| 131 | -- | |
| 132 | RWL.Part0 = ch.Torso | |
| 133 | RWL.C0 = CFrame.new(1, -1, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
| 134 | RWL.C1 = CFrame.new(0.5, 1, 0) | |
| 135 | RWL.Parent = swordholder | |
| 136 | -- | |
| 137 | LWL.Part0 = ch.Torso | |
| 138 | LWL.C0 = CFrame.new(-1, -1, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
| 139 | LWL.C1 = CFrame.new(-0.5, 1, 0) | |
| 140 | LWL.Parent = swordholder | |
| 141 | handlecolor = BrickColor.new("Really black")
| |
| 142 | scndryclr = BrickColor.new("Bright violet")
| |
| 143 | firepri = BrickColor.new("Bright red")
| |
| 144 | icepri = BrickColor.new("Bright blue")
| |
| 145 | local msh1 = Instance.new("CylinderMesh")
| |
| 146 | msh1.Scale = Vector3.new(1,1,1) | |
| 147 | local msh2 = Instance.new("BlockMesh")
| |
| 148 | msh2.Scale = Vector3.new(1,1,1) | |
| 149 | -- | |
| 150 | local msh3 = Instance.new("BlockMesh")
| |
| 151 | msh3.Scale = Vector3.new(1,1,1) | |
| 152 | local msh3a = Instance.new("SpecialMesh")
| |
| 153 | msh3a.Scale = Vector3.new(1,1,1) | |
| 154 | msh3a.MeshType = "Wedge" | |
| 155 | local msh4 = Instance.new("BlockMesh")
| |
| 156 | msh4.Scale = Vector3.new(1,1,1) | |
| 157 | local msh4a = Instance.new("SpecialMesh")
| |
| 158 | msh4a.Scale = Vector3.new(1,1,1) | |
| 159 | msh4a.MeshType = "Wedge" | |
| 160 | -- | |
| 161 | local msh5 = Instance.new("SpecialMesh")
| |
| 162 | msh5.Scale = Vector3.new(1,1,2) | |
| 163 | msh5.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 164 | local msh6 = Instance.new("BlockMesh")
| |
| 165 | msh6.Scale = Vector3.new(1,1,0.5) | |
| 166 | local msh7 = Instance.new("BlockMesh")
| |
| 167 | msh7.Scale = Vector3.new(1,1,1) | |
| 168 | local msh8 = Instance.new("BlockMesh")
| |
| 169 | msh8.Scale = Vector3.new(0.5,1,1) | |
| 170 | local prt1 = Instance.new("Part")
| |
| 171 | prt1.formFactor = 3 | |
| 172 | prt1.CanCollide = false | |
| 173 | prt1.Name = "Handle" | |
| 174 | prt1.Locked = true | |
| 175 | prt1.Size = Vector3.new(0.2,1.5,0.2) | |
| 176 | prt1.Parent = swordholder | |
| 177 | msh1.Parent = prt1 | |
| 178 | prt1.BrickColor = handlecolor | |
| 179 | local prt2 = Instance.new("Part")
| |
| 180 | prt2.formFactor = 3 | |
| 181 | prt2.CanCollide = false | |
| 182 | prt2.Name = "HandleTop" | |
| 183 | prt2.Locked = true | |
| 184 | prt2.Size = Vector3.new(1.6,0.2,0.5) | |
| 185 | prt2.Parent = swordholder | |
| 186 | msh2.Parent = prt2 | |
| 187 | prt2.BrickColor = scndryclr | |
| 188 | --- | |
| 189 | local prt3 = Instance.new("Part")
| |
| 190 | prt3.formFactor = 3 | |
| 191 | prt3.CanCollide = false | |
| 192 | prt3.Name = "FlameBlade" | |
| 193 | prt3.Locked = true | |
| 194 | prt3.Size = Vector3.new(0.4,3,0.2) | |
| 195 | prt3.Parent = swordholder | |
| 196 | msh3.Parent = prt3 | |
| 197 | prt3.BrickColor = firepri | |
| 198 | prt3.Reflectance = 0 | |
| 199 | local prt3a = Instance.new("Part")
| |
| 200 | prt3a.formFactor = 3 | |
| 201 | prt3a.CanCollide = false | |
| 202 | prt3a.Name = "FlameBladeP1" | |
| 203 | prt3a.Locked = true | |
| 204 | prt3a.Size = Vector3.new(0.2,1,0.4) | |
| 205 | prt3a.Parent = swordholder | |
| 206 | msh3a.Parent = prt3a | |
| 207 | prt3a.BrickColor = firepri | |
| 208 | prt3a.Reflectance = 0 | |
| 209 | -- | |
| 210 | local prt4 = Instance.new("Part")
| |
| 211 | prt4.formFactor = 3 | |
| 212 | prt4.CanCollide = false | |
| 213 | prt4.Name = "FrostBlade" | |
| 214 | prt4.Locked = true | |
| 215 | prt4.Size = Vector3.new(0.4,3,0.2) | |
| 216 | prt4.Parent = swordholder | |
| 217 | msh4.Parent = prt4 | |
| 218 | prt4.BrickColor = icepri | |
| 219 | prt4.Reflectance = 0.5 | |
| 220 | local prt4a = Instance.new("Part")
| |
| 221 | prt4a.formFactor = 3 | |
| 222 | prt4a.CanCollide = false | |
| 223 | prt4a.Name = "FrostBladeP1" | |
| 224 | prt4a.Locked = true | |
| 225 | prt4a.Size = Vector3.new(0.2,1,0.4) | |
| 226 | prt4a.Parent = swordholder | |
| 227 | msh4a.Parent = prt4a | |
| 228 | prt4a.BrickColor = icepri | |
| 229 | prt4a.Reflectance = 0.5 | |
| 230 | -- | |
| 231 | local prt5 = Instance.new("Part")
| |
| 232 | prt5.formFactor = 3 | |
| 233 | prt5.CanCollide = false | |
| 234 | prt5.Name = "HandleRing" | |
| 235 | prt5.Locked = true | |
| 236 | prt5.Size = Vector3.new(1,1,0.2) | |
| 237 | prt5.Parent = swordholder | |
| 238 | msh5.Parent = prt5 | |
| 239 | prt5.BrickColor = scndryclr | |
| 240 | prt5.Reflectance = 0 | |
| 241 | local DFlame = Instance.new("Fire")
| |
| 242 | DFlame.Parent = prt5 | |
| 243 | DFlame.Color = Color3.new(0.5,0,0.5) | |
| 244 | DFlame.SecondaryColor = Color3.new(0.5,0,0.5) | |
| 245 | DFlame.Heat = 25 | |
| 246 | DFlame.Size = 1 | |
| 247 | DFlame.Enabled = DarkFire | |
| 248 | local prt6 = Instance.new("Part")
| |
| 249 | prt6.formFactor = 3 | |
| 250 | prt6.CanCollide = false | |
| 251 | prt6.Name = "HandleP1" | |
| 252 | prt6.Locked = true | |
| 253 | prt6.Size = Vector3.new(0.2,1.5,0.2) | |
| 254 | prt6.Parent = swordholder | |
| 255 | msh6.Parent = prt6 | |
| 256 | prt6.BrickColor = scndryclr | |
| 257 | prt6.Reflectance = 0 | |
| 258 | local prt7 = Instance.new("Part")
| |
| 259 | prt7.formFactor = 3 | |
| 260 | prt7.CanCollide = false | |
| 261 | prt7.Name = "HandleP2" | |
| 262 | prt7.Locked = true | |
| 263 | prt7.Size = Vector3.new(0.7,0.2,0.2) | |
| 264 | prt7.Parent = swordholder | |
| 265 | msh7.Parent = prt7 | |
| 266 | prt7.BrickColor = scndryclr | |
| 267 | prt7.Reflectance = 0 | |
| 268 | local prt8 = Instance.new("Part")
| |
| 269 | prt8.formFactor = 3 | |
| 270 | prt8.CanCollide = false | |
| 271 | prt8.Name = "DarkBlade" | |
| 272 | prt8.Locked = true | |
| 273 | prt8.Size = Vector3.new(0.2,4,0.2) | |
| 274 | prt8.Parent = swordholder | |
| 275 | msh8.Parent = prt8 | |
| 276 | prt8.BrickColor = handlecolor | |
| 277 | prt8.Transparency = 1 | |
| 278 | local hitbox = Instance.new("Part")
| |
| 279 | hitbox.formFactor = 3 | |
| 280 | hitbox.CanCollide = false | |
| 281 | hitbox.Name = "Hitbox" | |
| 282 | hitbox.Locked = true | |
| 283 | hitbox.Size = Vector3.new(1,4,0.2) | |
| 284 | hitbox.Parent = swordholder | |
| 285 | hitbox.Transparency = 1 | |
| 286 | local hbw = Instance.new("Weld")
| |
| 287 | hbw.Parent = hitbox | |
| 288 | hbw.Part0 = hitbox | |
| 289 | hbw.Part1 = prt1 | |
| 290 | hbw.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 291 | hbw.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(0, -2.95, 0) | |
| 292 | ||
| 293 | local w1 = Instance.new("Weld")
| |
| 294 | w1.Parent = prt1 | |
| 295 | w1.Part0 = prt1 | |
| 296 | local w2 = Instance.new("Weld")
| |
| 297 | w2.Parent = prt2 | |
| 298 | w2.Part0 = prt2 | |
| 299 | w2.Part1 = prt1 | |
| 300 | w2.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 301 | w2.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(0, -0.85, 0) | |
| 302 | -- | |
| 303 | local w3 = Instance.new("Weld")
| |
| 304 | w3.Parent = prt3 | |
| 305 | w3.Part0 = prt3 | |
| 306 | w3.Part1 = prt1 | |
| 307 | w3.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 308 | w3.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(0.25, -2.45, 0) | |
| 309 | local w3a = Instance.new("Weld")
| |
| 310 | w3a.Parent = prt3a | |
| 311 | w3a.Part0 = prt3a | |
| 312 | w3a.Part1 = prt1 | |
| 313 | w3a.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 314 | w3a.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(-90),0) * CFrame.new(0.25, -4.45, 0) | |
| 315 | local w4 = Instance.new("Weld")
| |
| 316 | w4.Parent = prt4 | |
| 317 | w4.Part0 = prt4 | |
| 318 | w4.Part1 = prt1 | |
| 319 | w4.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 320 | w4.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(-0.25, -2.45, 0) | |
| 321 | local w4a = Instance.new("Weld")
| |
| 322 | w4a.Parent = prt4a | |
| 323 | w4a.Part0 = prt4a | |
| 324 | w4a.Part1 = prt1 | |
| 325 | w4a.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 326 | w4a.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90),0) * CFrame.new(-0.25, -4.45, 0) | |
| 327 | -- | |
| 328 | local w5 = Instance.new("Weld")
| |
| 329 | w5.Parent = prt5 | |
| 330 | w5.Part0 = prt5 | |
| 331 | w5.Part1 = prt1 | |
| 332 | w5.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 333 | w5.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(-0, -0.85, 0) | |
| 334 | local w6 = Instance.new("Weld")
| |
| 335 | w6.Parent = prt6 | |
| 336 | w6.Part0 = prt6 | |
| 337 | w6.Part1 = prt1 | |
| 338 | w6.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 339 | w6.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(-0.5, -0, 0) | |
| 340 | local w7 = Instance.new("Weld")
| |
| 341 | w7.Parent = prt7 | |
| 342 | w7.Part0 = prt7 | |
| 343 | w7.Part1 = prt1 | |
| 344 | w7.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 345 | w7.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(-0.25, 0.75, 0) | |
| 346 | local w8 = Instance.new("Weld")
| |
| 347 | w8.Parent = prt8 | |
| 348 | w8.Part0 = prt8 | |
| 349 | w8.Part1 = prt1 | |
| 350 | w8.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 351 | w8.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(0, -2.95, 0) | |
| 352 | for ringi = 0 , math.rad(350) , math.rad(50) do | |
| 353 | local ringm = Instance.new("BlockMesh")
| |
| 354 | ringm.Scale = Vector3.new(1,1.5,1) | |
| 355 | local ringp = Instance.new("Part")
| |
| 356 | ringp.formFactor = 3 | |
| 357 | ringp.CanCollide = false | |
| 358 | ringp.Name = "HandleRingP"..ringi | |
| 359 | ringp.Locked = true | |
| 360 | ringp.Size = Vector3.new(0.2,0.2,0.2) | |
| 361 | ringp.Parent = swordholder | |
| 362 | ringm.Parent = ringp | |
| 363 | ringp.BrickColor = scndryclr | |
| 364 | ringp.Reflectance = 0.1 | |
| 365 | local ringw = Instance.new("Weld")
| |
| 366 | ringw.Parent = ringp | |
| 367 | ringw.Part0 = ringp | |
| 368 | ringw.Part1 = prt5 | |
| 369 | ringw.C1 = CFrame.fromEulerAnglesXYZ(math.rad(90), -ringi, 0) * CFrame.new(0, 0 , 0) | |
| 370 | ringw.C0 = CFrame.fromEulerAnglesXYZ(0, 0,0) * CFrame.new(-msh5.Scale.x/1.625, 0, 0) --* CFrame.new(-0.6, 0, 0) ---msh5.Scale.z/3.25 | |
| 371 | end | |
| 372 | ||
| 373 | local Objects = {}
| |
| 374 | function getAllObjects(obj) | |
| 375 | for a,v in pairs(obj:GetChildren()) do | |
| 376 | if v:IsA("BasePart") then
| |
| 377 | table.insert(Objects,v) | |
| 378 | end | |
| 379 | if #v:GetChildren() > 0 then | |
| 380 | getAllObjects(v) | |
| 381 | end | |
| 382 | end | |
| 383 | end | |
| 384 | getAllObjects(Workspace) | |
| 385 | function Raycast(Start,End,Range) | |
| 386 | -- | |
| 387 | for ii = 0 , #Objects do | |
| 388 | table.remove(Objects,ii) | |
| 389 | end | |
| 390 | getAllObjects(Workspace) | |
| 391 | local MA = math.abs | |
| 392 | local CF = CFrame.new(Start,End) | |
| 393 | local CP = Start | |
| 394 | for i = 1, Range do--(Start - End).magnitude do | |
| 395 | for b,v in pairs(Objects) do | |
| 396 | if v.Parent ~= nil then | |
| 397 | local pos = Start + (CF.lookVector*i) | |
| 398 | local dist = v.CFrame:pointToObjectSpace(pos) | |
| 399 | if MA(dist.x) < v.Size.x/2 and MA(dist.y) < v.Size.y/2 and MA(dist.z) < v.Size.z/2 then | |
| 400 | if v.Parent ~= Character or v.Parent ~= swordholder or v.Parent.Parent ~= Character then | |
| 401 | return v,Start,pos | |
| 402 | end | |
| 403 | end | |
| 404 | end | |
| 405 | end | |
| 406 | end | |
| 407 | return nil,Start,End | |
| 408 | end | |
| 409 | local RAP = Instance.new("Part")
| |
| 410 | RAP.formFactor = 0 | |
| 411 | RAP.CanCollide = false | |
| 412 | RAP.Name = "RAPart" | |
| 413 | RAP.Locked = true | |
| 414 | RAP.Size = Vector3.new(1,1,1) | |
| 415 | RAP.Parent = swordholder | |
| 416 | RAP.Transparency = 1 | |
| 417 | local w = Instance.new("Weld")
| |
| 418 | w.Parent = RAP | |
| 419 | w.Part0 = RAP | |
| 420 | w.Part1 = RightArm | |
| 421 | w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 422 | w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 1, 0) | |
| 423 | ||
| 424 | function unequipweld() | |
| 425 | w1.Part1 = Torso | |
| 426 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), math.rad(0)) * CFrame.new(0, 0,0) | |
| 427 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(180), math.rad(-150)) * CFrame.new(-1, -1.5, -0.6) | |
| 428 | end | |
| 429 | unequipweld() | |
| 430 | ||
| 431 | function equipweld() | |
| 432 | w1.Part1 = RAP | |
| 433 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 434 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 435 | end | |
| 436 | ||
| 437 | function ss(parent,p) --Slash | |
| 438 | local SlashSound = Instance.new("Sound")
| |
| 439 | SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav" | |
| 440 | SlashSound.Parent = parent | |
| 441 | SlashSound.Volume = .7 | |
| 442 | SlashSound.Pitch = p | |
| 443 | SlashSound.PlayOnRemove = true | |
| 444 | coroutine.resume(coroutine.create(function() | |
| 445 | wait() | |
| 446 | SlashSound.Parent = nil | |
| 447 | end)) | |
| 448 | end | |
| 449 | function uss(parent,p) --unsheath | |
| 450 | local SlashSound = Instance.new("Sound")
| |
| 451 | SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav" | |
| 452 | SlashSound.Parent = parent | |
| 453 | SlashSound.Volume = .7 | |
| 454 | SlashSound.Pitch = p | |
| 455 | SlashSound.PlayOnRemove = true | |
| 456 | coroutine.resume(coroutine.create(function() | |
| 457 | wait() | |
| 458 | SlashSound.Parent = nil | |
| 459 | end)) | |
| 460 | end | |
| 461 | function cs(parent,p) --Magic Charge | |
| 462 | local SlashSound = Instance.new("Sound")
| |
| 463 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2101137" | |
| 464 | SlashSound.Parent = parent | |
| 465 | SlashSound.Volume = .7 | |
| 466 | SlashSound.Pitch = p | |
| 467 | SlashSound.PlayOnRemove = true | |
| 468 | coroutine.resume(coroutine.create(function() | |
| 469 | wait() | |
| 470 | SlashSound.Parent = nil | |
| 471 | end)) | |
| 472 | end | |
| 473 | function ls(parent,p) --Lazer Sound | |
| 474 | local SlashSound = Instance.new("Sound")
| |
| 475 | SlashSound.SoundId = "http://www.roblox.com/asset?id=1369158" | |
| 476 | SlashSound.Parent = parent | |
| 477 | SlashSound.Volume = .7 | |
| 478 | SlashSound.Pitch = p | |
| 479 | SlashSound.PlayOnRemove = true | |
| 480 | coroutine.resume(coroutine.create(function() | |
| 481 | wait() | |
| 482 | SlashSound.Parent = nil | |
| 483 | end)) | |
| 484 | end | |
| 485 | function is(parent,p) --Ice Sound | |
| 486 | local SlashSound = Instance.new("Sound")
| |
| 487 | local rndm = math.random(1,3) | |
| 488 | if rndm == 1 then | |
| 489 | SlashSound.SoundId = "rbxasset://sounds\\ice.ogg" | |
| 490 | elseif rndm == 2 then | |
| 491 | SlashSound.SoundId = "rbxasset://sounds\\ice2.ogg" | |
| 492 | elseif rndm == 3 then | |
| 493 | SlashSound.SoundId = "rbxasset://sounds\\ice3.ogg" | |
| 494 | end | |
| 495 | SlashSound.Parent = parent | |
| 496 | SlashSound.Volume = .7 | |
| 497 | SlashSound.Pitch = p | |
| 498 | SlashSound.PlayOnRemove = true | |
| 499 | coroutine.resume(coroutine.create(function() | |
| 500 | wait() | |
| 501 | SlashSound.Parent = nil | |
| 502 | end)) | |
| 503 | end | |
| 504 | function fs(parent,p) --Fire Sound | |
| 505 | local SlashSound = Instance.new("Sound")
| |
| 506 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=31758982" | |
| 507 | SlashSound.Parent = parent | |
| 508 | SlashSound.Volume = .7 | |
| 509 | SlashSound.Pitch = p | |
| 510 | SlashSound.PlayOnRemove = true | |
| 511 | coroutine.resume(coroutine.create(function() | |
| 512 | wait() | |
| 513 | SlashSound.Parent = nil | |
| 514 | end)) | |
| 515 | end | |
| 516 | function bs(parent,p) --Boom Sound | |
| 517 | local SlashSound = Instance.new("Sound")
| |
| 518 | SlashSound.SoundId = "rbxasset://sounds/Rocket shot.wav" | |
| 519 | SlashSound.Parent = parent | |
| 520 | SlashSound.Volume = .7 | |
| 521 | SlashSound.Pitch = p | |
| 522 | SlashSound.PlayOnRemove = true | |
| 523 | coroutine.resume(coroutine.create(function() | |
| 524 | wait() | |
| 525 | SlashSound.Parent = nil | |
| 526 | end)) | |
| 527 | end | |
| 528 | -- | |
| 529 | ||
| 530 | ||
| 531 | function hideanim() | |
| 532 | attack = true | |
| 533 | for i = 0 , 1 , 0.2 do | |
| 534 | wait() | |
| 535 | RW.C0 = CFrame.new(1+0.5*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+67*i), math.rad(45), math.rad(-45+90*i)) | |
| 536 | LW.C0 = CFrame.new(-1-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80-80*i),math.rad(-45+45*i),math.rad(45-45*i)) | |
| 537 | end | |
| 538 | LWRem() | |
| 539 | for i = 0 , 1 , 0.15 do | |
| 540 | wait() | |
| 541 | RW.C0 = CFrame.new(1.5,0.5+0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(147+103*i), math.rad(45), math.rad(45-35*i)) | |
| 542 | end | |
| 543 | unequipweld() | |
| 544 | wait(0.1) | |
| 545 | for i = 0 , 1 , 0.1 do | |
| 546 | wait() | |
| 547 | RW.C0 = CFrame.new(1.5,1-0.5*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(250-250*i), math.rad(45-45*i), math.rad(10-10*i)) | |
| 548 | end | |
| 549 | RWRem() | |
| 550 | attack = false | |
| 551 | end | |
| 552 | ||
| 553 | function equipanim() | |
| 554 | attack = true | |
| 555 | RWFunc() | |
| 556 | for i = 0 , 1 , 0.1 do | |
| 557 | wait() | |
| 558 | RW.C0 = CFrame.new(1.5,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(250*i), math.rad(45*i), math.rad(-10*i)) | |
| 559 | end | |
| 560 | equipweld() | |
| 561 | uss(Head,1) | |
| 562 | for i = 0 , 1 , 0.2 do | |
| 563 | wait() | |
| 564 | RW.C0 = CFrame.new(1.5,0.5+0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(250-102.5*i), math.rad(45), math.rad(-10+27.5*i)) | |
| 565 | end | |
| 566 | for i = 0 , 1 , 0.15 do | |
| 567 | wait() | |
| 568 | RW.C0 = CFrame.new(1.5,1-0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(147-67*i), math.rad(45), math.rad(17.5+27.5*i)) | |
| 569 | end | |
| 570 | LWFunc() | |
| 571 | for i = 0 , 1 , 0.1 do | |
| 572 | wait() | |
| 573 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(45), math.rad(45-90*i)) | |
| 574 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80*i),math.rad(-45*i),math.rad(45*i)) | |
| 575 | end | |
| 576 | attack = false | |
| 577 | end | |
| 578 | ||
| 579 | if (script.Parent.className ~= "HopperBin") then | |
| 580 | Tool = Instance.new("HopperBin")
| |
| 581 | Tool.Parent = Backpack | |
| 582 | Tool.Name = ToolName | |
| 583 | script.Parent = Tool | |
| 584 | end | |
| 585 | Bin = script.Parent | |
| 586 | ||
| 587 | function damagesplat(dmg,hit,critornot,healornot) | |
| 588 | local OffsetX = -2.5 | |
| 589 | local OffsetY = 5 | |
| 590 | local OffsetZ = 0 | |
| 591 | local bill = Instance.new("BillboardGui")
| |
| 592 | bill.Size = UDim2.new(1,0,1,0) | |
| 593 | bill.Adornee = hit | |
| 594 | bill.StudsOffset = Vector3.new(OffsetX,OffsetY,OffsetZ) | |
| 595 | bill.Parent = hit.Parent | |
| 596 | bill.Name = "DamageSplat" | |
| 597 | local tex = Instance.new("TextLabel")
| |
| 598 | tex.Size = UDim2.new(5,0,2.5,0) | |
| 599 | tex.Parent = bill | |
| 600 | tex.Text = dmg | |
| 601 | tex.BackgroundTransparency = 1 | |
| 602 | tex.ZIndex = 4 | |
| 603 | tex.FontSize = "Size24" | |
| 604 | local tex2 = Instance.new("ImageLabel")
| |
| 605 | tex2.Size = UDim2.new(1,0,1,0) | |
| 606 | tex2.Parent = tex | |
| 607 | tex2.BackgroundTransparency = 1 | |
| 608 | tex2.Image = "http://www.roblox.com/asset/?id=42611276" | |
| 609 | if critornot == true then | |
| 610 | tex.TextColor3 = Color3.new(1,0.2,0.2) | |
| 611 | elseif critornot == false then | |
| 612 | tex.TextColor3 = Color3.new(0,0,0) | |
| 613 | end | |
| 614 | if healornot == true then | |
| 615 | tex.TextColor3 = Color3.new(0.2,0.5,0.5) | |
| 616 | end | |
| 617 | coroutine.resume(coroutine.create(function() | |
| 618 | wait(0.25) | |
| 619 | for i = 0 , 1 , 0.075 do | |
| 620 | wait() | |
| 621 | bill.StudsOffset = Vector3.new(OffsetX,OffsetY+5*i,OffsetZ) | |
| 622 | tex.TextTransparency = 1*i | |
| 623 | end | |
| 624 | bill.Parent = nil | |
| 625 | end)) | |
| 626 | end | |
| 627 | function FireEff(Part,Time,Color1,Color2,Color3) | |
| 628 | local Firee = Part | |
| 629 | local Spawn = Part | |
| 630 | local colors = {}
| |
| 631 | if Color1 ~= nil then | |
| 632 | table.insert(colors,BrickColor.new(Color1)) | |
| 633 | end | |
| 634 | if Color2 ~= nil then | |
| 635 | table.insert(colors,BrickColor.new(Color2)) | |
| 636 | end | |
| 637 | if Color3 ~= nil then | |
| 638 | table.insert(colors,BrickColor.new(Color3)) | |
| 639 | end | |
| 640 | if Color4 ~= nil then | |
| 641 | table.insert(colors,BrickColor.new(Color4)) | |
| 642 | end | |
| 643 | local Embers = {}
| |
| 644 | local modelz = Instance.new("Model",Firee)
| |
| 645 | modelz.Name = "FireHolder" | |
| 646 | for X = 1, 3 do | |
| 647 | local f = Instance.new("Part")
| |
| 648 | f.Parent = nil | |
| 649 | f.BrickColor = colors[math.random(1, # colors)] | |
| 650 | f.Size = Vector3.new(1,1,1) | |
| 651 | f.formFactor = 1 | |
| 652 | f.Anchored = true | |
| 653 | f.Locked = true | |
| 654 | f.CanCollide = false | |
| 655 | f.Transparency = 0.5 | |
| 656 | f.Name = "Fire" | |
| 657 | f.TopSurface = 0 | |
| 658 | f.BottomSurface = 0 | |
| 659 | table.insert(Embers, f) | |
| 660 | end | |
| 661 | local R = 0 | |
| 662 | coroutine.resume(coroutine.create(function () | |
| 663 | repeat | |
| 664 | wait() | |
| 665 | R = R + 1 | |
| 666 | for X = 1, # Embers do | |
| 667 | Embers[X].Parent = modelz | |
| 668 | local FM = math.fmod(R + X, # Embers) | |
| 669 | if FM == 1 then | |
| 670 | RandPos = Vector3.new(math.random(-Spawn.Size.x * 5, Spawn.Size.x * 5) / 10, Spawn.Size.y / 2, math.random(-Spawn.Size.x * 5, Spawn.Size.x * 5) / 10) | |
| 671 | RandDir = Vector3.new(math.random(-100,100), math.random(-100,100), math.random(-100,100)) | |
| 672 | Embers[X].CFrame = CFrame.new(Spawn.Position + RandPos, Spawn.Position + RandPos + RandDir) | |
| 673 | else | |
| 674 | Embers[X].CFrame = CFrame.new(Embers[X].Position + Vector3.new(0,0.5,0), Embers[X].Position + Vector3.new(0,0.5,0) + Embers[X].CFrame.lookVector) | |
| 675 | end | |
| 676 | end | |
| 677 | until R == Time | |
| 678 | for i = 0 ,1 , 0.1 do | |
| 679 | wait(0.2) | |
| 680 | for X = 1, # Embers do | |
| 681 | Embers[X].Transparency = 0.5+0.5*i | |
| 682 | end | |
| 683 | end | |
| 684 | for X = 1, # Embers do | |
| 685 | Embers[X].Parent = nil | |
| 686 | end | |
| 687 | end)) | |
| 688 | end | |
| 689 | ||
| 690 | function OT(hit) --Normal Damage | |
| 691 | if Hitdeb == 1 then return end | |
| 692 | if hit.Parent == nil then return end | |
| 693 | local hum = hit.Parent:findFirstChild("Humanoid")
| |
| 694 | if hum ~= nil and hum ~= Character.Humanoid then | |
| 695 | local critrandomizer = math.random(1,crtrate) | |
| 696 | if critrandomizer ~= 1 then | |
| 697 | local rndmdamage = math.random(mindamage,maxdamage) | |
| 698 | damagesplat(rndmdamage,hit,false) | |
| 699 | hum:TakeDamage(rndmdamage) | |
| 700 | elseif critrandomizer == 1 then | |
| 701 | local rndmdamage = math.random(maxdamage,crtmaxdamage) | |
| 702 | damagesplat(rndmdamage,hit,true) | |
| 703 | hum:TakeDamage(rndmdamage) | |
| 704 | end | |
| 705 | Hitdeb = 1 | |
| 706 | end | |
| 707 | end | |
| 708 | ||
| 709 | function OTND(part) --No Debounce Damage | |
| 710 | coroutine.resume(coroutine.create(function() | |
| 711 | local dd = false | |
| 712 | while part.Parent ~= nil and not dd do | |
| 713 | wait() | |
| 714 | local c = game.Workspace:GetChildren(); | |
| 715 | for i = 1, #c do | |
| 716 | local hum = c[i]:findFirstChild("Humanoid")
| |
| 717 | if hum ~= nil and hum.Health ~= 0 then | |
| 718 | local head = c[i]:findFirstChild("Torso");
| |
| 719 | if head ~= nil then | |
| 720 | local targ = head.Position - part.Position; ------------------------------------------------Local | |
| 721 | local mag = targ.magnitude; | |
| 722 | if mag <= 5 and c[i].Name ~= Player.Name then | |
| 723 | dd = true | |
| 724 | local rndmdamage = math.random(1,7+5*math.random()) + fireboost | |
| 725 | damagesplat(rndmdamage,head,false) | |
| 726 | hum:TakeDamage(rndmdamage) | |
| 727 | FireEff(head,150,"Bright red","Bright orange","Cool yellow") | |
| 728 | part.Parent = nil | |
| 729 | ||
| 730 | end | |
| 731 | end | |
| 732 | end | |
| 733 | end | |
| 734 | end | |
| 735 | end)) | |
| 736 | end | |
| 737 | ||
| 738 | function AoE(p,magnitude,damage,critornot) | |
| 739 | local c = game.Workspace:GetChildren(); | |
| 740 | for i = 1, #c do | |
| 741 | local hum = c[i]:findFirstChild("Humanoid")
| |
| 742 | if hum ~= nil and hum.Health ~= 0 then | |
| 743 | local head = c[i]:findFirstChild("Head");
| |
| 744 | if head ~= nil then | |
| 745 | local targ = head.Position - p; | |
| 746 | local mag = targ.magnitude; | |
| 747 | if mag <= magnitude and c[i].Name ~= Character.Name then | |
| 748 | local foundd = false | |
| 749 | for ii = 1 , #AoETrue do | |
| 750 | if AoETrue[ii] == c[i].Name then | |
| 751 | --delay(1,function() table.remove(AoETrue,ii) end) | |
| 752 | --blast(2.5,0.5,"Bright red",prt2,false) | |
| 753 | foundd = true | |
| 754 | end | |
| 755 | end | |
| 756 | if foundd then | |
| 757 | end | |
| 758 | -- | |
| 759 | if not foundd then | |
| 760 | hum:TakeDamage(damage) | |
| 761 | damagesplat(damage,head,critornot) | |
| 762 | table.insert(AoETrue,c[i].Name) | |
| 763 | --blast(2.5,0.5,"Bright red",prt2) | |
| 764 | end | |
| 765 | end | |
| 766 | end | |
| 767 | end | |
| 768 | end | |
| 769 | end | |
| 770 | function AoEP(p,magnitude,damage,critornot) | |
| 771 | local c = game.Workspace:GetChildren(); | |
| 772 | for i = 1, #c do | |
| 773 | local hum = c[i]:findFirstChild("Humanoid")
| |
| 774 | if hum ~= nil and hum.Health ~= 0 then | |
| 775 | local head = c[i]:findFirstChild("Head");
| |
| 776 | if head ~= nil then | |
| 777 | local targ = head.Position - p; | |
| 778 | local mag = targ.magnitude; | |
| 779 | if mag <= magnitude and c[i].Name ~= Character.Name then | |
| 780 | local foundd = false | |
| 781 | for ii = 1 , #AoETrue do | |
| 782 | if AoETrue[ii] == c[i].Name then | |
| 783 | --delay(1,function() table.remove(AoETrue,ii) end) | |
| 784 | --blast(2.5,0.5,"Bright red",prt2,false) | |
| 785 | foundd = true | |
| 786 | end | |
| 787 | end | |
| 788 | if foundd then | |
| 789 | end | |
| 790 | -- | |
| 791 | if not foundd then | |
| 792 | hum:TakeDamage(damage) | |
| 793 | damagesplat(damage,head,critornot) | |
| 794 | c[i].Humanoid.Sit = true | |
| 795 | coroutine.resume(coroutine.create(function() | |
| 796 | local bp = Instance.new("BodyVelocity",c[i].Torso)
| |
| 797 | bp.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 798 | bp.P = bp.P*2 | |
| 799 | bp.velocity = CFrame.new(c[i].Torso.Position , p).lookVector * 150 + Vector3.new(0,25,0) | |
| 800 | coroutine.resume(coroutine.create(function() | |
| 801 | for i=1, | |
| 802 | bp.velocity.y/3 do | |
| 803 | bp.velocity = bp.velocity+Vector3.new(0,-4.25,0) | |
| 804 | wait() | |
| 805 | end | |
| 806 | bp.Parent = nil | |
| 807 | end)) | |
| 808 | c[i].Torso.RotVelocity = CFrame.new(c[i].Torso.Position , p).lookVector * 25 | |
| 809 | wait(0.4) c[i].Humanoid.Sit = false end)) | |
| 810 | table.insert(AoETrue,c[i].Name) | |
| 811 | end | |
| 812 | end | |
| 813 | end | |
| 814 | end | |
| 815 | end | |
| 816 | end | |
| 817 | -- | |
| 818 | ||
| 819 | local LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 820 | function effect(Color,Ref,LP,P1,returnn) | |
| 821 | local effectsmsh = Instance.new("BlockMesh")
| |
| 822 | effectsmsh.Scale = Vector3.new(0.5,1,0.5) | |
| 823 | effectsmsh.Name = "Mesh" | |
| 824 | local effectsg = Instance.new("Part")
| |
| 825 | effectsg.formFactor = 3 | |
| 826 | effectsg.CanCollide = false | |
| 827 | effectsg.Name = "Eff" | |
| 828 | effectsg.Locked = true | |
| 829 | effectsg.Anchored = true | |
| 830 | effectsg.Size = Vector3.new(0.2,1,0.2) | |
| 831 | effectsg.Parent = swordholder | |
| 832 | effectsmsh.Parent = effectsg | |
| 833 | effectsg.BrickColor = BrickColor.new(Color) | |
| 834 | effectsg.Reflectance = Ref | |
| 835 | local point1 = P1 | |
| 836 | local mg = (LP.p - point1.p).magnitude | |
| 837 | effectsg.Size = Vector3.new(0.2,mg,0.2) | |
| 838 | effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0) | |
| 839 | if returnn then return effectsg end | |
| 840 | coroutine.resume(coroutine.create(function() | |
| 841 | if not returnn then | |
| 842 | for i = 0 , 1 , 0.1 do | |
| 843 | wait() | |
| 844 | effectsg.Transparency = 1*i | |
| 845 | end | |
| 846 | wait() | |
| 847 | effectsg.Parent = nil | |
| 848 | end | |
| 849 | end)) | |
| 850 | end | |
| 851 | ||
| 852 | con = nil | |
| 853 | function dmgcnnct(p) | |
| 854 | con = p.Touched:connect(OT) | |
| 855 | end | |
| 856 | function dmgdc() | |
| 857 | if con ~= nil then | |
| 858 | con:disconnect() | |
| 859 | Hitdeb = 0 | |
| 860 | end | |
| 861 | end | |
| 862 | function atktype(s,e) | |
| 863 | coroutine.resume(coroutine.create(function () | |
| 864 | attacktype = e | |
| 865 | wait(0.5) | |
| 866 | repeat wait() until attack | |
| 867 | attacktype = s | |
| 868 | end)) | |
| 869 | end | |
| 870 | ||
| 871 | hold = false | |
| 872 | function Combo1a() | |
| 873 | attack=true | |
| 874 | for i = 0 , 1 , 0.1 do | |
| 875 | wait() | |
| 876 | RW.C0 = CFrame.new(1-0.5*i,0.5,-0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i), math.rad(45+45*i), math.rad(-45+45*i)) | |
| 877 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45*i), math.rad(10*i), math.rad(0)) | |
| 878 | LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i),math.rad(-45+45*i),math.rad(45-20*i)) | |
| 879 | end | |
| 880 | dmgcnnct(hitbox) | |
| 881 | ss(Head,1.5) | |
| 882 | for i = 0 , 1 , 0.2 do | |
| 883 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 884 | wait() | |
| 885 | RW.C0 = CFrame.new(0.5+1*i,0.5,-1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0)) | |
| 886 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45+135*i), math.rad(10+35*i), math.rad(0)) | |
| 887 | LW.C0 = CFrame.new(-1+1*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(25+65*i)) | |
| 888 | effect("Bright blue",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
| |
| 889 | end | |
| 890 | dmgdc() | |
| 891 | for i = 0 , 1 , 0.2 do | |
| 892 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 893 | wait() | |
| 894 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0)) | |
| 895 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90+20*i), math.rad(45+5*i), math.rad(0)) | |
| 896 | LW.C0 = CFrame.new(-0.25*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(90+10*i)) | |
| 897 | effect("Bright blue",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
| |
| 898 | end | |
| 899 | attacktype = 2 | |
| 900 | coroutine.resume(coroutine.create(function () | |
| 901 | wait(0.25) | |
| 902 | attacktype = 1 | |
| 903 | end)) | |
| 904 | attack=false | |
| 905 | wait(0.15) | |
| 906 | wait() | |
| 907 | for i = 0 , 1 , 0.1 do | |
| 908 | if not attack then | |
| 909 | wait() | |
| 910 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i), math.rad(90-45*i), math.rad(-45*i)) | |
| 911 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(110-110*i), math.rad(50-50*i), math.rad(0)) | |
| 912 | LW.C0 = CFrame.new(-0.25-0.75*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i),math.rad(-45*i),math.rad(100-55*i)) | |
| 913 | end | |
| 914 | end | |
| 915 | ||
| 916 | end | |
| 917 | function Combo1b() | |
| 918 | attack=true | |
| 919 | for i = 0 , 1 , 0.1 do | |
| 920 | wait() | |
| 921 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0)) | |
| 922 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(110-155*i), math.rad(50-40*i), math.rad(0)) | |
| 923 | LW.C0 = CFrame.new(-0.25-0.75*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(100-50*i)) | |
| 924 | end | |
| 925 | ||
| 926 | cs(Head,1.5) | |
| 927 | local tempmod = Instance.new("Model",swordholder)
| |
| 928 | for l = 1 , 20 do | |
| 929 | local meshz = Instance.new("SpecialMesh")
| |
| 930 | meshz.Scale = Vector3.new(0.5,0.5,0.5) | |
| 931 | meshz.MeshType = "Sphere" | |
| 932 | local shellz = Instance.new("Part")
| |
| 933 | meshz.Parent = shellz | |
| 934 | shellz.Anchored = false | |
| 935 | shellz.formFactor = 0 | |
| 936 | shellz.Size = Vector3.new(1,1,1) | |
| 937 | shellz.CFrame = hitbox.CFrame * CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)) | |
| 938 | shellz.Parent = tempmod | |
| 939 | shellz.Transparency = 0.5 | |
| 940 | shellz.BrickColor = BrickColor.new("Bright violet")
| |
| 941 | shellz.CanCollide = false | |
| 942 | shellz.Reflectance = 0.25 | |
| 943 | local bv = Instance.new("BodyPosition")
| |
| 944 | bv.Parent = shellz | |
| 945 | bv.maxForce = Vector3.new(200000,200000,200000) | |
| 946 | bv.position = shellz.Position | |
| 947 | coroutine.resume(coroutine.create(function() | |
| 948 | for i = 0 , 1 , 0.025 do | |
| 949 | wait() | |
| 950 | shellz.Transparency = 1-1*i | |
| 951 | end | |
| 952 | shellz.Transparency = 0 | |
| 953 | end)) | |
| 954 | coroutine.resume(coroutine.create(function() | |
| 955 | wait(0.05) | |
| 956 | bv.position = hitbox.Position | |
| 957 | for i = 1 , 20 do | |
| 958 | wait(0.1) | |
| 959 | bv.position = shell.Position | |
| 960 | end | |
| 961 | shellz.Parent = nil | |
| 962 | end)) | |
| 963 | wait(0.01) | |
| 964 | end | |
| 965 | coroutine.resume(coroutine.create(function () | |
| 966 | wait(0.25) | |
| 967 | tempmod.Parent = nil | |
| 968 | end)) | |
| 969 | for i = 0 , 1 , 0.2 do | |
| 970 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 971 | wait() | |
| 972 | RW.C0 = CFrame.new(1-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0)) | |
| 973 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45+135*i), math.rad(10), math.rad(0)) | |
| 974 | LW.C0 = CFrame.new(-1+1.5*i,0.5,-1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(50+40*i)) | |
| 975 | effect("Really red",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
| |
| 976 | end | |
| 977 | local gyro = Instance.new("BodyGyro")
| |
| 978 | gyro.maxTorque = Vector3.new(math.huge,math.huge,math.huge) | |
| 979 | gyro.P = gyro.P + 10000 | |
| 980 | local CF = Torso.CFrame | |
| 981 | gyro.cframe = CF | |
| 982 | gyro.Parent = Torso | |
| 983 | dmgcnnct(hitbox) | |
| 984 | ss(Head,1) | |
| 985 | for i = 0 , 1 , 0.1 do | |
| 986 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 987 | wait() | |
| 988 | gyro.cframe = CF * CFrame.Angles(0,math.rad(-360*i),0) | |
| 989 | effect("Really red",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
| |
| 990 | end | |
| 991 | ss(Head,1) | |
| 992 | Hitdeb = 0 | |
| 993 | for i = 0 , 1 , 0.1 do | |
| 994 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 995 | wait() | |
| 996 | gyro.cframe = CF * CFrame.Angles(0,math.rad(-360*i),0) | |
| 997 | effect("Really red",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
| |
| 998 | end | |
| 999 | dmgdc() | |
| 1000 | attacktype = 3 | |
| 1001 | coroutine.resume(coroutine.create(function () | |
| 1002 | wait(0.5) | |
| 1003 | attacktype = 1 | |
| 1004 | end)) | |
| 1005 | wait(0.15) | |
| 1006 | wait() | |
| 1007 | gyro.Parent = nil | |
| 1008 | attack=false | |
| 1009 | for i = 0 , 1 , 0.1 do | |
| 1010 | if not attack then | |
| 1011 | wait() | |
| 1012 | RW.C0 = CFrame.new(0.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i), math.rad(90-45*i), math.rad(-45*i)) | |
| 1013 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90-90*i), math.rad(10-10*i), math.rad(0)) | |
| 1014 | LW.C0 = CFrame.new(0.5-1.5*i,0.5,-1+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i),math.rad(-45*i),math.rad(50-5*i)) | |
| 1015 | end | |
| 1016 | end | |
| 1017 | end | |
| 1018 | ||
| 1019 | function Combo1c() | |
| 1020 | attack=true | |
| 1021 | local bp = Instance.new("BodyPosition")
| |
| 1022 | bp.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1023 | bp.P = bp.P + 10000 | |
| 1024 | local CF = Torso.CFrame | |
| 1025 | bp.position = CF.p | |
| 1026 | bp.Parent = Torso | |
| 1027 | RWLFunc() | |
| 1028 | LWLFunc() | |
| 1029 | for zz = 1 , 2 do | |
| 1030 | local mesh = Instance.new("SpecialMesh")
| |
| 1031 | mesh.MeshType = "FileMesh" | |
| 1032 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 1033 | mesh.Scale = Vector3.new(10,5,10) * Vector3.new(0.01,0.01,0.01) | |
| 1034 | local shell = Instance.new("Part")
| |
| 1035 | mesh.Parent = shell | |
| 1036 | shell.Anchored = true | |
| 1037 | shell.formFactor = 1 | |
| 1038 | shell.Size = Vector3.new(1,1,1) | |
| 1039 | shell.CFrame = Torso.CFrame * CFrame.Angles(0,0.5*zz,0) + Vector3.new(0,-2.5,0) -- + shellspawn.CFrame.lookVector * 2 | |
| 1040 | shell.Parent = swordholder | |
| 1041 | shell.Transparency = 0 | |
| 1042 | shell.BrickColor = BrickColor.new("White")
| |
| 1043 | shell.CanCollide = false | |
| 1044 | coroutine.resume(coroutine.create(function() | |
| 1045 | for i = 0 , 1 , 0.05 do | |
| 1046 | wait() | |
| 1047 | mesh.Scale = Vector3.new(10,5,10) * Vector3.new(i,1,i) | |
| 1048 | shell.Transparency = 1*i | |
| 1049 | end | |
| 1050 | shell.Transparency = 1 | |
| 1051 | shell.Parent = nil | |
| 1052 | end)) | |
| 1053 | end | |
| 1054 | for i = 0 , 1 , 0.1 do | |
| 1055 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 1056 | wait() | |
| 1057 | RW.C0 = CFrame.new(0.5+0.5*i,0.5+1*i,0) * CFrame.fromEulerAnglesXYZ(math.rad(90+100*i), math.rad(90-90*i), math.rad(-45*i)) | |
| 1058 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90-90*i), math.rad(10-10*i), math.rad(0)) | |
| 1059 | LW.C0 = CFrame.new(0.5-1.5*i,0.5+1*i,-1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90+100*i),math.rad(0),math.rad(50-5*i)) | |
| 1060 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 1061 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90-45*i)) * CFrame.new(0, 0, 0.2) | |
| 1062 | bp.position = CF.p + Vector3.new(0,10,0) | |
| 1063 | RWL.C0 = CFrame.new(1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-20*i), math.rad(0), math.rad(0)) | |
| 1064 | LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-20*i), math.rad(0), math.rad(0)) | |
| 1065 | prt8.Transparency = 1-1*i | |
| 1066 | effect("Really black",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
| |
| 1067 | end | |
| 1068 | cs(Head,1.5) | |
| 1069 | coroutine.resume(coroutine.create(function () | |
| 1070 | local tempmod = Instance.new("Model",swordholder)
| |
| 1071 | for l = 1 , 20 do | |
| 1072 | local meshz = Instance.new("SpecialMesh")
| |
| 1073 | meshz.Scale = Vector3.new(1.5,1.5,1.5) | |
| 1074 | meshz.MeshType = "Sphere" | |
| 1075 | local shellz = Instance.new("Part")
| |
| 1076 | meshz.Parent = shellz | |
| 1077 | shellz.Anchored = false | |
| 1078 | shellz.formFactor = 0 | |
| 1079 | shellz.Size = Vector3.new(1,1,1) | |
| 1080 | shellz.CFrame = hitbox.CFrame * CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15)) | |
| 1081 | shellz.Parent = tempmod | |
| 1082 | shellz.Transparency = 0.5 | |
| 1083 | shellz.BrickColor = BrickColor.new("Really black")
| |
| 1084 | shellz.CanCollide = false | |
| 1085 | shellz.Reflectance = 0 | |
| 1086 | local bv = Instance.new("BodyPosition")
| |
| 1087 | bv.Parent = shellz | |
| 1088 | bv.maxForce = Vector3.new(200000,200000,200000) | |
| 1089 | bv.position = shellz.Position | |
| 1090 | local hx = false | |
| 1091 | coroutine.resume(coroutine.create(function() | |
| 1092 | for i = 0 , 1 , 0.05 do | |
| 1093 | wait() | |
| 1094 | shellz.Transparency = 1-1*i | |
| 1095 | end | |
| 1096 | shellz.Transparency = 0 | |
| 1097 | end)) | |
| 1098 | coroutine.resume(coroutine.create(function() | |
| 1099 | wait(0.05) | |
| 1100 | bv.position = hitbox.Position | |
| 1101 | for i = 1 , 20 do | |
| 1102 | wait(0.1) | |
| 1103 | bv.position = shell.Position | |
| 1104 | end | |
| 1105 | shellz.Parent = nil | |
| 1106 | end)) | |
| 1107 | wait(0.01) | |
| 1108 | end | |
| 1109 | coroutine.resume(coroutine.create(function () | |
| 1110 | repeat wait() until hx | |
| 1111 | tempmod.Parent = nil | |
| 1112 | end)) | |
| 1113 | end)) | |
| 1114 | for i = 0 , 1 , 0.1 do | |
| 1115 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 1116 | wait() | |
| 1117 | RW.C0 = CFrame.new(1,1.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(190+20*i), math.rad(0), math.rad(-45)) | |
| 1118 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1119 | LW.C0 = CFrame.new(-1,1.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(190+20*i),math.rad(0),math.rad(45)) | |
| 1120 | effect("Really black",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
| |
| 1121 | end | |
| 1122 | for i = 0 , 1 , 0.1 do | |
| 1123 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 1124 | wait() | |
| 1125 | RW.C0 = CFrame.new(1,1.5-1*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(210-130*i), math.rad(0), math.rad(-45)) | |
| 1126 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1127 | LW.C0 = CFrame.new(-1,1.5-1*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(210-130*i),math.rad(0),math.rad(45)) | |
| 1128 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 1129 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180*i), math.rad(45)) * CFrame.new(0, 0, 0.2) | |
| 1130 | bp.position = CF.p + CF.lookVector * 2.5 + Vector3.new(0,-1,0) | |
| 1131 | RWL.C0 = CFrame.new(1, -1+1*i, -1*i) * CFrame.fromEulerAnglesXYZ(math.rad(-20+20*i), math.rad(0), math.rad(0)) | |
| 1132 | LWL.C0 = CFrame.new(-1, -1+1*i, -1*i) * CFrame.fromEulerAnglesXYZ(math.rad(-20+20*i), math.rad(0), math.rad(0)) | |
| 1133 | effect("Really black",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
| |
| 1134 | end | |
| 1135 | hx = true | |
| 1136 | wait(0.1) | |
| 1137 | local Hit,A, B = Raycast(hitbox.Position + Vector3.new(0,3,0) + Torso.CFrame.lookVector * 1 ,hitbox.Position + Vector3.new(0,3,0) + Torso.CFrame.lookVector * 101 ,100) | |
| 1138 | local effectsmsh = Instance.new("CylinderMesh")
| |
| 1139 | effectsmsh.Scale = Vector3.new(1,1,1) | |
| 1140 | local effectsg = Instance.new("Part")
| |
| 1141 | effectsg.formFactor = 3 | |
| 1142 | effectsg.CanCollide = false | |
| 1143 | effectsg.Name = "LAZOR" | |
| 1144 | effectsg.Locked = true | |
| 1145 | effectsg.Anchored = true | |
| 1146 | effectsg.Parent = swordholder | |
| 1147 | effectsmsh.Parent = effectsg | |
| 1148 | effectsg.BrickColor = BrickColor.new("Black")
| |
| 1149 | effectsg.Reflectance = 0.5 | |
| 1150 | local point1 = B | |
| 1151 | local point0 = A | |
| 1152 | for zz = 1 , 5 do | |
| 1153 | local mesh = Instance.new("SpecialMesh")
| |
| 1154 | mesh.MeshType = "FileMesh" | |
| 1155 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 1156 | mesh.Scale = Vector3.new(10,5,10) * Vector3.new(0.01,0.01,0.01) | |
| 1157 | local shell = Instance.new("Part")
| |
| 1158 | mesh.Parent = shell | |
| 1159 | shell.Anchored = true | |
| 1160 | shell.formFactor = 1 | |
| 1161 | shell.Size = Vector3.new(1,1,1) | |
| 1162 | shell.CFrame = CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /-2) + Torso.CFrame.lookVector * 2 | |
| 1163 | shell.CFrame = shell.CFrame * CFrame.Angles(math.rad(-90),0.5*zz,0) | |
| 1164 | shell.Parent = swordholder | |
| 1165 | shell.Transparency = 0 | |
| 1166 | if math.fmod(zz,2) == 0 then | |
| 1167 | shell.BrickColor = BrickColor.new("Really black")
| |
| 1168 | else | |
| 1169 | shell.BrickColor = BrickColor.new("Bright violet")
| |
| 1170 | end | |
| 1171 | shell.CanCollide = false | |
| 1172 | coroutine.resume(coroutine.create(function() | |
| 1173 | for i = 0 , 1 , 0.01 do | |
| 1174 | wait() | |
| 1175 | mesh.Scale = Vector3.new(10,5,10) * Vector3.new(i,1,i) | |
| 1176 | shell.Transparency = 1*i | |
| 1177 | end | |
| 1178 | shell.Transparency = 1 | |
| 1179 | shell.Parent = nil | |
| 1180 | end)) | |
| 1181 | end | |
| 1182 | for zz = 1 , 1 do | |
| 1183 | local mesh = Instance.new("SpecialMesh")
| |
| 1184 | mesh.MeshType = "Sphere" | |
| 1185 | mesh.Scale = Vector3.new(20,15,10) * Vector3.new(0.01,0.01,0.01) | |
| 1186 | local shell = Instance.new("Part")
| |
| 1187 | mesh.Parent = shell | |
| 1188 | shell.Anchored = true | |
| 1189 | shell.formFactor = 1 | |
| 1190 | shell.Size = Vector3.new(1,1,1) | |
| 1191 | shell.CFrame = CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /-2) + Torso.CFrame.lookVector * 10 | |
| 1192 | shell.CFrame = shell.CFrame * CFrame.Angles(math.rad(-90),0,0) | |
| 1193 | shell.Parent = swordholder | |
| 1194 | shell.Transparency = 0 | |
| 1195 | shell.BrickColor = BrickColor.new("Bright violet")
| |
| 1196 | shell.CanCollide = false | |
| 1197 | coroutine.resume(coroutine.create(function() | |
| 1198 | for i = 0 , 1 , 0.02 do | |
| 1199 | wait() | |
| 1200 | mesh.Scale = Vector3.new(10,15,15) * Vector3.new(i,1,i) | |
| 1201 | shell.CFrame = shell.CFrame * CFrame.Angles(0,i,0) | |
| 1202 | shell.Transparency = 1-1*i | |
| 1203 | end | |
| 1204 | for i = 0 , 1 , 0.05 do | |
| 1205 | wait() | |
| 1206 | shell.CFrame = shell.CFrame * CFrame.Angles(0,i,0) | |
| 1207 | shell.Transparency = 1*i | |
| 1208 | end | |
| 1209 | shell.Transparency = 1 | |
| 1210 | shell.Parent = nil | |
| 1211 | end)) | |
| 1212 | end | |
| 1213 | for zz = 1 , 1 do | |
| 1214 | local mesh = Instance.new("CylinderMesh")
| |
| 1215 | mesh.Scale = Vector3.new(20,0.5,10) * Vector3.new(0.01,0.01,0.01) | |
| 1216 | local shell = Instance.new("Part")
| |
| 1217 | mesh.Parent = shell | |
| 1218 | shell.Anchored = true | |
| 1219 | shell.formFactor = 1 | |
| 1220 | shell.Size = Vector3.new(1,1,1) | |
| 1221 | shell.CFrame = CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /-2) + Torso.CFrame.lookVector * -0.5 | |
| 1222 | shell.CFrame = shell.CFrame * CFrame.Angles(math.rad(-90),0,0) | |
| 1223 | shell.Parent = swordholder | |
| 1224 | shell.Transparency = 0 | |
| 1225 | shell.BrickColor = BrickColor.new("Bright violet")
| |
| 1226 | shell.CanCollide = false | |
| 1227 | coroutine.resume(coroutine.create(function() | |
| 1228 | for i = 0 , 1 , 0.02 do | |
| 1229 | wait() | |
| 1230 | mesh.Scale = Vector3.new(20,0.5,20) * Vector3.new(i,1,i) | |
| 1231 | shell.Transparency = 1-1*i | |
| 1232 | end | |
| 1233 | for i = 0 , 1 , 0.02 do | |
| 1234 | wait() | |
| 1235 | shell.Transparency = 1*i | |
| 1236 | end | |
| 1237 | shell.Transparency = 1 | |
| 1238 | shell.Parent = nil | |
| 1239 | end)) | |
| 1240 | end | |
| 1241 | for zz = 1 , 10 do | |
| 1242 | local mesh = Instance.new("SpecialMesh")
| |
| 1243 | mesh.MeshType = "FileMesh" | |
| 1244 | mesh.MeshId = "http://www.roblox.com/Asset/?id=9756362" | |
| 1245 | mesh.Scale = Vector3.new(5,5,5) * Vector3.new(0.01,0.01,0.01) | |
| 1246 | local shell = Instance.new("Part")
| |
| 1247 | mesh.Parent = shell | |
| 1248 | shell.Anchored = true | |
| 1249 | shell.formFactor = 1 | |
| 1250 | shell.Size = Vector3.new(1,1,1) | |
| 1251 | shell.CFrame = CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /2) | |
| 1252 | shell.CFrame = shell.CFrame * CFrame.Angles(math.rad(-90)+2*math.random(),2*math.random(),2*math.random()) | |
| 1253 | shell.Parent = swordholder | |
| 1254 | shell.Transparency = 0 | |
| 1255 | if math.fmod(zz,2) == 0 then | |
| 1256 | shell.BrickColor = BrickColor.new("Really black")
| |
| 1257 | else | |
| 1258 | shell.BrickColor = BrickColor.new("Bright violet")
| |
| 1259 | end | |
| 1260 | shell.CanCollide = false | |
| 1261 | coroutine.resume(coroutine.create(function() | |
| 1262 | for i = 0 , 1 , 0.01 do | |
| 1263 | wait() | |
| 1264 | mesh.Scale = Vector3.new(25,25,25) * Vector3.new(i,i,i) | |
| 1265 | shell.Transparency = 1*i | |
| 1266 | end | |
| 1267 | shell.Transparency = 1 | |
| 1268 | shell.Parent = nil | |
| 1269 | end)) | |
| 1270 | end | |
| 1271 | coroutine.resume(coroutine.create(function() | |
| 1272 | effectsg.Transparency = 1 | |
| 1273 | for i = 0 , 1 , 0.1 do | |
| 1274 | wait() | |
| 1275 | effectsg.Transparency = 1-1*i | |
| 1276 | end | |
| 1277 | wait(2) | |
| 1278 | for i = 0 , 1 , 0.1 do | |
| 1279 | wait() | |
| 1280 | effectsg.Transparency = 1*i | |
| 1281 | end | |
| 1282 | effectsg.Parent = nil | |
| 1283 | end)) | |
| 1284 | local mg = 100 | |
| 1285 | if Hit ~= nil then | |
| 1286 | mg = (point0-point1).magnitude | |
| 1287 | elseif Hit == nil then | |
| 1288 | mg = 100 | |
| 1289 | end | |
| 1290 | ls(Head,0.5) | |
| 1291 | ls(Head,0.75) | |
| 1292 | cs(Head,0.25) | |
| 1293 | ls(Head,1) | |
| 1294 | ls(Head,3) | |
| 1295 | cs(Head,0.15) | |
| 1296 | for mgg = 0 , 1,0.1 do | |
| 1297 | wait() | |
| 1298 | effectsg.Size = Vector3.new(5,(mg*mgg)+0.2,5) | |
| 1299 | local durr = CFrame.new((point0+(point1))/2,(point1)) | |
| 1300 | effectsg.CFrame = CFrame.new((point0+(point1-durr.lookVector * (mg*(1-mgg))))/2,(point1)) * CFrame.Angles(math.rad(90),0,0) | |
| 1301 | end | |
| 1302 | local critrandomizer = math.random(1,crtrate) | |
| 1303 | if critrandomizer ~= 1 then | |
| 1304 | local rndmdamage = math.random(mindamage+30,maxdamage+30) | |
| 1305 | AoEP((CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /2)).p,15,rndmdamage+darkboost,false) | |
| 1306 | elseif critrandomizer == 1 then | |
| 1307 | local rndmdamage = math.random(maxdamage+30,crtmaxdamage+30) | |
| 1308 | AoEP((CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /2)).p,15,rndmdamage+darkboost,true) | |
| 1309 | end | |
| 1310 | bp.Parent = nil | |
| 1311 | for i = 0 , 1 , 0.1 do | |
| 1312 | wait() | |
| 1313 | RW.C0 = CFrame.new(1,1-0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(90-45*i), math.rad(-45)) | |
| 1314 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1315 | LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45*i),math.rad(45)) | |
| 1316 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 1317 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180-180*i), math.rad(45+45*i)) * CFrame.new(0, 0, 0.2) | |
| 1318 | RWL.C0 = CFrame.new(1, -1*i, -1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1319 | LWL.C0 = CFrame.new(-1, -1*i, -1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1320 | prt8.Transparency = 1*i | |
| 1321 | end | |
| 1322 | for ii = 1 , #AoETrue do | |
| 1323 | table.remove(AoETrue,#AoETrue) | |
| 1324 | end | |
| 1325 | RWLRem() | |
| 1326 | LWLRem() | |
| 1327 | attack = false | |
| 1328 | attacktype = 1 | |
| 1329 | end | |
| 1330 | function BlizzardSword() | |
| 1331 | attack=true | |
| 1332 | for i = 0 , 1 , 0.2 do | |
| 1333 | wait() | |
| 1334 | RW.C0 = CFrame.new(1,0.5+1*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+55*i), math.rad(45-45*i), math.rad(-45)) | |
| 1335 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1336 | LW.C0 = CFrame.new(-1,0.5+1*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+55*i),math.rad(-45+45*i),math.rad(45)) | |
| 1337 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0) | |
| 1338 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90-45*i)) * CFrame.new(0, 0, 0.2) | |
| 1339 | end | |
| 1340 | local wssave = Character.Humanoid.WalkSpeed | |
| 1341 | Character.Humanoid.WalkSpeed = 0 | |
| 1342 | ss(Head,1.5) | |
| 1343 | local efftab = {}
| |
| 1344 | for i = 0 , 1 , 0.2 do | |
| 1345 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 1346 | wait() | |
| 1347 | RW.C0 = CFrame.new(1,1.5-1.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(135-135*i), math.rad(0), math.rad(-45)) | |
| 1348 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1349 | LW.C0 = CFrame.new(-1,1.5-1.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(135-135*i),math.rad(0),math.rad(45)) | |
| 1350 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0) | |
| 1351 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(45)) * CFrame.new(0, 0, 0.2) | |
| 1352 | local eff = effect("Bright blue",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0),true)
| |
| 1353 | table.insert(efftab,eff) | |
| 1354 | end | |
| 1355 | local trspos = Torso.Position | |
| 1356 | Character.Humanoid.WalkSpeed = wssave | |
| 1357 | for _,efff in pairs(efftab) do | |
| 1358 | wait() | |
| 1359 | coroutine.resume(coroutine.create(function() | |
| 1360 | for i = 0 , 1 , 0.15 do | |
| 1361 | wait() | |
| 1362 | efff.Transparency = 1*i | |
| 1363 | end | |
| 1364 | wait() | |
| 1365 | efff.Transparency = 1 | |
| 1366 | end)) | |
| 1367 | end | |
| 1368 | for io,eff in pairs(efftab) do | |
| 1369 | wait() | |
| 1370 | for zz = 1 , 1 do | |
| 1371 | local mesh = Instance.new("CylinderMesh")
| |
| 1372 | mesh.Scale = Vector3.new(0.1,0.5,0.1) | |
| 1373 | local shell = Instance.new("Part")
| |
| 1374 | mesh.Parent = shell | |
| 1375 | shell.Anchored = true | |
| 1376 | shell.formFactor = 1 | |
| 1377 | shell.Size = Vector3.new(1,1,1) | |
| 1378 | local dur = CFrame.new(trspos,eff.Position) | |
| 1379 | local CF1 = dur * CFrame.Angles(math.rad(90),0,0) * CFrame.new(0,-6,0) | |
| 1380 | shell.CFrame = CF1 | |
| 1381 | shell.Parent = eff | |
| 1382 | shell.Transparency = 1 | |
| 1383 | shell.Reflectance = 0.25 | |
| 1384 | shell.BrickColor = BrickColor.new("Bright blue")
| |
| 1385 | shell.CanCollide = false | |
| 1386 | is(shell,0.5) | |
| 1387 | coroutine.resume(coroutine.create(function() | |
| 1388 | for i = 0 , 1 , 0.1 do | |
| 1389 | wait() | |
| 1390 | shell.Transparency = 1-1*i | |
| 1391 | mesh.Scale = Vector3.new(0.1+4.9*i,0.5,0.1+4.9*i) | |
| 1392 | end | |
| 1393 | wait(0.25) | |
| 1394 | for i = 0 , 1 , 0.1 do | |
| 1395 | wait() | |
| 1396 | shell.Transparency = 1*i | |
| 1397 | mesh.Scale = Vector3.new(5-5*i,0.5-0.5*i,5-5*i) | |
| 1398 | end | |
| 1399 | shell.Parent = nil | |
| 1400 | end)) | |
| 1401 | end | |
| 1402 | end | |
| 1403 | for io,eff in pairs(efftab) do | |
| 1404 | wait() | |
| 1405 | for zz = 1 , 1 do | |
| 1406 | local mesh = Instance.new("SpecialMesh")
| |
| 1407 | mesh.MeshType = "FileMesh" | |
| 1408 | mesh.Scale = Vector3.new(5,2,1) | |
| 1409 | mesh.MeshId = "rbxasset://fonts/sword.mesh" | |
| 1410 | local shell = Instance.new("Part")
| |
| 1411 | mesh.Parent = shell | |
| 1412 | shell.Anchored = true | |
| 1413 | shell.formFactor = 1 | |
| 1414 | shell.Size = Vector3.new(2,2,5) | |
| 1415 | local dur = CFrame.new(trspos,eff.Position) | |
| 1416 | local CF1 = dur * CFrame.Angles(math.rad(180),0,0) * CFrame.new(0,0,6.5)* CFrame.Angles(0,0,math.rad(90)) | |
| 1417 | shell.CFrame = CF1 | |
| 1418 | shell.Parent = eff | |
| 1419 | shell.Transparency = 1 | |
| 1420 | shell.Reflectance = 0.25 | |
| 1421 | shell.BrickColor = BrickColor.new("Bright blue")
| |
| 1422 | shell.CanCollide = false | |
| 1423 | local hitd = 0 | |
| 1424 | coroutine.resume(coroutine.create(function() | |
| 1425 | local dd = false | |
| 1426 | while shell.Parent ~= nil and not dd do | |
| 1427 | wait() | |
| 1428 | local c = game.Workspace:GetChildren(); | |
| 1429 | for i = 1, #c do | |
| 1430 | local hum = c[i]:findFirstChild("Humanoid")
| |
| 1431 | if hum ~= nil and hum.Health ~= 0 then | |
| 1432 | local head = c[i]:findFirstChild("Torso");
| |
| 1433 | if head ~= nil then | |
| 1434 | local targ = head.Position - shell.Position; | |
| 1435 | local mag = targ.magnitude; | |
| 1436 | if mag <= 3 and c[i].Name ~= Player.Name then | |
| 1437 | dd = true | |
| 1438 | local critrandomizer = math.random(1,crtrate) | |
| 1439 | if critrandomizer ~= 1 then | |
| 1440 | local rndmdamage = math.random(mindamage+iceboost,maxdamage+iceboost) | |
| 1441 | damagesplat(rndmdamage,head,false) | |
| 1442 | hum:TakeDamage(rndmdamage) | |
| 1443 | elseif critrandomizer == 1 then | |
| 1444 | local rndmdamage = math.random(maxdamage+iceboost,crtmaxdamage+iceboost) | |
| 1445 | damagesplat(rndmdamage,head,true) | |
| 1446 | hum:TakeDamage(rndmdamage) | |
| 1447 | end | |
| 1448 | end | |
| 1449 | end | |
| 1450 | end | |
| 1451 | end | |
| 1452 | end | |
| 1453 | end)) | |
| 1454 | coroutine.resume(coroutine.create(function() | |
| 1455 | uss(eff,1) | |
| 1456 | ||
| 1457 | for i = 0 , 1 , 0.1 do | |
| 1458 | wait() | |
| 1459 | shell.Transparency = 1-1*i | |
| 1460 | CF1 = dur * CFrame.Angles(math.rad(180),0,0) * CFrame.new(0,0,6.5+2*i)* CFrame.Angles(0,0,math.rad(90)) | |
| 1461 | shell.CFrame = CF1 | |
| 1462 | mesh.Scale = Vector3.new(5,2,1+0.5*i) | |
| 1463 | end | |
| 1464 | wait(0.25) | |
| 1465 | ss(eff,2) | |
| 1466 | for i = 0 , 1 , 0.1 do | |
| 1467 | wait() | |
| 1468 | shell.Transparency = 1*i | |
| 1469 | CF1 = dur * CFrame.Angles(math.rad(180),0,0) * CFrame.new(0,0,8.5+25*i)* CFrame.Angles(0,0,math.rad(90)) | |
| 1470 | shell.CFrame = CF1 | |
| 1471 | mesh.Scale = Vector3.new(5-5*i,2-2*i,1.5-1.5*i*i) | |
| 1472 | end | |
| 1473 | shell.Parent = nil | |
| 1474 | end)) | |
| 1475 | end | |
| 1476 | end | |
| 1477 | coroutine.resume(coroutine.create(function() | |
| 1478 | wait(1.5) | |
| 1479 | for _,eff in pairs(efftab) do | |
| 1480 | wait() | |
| 1481 | eff.Parent = nil | |
| 1482 | end end)) | |
| 1483 | for i = 0 , 1 , 0.1 do | |
| 1484 | wait() | |
| 1485 | RW.C0 = CFrame.new(1,0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80*i), math.rad(45*i), math.rad(-45)) | |
| 1486 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1487 | LW.C0 = CFrame.new(-1,0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80*i),math.rad(-45*i),math.rad(45)) | |
| 1488 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0) | |
| 1489 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(45+45*i)) * CFrame.new(0, 0, 0.2) | |
| 1490 | end | |
| 1491 | attack=false | |
| 1492 | end | |
| 1493 | local FTCount = 0 | |
| 1494 | function FlameTrail() | |
| 1495 | attack=true | |
| 1496 | for i = 0 , 1 , 0.15 do | |
| 1497 | wait() | |
| 1498 | RW.C0 = CFrame.new(1-0.5*i,0.5,-0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i), math.rad(45+45*i), math.rad(-45+55*i)) | |
| 1499 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45*i), math.rad(0), math.rad(0)) | |
| 1500 | LW.C0 = CFrame.new(-1+0.5*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45+20*i)) | |
| 1501 | end | |
| 1502 | wait(0.1) | |
| 1503 | ss(Head,1.5) | |
| 1504 | fs(Head,0.5+1.5*math.random()) | |
| 1505 | local efftab = {}
| |
| 1506 | RW.C0 = CFrame.new(0.5,0.5,-1) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(10)) | |
| 1507 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45), math.rad(0), math.rad(0)) | |
| 1508 | LW.C0 = CFrame.new(-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(65)) | |
| 1509 | dmgcnnct(hitbox) | |
| 1510 | for i = 0 , 1 , 0.15 do | |
| 1511 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 1512 | wait() | |
| 1513 | RW.C0 = CFrame.new(0.5+1*i,0.5,-1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(10)) | |
| 1514 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45+135*i*i), math.rad(0), math.rad(0)) | |
| 1515 | LW.C0 = CFrame.new(-0.5-1*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+20*i),math.rad(-45),math.rad(65-155*i)) | |
| 1516 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0) | |
| 1517 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180*i), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 1518 | if FTCount <= MaxFT then | |
| 1519 | local eff = effect("Bright red",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0),true)
| |
| 1520 | eff.Transparency = 1 | |
| 1521 | table.insert(efftab,eff) | |
| 1522 | FTCount = FTCount + 1 | |
| 1523 | OTND(eff) | |
| 1524 | coroutine.resume(coroutine.create(function() | |
| 1525 | for i = 0 , 1 , 0.15 do | |
| 1526 | wait() | |
| 1527 | eff.Transparency = 1-0.5*i | |
| 1528 | end | |
| 1529 | wait() | |
| 1530 | eff.Transparency = 0.5 | |
| 1531 | end)) | |
| 1532 | end | |
| 1533 | end | |
| 1534 | local rndmneg = math.random(1,2) | |
| 1535 | if rndmneg == 1 then | |
| 1536 | rndmdec1 = 13 * math.random() | |
| 1537 | else | |
| 1538 | rndmdec1 = -13 * math.random() | |
| 1539 | end | |
| 1540 | for i = 0 , 1 , 0.1 do | |
| 1541 | wait() | |
| 1542 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90-rndmdec1*i), math.rad(90), math.rad(10-(rndmdec1*2)*i)) | |
| 1543 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90+20*i), math.rad(0), math.rad(0)) | |
| 1544 | LW.C0 = CFrame.new(-1.5,0.5,-0) * CFrame.fromEulerAnglesXYZ(math.rad(100),math.rad(-45),math.rad(-90)) | |
| 1545 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0) | |
| 1546 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 1547 | end | |
| 1548 | ss(Head,1.5) | |
| 1549 | fs(Head,0.5+1.5*math.random()) | |
| 1550 | Hitdeb = 0 | |
| 1551 | for i = 0 , 1 , 0.15 do | |
| 1552 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 1553 | wait() | |
| 1554 | RW.C0 = CFrame.new(1.5-1.5*i,0.5,-1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-rndmdec1), math.rad(90), math.rad(10-(rndmdec1*2))) | |
| 1555 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(110-200*i), math.rad(0), math.rad(0)) | |
| 1556 | LW.C0 = CFrame.new(-1.5+1*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(100-80*i),math.rad(-45),math.rad(-90+135*i)) | |
| 1557 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0) | |
| 1558 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180-180*i), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 1559 | if FTCount <= MaxFT then | |
| 1560 | local eff = effect("Bright red",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0),true)
| |
| 1561 | eff.Transparency = 1 | |
| 1562 | table.insert(efftab,eff) | |
| 1563 | FTCount = FTCount + 1 | |
| 1564 | OTND(eff) | |
| 1565 | coroutine.resume(coroutine.create(function() | |
| 1566 | for i = 0 , 1 , 0.15 do | |
| 1567 | wait() | |
| 1568 | eff.Transparency = 1-0.5*i | |
| 1569 | end | |
| 1570 | wait() | |
| 1571 | eff.Transparency = 0.5 | |
| 1572 | end)) | |
| 1573 | end | |
| 1574 | end | |
| 1575 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 1576 | for i = 0 , 1 , 0.2 do | |
| 1577 | wait() | |
| 1578 | local rndmd = rndmdec1-rndmdec1*i | |
| 1579 | RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(math.rad((90-rndmd)), math.rad(90), math.rad((10-(rndmd*2))-20*i)) | |
| 1580 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-90-10*i), math.rad(0), math.rad(0)) | |
| 1581 | LW.C0 = CFrame.new(-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45)) | |
| 1582 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0) | |
| 1583 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 1584 | end | |
| 1585 | for i = 0 , 1 , 0.1 do | |
| 1586 | wait() | |
| 1587 | RW.C0 = CFrame.new(1*i,0.5,-1) * CFrame.fromEulerAnglesXYZ(math.rad(90-20*i), math.rad(90-90*i), math.rad(-10-35*i)) | |
| 1588 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-100+100*i), math.rad(0), math.rad(0)) | |
| 1589 | LW.C0 = CFrame.new(-0.5-0.5*i,0.5,-0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80-10*i),math.rad(-45+45*i),math.rad(45)) | |
| 1590 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0) | |
| 1591 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180*i), math.rad(90-45*i)) * CFrame.new(0, 0, 0.2) | |
| 1592 | end | |
| 1593 | ss(Head,1.5) | |
| 1594 | fs(Head,0.5+1.5*math.random()) | |
| 1595 | wait(0.1) | |
| 1596 | Hitdeb = 0 | |
| 1597 | for i = 0 , 1 , 0.2 do | |
| 1598 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 1599 | wait() | |
| 1600 | RW.C0 = CFrame.new(1,0.5+1*i,-1) * CFrame.fromEulerAnglesXYZ(math.rad(70+65*i), math.rad(0), math.rad(-45)) | |
| 1601 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1602 | LW.C0 = CFrame.new(-1,0.5+1*i,-1) * CFrame.fromEulerAnglesXYZ(math.rad(70+65*i),math.rad(0),math.rad(45)) | |
| 1603 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0) | |
| 1604 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180-180*i), math.rad(45)) * CFrame.new(0, 0, 0.2) | |
| 1605 | if FTCount <= MaxFT then | |
| 1606 | local eff = effect("Bright red",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0),true)
| |
| 1607 | eff.Transparency = 1 | |
| 1608 | table.insert(efftab,eff) | |
| 1609 | FTCount = FTCount + 1 | |
| 1610 | OTND(eff) | |
| 1611 | coroutine.resume(coroutine.create(function() | |
| 1612 | for i = 0 , 1 , 0.15 do | |
| 1613 | wait() | |
| 1614 | eff.Transparency = 1-0.5*i | |
| 1615 | end | |
| 1616 | wait() | |
| 1617 | eff.Transparency = 0.5 | |
| 1618 | end)) | |
| 1619 | end | |
| 1620 | end | |
| 1621 | coroutine.resume(coroutine.create(function() | |
| 1622 | wait(5) | |
| 1623 | for _,eff in pairs(efftab) do | |
| 1624 | wait() | |
| 1625 | eff.Parent = nil | |
| 1626 | FTCount = FTCount - 1 | |
| 1627 | end end)) | |
| 1628 | for i = 0 , 1 , 0.1 do | |
| 1629 | wait() | |
| 1630 | RW.C0 = CFrame.new(1,1.5-1*i,-1+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(135-55*i), math.rad(45*i), math.rad(-45)) | |
| 1631 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1632 | LW.C0 = CFrame.new(-1,1.5-1*i,-1+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(135-55*i),math.rad(-45*i),math.rad(45)) | |
| 1633 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0) | |
| 1634 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(45+45*i)) * CFrame.new(0, 0, 0.2) | |
| 1635 | end | |
| 1636 | dmgdc() | |
| 1637 | attack=false | |
| 1638 | end | |
| 1639 | ||
| 1640 | ||
| 1641 | function LifeDrain() | |
| 1642 | attack=true | |
| 1643 | for i = 0 , 1 , 0.1 do | |
| 1644 | wait() | |
| 1645 | RW.C0 = CFrame.new(1,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+55*i), math.rad(45), math.rad(-45+90*i)) | |
| 1646 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90*i), math.rad(0)) | |
| 1647 | LW.C0 = CFrame.new(-1+1.25*i,0.5+0.25*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+25*i),math.rad(-45+90*i),math.rad(45+25*i)) | |
| 1648 | LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90*i), math.rad(0)) | |
| 1649 | w1.C1 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 0,0) | |
| 1650 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 1651 | end | |
| 1652 | ------ | |
| 1653 | local nrmag = 50 | |
| 1654 | local nrprsn = nil | |
| 1655 | wait() | |
| 1656 | -- | |
| 1657 | local c = game.Workspace:GetChildren(); | |
| 1658 | for i = 1, #c do | |
| 1659 | local hum = c[i]:findFirstChild("Humanoid")
| |
| 1660 | if hum ~= nil and hum.Health ~= 0 then | |
| 1661 | local head = c[i]:findFirstChild("Torso");
| |
| 1662 | if head ~= nil then | |
| 1663 | local targ = head.Position - Torso.Position; | |
| 1664 | local mag = targ.magnitude; | |
| 1665 | if mag <= 50 and c[i].Name ~= Player.Name then | |
| 1666 | if mag < nrmag then | |
| 1667 | nrmag = mag | |
| 1668 | nrprsn = c[i] | |
| 1669 | end | |
| 1670 | end end end end | |
| 1671 | -- | |
| 1672 | if nrprsn == nil then | |
| 1673 | attack = false | |
| 1674 | return end | |
| 1675 | local C = 0 | |
| 1676 | local bp = Instance.new("BodyPosition")
| |
| 1677 | local bg = Instance.new("BodyGyro")
| |
| 1678 | bp.Parent = Torso | |
| 1679 | bp.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1680 | bp.P = bp.P + 10000 | |
| 1681 | local CF = nrprsn.Torso.CFrame | |
| 1682 | bp.position = CF.p + CFrame.new(Torso.Position,CF.p).lookVector * -3 | |
| 1683 | bg.Parent = Torso | |
| 1684 | bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge) | |
| 1685 | bg.P = bg.P + 100000 | |
| 1686 | bg.cframe = CFrame.new(Torso.Position,CF.p) * CFrame.Angles(math.rad(0),0,0) | |
| 1687 | ss(Head,2) | |
| 1688 | wait(0.1) | |
| 1689 | local FirstP = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 1690 | local LastP = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 1691 | for i = 0 , 1 , 0.2 do | |
| 1692 | wait() | |
| 1693 | C = C + 1 | |
| 1694 | RW.C0 = CFrame.new(1-1*i,0.5,-1*i) * CFrame.fromEulerAnglesXYZ(math.rad(135-90*i), math.rad(45), math.rad(45-135*i)) | |
| 1695 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90), math.rad(0)) | |
| 1696 | LW.C0 = CFrame.new(0.25-1.75*i,0.75-0.25*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(105-60*i),math.rad(45),math.rad(70-125*i)) | |
| 1697 | LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90), math.rad(0)) | |
| 1698 | w1.C1 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 0,0) | |
| 1699 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90*i), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 1700 | if C == 3 then | |
| 1701 | bp.P = bp.P + 10000 | |
| 1702 | bp.position = CF.p + CFrame.new(Torso.Position,CF.p).lookVector * 6 | |
| 1703 | bg.cframe = CFrame.new(Torso.Position,CF.p) * CFrame.Angles(math.rad(-45),0,0) | |
| 1704 | end | |
| 1705 | if C == 2 then | |
| 1706 | FirstP = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 1707 | elseif C == 5 then | |
| 1708 | LastP = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 1709 | end | |
| 1710 | end | |
| 1711 | local effectsmsh = Instance.new("SpecialMesh")
| |
| 1712 | effectsmsh.Scale = Vector3.new(5,1,5) | |
| 1713 | effectsmsh.MeshType = "Sphere" | |
| 1714 | local effectsg = Instance.new("Part")
| |
| 1715 | effectsg.formFactor = 3 | |
| 1716 | effectsg.CanCollide = false | |
| 1717 | effectsg.Name = "Eff" | |
| 1718 | effectsg.Locked = true | |
| 1719 | effectsg.Anchored = true | |
| 1720 | effectsg.Size = Vector3.new(0.2,1,0.2) | |
| 1721 | effectsg.Parent = swordholder | |
| 1722 | effectsmsh.Parent = effectsg | |
| 1723 | effectsg.BrickColor = BrickColor.new("White")
| |
| 1724 | effectsg.Reflectance = Ref | |
| 1725 | local point1 = FirstP | |
| 1726 | local LP = LastP | |
| 1727 | local mg = (LP.p - point1.p).magnitude | |
| 1728 | effectsg.Size = Vector3.new(0.2,mg,0.2) | |
| 1729 | effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0) | |
| 1730 | if returnn then return effectsg end | |
| 1731 | coroutine.resume(coroutine.create(function() | |
| 1732 | if not returnn then | |
| 1733 | for i = 0 , 1 , 0.1 do | |
| 1734 | wait() | |
| 1735 | effectsg.Transparency = 1*i | |
| 1736 | end | |
| 1737 | wait() | |
| 1738 | effectsg.Parent = nil | |
| 1739 | end | |
| 1740 | end)) | |
| 1741 | local critrandomizer = math.random(1,crtrate) | |
| 1742 | local rndmdamage = 0 | |
| 1743 | if critrandomizer ~= 1 then | |
| 1744 | rndmdamage = math.random(mindamage,maxdamage) | |
| 1745 | damagesplat(rndmdamage,nrprsn.Head,false) | |
| 1746 | nrprsn.Humanoid:TakeDamage(rndmdamage) | |
| 1747 | elseif critrandomizer == 1 then | |
| 1748 | rndmdamage = math.random(maxdamage,crtmaxdamage) | |
| 1749 | damagesplat(rndmdamage,nrprsn.Head,true) | |
| 1750 | nrprsn.Humanoid:TakeDamage(rndmdamage) | |
| 1751 | end | |
| 1752 | local tempmod = Instance.new("Model",Workspace)
| |
| 1753 | for l = 1 , rndmdamage/5 do | |
| 1754 | local meshz = Instance.new("SpecialMesh")
| |
| 1755 | meshz.Scale = Vector3.new(1.5,1.5,1.5) | |
| 1756 | meshz.MeshType = "Sphere" | |
| 1757 | local shellz = Instance.new("Part")
| |
| 1758 | meshz.Parent = shellz | |
| 1759 | shellz.Anchored = false | |
| 1760 | shellz.formFactor = 0 | |
| 1761 | shellz.Size = Vector3.new(1,1,1) | |
| 1762 | shellz.CFrame = hitbox.CFrame | |
| 1763 | shellz.Parent = tempmod | |
| 1764 | shellz.Transparency = 0.5 | |
| 1765 | shellz.BrickColor = BrickColor.new("White")
| |
| 1766 | shellz.CanCollide = false | |
| 1767 | shellz.Reflectance = 0 | |
| 1768 | local bv = Instance.new("BodyPosition")
| |
| 1769 | bv.Parent = shellz | |
| 1770 | bv.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1771 | bv.P = bv.P + 10000 | |
| 1772 | bv.position = shellz.Position + Vector3.new(math.random(-25,25),math.random(-2.5,7.5),math.random(-25,25)) | |
| 1773 | coroutine.resume(coroutine.create(function() | |
| 1774 | wait(3) | |
| 1775 | bv.maxForce = Vector3.new(0,math.huge,0) | |
| 1776 | coroutine.resume(coroutine.create(function() | |
| 1777 | local dd = false | |
| 1778 | while shellz.Transparency ~= 1 and not dd do | |
| 1779 | wait(0.1) | |
| 1780 | local cc = game.Workspace:GetChildren(); | |
| 1781 | for i = 1, #c do | |
| 1782 | local hum = cc[i]:findFirstChild("Humanoid")
| |
| 1783 | if hum ~= nil and hum.Health ~= 0 then | |
| 1784 | local head = cc[i]:findFirstChild("Head");
| |
| 1785 | if head ~= nil then | |
| 1786 | local targ = head.Position - shellz.Position; | |
| 1787 | local mag = targ.magnitude; | |
| 1788 | if mag <= 5 then | |
| 1789 | dd = true | |
| 1790 | damagesplat(5+darkboost,head,false) | |
| 1791 | hum.Health = hum.Health + 5 + darkboost | |
| 1792 | for i = 0 , 1 , 0.05 do | |
| 1793 | wait() | |
| 1794 | shellz.Transparency = 1*i | |
| 1795 | end | |
| 1796 | shellz.Parent = nil | |
| 1797 | end | |
| 1798 | end | |
| 1799 | end | |
| 1800 | end | |
| 1801 | end | |
| 1802 | end)) | |
| 1803 | ||
| 1804 | end)) | |
| 1805 | local hx = false | |
| 1806 | coroutine.resume(coroutine.create(function() | |
| 1807 | for i = 0 , 1 , 0.05 do | |
| 1808 | wait() | |
| 1809 | shellz.Transparency = 1-1*i | |
| 1810 | end | |
| 1811 | shellz.Transparency = 0 | |
| 1812 | end)) | |
| 1813 | coroutine.resume(coroutine.create(function() | |
| 1814 | wait(60) | |
| 1815 | for ii,shellz in pairs(tempmod:GetChildren()) do | |
| 1816 | for i = 0 , 1 , 0.1 do | |
| 1817 | wait() | |
| 1818 | shellz.Transparency = 1*i | |
| 1819 | end | |
| 1820 | shellz.Parent = nil | |
| 1821 | end | |
| 1822 | tempmod.Parent = nil | |
| 1823 | end)) | |
| 1824 | end | |
| 1825 | wait(0.5) | |
| 1826 | ---- | |
| 1827 | RW.C0 = CFrame.new(1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(45), math.rad(-45)) | |
| 1828 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1829 | LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45)) | |
| 1830 | LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1831 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 1832 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 1833 | attack=false | |
| 1834 | bp.Parent = nil bg.Parent = nil | |
| 1835 | end | |
| 1836 | ||
| 1837 | ||
| 1838 | --TEST | |
| 1839 | ||
| 1840 | hammer = Torso | |
| 1841 | ||
| 1842 | function doDamage(hit) | |
| 1843 | local humanoid = hit.Parent:findFirstChild("Humanoid")
| |
| 1844 | local hum = Player.Character:findFirstChild("Humanoid") -- non-nil if tool held by a character
| |
| 1845 | if humanoid~=nil and humanoid ~= hum and hum ~= nil then | |
| 1846 | local foundd = false | |
| 1847 | for ii = 1 , #AoETrue do | |
| 1848 | if AoETrue[ii] == hit.Parent.Name then | |
| 1849 | foundd = true | |
| 1850 | end | |
| 1851 | end | |
| 1852 | if foundd then | |
| 1853 | end | |
| 1854 | -- | |
| 1855 | if not foundd then | |
| 1856 | humanoid:TakeDamage(5) | |
| 1857 | if Mode == "Fire" then | |
| 1858 | end | |
| 1859 | damagesplat(5,humanoid.Parent.Torso,false) | |
| 1860 | table.insert(AoETrue,hit.Parent) | |
| 1861 | end | |
| 1862 | ||
| 1863 | if humanoid.Health <= 0 then | |
| 1864 | local c = hit.CFrame | |
| 1865 | hit.CFrame = CFrame.new(hit.Position) | |
| 1866 | hit.CFrame = c | |
| 1867 | end | |
| 1868 | delay(1, function() end) | |
| 1869 | else | |
| 1870 | local c = hit.CFrame hit.CFrame = CFrame.new(hit.Position) hit.CFrame = c | |
| 1871 | end | |
| 1872 | end | |
| 1873 | function bewm(obj, pos, notme) | |
| 1874 | if (obj ~= notme) then | |
| 1875 | if (obj.className == "Part") or (obj.className == "Seat") then | |
| 1876 | if (not obj.Anchored) and (((pos - obj.Position) * Vector3.new(1, 0, 1)).magnitude < 24) and (pos.y <= obj.Position.y + 2) and (pos.y >= obj.Position.y - 2) then | |
| 1877 | delay((pos - obj.Position).magnitude / 24, function() obj.Velocity = ((obj.Position - pos).unit + Vector3.new(0, 0.5, 0)) * 96 + obj.Velocity obj.RotVelocity = obj.RotVelocity + Vector3.new(obj.Position.z - pos.z, 0, pos.x - obj.Position.x).unit * 40 doDamage(obj) end) | |
| 1878 | end | |
| 1879 | elseif (obj.className == "Model") or (obj.className == "Hat") or (obj.className == "Tool") or (obj == workspace) then | |
| 1880 | local list = obj:GetChildren() | |
| 1881 | for x = 1, #list do | |
| 1882 | bewm(list[x], pos, notme) | |
| 1883 | end | |
| 1884 | end | |
| 1885 | end | |
| 1886 | end | |
| 1887 | ||
| 1888 | function attackr() | |
| 1889 | local shockRing = Instance.new("Part")
| |
| 1890 | shockRing.formFactor = 2 | |
| 1891 | shockRing.Size = Vector3.new(1, 0.4, 1) | |
| 1892 | shockRing.Anchored = true | |
| 1893 | shockRing.Locked = true | |
| 1894 | shockRing.CanCollide = false | |
| 1895 | shockRing.archivable = false | |
| 1896 | shockRing.TopSurface = 0 | |
| 1897 | shockRing.BottomSurface = 0 | |
| 1898 | shockRing.Transparency = 0 | |
| 1899 | if Mode == "Fire" then | |
| 1900 | shockRing.BrickColor = BrickColor.new("Really red")
| |
| 1901 | elseif Mode == "Dark" then | |
| 1902 | shockRing.BrickColor = BrickColor.new("Bright violet")
| |
| 1903 | elseif Mode == "Ice" then | |
| 1904 | shockRing.BrickColor = BrickColor.new("Bright blue")
| |
| 1905 | shockRing.Reflectance = 0.2 | |
| 1906 | end | |
| 1907 | local decal = Instance.new("CylinderMesh")
| |
| 1908 | decal.Parent = shockRing | |
| 1909 | decal.Scale = Vector3.new(1,0.1,1) | |
| 1910 | wait(0.2) | |
| 1911 | local pos = hammer.CFrame * (Vector3.new(0, -2.5, 0)) | |
| 1912 | bewm(game.Workspace, pos, Player.Character) | |
| 1913 | shockRing.CFrame = CFrame.new(pos) | |
| 1914 | for x = 0, 1 , 0.0625 do | |
| 1915 | delay((x*16) / 30, function() shockRing.Parent = nil shockRing.Size = Vector3.new(0, 0.4, 0) + Vector3.new(3.2, 0, 3.2) * (x*16) shockRing.Transparency = 1*x shockRing.Parent = Player.Character end) | |
| 1916 | end | |
| 1917 | delay(1, function() | |
| 1918 | shockRing.Parent = nil | |
| 1919 | for ii = 1 , #AoETrue do | |
| 1920 | table.remove(AoETrue,#AoETrue) | |
| 1921 | end end) | |
| 1922 | end | |
| 1923 | local modemodel = Instance.new("Model",swordholder)
| |
| 1924 | local mrdychng = false | |
| 1925 | function FireMode() | |
| 1926 | attack=true | |
| 1927 | Mode = "Fire" | |
| 1928 | fireboost = 5 | |
| 1929 | mrdychng = true | |
| 1930 | for i = 0 , 1 , 0.1 do | |
| 1931 | wait() | |
| 1932 | RW.C0 = CFrame.new(1+0.5*i,0.5+1*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+55*i), math.rad(45-45*i), math.rad(-45+45*i)) | |
| 1933 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1934 | LW.C0 = CFrame.new(-1+1*i,0.5+1*i,-0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80-80*i),math.rad(-45+45*i),math.rad(45+65*i)) | |
| 1935 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 1936 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180*i), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 1937 | end | |
| 1938 | cs(Head,1.5) | |
| 1939 | local tempmod = Instance.new("Model",swordholder)
| |
| 1940 | for l = 1 , 20 do | |
| 1941 | local meshz = Instance.new("SpecialMesh")
| |
| 1942 | meshz.Scale = Vector3.new(0.5,0.5,0.5) | |
| 1943 | meshz.MeshType = "Sphere" | |
| 1944 | local shellz = Instance.new("Part")
| |
| 1945 | meshz.Parent = shellz | |
| 1946 | shellz.Anchored = false | |
| 1947 | shellz.formFactor = 0 | |
| 1948 | shellz.Size = Vector3.new(1,1,1) | |
| 1949 | shellz.CFrame = hitbox.CFrame * CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)) | |
| 1950 | shellz.Parent = tempmod | |
| 1951 | shellz.Transparency = 0.5 | |
| 1952 | shellz.BrickColor = BrickColor.new("Really red")
| |
| 1953 | shellz.CanCollide = false | |
| 1954 | shellz.Reflectance = 0 | |
| 1955 | local bv = Instance.new("BodyPosition")
| |
| 1956 | bv.Parent = shellz | |
| 1957 | bv.maxForce = Vector3.new(200000,200000,200000) | |
| 1958 | bv.position = shellz.Position | |
| 1959 | coroutine.resume(coroutine.create(function() | |
| 1960 | for i = 0 , 1 , 0.025 do | |
| 1961 | wait() | |
| 1962 | shellz.Transparency = 1-1*i | |
| 1963 | end | |
| 1964 | shellz.Transparency = 0 | |
| 1965 | end)) | |
| 1966 | coroutine.resume(coroutine.create(function() | |
| 1967 | wait(0.05) | |
| 1968 | bv.position = hitbox.Position | |
| 1969 | for i = 1 , 20 do | |
| 1970 | wait(0.1) | |
| 1971 | bv.position = shell.Position | |
| 1972 | end | |
| 1973 | shellz.Parent = nil | |
| 1974 | end)) | |
| 1975 | wait(0.01) | |
| 1976 | end | |
| 1977 | coroutine.resume(coroutine.create(function () | |
| 1978 | wait(0.25) | |
| 1979 | tempmod.Parent = nil | |
| 1980 | end)) | |
| 1981 | for i = 0 , 1 , 0.2 do | |
| 1982 | wait() | |
| 1983 | RW.C0 = CFrame.new(1.5,1.5-1*i,0) * CFrame.fromEulerAnglesXYZ(math.rad(135-45*i), math.rad(0), math.rad(0)) | |
| 1984 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1985 | LW.C0 = CFrame.new(0,1.5-1*i,-1) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(110-45*i)) | |
| 1986 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 1987 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 1988 | end | |
| 1989 | bs(Head,0.75) | |
| 1990 | attackr() | |
| 1991 | for zz = 1 , 1 do | |
| 1992 | local mesh = Instance.new("SpecialMesh")
| |
| 1993 | mesh.MeshType = "FileMesh" | |
| 1994 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 1995 | mesh.Scale = Vector3.new(10,5,10) * Vector3.new(0.01,0.01,0.01) | |
| 1996 | local shell = Instance.new("Part")
| |
| 1997 | mesh.Parent = shell | |
| 1998 | shell.Anchored = true | |
| 1999 | shell.formFactor = 1 | |
| 2000 | shell.Size = Vector3.new(1,1,1) | |
| 2001 | shell.CFrame = Torso.CFrame * CFrame.new(0,-1.5,0) | |
| 2002 | shell.Parent = swordholder | |
| 2003 | shell.Transparency = 0 | |
| 2004 | shell.BrickColor = BrickColor.new("Really red")
| |
| 2005 | shell.CanCollide = false | |
| 2006 | coroutine.resume(coroutine.create(function() | |
| 2007 | for i = 0 , 1 , 0.075 do | |
| 2008 | wait() | |
| 2009 | mesh.Scale = Vector3.new(20,5,20) * Vector3.new(i,1,i) | |
| 2010 | shell.Transparency = 1*i | |
| 2011 | end | |
| 2012 | shell.Transparency = 1 | |
| 2013 | shell.Parent = nil | |
| 2014 | end)) | |
| 2015 | end | |
| 2016 | for zz = 1 , 1 do | |
| 2017 | local mesh = Instance.new("SpecialMesh")
| |
| 2018 | mesh.MeshType = "FileMesh" | |
| 2019 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 2020 | mesh.Scale = Vector3.new(10,20,10) * Vector3.new(0.01,0.01,0.01) | |
| 2021 | local shell = Instance.new("Part")
| |
| 2022 | mesh.Parent = shell | |
| 2023 | shell.Anchored = true | |
| 2024 | shell.formFactor = 1 | |
| 2025 | shell.Size = Vector3.new(1,1,1) | |
| 2026 | shell.CFrame = Torso.CFrame * CFrame.new(0,1,0) | |
| 2027 | shell.Parent = swordholder | |
| 2028 | shell.Transparency = 0 | |
| 2029 | shell.BrickColor = BrickColor.new("Really red")
| |
| 2030 | shell.CanCollide = false | |
| 2031 | coroutine.resume(coroutine.create(function() | |
| 2032 | for i = 0 , 1 , 0.05 do | |
| 2033 | wait() | |
| 2034 | mesh.Scale = Vector3.new(10,20,10) * Vector3.new(i,1,i) | |
| 2035 | shell.Transparency = 1*i | |
| 2036 | end | |
| 2037 | shell.Transparency = 1 | |
| 2038 | shell.Parent = nil | |
| 2039 | end)) | |
| 2040 | end | |
| 2041 | for zz = 1 , 3 do | |
| 2042 | local mesh = Instance.new("SpecialMesh")
| |
| 2043 | mesh.MeshType = "Sphere" | |
| 2044 | mesh.Scale = Vector3.new(5*zz,5*zz,5*zz) * Vector3.new(0.01,0.01,0.01) | |
| 2045 | local shell = Instance.new("Part")
| |
| 2046 | mesh.Parent = shell | |
| 2047 | shell.Anchored = true | |
| 2048 | shell.formFactor = 3 | |
| 2049 | shell.Size = Vector3.new(1,1,1) | |
| 2050 | shell.CFrame = Torso.CFrame * CFrame.new(0,-1,0) | |
| 2051 | shell.Parent = swordholder | |
| 2052 | shell.Transparency = 0 | |
| 2053 | if math.fmod(zz,2) == 1 then | |
| 2054 | shell.BrickColor = BrickColor.new("Bright orange")
| |
| 2055 | elseif math.fmod(zz,2) == 0.5 then | |
| 2056 | shell.BrickColor = BrickColor.new("Bright red")
| |
| 2057 | else | |
| 2058 | shell.BrickColor = BrickColor.new("Bright yellow")
| |
| 2059 | end | |
| 2060 | shell.CanCollide = false | |
| 2061 | coroutine.resume(coroutine.create(function() | |
| 2062 | for i = 0 , 1 , 0.025 do | |
| 2063 | wait() | |
| 2064 | mesh.Scale = Vector3.new(10*zz,10*zz,10*zz) * Vector3.new(i,i,i) | |
| 2065 | shell.Transparency = 1*i | |
| 2066 | end | |
| 2067 | shell.Transparency = 1 | |
| 2068 | shell.Parent = nil | |
| 2069 | end)) | |
| 2070 | end | |
| 2071 | ||
| 2072 | ||
| 2073 | for ii,z in pairs(modemodel:GetChildren()) do | |
| 2074 | z.Parent = nil | |
| 2075 | end | |
| 2076 | ||
| 2077 | local wing1m = Instance.new("BlockMesh")
| |
| 2078 | wing1m.Scale = Vector3.new(1,1,1) | |
| 2079 | local wing1p = Instance.new("Part")
| |
| 2080 | wing1p.formFactor = 3 | |
| 2081 | wing1p.CanCollide = false | |
| 2082 | wing1p.Name = "FlameWingP1" | |
| 2083 | wing1p.Locked = true | |
| 2084 | wing1p.Size = Vector3.new(0.2,0.2,0.2) | |
| 2085 | wing1p.Parent = modemodel | |
| 2086 | wing1m.Parent = wing1p | |
| 2087 | wing1p.BrickColor = BrickColor.new("Bright red")
| |
| 2088 | wing1p.Transparency = 1 | |
| 2089 | local wing1w = Instance.new("Weld")
| |
| 2090 | wing1w.Parent = wing1p | |
| 2091 | wing1w.Part0 = wing1p | |
| 2092 | wing1w.Part1 = Torso | |
| 2093 | wing1w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0 , 0) | |
| 2094 | wing1w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(-1, 0, 0) | |
| 2095 | local wing2m = Instance.new("BlockMesh")
| |
| 2096 | wing2m.Scale = Vector3.new(1,1,1) | |
| 2097 | local wing2p = Instance.new("Part")
| |
| 2098 | wing2p.formFactor = 3 | |
| 2099 | wing2p.CanCollide = false | |
| 2100 | wing2p.Name = "FlameWingP2" | |
| 2101 | wing2p.Locked = true | |
| 2102 | wing2p.Size = Vector3.new(0.2,0.2,0.2) | |
| 2103 | wing2p.Parent = modemodel | |
| 2104 | wing2m.Parent = wing2p | |
| 2105 | wing2p.BrickColor = BrickColor.new("Bright red")
| |
| 2106 | wing2p.Transparency = 1 | |
| 2107 | local wing2w = Instance.new("Weld")
| |
| 2108 | wing2w.Parent = wing2p | |
| 2109 | wing2w.Part0 = wing2p | |
| 2110 | wing2w.Part1 = Torso | |
| 2111 | wing2w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0 , 0) | |
| 2112 | wing2w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(1, 0, 0) | |
| 2113 | coroutine.resume(coroutine.create(function() | |
| 2114 | for ringi = math.rad(-20) , math.rad(130) , math.rad(10) do | |
| 2115 | wait(0.1) | |
| 2116 | local ringm = Instance.new("BlockMesh")
| |
| 2117 | ringm.Scale = Vector3.new(1,1,1) | |
| 2118 | local ringp = Instance.new("Part")
| |
| 2119 | ringp.formFactor = 3 | |
| 2120 | ringp.CanCollide = false | |
| 2121 | ringp.Name = "FlameWing"..ringi | |
| 2122 | ringp.Locked = true | |
| 2123 | ringp.Size = Vector3.new(0.2,2,0.8) | |
| 2124 | ringp.Parent = modemodel | |
| 2125 | ringm.Parent = ringp | |
| 2126 | ringp.BrickColor = BrickColor.new("Bright red")
| |
| 2127 | ringp.Reflectance = 0.1 | |
| 2128 | ringp.Transparency = 1 | |
| 2129 | local ringw = Instance.new("Weld")
| |
| 2130 | ringw.Parent = ringp | |
| 2131 | ringw.Part0 = ringp | |
| 2132 | ringw.Part1 = wing1p | |
| 2133 | ringw.C1 = CFrame.fromEulerAnglesXYZ(ringi, 0, 0) * CFrame.new(0, ringp.Size.y/4 , 0) | |
| 2134 | ringw.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(45)) * CFrame.new(0, -1, 0) --* CFrame.new(-0.6, 0, 0) ---msh5.Scale.x/1.625 | |
| 2135 | coroutine.resume(coroutine.create(function() | |
| 2136 | for i = 0 , 1 , 0.025 do | |
| 2137 | wait() | |
| 2138 | ringp.Transparency = 1-1*i | |
| 2139 | end | |
| 2140 | ringp.Transparency = 0 | |
| 2141 | end)) | |
| 2142 | end end)) | |
| 2143 | coroutine.resume(coroutine.create(function() | |
| 2144 | for ringi = math.rad(-20) , math.rad(130) , math.rad(10) do | |
| 2145 | wait(0.1) | |
| 2146 | local ringm = Instance.new("BlockMesh")
| |
| 2147 | ringm.Scale = Vector3.new(1,1,1) | |
| 2148 | local ringp = Instance.new("Part")
| |
| 2149 | ringp.formFactor = 3 | |
| 2150 | ringp.CanCollide = false | |
| 2151 | ringp.Name = "FlameWing2_"..ringi | |
| 2152 | ringp.Locked = true | |
| 2153 | ringp.Size = Vector3.new(0.2,2,0.8) | |
| 2154 | ringp.Parent = modemodel | |
| 2155 | ringm.Parent = ringp | |
| 2156 | ringp.BrickColor = BrickColor.new("Bright red")
| |
| 2157 | ringp.Reflectance = 0.1 | |
| 2158 | ringp.Transparency = 1 | |
| 2159 | local ringw = Instance.new("Weld")
| |
| 2160 | ringw.Parent = ringp | |
| 2161 | ringw.Part0 = ringp | |
| 2162 | ringw.Part1 = wing2p | |
| 2163 | ringw.C1 = CFrame.fromEulerAnglesXYZ(ringi+math.rad(0), 0, 0) * CFrame.new(-0, ringp.Size.y/4 , 0) | |
| 2164 | ringw.C0 = CFrame.fromEulerAnglesXYZ(0, 0,math.rad(-45)) * CFrame.new(-0, -1, 0) | |
| 2165 | coroutine.resume(coroutine.create(function() | |
| 2166 | for i = 0 , 1 , 0.025 do | |
| 2167 | wait() | |
| 2168 | ringp.Transparency = 1-1*i | |
| 2169 | end | |
| 2170 | ringp.Transparency = 0 | |
| 2171 | end)) | |
| 2172 | end end)) | |
| 2173 | local wingp1m = Instance.new("SpecialMesh")
| |
| 2174 | wingp1m.Scale = Vector3.new(1,1,1) | |
| 2175 | wingp1m.MeshType = "Sphere" | |
| 2176 | local wingp1p = Instance.new("Part")
| |
| 2177 | wingp1p.formFactor = 3 | |
| 2178 | wingp1p.CanCollide = false | |
| 2179 | wingp1p.Name = "FlameOrb" | |
| 2180 | wingp1p.Locked = true | |
| 2181 | wingp1p.Size = Vector3.new(1,1,1) | |
| 2182 | wingp1p.Parent = modemodel | |
| 2183 | wingp1m.Parent = wingp1p | |
| 2184 | wingp1p.Reflectance = 0.2 | |
| 2185 | wingp1p.BrickColor = BrickColor.new("Bright red")
| |
| 2186 | local wingp1w = Instance.new("Weld")
| |
| 2187 | wingp1w.Parent = wingp1p | |
| 2188 | wingp1w.Part0 = wingp1p | |
| 2189 | wingp1w.Part1 = Torso | |
| 2190 | wingp1w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0 , 0) | |
| 2191 | wingp1w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(0, -0.5, 0.5) | |
| 2192 | coroutine.resume(coroutine.create(function() | |
| 2193 | for i = 0 , 1 , 0.025 do | |
| 2194 | wait() | |
| 2195 | wingp1p.Transparency = 1-1*i | |
| 2196 | end | |
| 2197 | wingp1p.Transparency = 0 | |
| 2198 | end)) | |
| 2199 | local Firee = modemodel | |
| 2200 | local Spawn = wingp1p | |
| 2201 | local colors = {BrickColor.new("Bright red"),BrickColor.new("Bright yellow"),BrickColor.new("Bright orange")}
| |
| 2202 | local Embers = {}
| |
| 2203 | local modelz = Instance.new("Model",Firee)
| |
| 2204 | modelz.Name = "FireHolder" | |
| 2205 | for X = 1, 15 do | |
| 2206 | local f = Instance.new("Part")
| |
| 2207 | f.Parent = nil | |
| 2208 | f.BrickColor = colors[math.random(1, # colors)] | |
| 2209 | f.Size = Vector3.new(1,1,1) | |
| 2210 | f.formFactor = 3 | |
| 2211 | f.Anchored = true | |
| 2212 | f.Locked = true | |
| 2213 | f.CanCollide = false | |
| 2214 | f.Transparency = 0.5 | |
| 2215 | f.Name = "Fire" | |
| 2216 | f.TopSurface = 0 | |
| 2217 | f.BottomSurface = 0 | |
| 2218 | Instance.new("BlockMesh",f)
| |
| 2219 | table.insert(Embers, f) | |
| 2220 | end | |
| 2221 | local R = 0 | |
| 2222 | coroutine.resume(coroutine.create(function () | |
| 2223 | repeat | |
| 2224 | wait() | |
| 2225 | R = R + 1 | |
| 2226 | for X = 1, # Embers do | |
| 2227 | Embers[X].Parent = modelz | |
| 2228 | local FM = math.fmod(R + X, # Embers) | |
| 2229 | if FM == 1 then | |
| 2230 | RandPos = Vector3.new(math.random(-Spawn.Size.x * 5, Spawn.Size.x * 5) / 10, Spawn.Size.y / 2, math.random(-Spawn.Size.x * 5, Spawn.Size.x * 5) / 10) | |
| 2231 | RandDir = Vector3.new(math.random(-100,100), math.random(-100,100), math.random(-100,100)) | |
| 2232 | Embers[X].CFrame = CFrame.new(Spawn.Position + RandPos, (Spawn.Position * rndm) + RandPos + RandDir) | |
| 2233 | Embers[X].Mesh.Scale = Vector3.new(1,1,1) | |
| 2234 | else | |
| 2235 | Embers[X].CFrame = Embers[X].CFrame + Embers[X].CFrame.lookVector*0.5 | |
| 2236 | Embers[X].Mesh.Scale = Embers[X].Mesh.Scale - Vector3.new(0.1,0.1,0.1) | |
| 2237 | end | |
| 2238 | end | |
| 2239 | until wingp1p.Parent == nil | |
| 2240 | for i = 0 ,1 , 0.1 do | |
| 2241 | wait(0.2) | |
| 2242 | for X = 1, # Embers do | |
| 2243 | Embers[X].Transparency = 0.5+0.5*i | |
| 2244 | end | |
| 2245 | end | |
| 2246 | for X = 1, # Embers do | |
| 2247 | Embers[X].Parent = nil | |
| 2248 | end | |
| 2249 | end)) | |
| 2250 | for ii = 1 , #AoETrue do | |
| 2251 | table.remove(AoETrue,#AoETrue) | |
| 2252 | end | |
| 2253 | wait(0.25) | |
| 2254 | for i = 0 , 1 , 0.1 do | |
| 2255 | wait() | |
| 2256 | RW.C0 = CFrame.new(1.5,0.5+0.5*i,0) * CFrame.fromEulerAnglesXYZ(math.rad(90+25*i), math.rad(0), math.rad(0)) | |
| 2257 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 2258 | LW.C0 = CFrame.new(0,0.5+0.5*i,-1) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(65+25*i)) | |
| 2259 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 2260 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 2261 | end | |
| 2262 | for i = 0 , 1 , 0.1 do | |
| 2263 | wait() | |
| 2264 | RW.C0 = CFrame.new(1.5,1-0.5*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(115-35*i), math.rad(45*i), math.rad(-45*i)) | |
| 2265 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 2266 | LW.C0 = CFrame.new(-1*i,1-0.5*i,-1+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80*i),math.rad(0),math.rad(90-45*i)) | |
| 2267 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 2268 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180-180*i), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 2269 | end | |
| 2270 | RW.C0 = CFrame.new(1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(45), math.rad(-45)) | |
| 2271 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 2272 | LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45)) | |
| 2273 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 2274 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 2275 | attack=false | |
| 2276 | wait(1.5) | |
| 2277 | mrdychng = false | |
| 2278 | end | |
| 2279 | function NeutralMode() | |
| 2280 | attack=true | |
| 2281 | Mode = "None" | |
| 2282 | fireboost = 0 | |
| 2283 | iceboost = 0 | |
| 2284 | darkboost = 0 | |
| 2285 | ss(Head,1) | |
| 2286 | cs(Head,2) | |
| 2287 | mrdychng = true | |
| 2288 | for i = 0 , 1 , 0.2 do | |
| 2289 | wait() | |
| 2290 | RW.C0 = CFrame.new(1+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i), math.rad(45), math.rad(-45+45*i)) | |
| 2291 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(100*i), math.rad(0), math.rad(0)) | |
| 2292 | LW.C0 = CFrame.new(-1-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i),math.rad(-45),math.rad(45-45*i)) | |
| 2293 | LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(100*i), math.rad(0), math.rad(0)) | |
| 2294 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 2295 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(70*i), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 2296 | end | |
| 2297 | coroutine.resume(coroutine.create(function() | |
| 2298 | for ii,z in pairs(modemodel:GetChildren()) do | |
| 2299 | if string.sub(z.Name,0,string.len(z.Name)-1) ~= "FlameWingP" then | |
| 2300 | wait() | |
| 2301 | coroutine.resume(coroutine.create(function() | |
| 2302 | for i = 0 , 1 , 0.1 do | |
| 2303 | wait() | |
| 2304 | z.Transparency = (1-z.Transparency)*i | |
| 2305 | end | |
| 2306 | z.Parent = nil | |
| 2307 | end)) | |
| 2308 | end | |
| 2309 | end | |
| 2310 | wait(0.5) | |
| 2311 | for ii,z in pairs(modemodel:GetChildren()) do | |
| 2312 | wait() | |
| 2313 | z.Parent = nil | |
| 2314 | end | |
| 2315 | end)) | |
| 2316 | for i = 0 , 1 , 0.1 do | |
| 2317 | wait() | |
| 2318 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(45), math.rad(0)) | |
| 2319 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(100+20*i), math.rad(0), math.rad(0)) | |
| 2320 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(-45),math.rad(0)) | |
| 2321 | LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(100+20*i), math.rad(0), math.rad(0)) | |
| 2322 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 2323 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(70+20*i), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 2324 | end | |
| 2325 | ||
| 2326 | wait(0.25) | |
| 2327 | for i = 0 , 1 , 0.1 do | |
| 2328 | wait() | |
| 2329 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i), math.rad(45), math.rad(-45*i)) | |
| 2330 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(120-120*i), math.rad(0), math.rad(0)) | |
| 2331 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i),math.rad(-45),math.rad(45*i)) | |
| 2332 | LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(120-120*i), math.rad(0), math.rad(0)) | |
| 2333 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 2334 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90-90*i), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 2335 | end | |
| 2336 | RW.C0 = CFrame.new(1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(45), math.rad(-45)) | |
| 2337 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 2338 | LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45)) | |
| 2339 | LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 2340 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 2341 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 2342 | attack=false | |
| 2343 | wait(0.5) | |
| 2344 | mrdychng = false | |
| 2345 | end | |
| 2346 | ||
| 2347 | function ob1d(mouse) | |
| 2348 | hold = true | |
| 2349 | if attack == true then return end | |
| 2350 | end | |
| 2351 | function ob1u(mouse) | |
| 2352 | end | |
| 2353 | buttonhold = false | |
| 2354 | function key(key) | |
| 2355 | if attack == true then return end | |
| 2356 | if key == "q" then | |
| 2357 | if attacktype == 1 then | |
| 2358 | Combo1a() | |
| 2359 | elseif attacktype == 2 then | |
| 2360 | Combo1b() | |
| 2361 | elseif attacktype == 3 then | |
| 2362 | Combo1c() | |
| 2363 | end | |
| 2364 | end | |
| 2365 | if key == "e" then | |
| 2366 | if attacktype == 1 then | |
| 2367 | BlizzardSword() | |
| 2368 | end | |
| 2369 | end | |
| 2370 | if key == "r" then | |
| 2371 | FlameTrail() | |
| 2372 | end | |
| 2373 | if key == "t" then | |
| 2374 | LifeDrain() | |
| 2375 | end | |
| 2376 | if Mode == "None" and not mrdychng then | |
| 2377 | if key == "z" then | |
| 2378 | FireMode() | |
| 2379 | end | |
| 2380 | elseif not mrdychng then | |
| 2381 | if key == "z" or key == "x" or key == "c" then | |
| 2382 | NeutralMode() | |
| 2383 | end | |
| 2384 | end | |
| 2385 | end | |
| 2386 | ||
| 2387 | function key2(key) | |
| 2388 | end | |
| 2389 | function s(mouse) | |
| 2390 | repeat wait() until not attack | |
| 2391 | while ev.Value ~= false do | |
| 2392 | wait(0.1) | |
| 2393 | end | |
| 2394 | MMouse = mouse | |
| 2395 | mouse.Button1Down:connect(function() ob1d(mouse) end) | |
| 2396 | mouse.Button1Up:connect(function() ob1u(mouse) end) | |
| 2397 | mouse.KeyDown:connect(key) | |
| 2398 | mouse.KeyUp:connect(key2) | |
| 2399 | equipanim() | |
| 2400 | ev.Value = true | |
| 2401 | --[[ | |
| 2402 | script.Parent = Bin.Parent | |
| 2403 | Bin:remove()]] | |
| 2404 | end | |
| 2405 | function ds(mouse) | |
| 2406 | repeat wait() until not attack | |
| 2407 | while ev.Value == false do | |
| 2408 | wait(0.1) | |
| 2409 | end | |
| 2410 | ||
| 2411 | hideanim() | |
| 2412 | wait(0.1) | |
| 2413 | ev.Value = false | |
| 2414 | end | |
| 2415 | Bin.Selected:connect(s) | |
| 2416 | Bin.Deselected:connect(ds) | |
| 2417 | ||
| 2418 | ||
| 2419 | --legoPlayer = game:GetService("Players").thegoldenhorns21
| |
| 2420 | Character = Player.Character | |
| 2421 | PlayerGui = Player.PlayerGui | |
| 2422 | Backpack = Player.Backpack | |
| 2423 | Torso = Character.Torso | |
| 2424 | Head = Character.Head | |
| 2425 | LeftArm = Character["Left Arm"] | |
| 2426 | LeftLeg = Character["Left Leg"] | |
| 2427 | RightArm = Character["Right Arm"] | |
| 2428 | RightLeg = Character["Right Leg"] | |
| 2429 | LS = Torso["Left Shoulder"] | |
| 2430 | LH = Torso["Left Hip"] | |
| 2431 | RS = Torso["Right Shoulder"] | |
| 2432 | RH = Torso["Right Hip"] | |
| 2433 | ModelName = "Weapon" | |
| 2434 | ToolName = "Yamato" | |
| 2435 | attack = false | |
| 2436 | attacktype = 1 | |
| 2437 | mindamage = 15 | |
| 2438 | maxdamage = 25 | |
| 2439 | crtmaxdamage = 45 | |
| 2440 | omindamage = 15 | |
| 2441 | omaxdamage = 25 | |
| 2442 | ocrtmaxdamage = 45 | |
| 2443 | crtrate = 12 | |
| 2444 | fireboost = 0 | |
| 2445 | iceboost = 0 | |
| 2446 | darkboost = 0 | |
| 2447 | Mode = "None" | |
| 2448 | ssh = false | |
| 2449 | atktypez = 1 | |
| 2450 | Hitdeb = 0 | |
| 2451 | ammo = 1 | |
| 2452 | MMouse = nil | |
| 2453 | point = false | |
| 2454 | offset = 0 | |
| 2455 | radv = 90 | |
| 2456 | ---------------------------- | |
| 2457 | --Customize | |
| 2458 | DarkFire = true | |
| 2459 | MaxFT = 40 | |
| 2460 | ||
| 2461 | ||
| 2462 | ||
| 2463 | --------------------------------------------------------------------------------------------------------------------------------------- | |
| 2464 | if Character:findFirstChild("EquippedVal",true) ~= nil then
| |
| 2465 | Character:findFirstChild("EquippedVal",true).Parent = nil
| |
| 2466 | end | |
| 2467 | ev = Instance.new("BoolValue")
| |
| 2468 | ev.Parent = Character | |
| 2469 | ev.Name = "EquippedVal" | |
| 2470 | ev.Value = false | |
| 2471 | --player | |
| 2472 | player = nil | |
| 2473 | --welds | |
| 2474 | RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld")
| |
| 2475 | --what anim | |
| 2476 | anim = "none" | |
| 2477 | --other var | |
| 2478 | player = Player | |
| 2479 | ch = Character | |
| 2480 | --save shoulders | |
| 2481 | AoETrue = {}
| |
| 2482 | RSH, LSH , RHL, LHL = ch.Torso["Right Shoulder"], ch.Torso["Left Shoulder"] , ch.Torso["Right Hip"] , ch.Torso["Left Hip"] | |
| 2483 | ||
| 2484 | function RWFunc() | |
| 2485 | RW.Part1 = ch["Right Arm"] | |
| 2486 | RSH.Part1 = nil | |
| 2487 | end | |
| 2488 | function LWFunc() | |
| 2489 | LW.Part1 = ch["Left Arm"] | |
| 2490 | LSH.Part1 = nil | |
| 2491 | end | |
| 2492 | function RWLFunc() | |
| 2493 | RWL.Part1 = ch["Right Leg"] | |
| 2494 | RHL.Part1 = nil | |
| 2495 | ch["Right Leg"].Name = "RightLeg" | |
| 2496 | RightLeg.CanCollide = false | |
| 2497 | end | |
| 2498 | function LWLFunc() | |
| 2499 | LWL.Part1 = ch["Left Leg"] | |
| 2500 | LHL.Part1 = nil | |
| 2501 | ch["Left Leg"].Name = "LeftLeg" | |
| 2502 | LeftLeg.CanCollide = true | |
| 2503 | end | |
| 2504 | function RWLRem() | |
| 2505 | RightLeg.Name = "Right Leg" | |
| 2506 | RWL.Part1 = nil | |
| 2507 | RHL.Part1 = ch["Right Leg"] | |
| 2508 | RightLeg.CanCollide = false | |
| 2509 | end | |
| 2510 | function LWLRem() | |
| 2511 | LeftLeg.Name = "Left Leg" | |
| 2512 | LWL.Part1 = nil | |
| 2513 | LHL.Part1 = ch["Left Leg"] | |
| 2514 | LeftLeg.CanCollide = false | |
| 2515 | end | |
| 2516 | function RWRem() | |
| 2517 | RW.Part1 = nil | |
| 2518 | RSH.Part1 = ch["Right Arm"] | |
| 2519 | end | |
| 2520 | function LWRem() | |
| 2521 | LW.Part1 = nil | |
| 2522 | LSH.Part1 = ch["Left Arm"] | |
| 2523 | end | |
| 2524 | ||
| 2525 | ||
| 2526 | if Character:findFirstChild(ModelName,true) ~= nil then | |
| 2527 | Character:findFirstChild(ModelName,true).Parent = nil | |
| 2528 | RHL.Part1 = ch["Right Leg"] | |
| 2529 | LHL.Part1 = ch["Left Leg"] | |
| 2530 | RSH.Part1 = ch["Right Arm"] | |
| 2531 | LSH.Part1 = ch["Left Arm"] | |
| 2532 | end | |
| 2533 | ||
| 2534 | ||
| 2535 | ||
| 2536 | local swordholder = Instance.new("Model")
| |
| 2537 | swordholder.Name = ModelName | |
| 2538 | swordholder.Parent = Character | |
| 2539 | --derp | |
| 2540 | RW.Part0 = ch.Torso | |
| 2541 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 2542 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 2543 | RW.Parent = swordholder | |
| 2544 | -- | |
| 2545 | LW.Part0 = ch.Torso | |
| 2546 | LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
| 2547 | LW.C1 = CFrame.new(0, 0.5, 0) | |
| 2548 | LW.Parent = swordholder | |
| 2549 | -- | |
| 2550 | RWL.Part0 = ch.Torso | |
| 2551 | RWL.C0 = CFrame.new(1, -1, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
| 2552 | RWL.C1 = CFrame.new(0.5, 1, 0) | |
| 2553 | RWL.Parent = swordholder | |
| 2554 | -- | |
| 2555 | LWL.Part0 = ch.Torso | |
| 2556 | LWL.C0 = CFrame.new(-1, -1, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
| 2557 | LWL.C1 = CFrame.new(-0.5, 1, 0) | |
| 2558 | LWL.Parent = swordholder | |
| 2559 | handlecolor = BrickColor.new("Really black")
| |
| 2560 | scndryclr = BrickColor.new("Bright violet")
| |
| 2561 | firepri = BrickColor.new("Bright red")
| |
| 2562 | icepri = BrickColor.new("Bright blue")
| |
| 2563 | local msh1 = Instance.new("CylinderMesh")
| |
| 2564 | msh1.Scale = Vector3.new(1,1,1) | |
| 2565 | local msh2 = Instance.new("BlockMesh")
| |
| 2566 | msh2.Scale = Vector3.new(1,1,1) | |
| 2567 | -- | |
| 2568 | local msh3 = Instance.new("BlockMesh")
| |
| 2569 | msh3.Scale = Vector3.new(1,1,1) | |
| 2570 | local msh3a = Instance.new("SpecialMesh")
| |
| 2571 | msh3a.Scale = Vector3.new(1,1,1) | |
| 2572 | msh3a.MeshType = "Wedge" | |
| 2573 | local msh4 = Instance.new("BlockMesh")
| |
| 2574 | msh4.Scale = Vector3.new(1,1,1) | |
| 2575 | local msh4a = Instance.new("SpecialMesh")
| |
| 2576 | msh4a.Scale = Vector3.new(1,1,1) | |
| 2577 | msh4a.MeshType = "Wedge" | |
| 2578 | -- | |
| 2579 | local msh5 = Instance.new("SpecialMesh")
| |
| 2580 | msh5.Scale = Vector3.new(1,1,2) | |
| 2581 | msh5.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 2582 | local msh6 = Instance.new("BlockMesh")
| |
| 2583 | msh6.Scale = Vector3.new(1,1,0.5) | |
| 2584 | local msh7 = Instance.new("BlockMesh")
| |
| 2585 | msh7.Scale = Vector3.new(1,1,1) | |
| 2586 | local msh8 = Instance.new("BlockMesh")
| |
| 2587 | msh8.Scale = Vector3.new(0.5,1,1) | |
| 2588 | local prt1 = Instance.new("Part")
| |
| 2589 | prt1.formFactor = 3 | |
| 2590 | prt1.CanCollide = false | |
| 2591 | prt1.Name = "Handle" | |
| 2592 | prt1.Locked = true | |
| 2593 | prt1.Size = Vector3.new(0.2,1.5,0.2) | |
| 2594 | prt1.Parent = swordholder | |
| 2595 | msh1.Parent = prt1 | |
| 2596 | prt1.BrickColor = handlecolor | |
| 2597 | local prt2 = Instance.new("Part")
| |
| 2598 | prt2.formFactor = 3 | |
| 2599 | prt2.CanCollide = false | |
| 2600 | prt2.Name = "HandleTop" | |
| 2601 | prt2.Locked = true | |
| 2602 | prt2.Size = Vector3.new(1.6,0.2,0.5) | |
| 2603 | prt2.Parent = swordholder | |
| 2604 | msh2.Parent = prt2 | |
| 2605 | prt2.BrickColor = scndryclr | |
| 2606 | --- | |
| 2607 | local prt3 = Instance.new("Part")
| |
| 2608 | prt3.formFactor = 3 | |
| 2609 | prt3.CanCollide = false | |
| 2610 | prt3.Name = "FlameBlade" | |
| 2611 | prt3.Locked = true | |
| 2612 | prt3.Size = Vector3.new(0.4,3,0.2) | |
| 2613 | prt3.Parent = swordholder | |
| 2614 | msh3.Parent = prt3 | |
| 2615 | prt3.BrickColor = firepri | |
| 2616 | prt3.Reflectance = 0 | |
| 2617 | local prt3a = Instance.new("Part")
| |
| 2618 | prt3a.formFactor = 3 | |
| 2619 | prt3a.CanCollide = false | |
| 2620 | prt3a.Name = "FlameBladeP1" | |
| 2621 | prt3a.Locked = true | |
| 2622 | prt3a.Size = Vector3.new(0.2,1,0.4) | |
| 2623 | prt3a.Parent = swordholder | |
| 2624 | msh3a.Parent = prt3a | |
| 2625 | prt3a.BrickColor = firepri | |
| 2626 | prt3a.Reflectance = 0 | |
| 2627 | -- | |
| 2628 | local prt4 = Instance.new("Part")
| |
| 2629 | prt4.formFactor = 3 | |
| 2630 | prt4.CanCollide = false | |
| 2631 | prt4.Name = "FrostBlade" | |
| 2632 | prt4.Locked = true | |
| 2633 | prt4.Size = Vector3.new(0.4,3,0.2) | |
| 2634 | prt4.Parent = swordholder | |
| 2635 | msh4.Parent = prt4 | |
| 2636 | prt4.BrickColor = icepri | |
| 2637 | prt4.Reflectance = 0.5 | |
| 2638 | local prt4a = Instance.new("Part")
| |
| 2639 | prt4a.formFactor = 3 | |
| 2640 | prt4a.CanCollide = false | |
| 2641 | prt4a.Name = "FrostBladeP1" | |
| 2642 | prt4a.Locked = true | |
| 2643 | prt4a.Size = Vector3.new(0.2,1,0.4) | |
| 2644 | prt4a.Parent = swordholder | |
| 2645 | msh4a.Parent = prt4a | |
| 2646 | prt4a.BrickColor = icepri | |
| 2647 | prt4a.Reflectance = 0.5 | |
| 2648 | -- | |
| 2649 | local prt5 = Instance.new("Part")
| |
| 2650 | prt5.formFactor = 3 | |
| 2651 | prt5.CanCollide = false | |
| 2652 | prt5.Name = "HandleRing" | |
| 2653 | prt5.Locked = true | |
| 2654 | prt5.Size = Vector3.new(1,1,0.2) | |
| 2655 | prt5.Parent = swordholder | |
| 2656 | msh5.Parent = prt5 | |
| 2657 | prt5.BrickColor = scndryclr | |
| 2658 | prt5.Reflectance = 0 | |
| 2659 | local DFlame = Instance.new("Fire")
| |
| 2660 | DFlame.Parent = prt5 | |
| 2661 | DFlame.Color = Color3.new(0.5,0,0.5) | |
| 2662 | DFlame.SecondaryColor = Color3.new(0.5,0,0.5) | |
| 2663 | DFlame.Heat = 25 | |
| 2664 | DFlame.Size = 1 | |
| 2665 | DFlame.Enabled = DarkFire | |
| 2666 | local prt6 = Instance.new("Part")
| |
| 2667 | prt6.formFactor = 3 | |
| 2668 | prt6.CanCollide = false | |
| 2669 | prt6.Name = "HandleP1" | |
| 2670 | prt6.Locked = true | |
| 2671 | prt6.Size = Vector3.new(0.2,1.5,0.2) | |
| 2672 | prt6.Parent = swordholder | |
| 2673 | msh6.Parent = prt6 | |
| 2674 | prt6.BrickColor = scndryclr | |
| 2675 | prt6.Reflectance = 0 | |
| 2676 | local prt7 = Instance.new("Part")
| |
| 2677 | prt7.formFactor = 3 | |
| 2678 | prt7.CanCollide = false | |
| 2679 | prt7.Name = "HandleP2" | |
| 2680 | prt7.Locked = true | |
| 2681 | prt7.Size = Vector3.new(0.7,0.2,0.2) | |
| 2682 | prt7.Parent = swordholder | |
| 2683 | msh7.Parent = prt7 | |
| 2684 | prt7.BrickColor = scndryclr | |
| 2685 | prt7.Reflectance = 0 | |
| 2686 | local prt8 = Instance.new("Part")
| |
| 2687 | prt8.formFactor = 3 | |
| 2688 | prt8.CanCollide = false | |
| 2689 | prt8.Name = "DarkBlade" | |
| 2690 | prt8.Locked = true | |
| 2691 | prt8.Size = Vector3.new(0.2,4,0.2) | |
| 2692 | prt8.Parent = swordholder | |
| 2693 | msh8.Parent = prt8 | |
| 2694 | prt8.BrickColor = handlecolor | |
| 2695 | prt8.Transparency = 1 | |
| 2696 | local hitbox = Instance.new("Part")
| |
| 2697 | hitbox.formFactor = 3 | |
| 2698 | hitbox.CanCollide = false | |
| 2699 | hitbox.Name = "Hitbox" | |
| 2700 | hitbox.Locked = true | |
| 2701 | hitbox.Size = Vector3.new(1,4,0.2) | |
| 2702 | hitbox.Parent = swordholder | |
| 2703 | hitbox.Transparency = 1 | |
| 2704 | local hbw = Instance.new("Weld")
| |
| 2705 | hbw.Parent = hitbox | |
| 2706 | hbw.Part0 = hitbox | |
| 2707 | hbw.Part1 = prt1 | |
| 2708 | hbw.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 2709 | hbw.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(0, -2.95, 0) | |
| 2710 | ||
| 2711 | local w1 = Instance.new("Weld")
| |
| 2712 | w1.Parent = prt1 | |
| 2713 | w1.Part0 = prt1 | |
| 2714 | local w2 = Instance.new("Weld")
| |
| 2715 | w2.Parent = prt2 | |
| 2716 | w2.Part0 = prt2 | |
| 2717 | w2.Part1 = prt1 | |
| 2718 | w2.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 2719 | w2.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(0, -0.85, 0) | |
| 2720 | -- | |
| 2721 | local w3 = Instance.new("Weld")
| |
| 2722 | w3.Parent = prt3 | |
| 2723 | w3.Part0 = prt3 | |
| 2724 | w3.Part1 = prt1 | |
| 2725 | w3.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 2726 | w3.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(0.25, -2.45, 0) | |
| 2727 | local w3a = Instance.new("Weld")
| |
| 2728 | w3a.Parent = prt3a | |
| 2729 | w3a.Part0 = prt3a | |
| 2730 | w3a.Part1 = prt1 | |
| 2731 | w3a.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 2732 | w3a.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(-90),0) * CFrame.new(0.25, -4.45, 0) | |
| 2733 | local w4 = Instance.new("Weld")
| |
| 2734 | w4.Parent = prt4 | |
| 2735 | w4.Part0 = prt4 | |
| 2736 | w4.Part1 = prt1 | |
| 2737 | w4.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 2738 | w4.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(-0.25, -2.45, 0) | |
| 2739 | local w4a = Instance.new("Weld")
| |
| 2740 | w4a.Parent = prt4a | |
| 2741 | w4a.Part0 = prt4a | |
| 2742 | w4a.Part1 = prt1 | |
| 2743 | w4a.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 2744 | w4a.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90),0) * CFrame.new(-0.25, -4.45, 0) | |
| 2745 | -- | |
| 2746 | local w5 = Instance.new("Weld")
| |
| 2747 | w5.Parent = prt5 | |
| 2748 | w5.Part0 = prt5 | |
| 2749 | w5.Part1 = prt1 | |
| 2750 | w5.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 2751 | w5.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(-0, -0.85, 0) | |
| 2752 | local w6 = Instance.new("Weld")
| |
| 2753 | w6.Parent = prt6 | |
| 2754 | w6.Part0 = prt6 | |
| 2755 | w6.Part1 = prt1 | |
| 2756 | w6.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 2757 | w6.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(-0.5, -0, 0) | |
| 2758 | local w7 = Instance.new("Weld")
| |
| 2759 | w7.Parent = prt7 | |
| 2760 | w7.Part0 = prt7 | |
| 2761 | w7.Part1 = prt1 | |
| 2762 | w7.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 2763 | w7.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(-0.25, 0.75, 0) | |
| 2764 | local w8 = Instance.new("Weld")
| |
| 2765 | w8.Parent = prt8 | |
| 2766 | w8.Part0 = prt8 | |
| 2767 | w8.Part1 = prt1 | |
| 2768 | w8.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 2769 | w8.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(0, -2.95, 0) | |
| 2770 | for ringi = 0 , math.rad(350) , math.rad(50) do | |
| 2771 | local ringm = Instance.new("BlockMesh")
| |
| 2772 | ringm.Scale = Vector3.new(1,1.5,1) | |
| 2773 | local ringp = Instance.new("Part")
| |
| 2774 | ringp.formFactor = 3 | |
| 2775 | ringp.CanCollide = false | |
| 2776 | ringp.Name = "HandleRingP"..ringi | |
| 2777 | ringp.Locked = true | |
| 2778 | ringp.Size = Vector3.new(0.2,0.2,0.2) | |
| 2779 | ringp.Parent = swordholder | |
| 2780 | ringm.Parent = ringp | |
| 2781 | ringp.BrickColor = scndryclr | |
| 2782 | ringp.Reflectance = 0.1 | |
| 2783 | local ringw = Instance.new("Weld")
| |
| 2784 | ringw.Parent = ringp | |
| 2785 | ringw.Part0 = ringp | |
| 2786 | ringw.Part1 = prt5 | |
| 2787 | ringw.C1 = CFrame.fromEulerAnglesXYZ(math.rad(90), -ringi, 0) * CFrame.new(0, 0 , 0) | |
| 2788 | ringw.C0 = CFrame.fromEulerAnglesXYZ(0, 0,0) * CFrame.new(-msh5.Scale.x/1.625, 0, 0) --* CFrame.new(-0.6, 0, 0) ---msh5.Scale.z/3.25 | |
| 2789 | end | |
| 2790 | ||
| 2791 | local Objects = {}
| |
| 2792 | function getAllObjects(obj) | |
| 2793 | for a,v in pairs(obj:GetChildren()) do | |
| 2794 | if v:IsA("BasePart") then
| |
| 2795 | table.insert(Objects,v) | |
| 2796 | end | |
| 2797 | if #v:GetChildren() > 0 then | |
| 2798 | getAllObjects(v) | |
| 2799 | end | |
| 2800 | end | |
| 2801 | end | |
| 2802 | getAllObjects(Workspace) | |
| 2803 | function Raycast(Start,End,Range) | |
| 2804 | -- | |
| 2805 | for ii = 0 , #Objects do | |
| 2806 | table.remove(Objects,ii) | |
| 2807 | end | |
| 2808 | getAllObjects(Workspace) | |
| 2809 | local MA = math.abs | |
| 2810 | local CF = CFrame.new(Start,End) | |
| 2811 | local CP = Start | |
| 2812 | for i = 1, Range do--(Start - End).magnitude do | |
| 2813 | for b,v in pairs(Objects) do | |
| 2814 | if v.Parent ~= nil then | |
| 2815 | local pos = Start + (CF.lookVector*i) | |
| 2816 | local dist = v.CFrame:pointToObjectSpace(pos) | |
| 2817 | if MA(dist.x) < v.Size.x/2 and MA(dist.y) < v.Size.y/2 and MA(dist.z) < v.Size.z/2 then | |
| 2818 | if v.Parent ~= Character or v.Parent ~= swordholder or v.Parent.Parent ~= Character then | |
| 2819 | return v,Start,pos | |
| 2820 | end | |
| 2821 | end | |
| 2822 | end | |
| 2823 | end | |
| 2824 | end | |
| 2825 | return nil,Start,End | |
| 2826 | end | |
| 2827 | local RAP = Instance.new("Part")
| |
| 2828 | RAP.formFactor = 0 | |
| 2829 | RAP.CanCollide = false | |
| 2830 | RAP.Name = "RAPart" | |
| 2831 | RAP.Locked = true | |
| 2832 | RAP.Size = Vector3.new(1,1,1) | |
| 2833 | RAP.Parent = swordholder | |
| 2834 | RAP.Transparency = 1 | |
| 2835 | local w = Instance.new("Weld")
| |
| 2836 | w.Parent = RAP | |
| 2837 | w.Part0 = RAP | |
| 2838 | w.Part1 = RightArm | |
| 2839 | w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 2840 | w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 1, 0) | |
| 2841 | ||
| 2842 | function unequipweld() | |
| 2843 | w1.Part1 = Torso | |
| 2844 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), math.rad(0)) * CFrame.new(0, 0,0) | |
| 2845 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(180), math.rad(-150)) * CFrame.new(-1, -1.5, -0.6) | |
| 2846 | end | |
| 2847 | unequipweld() | |
| 2848 | ||
| 2849 | function equipweld() | |
| 2850 | w1.Part1 = RAP | |
| 2851 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 2852 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 2853 | end | |
| 2854 | ||
| 2855 | function ss(parent,p) --Slash | |
| 2856 | local SlashSound = Instance.new("Sound")
| |
| 2857 | SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav" | |
| 2858 | SlashSound.Parent = parent | |
| 2859 | SlashSound.Volume = .7 | |
| 2860 | SlashSound.Pitch = p | |
| 2861 | SlashSound.PlayOnRemove = true | |
| 2862 | coroutine.resume(coroutine.create(function() | |
| 2863 | wait() | |
| 2864 | SlashSound.Parent = nil | |
| 2865 | end)) | |
| 2866 | end | |
| 2867 | function uss(parent,p) --unsheath | |
| 2868 | local SlashSound = Instance.new("Sound")
| |
| 2869 | SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav" | |
| 2870 | SlashSound.Parent = parent | |
| 2871 | SlashSound.Volume = .7 | |
| 2872 | SlashSound.Pitch = p | |
| 2873 | SlashSound.PlayOnRemove = true | |
| 2874 | coroutine.resume(coroutine.create(function() | |
| 2875 | wait() | |
| 2876 | SlashSound.Parent = nil | |
| 2877 | end)) | |
| 2878 | end | |
| 2879 | function cs(parent,p) --Magic Charge | |
| 2880 | local SlashSound = Instance.new("Sound")
| |
| 2881 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2101137" | |
| 2882 | SlashSound.Parent = parent | |
| 2883 | SlashSound.Volume = .7 | |
| 2884 | SlashSound.Pitch = p | |
| 2885 | SlashSound.PlayOnRemove = true | |
| 2886 | coroutine.resume(coroutine.create(function() | |
| 2887 | wait() | |
| 2888 | SlashSound.Parent = nil | |
| 2889 | end)) | |
| 2890 | end | |
| 2891 | function ls(parent,p) --Lazer Sound | |
| 2892 | local SlashSound = Instance.new("Sound")
| |
| 2893 | SlashSound.SoundId = "http://www.roblox.com/asset?id=1369158" | |
| 2894 | SlashSound.Parent = parent | |
| 2895 | SlashSound.Volume = .7 | |
| 2896 | SlashSound.Pitch = p | |
| 2897 | SlashSound.PlayOnRemove = true | |
| 2898 | coroutine.resume(coroutine.create(function() | |
| 2899 | wait() | |
| 2900 | SlashSound.Parent = nil | |
| 2901 | end)) | |
| 2902 | end | |
| 2903 | function is(parent,p) --Ice Sound | |
| 2904 | local SlashSound = Instance.new("Sound")
| |
| 2905 | local rndm = math.random(1,3) | |
| 2906 | if rndm == 1 then | |
| 2907 | SlashSound.SoundId = "rbxasset://sounds\\ice.ogg" | |
| 2908 | elseif rndm == 2 then | |
| 2909 | SlashSound.SoundId = "rbxasset://sounds\\ice2.ogg" | |
| 2910 | elseif rndm == 3 then | |
| 2911 | SlashSound.SoundId = "rbxasset://sounds\\ice3.ogg" | |
| 2912 | end | |
| 2913 | SlashSound.Parent = parent | |
| 2914 | SlashSound.Volume = .7 | |
| 2915 | SlashSound.Pitch = p | |
| 2916 | SlashSound.PlayOnRemove = true | |
| 2917 | coroutine.resume(coroutine.create(function() | |
| 2918 | wait() | |
| 2919 | SlashSound.Parent = nil | |
| 2920 | end)) | |
| 2921 | end | |
| 2922 | function fs(parent,p) --Fire Sound | |
| 2923 | local SlashSound = Instance.new("Sound")
| |
| 2924 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=31758982" | |
| 2925 | SlashSound.Parent = parent | |
| 2926 | SlashSound.Volume = .7 | |
| 2927 | SlashSound.Pitch = p | |
| 2928 | SlashSound.PlayOnRemove = true | |
| 2929 | coroutine.resume(coroutine.create(function() | |
| 2930 | wait() | |
| 2931 | SlashSound.Parent = nil | |
| 2932 | end)) | |
| 2933 | end | |
| 2934 | function bs(parent,p) --Boom Sound | |
| 2935 | local SlashSound = Instance.new("Sound")
| |
| 2936 | SlashSound.SoundId = "rbxasset://sounds/Rocket shot.wav" | |
| 2937 | SlashSound.Parent = parent | |
| 2938 | SlashSound.Volume = .7 | |
| 2939 | SlashSound.Pitch = p | |
| 2940 | SlashSound.PlayOnRemove = true | |
| 2941 | coroutine.resume(coroutine.create(function() | |
| 2942 | wait() | |
| 2943 | SlashSound.Parent = nil | |
| 2944 | end)) | |
| 2945 | end | |
| 2946 | -- | |
| 2947 | ||
| 2948 | ||
| 2949 | function hideanim() | |
| 2950 | attack = true | |
| 2951 | for i = 0 , 1 , 0.2 do | |
| 2952 | wait() | |
| 2953 | RW.C0 = CFrame.new(1+0.5*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+67*i), math.rad(45), math.rad(-45+90*i)) | |
| 2954 | LW.C0 = CFrame.new(-1-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80-80*i),math.rad(-45+45*i),math.rad(45-45*i)) | |
| 2955 | end | |
| 2956 | LWRem() | |
| 2957 | for i = 0 , 1 , 0.15 do | |
| 2958 | wait() | |
| 2959 | RW.C0 = CFrame.new(1.5,0.5+0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(147+103*i), math.rad(45), math.rad(45-35*i)) | |
| 2960 | end | |
| 2961 | unequipweld() | |
| 2962 | wait(0.1) | |
| 2963 | for i = 0 , 1 , 0.1 do | |
| 2964 | wait() | |
| 2965 | RW.C0 = CFrame.new(1.5,1-0.5*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(250-250*i), math.rad(45-45*i), math.rad(10-10*i)) | |
| 2966 | end | |
| 2967 | RWRem() | |
| 2968 | attack = false | |
| 2969 | end | |
| 2970 | ||
| 2971 | function equipanim() | |
| 2972 | attack = true | |
| 2973 | RWFunc() | |
| 2974 | for i = 0 , 1 , 0.1 do | |
| 2975 | wait() | |
| 2976 | RW.C0 = CFrame.new(1.5,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(250*i), math.rad(45*i), math.rad(-10*i)) | |
| 2977 | end | |
| 2978 | equipweld() | |
| 2979 | uss(Head,1) | |
| 2980 | for i = 0 , 1 , 0.2 do | |
| 2981 | wait() | |
| 2982 | RW.C0 = CFrame.new(1.5,0.5+0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(250-102.5*i), math.rad(45), math.rad(-10+27.5*i)) | |
| 2983 | end | |
| 2984 | for i = 0 , 1 , 0.15 do | |
| 2985 | wait() | |
| 2986 | RW.C0 = CFrame.new(1.5,1-0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(147-67*i), math.rad(45), math.rad(17.5+27.5*i)) | |
| 2987 | end | |
| 2988 | LWFunc() | |
| 2989 | for i = 0 , 1 , 0.1 do | |
| 2990 | wait() | |
| 2991 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(45), math.rad(45-90*i)) | |
| 2992 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80*i),math.rad(-45*i),math.rad(45*i)) | |
| 2993 | end | |
| 2994 | attack = false | |
| 2995 | end | |
| 2996 | ||
| 2997 | if (script.Parent.className ~= "HopperBin") then | |
| 2998 | Tool = Instance.new("HopperBin")
| |
| 2999 | Tool.Parent = Backpack | |
| 3000 | Tool.Name = ToolName | |
| 3001 | script.Parent = Tool | |
| 3002 | end | |
| 3003 | Bin = script.Parent | |
| 3004 | ||
| 3005 | function damagesplat(dmg,hit,critornot,healornot) | |
| 3006 | local OffsetX = -2.5 | |
| 3007 | local OffsetY = 5 | |
| 3008 | local OffsetZ = 0 | |
| 3009 | local bill = Instance.new("BillboardGui")
| |
| 3010 | bill.Size = UDim2.new(1,0,1,0) | |
| 3011 | bill.Adornee = hit | |
| 3012 | bill.StudsOffset = Vector3.new(OffsetX,OffsetY,OffsetZ) | |
| 3013 | bill.Parent = hit.Parent | |
| 3014 | bill.Name = "DamageSplat" | |
| 3015 | local tex = Instance.new("TextLabel")
| |
| 3016 | tex.Size = UDim2.new(5,0,2.5,0) | |
| 3017 | tex.Parent = bill | |
| 3018 | tex.Text = dmg | |
| 3019 | tex.BackgroundTransparency = 1 | |
| 3020 | tex.ZIndex = 4 | |
| 3021 | tex.FontSize = "Size24" | |
| 3022 | local tex2 = Instance.new("ImageLabel")
| |
| 3023 | tex2.Size = UDim2.new(1,0,1,0) | |
| 3024 | tex2.Parent = tex | |
| 3025 | tex2.BackgroundTransparency = 1 | |
| 3026 | tex2.Image = "http://www.roblox.com/asset/?id=42611276" | |
| 3027 | if critornot == true then | |
| 3028 | tex.TextColor3 = Color3.new(1,0.2,0.2) | |
| 3029 | elseif critornot == false then | |
| 3030 | tex.TextColor3 = Color3.new(0,0,0) | |
| 3031 | end | |
| 3032 | if healornot == true then | |
| 3033 | tex.TextColor3 = Color3.new(0.2,0.5,0.5) | |
| 3034 | end | |
| 3035 | coroutine.resume(coroutine.create(function() | |
| 3036 | wait(0.25) | |
| 3037 | for i = 0 , 1 , 0.075 do | |
| 3038 | wait() | |
| 3039 | bill.StudsOffset = Vector3.new(OffsetX,OffsetY+5*i,OffsetZ) | |
| 3040 | tex.TextTransparency = 1*i | |
| 3041 | end | |
| 3042 | bill.Parent = nil | |
| 3043 | end)) | |
| 3044 | end | |
| 3045 | function FireEff(Part,Time,Color1,Color2,Color3) | |
| 3046 | local Firee = Part | |
| 3047 | local Spawn = Part | |
| 3048 | local colors = {}
| |
| 3049 | if Color1 ~= nil then | |
| 3050 | table.insert(colors,BrickColor.new(Color1)) | |
| 3051 | end | |
| 3052 | if Color2 ~= nil then | |
| 3053 | table.insert(colors,BrickColor.new(Color2)) | |
| 3054 | end | |
| 3055 | if Color3 ~= nil then | |
| 3056 | table.insert(colors,BrickColor.new(Color3)) | |
| 3057 | end | |
| 3058 | if Color4 ~= nil then | |
| 3059 | table.insert(colors,BrickColor.new(Color4)) | |
| 3060 | end | |
| 3061 | local Embers = {}
| |
| 3062 | local modelz = Instance.new("Model",Firee)
| |
| 3063 | modelz.Name = "FireHolder" | |
| 3064 | for X = 1, 3 do | |
| 3065 | local f = Instance.new("Part")
| |
| 3066 | f.Parent = nil | |
| 3067 | f.BrickColor = colors[math.random(1, # colors)] | |
| 3068 | f.Size = Vector3.new(1,1,1) | |
| 3069 | f.formFactor = 1 | |
| 3070 | f.Anchored = true | |
| 3071 | f.Locked = true | |
| 3072 | f.CanCollide = false | |
| 3073 | f.Transparency = 0.5 | |
| 3074 | f.Name = "Fire" | |
| 3075 | f.TopSurface = 0 | |
| 3076 | f.BottomSurface = 0 | |
| 3077 | table.insert(Embers, f) | |
| 3078 | end | |
| 3079 | local R = 0 | |
| 3080 | coroutine.resume(coroutine.create(function () | |
| 3081 | repeat | |
| 3082 | wait() | |
| 3083 | R = R + 1 | |
| 3084 | for X = 1, # Embers do | |
| 3085 | Embers[X].Parent = modelz | |
| 3086 | local FM = math.fmod(R + X, # Embers) | |
| 3087 | if FM == 1 then | |
| 3088 | RandPos = Vector3.new(math.random(-Spawn.Size.x * 5, Spawn.Size.x * 5) / 10, Spawn.Size.y / 2, math.random(-Spawn.Size.x * 5, Spawn.Size.x * 5) / 10) | |
| 3089 | RandDir = Vector3.new(math.random(-100,100), math.random(-100,100), math.random(-100,100)) | |
| 3090 | Embers[X].CFrame = CFrame.new(Spawn.Position + RandPos, Spawn.Position + RandPos + RandDir) | |
| 3091 | else | |
| 3092 | Embers[X].CFrame = CFrame.new(Embers[X].Position + Vector3.new(0,0.5,0), Embers[X].Position + Vector3.new(0,0.5,0) + Embers[X].CFrame.lookVector) | |
| 3093 | end | |
| 3094 | end | |
| 3095 | until R == Time | |
| 3096 | for i = 0 ,1 , 0.1 do | |
| 3097 | wait(0.2) | |
| 3098 | for X = 1, # Embers do | |
| 3099 | Embers[X].Transparency = 0.5+0.5*i | |
| 3100 | end | |
| 3101 | end | |
| 3102 | for X = 1, # Embers do | |
| 3103 | Embers[X].Parent = nil | |
| 3104 | end | |
| 3105 | end)) | |
| 3106 | end | |
| 3107 | ||
| 3108 | function OT(hit) --Normal Damage | |
| 3109 | if Hitdeb == 1 then return end | |
| 3110 | if hit.Parent == nil then return end | |
| 3111 | local hum = hit.Parent:findFirstChild("Humanoid")
| |
| 3112 | if hum ~= nil and hum ~= Character.Humanoid then | |
| 3113 | local critrandomizer = math.random(1,crtrate) | |
| 3114 | if critrandomizer ~= 1 then | |
| 3115 | local rndmdamage = math.random(mindamage,maxdamage) | |
| 3116 | damagesplat(rndmdamage,hit,false) | |
| 3117 | hum:TakeDamage(rndmdamage) | |
| 3118 | elseif critrandomizer == 1 then | |
| 3119 | local rndmdamage = math.random(maxdamage,crtmaxdamage) | |
| 3120 | damagesplat(rndmdamage,hit,true) | |
| 3121 | hum:TakeDamage(rndmdamage) | |
| 3122 | end | |
| 3123 | Hitdeb = 1 | |
| 3124 | end | |
| 3125 | end | |
| 3126 | ||
| 3127 | function OTND(part) --No Debounce Damage | |
| 3128 | coroutine.resume(coroutine.create(function() | |
| 3129 | local dd = false | |
| 3130 | while part.Parent ~= nil and not dd do | |
| 3131 | wait() | |
| 3132 | local c = game.Workspace:GetChildren(); | |
| 3133 | for i = 1, #c do | |
| 3134 | local hum = c[i]:findFirstChild("Humanoid")
| |
| 3135 | if hum ~= nil and hum.Health ~= 0 then | |
| 3136 | local head = c[i]:findFirstChild("Torso");
| |
| 3137 | if head ~= nil then | |
| 3138 | local targ = head.Position - part.Position; ------------------------------------------------Local | |
| 3139 | local mag = targ.magnitude; | |
| 3140 | if mag <= 5 and c[i].Name ~= Player.Name then | |
| 3141 | dd = true | |
| 3142 | local rndmdamage = math.random(1,7+5*math.random()) + fireboost | |
| 3143 | damagesplat(rndmdamage,head,false) | |
| 3144 | hum:TakeDamage(rndmdamage) | |
| 3145 | FireEff(head,150,"Bright red","Bright orange","Cool yellow") | |
| 3146 | part.Parent = nil | |
| 3147 | ||
| 3148 | end | |
| 3149 | end | |
| 3150 | end | |
| 3151 | end | |
| 3152 | end | |
| 3153 | end)) | |
| 3154 | end | |
| 3155 | ||
| 3156 | function AoE(p,magnitude,damage,critornot) | |
| 3157 | local c = game.Workspace:GetChildren(); | |
| 3158 | for i = 1, #c do | |
| 3159 | local hum = c[i]:findFirstChild("Humanoid")
| |
| 3160 | if hum ~= nil and hum.Health ~= 0 then | |
| 3161 | local head = c[i]:findFirstChild("Head");
| |
| 3162 | if head ~= nil then | |
| 3163 | local targ = head.Position - p; | |
| 3164 | local mag = targ.magnitude; | |
| 3165 | if mag <= magnitude and c[i].Name ~= Character.Name then | |
| 3166 | local foundd = false | |
| 3167 | for ii = 1 , #AoETrue do | |
| 3168 | if AoETrue[ii] == c[i].Name then | |
| 3169 | --delay(1,function() table.remove(AoETrue,ii) end) | |
| 3170 | --blast(2.5,0.5,"Bright red",prt2,false) | |
| 3171 | foundd = true | |
| 3172 | end | |
| 3173 | end | |
| 3174 | if foundd then | |
| 3175 | end | |
| 3176 | -- | |
| 3177 | if not foundd then | |
| 3178 | hum:TakeDamage(damage) | |
| 3179 | damagesplat(damage,head,critornot) | |
| 3180 | table.insert(AoETrue,c[i].Name) | |
| 3181 | --blast(2.5,0.5,"Bright red",prt2) | |
| 3182 | end | |
| 3183 | end | |
| 3184 | end | |
| 3185 | end | |
| 3186 | end | |
| 3187 | end | |
| 3188 | function AoEP(p,magnitude,damage,critornot) | |
| 3189 | local c = game.Workspace:GetChildren(); | |
| 3190 | for i = 1, #c do | |
| 3191 | local hum = c[i]:findFirstChild("Humanoid")
| |
| 3192 | if hum ~= nil and hum.Health ~= 0 then | |
| 3193 | local head = c[i]:findFirstChild("Head");
| |
| 3194 | if head ~= nil then | |
| 3195 | local targ = head.Position - p; | |
| 3196 | local mag = targ.magnitude; | |
| 3197 | if mag <= magnitude and c[i].Name ~= Character.Name then | |
| 3198 | local foundd = false | |
| 3199 | for ii = 1 , #AoETrue do | |
| 3200 | if AoETrue[ii] == c[i].Name then | |
| 3201 | --delay(1,function() table.remove(AoETrue,ii) end) | |
| 3202 | --blast(2.5,0.5,"Bright red",prt2,false) | |
| 3203 | foundd = true | |
| 3204 | end | |
| 3205 | end | |
| 3206 | if foundd then | |
| 3207 | end | |
| 3208 | -- | |
| 3209 | if not foundd then | |
| 3210 | hum:TakeDamage(damage) | |
| 3211 | damagesplat(damage,head,critornot) | |
| 3212 | c[i].Humanoid.Sit = true | |
| 3213 | coroutine.resume(coroutine.create(function() | |
| 3214 | local bp = Instance.new("BodyVelocity",c[i].Torso)
| |
| 3215 | bp.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 3216 | bp.P = bp.P*2 | |
| 3217 | bp.velocity = CFrame.new(c[i].Torso.Position , p).lookVector * 150 + Vector3.new(0,25,0) | |
| 3218 | coroutine.resume(coroutine.create(function() | |
| 3219 | for i=1, | |
| 3220 | bp.velocity.y/3 do | |
| 3221 | bp.velocity = bp.velocity+Vector3.new(0,-4.25,0) | |
| 3222 | wait() | |
| 3223 | end | |
| 3224 | bp.Parent = nil | |
| 3225 | end)) | |
| 3226 | c[i].Torso.RotVelocity = CFrame.new(c[i].Torso.Position , p).lookVector * 25 | |
| 3227 | wait(0.4) c[i].Humanoid.Sit = false end)) | |
| 3228 | table.insert(AoETrue,c[i].Name) | |
| 3229 | end | |
| 3230 | end | |
| 3231 | end | |
| 3232 | end | |
| 3233 | end | |
| 3234 | end | |
| 3235 | -- | |
| 3236 | ||
| 3237 | local LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 3238 | function effect(Color,Ref,LP,P1,returnn) | |
| 3239 | local effectsmsh = Instance.new("BlockMesh")
| |
| 3240 | effectsmsh.Scale = Vector3.new(0.5,1,0.5) | |
| 3241 | effectsmsh.Name = "Mesh" | |
| 3242 | local effectsg = Instance.new("Part")
| |
| 3243 | effectsg.formFactor = 3 | |
| 3244 | effectsg.CanCollide = false | |
| 3245 | effectsg.Name = "Eff" | |
| 3246 | effectsg.Locked = true | |
| 3247 | effectsg.Anchored = true | |
| 3248 | effectsg.Size = Vector3.new(0.2,1,0.2) | |
| 3249 | effectsg.Parent = swordholder | |
| 3250 | effectsmsh.Parent = effectsg | |
| 3251 | effectsg.BrickColor = BrickColor.new(Color) | |
| 3252 | effectsg.Reflectance = Ref | |
| 3253 | local point1 = P1 | |
| 3254 | local mg = (LP.p - point1.p).magnitude | |
| 3255 | effectsg.Size = Vector3.new(0.2,mg,0.2) | |
| 3256 | effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0) | |
| 3257 | if returnn then return effectsg end | |
| 3258 | coroutine.resume(coroutine.create(function() | |
| 3259 | if not returnn then | |
| 3260 | for i = 0 , 1 , 0.1 do | |
| 3261 | wait() | |
| 3262 | effectsg.Transparency = 1*i | |
| 3263 | end | |
| 3264 | wait() | |
| 3265 | effectsg.Parent = nil | |
| 3266 | end | |
| 3267 | end)) | |
| 3268 | end | |
| 3269 | ||
| 3270 | con = nil | |
| 3271 | function dmgcnnct(p) | |
| 3272 | con = p.Touched:connect(OT) | |
| 3273 | end | |
| 3274 | function dmgdc() | |
| 3275 | if con ~= nil then | |
| 3276 | con:disconnect() | |
| 3277 | Hitdeb = 0 | |
| 3278 | end | |
| 3279 | end | |
| 3280 | function atktype(s,e) | |
| 3281 | coroutine.resume(coroutine.create(function () | |
| 3282 | attacktype = e | |
| 3283 | wait(0.5) | |
| 3284 | repeat wait() until attack | |
| 3285 | attacktype = s | |
| 3286 | end)) | |
| 3287 | end | |
| 3288 | ||
| 3289 | hold = false | |
| 3290 | function Combo1a() | |
| 3291 | attack=true | |
| 3292 | for i = 0 , 1 , 0.1 do | |
| 3293 | wait() | |
| 3294 | RW.C0 = CFrame.new(1-0.5*i,0.5,-0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i), math.rad(45+45*i), math.rad(-45+45*i)) | |
| 3295 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45*i), math.rad(10*i), math.rad(0)) | |
| 3296 | LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i),math.rad(-45+45*i),math.rad(45-20*i)) | |
| 3297 | end | |
| 3298 | dmgcnnct(hitbox) | |
| 3299 | ss(Head,1.5) | |
| 3300 | for i = 0 , 1 , 0.2 do | |
| 3301 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 3302 | wait() | |
| 3303 | RW.C0 = CFrame.new(0.5+1*i,0.5,-1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0)) | |
| 3304 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45+135*i), math.rad(10+35*i), math.rad(0)) | |
| 3305 | LW.C0 = CFrame.new(-1+1*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(25+65*i)) | |
| 3306 | effect("Bright blue",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
| |
| 3307 | end | |
| 3308 | dmgdc() | |
| 3309 | for i = 0 , 1 , 0.2 do | |
| 3310 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 3311 | wait() | |
| 3312 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0)) | |
| 3313 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90+20*i), math.rad(45+5*i), math.rad(0)) | |
| 3314 | LW.C0 = CFrame.new(-0.25*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(90+10*i)) | |
| 3315 | effect("Bright blue",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
| |
| 3316 | end | |
| 3317 | attacktype = 2 | |
| 3318 | coroutine.resume(coroutine.create(function () | |
| 3319 | wait(0.25) | |
| 3320 | attacktype = 1 | |
| 3321 | end)) | |
| 3322 | attack=false | |
| 3323 | wait(0.15) | |
| 3324 | wait() | |
| 3325 | for i = 0 , 1 , 0.1 do | |
| 3326 | if not attack then | |
| 3327 | wait() | |
| 3328 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i), math.rad(90-45*i), math.rad(-45*i)) | |
| 3329 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(110-110*i), math.rad(50-50*i), math.rad(0)) | |
| 3330 | LW.C0 = CFrame.new(-0.25-0.75*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i),math.rad(-45*i),math.rad(100-55*i)) | |
| 3331 | end | |
| 3332 | end | |
| 3333 | ||
| 3334 | end | |
| 3335 | function Combo1b() | |
| 3336 | attack=true | |
| 3337 | for i = 0 , 1 , 0.1 do | |
| 3338 | wait() | |
| 3339 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0)) | |
| 3340 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(110-155*i), math.rad(50-40*i), math.rad(0)) | |
| 3341 | LW.C0 = CFrame.new(-0.25-0.75*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(100-50*i)) | |
| 3342 | end | |
| 3343 | ||
| 3344 | cs(Head,1.5) | |
| 3345 | local tempmod = Instance.new("Model",swordholder)
| |
| 3346 | for l = 1 , 20 do | |
| 3347 | local meshz = Instance.new("SpecialMesh")
| |
| 3348 | meshz.Scale = Vector3.new(0.5,0.5,0.5) | |
| 3349 | meshz.MeshType = "Sphere" | |
| 3350 | local shellz = Instance.new("Part")
| |
| 3351 | meshz.Parent = shellz | |
| 3352 | shellz.Anchored = false | |
| 3353 | shellz.formFactor = 0 | |
| 3354 | shellz.Size = Vector3.new(1,1,1) | |
| 3355 | shellz.CFrame = hitbox.CFrame * CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)) | |
| 3356 | shellz.Parent = tempmod | |
| 3357 | shellz.Transparency = 0.5 | |
| 3358 | shellz.BrickColor = BrickColor.new("Bright violet")
| |
| 3359 | shellz.CanCollide = false | |
| 3360 | shellz.Reflectance = 0.25 | |
| 3361 | local bv = Instance.new("BodyPosition")
| |
| 3362 | bv.Parent = shellz | |
| 3363 | bv.maxForce = Vector3.new(200000,200000,200000) | |
| 3364 | bv.position = shellz.Position | |
| 3365 | coroutine.resume(coroutine.create(function() | |
| 3366 | for i = 0 , 1 , 0.025 do | |
| 3367 | wait() | |
| 3368 | shellz.Transparency = 1-1*i | |
| 3369 | end | |
| 3370 | shellz.Transparency = 0 | |
| 3371 | end)) | |
| 3372 | coroutine.resume(coroutine.create(function() | |
| 3373 | wait(0.05) | |
| 3374 | bv.position = hitbox.Position | |
| 3375 | for i = 1 , 20 do | |
| 3376 | wait(0.1) | |
| 3377 | bv.position = shell.Position | |
| 3378 | end | |
| 3379 | shellz.Parent = nil | |
| 3380 | end)) | |
| 3381 | wait(0.01) | |
| 3382 | end | |
| 3383 | coroutine.resume(coroutine.create(function () | |
| 3384 | wait(0.25) | |
| 3385 | tempmod.Parent = nil | |
| 3386 | end)) | |
| 3387 | for i = 0 , 1 , 0.2 do | |
| 3388 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 3389 | wait() | |
| 3390 | RW.C0 = CFrame.new(1-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0)) | |
| 3391 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45+135*i), math.rad(10), math.rad(0)) | |
| 3392 | LW.C0 = CFrame.new(-1+1.5*i,0.5,-1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(50+40*i)) | |
| 3393 | effect("Really red",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
| |
| 3394 | end | |
| 3395 | local gyro = Instance.new("BodyGyro")
| |
| 3396 | gyro.maxTorque = Vector3.new(math.huge,math.huge,math.huge) | |
| 3397 | gyro.P = gyro.P + 10000 | |
| 3398 | local CF = Torso.CFrame | |
| 3399 | gyro.cframe = CF | |
| 3400 | gyro.Parent = Torso | |
| 3401 | dmgcnnct(hitbox) | |
| 3402 | ss(Head,1) | |
| 3403 | for i = 0 , 1 , 0.1 do | |
| 3404 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 3405 | wait() | |
| 3406 | gyro.cframe = CF * CFrame.Angles(0,math.rad(-360*i),0) | |
| 3407 | effect("Really red",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
| |
| 3408 | end | |
| 3409 | ss(Head,1) | |
| 3410 | Hitdeb = 0 | |
| 3411 | for i = 0 , 1 , 0.1 do | |
| 3412 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 3413 | wait() | |
| 3414 | gyro.cframe = CF * CFrame.Angles(0,math.rad(-360*i),0) | |
| 3415 | effect("Really red",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
| |
| 3416 | end | |
| 3417 | dmgdc() | |
| 3418 | attacktype = 3 | |
| 3419 | coroutine.resume(coroutine.create(function () | |
| 3420 | wait(0.5) | |
| 3421 | attacktype = 1 | |
| 3422 | end)) | |
| 3423 | wait(0.15) | |
| 3424 | wait() | |
| 3425 | gyro.Parent = nil | |
| 3426 | attack=false | |
| 3427 | for i = 0 , 1 , 0.1 do | |
| 3428 | if not attack then | |
| 3429 | wait() | |
| 3430 | RW.C0 = CFrame.new(0.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i), math.rad(90-45*i), math.rad(-45*i)) | |
| 3431 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90-90*i), math.rad(10-10*i), math.rad(0)) | |
| 3432 | LW.C0 = CFrame.new(0.5-1.5*i,0.5,-1+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i),math.rad(-45*i),math.rad(50-5*i)) | |
| 3433 | end | |
| 3434 | end | |
| 3435 | end | |
| 3436 | ||
| 3437 | function Combo1c() | |
| 3438 | attack=true | |
| 3439 | local bp = Instance.new("BodyPosition")
| |
| 3440 | bp.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 3441 | bp.P = bp.P + 10000 | |
| 3442 | local CF = Torso.CFrame | |
| 3443 | bp.position = CF.p | |
| 3444 | bp.Parent = Torso | |
| 3445 | RWLFunc() | |
| 3446 | LWLFunc() | |
| 3447 | for zz = 1 , 2 do | |
| 3448 | local mesh = Instance.new("SpecialMesh")
| |
| 3449 | mesh.MeshType = "FileMesh" | |
| 3450 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 3451 | mesh.Scale = Vector3.new(10,5,10) * Vector3.new(0.01,0.01,0.01) | |
| 3452 | local shell = Instance.new("Part")
| |
| 3453 | mesh.Parent = shell | |
| 3454 | shell.Anchored = true | |
| 3455 | shell.formFactor = 1 | |
| 3456 | shell.Size = Vector3.new(1,1,1) | |
| 3457 | shell.CFrame = Torso.CFrame * CFrame.Angles(0,0.5*zz,0) + Vector3.new(0,-2.5,0) -- + shellspawn.CFrame.lookVector * 2 | |
| 3458 | shell.Parent = swordholder | |
| 3459 | shell.Transparency = 0 | |
| 3460 | shell.BrickColor = BrickColor.new("White")
| |
| 3461 | shell.CanCollide = false | |
| 3462 | coroutine.resume(coroutine.create(function() | |
| 3463 | for i = 0 , 1 , 0.05 do | |
| 3464 | wait() | |
| 3465 | mesh.Scale = Vector3.new(10,5,10) * Vector3.new(i,1,i) | |
| 3466 | shell.Transparency = 1*i | |
| 3467 | end | |
| 3468 | shell.Transparency = 1 | |
| 3469 | shell.Parent = nil | |
| 3470 | end)) | |
| 3471 | end | |
| 3472 | for i = 0 , 1 , 0.1 do | |
| 3473 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 3474 | wait() | |
| 3475 | RW.C0 = CFrame.new(0.5+0.5*i,0.5+1*i,0) * CFrame.fromEulerAnglesXYZ(math.rad(90+100*i), math.rad(90-90*i), math.rad(-45*i)) | |
| 3476 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90-90*i), math.rad(10-10*i), math.rad(0)) | |
| 3477 | LW.C0 = CFrame.new(0.5-1.5*i,0.5+1*i,-1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90+100*i),math.rad(0),math.rad(50-5*i)) | |
| 3478 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 3479 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90-45*i)) * CFrame.new(0, 0, 0.2) | |
| 3480 | bp.position = CF.p + Vector3.new(0,10,0) | |
| 3481 | RWL.C0 = CFrame.new(1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-20*i), math.rad(0), math.rad(0)) | |
| 3482 | LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-20*i), math.rad(0), math.rad(0)) | |
| 3483 | prt8.Transparency = 1-1*i | |
| 3484 | effect("Really black",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
| |
| 3485 | end | |
| 3486 | cs(Head,1.5) | |
| 3487 | coroutine.resume(coroutine.create(function () | |
| 3488 | local tempmod = Instance.new("Model",swordholder)
| |
| 3489 | for l = 1 , 20 do | |
| 3490 | local meshz = Instance.new("SpecialMesh")
| |
| 3491 | meshz.Scale = Vector3.new(1.5,1.5,1.5) | |
| 3492 | meshz.MeshType = "Sphere" | |
| 3493 | local shellz = Instance.new("Part")
| |
| 3494 | meshz.Parent = shellz | |
| 3495 | shellz.Anchored = false | |
| 3496 | shellz.formFactor = 0 | |
| 3497 | shellz.Size = Vector3.new(1,1,1) | |
| 3498 | shellz.CFrame = hitbox.CFrame * CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15)) | |
| 3499 | shellz.Parent = tempmod | |
| 3500 | shellz.Transparency = 0.5 | |
| 3501 | shellz.BrickColor = BrickColor.new("Really black")
| |
| 3502 | shellz.CanCollide = false | |
| 3503 | shellz.Reflectance = 0 | |
| 3504 | local bv = Instance.new("BodyPosition")
| |
| 3505 | bv.Parent = shellz | |
| 3506 | bv.maxForce = Vector3.new(200000,200000,200000) | |
| 3507 | bv.position = shellz.Position | |
| 3508 | local hx = false | |
| 3509 | coroutine.resume(coroutine.create(function() | |
| 3510 | for i = 0 , 1 , 0.05 do | |
| 3511 | wait() | |
| 3512 | shellz.Transparency = 1-1*i | |
| 3513 | end | |
| 3514 | shellz.Transparency = 0 | |
| 3515 | end)) | |
| 3516 | coroutine.resume(coroutine.create(function() | |
| 3517 | wait(0.05) | |
| 3518 | bv.position = hitbox.Position | |
| 3519 | for i = 1 , 20 do | |
| 3520 | wait(0.1) | |
| 3521 | bv.position = shell.Position | |
| 3522 | end | |
| 3523 | shellz.Parent = nil | |
| 3524 | end)) | |
| 3525 | wait(0.01) | |
| 3526 | end | |
| 3527 | coroutine.resume(coroutine.create(function () | |
| 3528 | repeat wait() until hx | |
| 3529 | tempmod.Parent = nil | |
| 3530 | end)) | |
| 3531 | end)) | |
| 3532 | for i = 0 , 1 , 0.1 do | |
| 3533 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 3534 | wait() | |
| 3535 | RW.C0 = CFrame.new(1,1.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(190+20*i), math.rad(0), math.rad(-45)) | |
| 3536 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 3537 | LW.C0 = CFrame.new(-1,1.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(190+20*i),math.rad(0),math.rad(45)) | |
| 3538 | effect("Really black",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
| |
| 3539 | end | |
| 3540 | for i = 0 , 1 , 0.1 do | |
| 3541 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 3542 | wait() | |
| 3543 | RW.C0 = CFrame.new(1,1.5-1*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(210-130*i), math.rad(0), math.rad(-45)) | |
| 3544 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 3545 | LW.C0 = CFrame.new(-1,1.5-1*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(210-130*i),math.rad(0),math.rad(45)) | |
| 3546 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 3547 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180*i), math.rad(45)) * CFrame.new(0, 0, 0.2) | |
| 3548 | bp.position = CF.p + CF.lookVector * 2.5 + Vector3.new(0,-1,0) | |
| 3549 | RWL.C0 = CFrame.new(1, -1+1*i, -1*i) * CFrame.fromEulerAnglesXYZ(math.rad(-20+20*i), math.rad(0), math.rad(0)) | |
| 3550 | LWL.C0 = CFrame.new(-1, -1+1*i, -1*i) * CFrame.fromEulerAnglesXYZ(math.rad(-20+20*i), math.rad(0), math.rad(0)) | |
| 3551 | effect("Really black",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
| |
| 3552 | end | |
| 3553 | hx = true | |
| 3554 | wait(0.1) | |
| 3555 | local Hit,A, B = Raycast(hitbox.Position + Vector3.new(0,3,0) + Torso.CFrame.lookVector * 1 ,hitbox.Position + Vector3.new(0,3,0) + Torso.CFrame.lookVector * 101 ,100) | |
| 3556 | local effectsmsh = Instance.new("CylinderMesh")
| |
| 3557 | effectsmsh.Scale = Vector3.new(1,1,1) | |
| 3558 | local effectsg = Instance.new("Part")
| |
| 3559 | effectsg.formFactor = 3 | |
| 3560 | effectsg.CanCollide = false | |
| 3561 | effectsg.Name = "LAZOR" | |
| 3562 | effectsg.Locked = true | |
| 3563 | effectsg.Anchored = true | |
| 3564 | effectsg.Parent = swordholder | |
| 3565 | effectsmsh.Parent = effectsg | |
| 3566 | effectsg.BrickColor = BrickColor.new("Black")
| |
| 3567 | effectsg.Reflectance = 0.5 | |
| 3568 | local point1 = B | |
| 3569 | local point0 = A | |
| 3570 | for zz = 1 , 5 do | |
| 3571 | local mesh = Instance.new("SpecialMesh")
| |
| 3572 | mesh.MeshType = "FileMesh" | |
| 3573 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 3574 | mesh.Scale = Vector3.new(10,5,10) * Vector3.new(0.01,0.01,0.01) | |
| 3575 | local shell = Instance.new("Part")
| |
| 3576 | mesh.Parent = shell | |
| 3577 | shell.Anchored = true | |
| 3578 | shell.formFactor = 1 | |
| 3579 | shell.Size = Vector3.new(1,1,1) | |
| 3580 | shell.CFrame = CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /-2) + Torso.CFrame.lookVector * 2 | |
| 3581 | shell.CFrame = shell.CFrame * CFrame.Angles(math.rad(-90),0.5*zz,0) | |
| 3582 | shell.Parent = swordholder | |
| 3583 | shell.Transparency = 0 | |
| 3584 | if math.fmod(zz,2) == 0 then | |
| 3585 | shell.BrickColor = BrickColor.new("Really black")
| |
| 3586 | else | |
| 3587 | shell.BrickColor = BrickColor.new("Bright violet")
| |
| 3588 | end | |
| 3589 | shell.CanCollide = false | |
| 3590 | coroutine.resume(coroutine.create(function() | |
| 3591 | for i = 0 , 1 , 0.01 do | |
| 3592 | wait() | |
| 3593 | mesh.Scale = Vector3.new(10,5,10) * Vector3.new(i,1,i) | |
| 3594 | shell.Transparency = 1*i | |
| 3595 | end | |
| 3596 | shell.Transparency = 1 | |
| 3597 | shell.Parent = nil | |
| 3598 | end)) | |
| 3599 | end | |
| 3600 | for zz = 1 , 1 do | |
| 3601 | local mesh = Instance.new("SpecialMesh")
| |
| 3602 | mesh.MeshType = "Sphere" | |
| 3603 | mesh.Scale = Vector3.new(20,15,10) * Vector3.new(0.01,0.01,0.01) | |
| 3604 | local shell = Instance.new("Part")
| |
| 3605 | mesh.Parent = shell | |
| 3606 | shell.Anchored = true | |
| 3607 | shell.formFactor = 1 | |
| 3608 | shell.Size = Vector3.new(1,1,1) | |
| 3609 | shell.CFrame = CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /-2) + Torso.CFrame.lookVector * 10 | |
| 3610 | shell.CFrame = shell.CFrame * CFrame.Angles(math.rad(-90),0,0) | |
| 3611 | shell.Parent = swordholder | |
| 3612 | shell.Transparency = 0 | |
| 3613 | shell.BrickColor = BrickColor.new("Bright violet")
| |
| 3614 | shell.CanCollide = false | |
| 3615 | coroutine.resume(coroutine.create(function() | |
| 3616 | for i = 0 , 1 , 0.02 do | |
| 3617 | wait() | |
| 3618 | mesh.Scale = Vector3.new(10,15,15) * Vector3.new(i,1,i) | |
| 3619 | shell.CFrame = shell.CFrame * CFrame.Angles(0,i,0) | |
| 3620 | shell.Transparency = 1-1*i | |
| 3621 | end | |
| 3622 | for i = 0 , 1 , 0.05 do | |
| 3623 | wait() | |
| 3624 | shell.CFrame = shell.CFrame * CFrame.Angles(0,i,0) | |
| 3625 | shell.Transparency = 1*i | |
| 3626 | end | |
| 3627 | shell.Transparency = 1 | |
| 3628 | shell.Parent = nil | |
| 3629 | end)) | |
| 3630 | end | |
| 3631 | for zz = 1 , 1 do | |
| 3632 | local mesh = Instance.new("CylinderMesh")
| |
| 3633 | mesh.Scale = Vector3.new(20,0.5,10) * Vector3.new(0.01,0.01,0.01) | |
| 3634 | local shell = Instance.new("Part")
| |
| 3635 | mesh.Parent = shell | |
| 3636 | shell.Anchored = true | |
| 3637 | shell.formFactor = 1 | |
| 3638 | shell.Size = Vector3.new(1,1,1) | |
| 3639 | shell.CFrame = CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /-2) + Torso.CFrame.lookVector * -0.5 | |
| 3640 | shell.CFrame = shell.CFrame * CFrame.Angles(math.rad(-90),0,0) | |
| 3641 | shell.Parent = swordholder | |
| 3642 | shell.Transparency = 0 | |
| 3643 | shell.BrickColor = BrickColor.new("Bright violet")
| |
| 3644 | shell.CanCollide = false | |
| 3645 | coroutine.resume(coroutine.create(function() | |
| 3646 | for i = 0 , 1 , 0.02 do | |
| 3647 | wait() | |
| 3648 | mesh.Scale = Vector3.new(20,0.5,20) * Vector3.new(i,1,i) | |
| 3649 | shell.Transparency = 1-1*i | |
| 3650 | end | |
| 3651 | for i = 0 , 1 , 0.02 do | |
| 3652 | wait() | |
| 3653 | shell.Transparency = 1*i | |
| 3654 | end | |
| 3655 | shell.Transparency = 1 | |
| 3656 | shell.Parent = nil | |
| 3657 | end)) | |
| 3658 | end | |
| 3659 | for zz = 1 , 10 do | |
| 3660 | local mesh = Instance.new("SpecialMesh")
| |
| 3661 | mesh.MeshType = "FileMesh" | |
| 3662 | mesh.MeshId = "http://www.roblox.com/Asset/?id=9756362" | |
| 3663 | mesh.Scale = Vector3.new(5,5,5) * Vector3.new(0.01,0.01,0.01) | |
| 3664 | local shell = Instance.new("Part")
| |
| 3665 | mesh.Parent = shell | |
| 3666 | shell.Anchored = true | |
| 3667 | shell.formFactor = 1 | |
| 3668 | shell.Size = Vector3.new(1,1,1) | |
| 3669 | shell.CFrame = CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /2) | |
| 3670 | shell.CFrame = shell.CFrame * CFrame.Angles(math.rad(-90)+2*math.random(),2*math.random(),2*math.random()) | |
| 3671 | shell.Parent = swordholder | |
| 3672 | shell.Transparency = 0 | |
| 3673 | if math.fmod(zz,2) == 0 then | |
| 3674 | shell.BrickColor = BrickColor.new("Really black")
| |
| 3675 | else | |
| 3676 | shell.BrickColor = BrickColor.new("Bright violet")
| |
| 3677 | end | |
| 3678 | shell.CanCollide = false | |
| 3679 | coroutine.resume(coroutine.create(function() | |
| 3680 | for i = 0 , 1 , 0.01 do | |
| 3681 | wait() | |
| 3682 | mesh.Scale = Vector3.new(25,25,25) * Vector3.new(i,i,i) | |
| 3683 | shell.Transparency = 1*i | |
| 3684 | end | |
| 3685 | shell.Transparency = 1 | |
| 3686 | shell.Parent = nil | |
| 3687 | end)) | |
| 3688 | end | |
| 3689 | coroutine.resume(coroutine.create(function() | |
| 3690 | effectsg.Transparency = 1 | |
| 3691 | for i = 0 , 1 , 0.1 do | |
| 3692 | wait() | |
| 3693 | effectsg.Transparency = 1-1*i | |
| 3694 | end | |
| 3695 | wait(2) | |
| 3696 | for i = 0 , 1 , 0.1 do | |
| 3697 | wait() | |
| 3698 | effectsg.Transparency = 1*i | |
| 3699 | end | |
| 3700 | effectsg.Parent = nil | |
| 3701 | end)) | |
| 3702 | local mg = 100 | |
| 3703 | if Hit ~= nil then | |
| 3704 | mg = (point0-point1).magnitude | |
| 3705 | elseif Hit == nil then | |
| 3706 | mg = 100 | |
| 3707 | end | |
| 3708 | ls(Head,0.5) | |
| 3709 | ls(Head,0.75) | |
| 3710 | cs(Head,0.25) | |
| 3711 | ls(Head,1) | |
| 3712 | ls(Head,3) | |
| 3713 | cs(Head,0.15) | |
| 3714 | for mgg = 0 , 1,0.1 do | |
| 3715 | wait() | |
| 3716 | effectsg.Size = Vector3.new(5,(mg*mgg)+0.2,5) | |
| 3717 | local durr = CFrame.new((point0+(point1))/2,(point1)) | |
| 3718 | effectsg.CFrame = CFrame.new((point0+(point1-durr.lookVector * (mg*(1-mgg))))/2,(point1)) * CFrame.Angles(math.rad(90),0,0) | |
| 3719 | end | |
| 3720 | local critrandomizer = math.random(1,crtrate) | |
| 3721 | if critrandomizer ~= 1 then | |
| 3722 | local rndmdamage = math.random(mindamage+30,maxdamage+30) | |
| 3723 | AoEP((CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /2)).p,15,rndmdamage+darkboost,false) | |
| 3724 | elseif critrandomizer == 1 then | |
| 3725 | local rndmdamage = math.random(maxdamage+30,crtmaxdamage+30) | |
| 3726 | AoEP((CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /2)).p,15,rndmdamage+darkboost,true) | |
| 3727 | end | |
| 3728 | bp.Parent = nil | |
| 3729 | for i = 0 , 1 , 0.1 do | |
| 3730 | wait() | |
| 3731 | RW.C0 = CFrame.new(1,1-0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(90-45*i), math.rad(-45)) | |
| 3732 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 3733 | LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45*i),math.rad(45)) | |
| 3734 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 3735 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180-180*i), math.rad(45+45*i)) * CFrame.new(0, 0, 0.2) | |
| 3736 | RWL.C0 = CFrame.new(1, -1*i, -1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 3737 | LWL.C0 = CFrame.new(-1, -1*i, -1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 3738 | prt8.Transparency = 1*i | |
| 3739 | end | |
| 3740 | for ii = 1 , #AoETrue do | |
| 3741 | table.remove(AoETrue,#AoETrue) | |
| 3742 | end | |
| 3743 | RWLRem() | |
| 3744 | LWLRem() | |
| 3745 | attack = false | |
| 3746 | attacktype = 1 | |
| 3747 | end | |
| 3748 | function BlizzardSword() | |
| 3749 | attack=true | |
| 3750 | for i = 0 , 1 , 0.2 do | |
| 3751 | wait() | |
| 3752 | RW.C0 = CFrame.new(1,0.5+1*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+55*i), math.rad(45-45*i), math.rad(-45)) | |
| 3753 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 3754 | LW.C0 = CFrame.new(-1,0.5+1*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+55*i),math.rad(-45+45*i),math.rad(45)) | |
| 3755 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0) | |
| 3756 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90-45*i)) * CFrame.new(0, 0, 0.2) | |
| 3757 | end | |
| 3758 | local wssave = Character.Humanoid.WalkSpeed | |
| 3759 | Character.Humanoid.WalkSpeed = 0 | |
| 3760 | ss(Head,1.5) | |
| 3761 | local efftab = {}
| |
| 3762 | for i = 0 , 1 , 0.2 do | |
| 3763 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 3764 | wait() | |
| 3765 | RW.C0 = CFrame.new(1,1.5-1.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(135-135*i), math.rad(0), math.rad(-45)) | |
| 3766 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 3767 | LW.C0 = CFrame.new(-1,1.5-1.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(135-135*i),math.rad(0),math.rad(45)) | |
| 3768 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0) | |
| 3769 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(45)) * CFrame.new(0, 0, 0.2) | |
| 3770 | local eff = effect("Bright blue",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0),true)
| |
| 3771 | table.insert(efftab,eff) | |
| 3772 | end | |
| 3773 | local trspos = Torso.Position | |
| 3774 | Character.Humanoid.WalkSpeed = wssave | |
| 3775 | for _,efff in pairs(efftab) do | |
| 3776 | wait() | |
| 3777 | coroutine.resume(coroutine.create(function() | |
| 3778 | for i = 0 , 1 , 0.15 do | |
| 3779 | wait() | |
| 3780 | efff.Transparency = 1*i | |
| 3781 | end | |
| 3782 | wait() | |
| 3783 | efff.Transparency = 1 | |
| 3784 | end)) | |
| 3785 | end | |
| 3786 | for io,eff in pairs(efftab) do | |
| 3787 | wait() | |
| 3788 | for zz = 1 , 1 do | |
| 3789 | local mesh = Instance.new("CylinderMesh")
| |
| 3790 | mesh.Scale = Vector3.new(0.1,0.5,0.1) | |
| 3791 | local shell = Instance.new("Part")
| |
| 3792 | mesh.Parent = shell | |
| 3793 | shell.Anchored = true | |
| 3794 | shell.formFactor = 1 | |
| 3795 | shell.Size = Vector3.new(1,1,1) | |
| 3796 | local dur = CFrame.new(trspos,eff.Position) | |
| 3797 | local CF1 = dur * CFrame.Angles(math.rad(90),0,0) * CFrame.new(0,-6,0) | |
| 3798 | shell.CFrame = CF1 | |
| 3799 | shell.Parent = eff | |
| 3800 | shell.Transparency = 1 | |
| 3801 | shell.Reflectance = 0.25 | |
| 3802 | shell.BrickColor = BrickColor.new("Bright blue")
| |
| 3803 | shell.CanCollide = false | |
| 3804 | is(shell,0.5) | |
| 3805 | coroutine.resume(coroutine.create(function() | |
| 3806 | for i = 0 , 1 , 0.1 do | |
| 3807 | wait() | |
| 3808 | shell.Transparency = 1-1*i | |
| 3809 | mesh.Scale = Vector3.new(0.1+4.9*i,0.5,0.1+4.9*i) | |
| 3810 | end | |
| 3811 | wait(0.25) | |
| 3812 | for i = 0 , 1 , 0.1 do | |
| 3813 | wait() | |
| 3814 | shell.Transparency = 1*i | |
| 3815 | mesh.Scale = Vector3.new(5-5*i,0.5-0.5*i,5-5*i) | |
| 3816 | end | |
| 3817 | shell.Parent = nil | |
| 3818 | end)) | |
| 3819 | end | |
| 3820 | end | |
| 3821 | for io,eff in pairs(efftab) do | |
| 3822 | wait() | |
| 3823 | for zz = 1 , 1 do | |
| 3824 | local mesh = Instance.new("SpecialMesh")
| |
| 3825 | mesh.MeshType = "FileMesh" | |
| 3826 | mesh.Scale = Vector3.new(5,2,1) | |
| 3827 | mesh.MeshId = "rbxasset://fonts/sword.mesh" | |
| 3828 | local shell = Instance.new("Part")
| |
| 3829 | mesh.Parent = shell | |
| 3830 | shell.Anchored = true | |
| 3831 | shell.formFactor = 1 | |
| 3832 | shell.Size = Vector3.new(2,2,5) | |
| 3833 | local dur = CFrame.new(trspos,eff.Position) | |
| 3834 | local CF1 = dur * CFrame.Angles(math.rad(180),0,0) * CFrame.new(0,0,6.5)* CFrame.Angles(0,0,math.rad(90)) | |
| 3835 | shell.CFrame = CF1 | |
| 3836 | shell.Parent = eff | |
| 3837 | shell.Transparency = 1 | |
| 3838 | shell.Reflectance = 0.25 | |
| 3839 | shell.BrickColor = BrickColor.new("Bright blue")
| |
| 3840 | shell.CanCollide = false | |
| 3841 | local hitd = 0 | |
| 3842 | coroutine.resume(coroutine.create(function() | |
| 3843 | local dd = false | |
| 3844 | while shell.Parent ~= nil and not dd do | |
| 3845 | wait() | |
| 3846 | local c = game.Workspace:GetChildren(); | |
| 3847 | for i = 1, #c do | |
| 3848 | local hum = c[i]:findFirstChild("Humanoid")
| |
| 3849 | if hum ~= nil and hum.Health ~= 0 then | |
| 3850 | local head = c[i]:findFirstChild("Torso");
| |
| 3851 | if head ~= nil then | |
| 3852 | local targ = head.Position - shell.Position; | |
| 3853 | local mag = targ.magnitude; | |
| 3854 | if mag <= 3 and c[i].Name ~= Player.Name then | |
| 3855 | dd = true | |
| 3856 | local critrandomizer = math.random(1,crtrate) | |
| 3857 | if critrandomizer ~= 1 then | |
| 3858 | local rndmdamage = math.random(mindamage+iceboost,maxdamage+iceboost) | |
| 3859 | damagesplat(rndmdamage,head,false) | |
| 3860 | hum:TakeDamage(rndmdamage) | |
| 3861 | elseif critrandomizer == 1 then | |
| 3862 | local rndmdamage = math.random(maxdamage+iceboost,crtmaxdamage+iceboost) | |
| 3863 | damagesplat(rndmdamage,head,true) | |
| 3864 | hum:TakeDamage(rndmdamage) | |
| 3865 | end | |
| 3866 | end | |
| 3867 | end | |
| 3868 | end | |
| 3869 | end | |
| 3870 | end | |
| 3871 | end)) | |
| 3872 | coroutine.resume(coroutine.create(function() | |
| 3873 | uss(eff,1) | |
| 3874 | ||
| 3875 | for i = 0 , 1 , 0.1 do | |
| 3876 | wait() | |
| 3877 | shell.Transparency = 1-1*i | |
| 3878 | CF1 = dur * CFrame.Angles(math.rad(180),0,0) * CFrame.new(0,0,6.5+2*i)* CFrame.Angles(0,0,math.rad(90)) | |
| 3879 | shell.CFrame = CF1 | |
| 3880 | mesh.Scale = Vector3.new(5,2,1+0.5*i) | |
| 3881 | end | |
| 3882 | wait(0.25) | |
| 3883 | ss(eff,2) | |
| 3884 | for i = 0 , 1 , 0.1 do | |
| 3885 | wait() | |
| 3886 | shell.Transparency = 1*i | |
| 3887 | CF1 = dur * CFrame.Angles(math.rad(180),0,0) * CFrame.new(0,0,8.5+25*i)* CFrame.Angles(0,0,math.rad(90)) | |
| 3888 | shell.CFrame = CF1 | |
| 3889 | mesh.Scale = Vector3.new(5-5*i,2-2*i,1.5-1.5*i*i) | |
| 3890 | end | |
| 3891 | shell.Parent = nil | |
| 3892 | end)) | |
| 3893 | end | |
| 3894 | end | |
| 3895 | coroutine.resume(coroutine.create(function() | |
| 3896 | wait(1.5) | |
| 3897 | for _,eff in pairs(efftab) do | |
| 3898 | wait() | |
| 3899 | eff.Parent = nil | |
| 3900 | end end)) | |
| 3901 | for i = 0 , 1 , 0.1 do | |
| 3902 | wait() | |
| 3903 | RW.C0 = CFrame.new(1,0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80*i), math.rad(45*i), math.rad(-45)) | |
| 3904 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 3905 | LW.C0 = CFrame.new(-1,0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80*i),math.rad(-45*i),math.rad(45)) | |
| 3906 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0) | |
| 3907 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(45+45*i)) * CFrame.new(0, 0, 0.2) | |
| 3908 | end | |
| 3909 | attack=false | |
| 3910 | end | |
| 3911 | local FTCount = 0 | |
| 3912 | function FlameTrail() | |
| 3913 | attack=true | |
| 3914 | for i = 0 , 1 , 0.15 do | |
| 3915 | wait() | |
| 3916 | RW.C0 = CFrame.new(1-0.5*i,0.5,-0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i), math.rad(45+45*i), math.rad(-45+55*i)) | |
| 3917 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45*i), math.rad(0), math.rad(0)) | |
| 3918 | LW.C0 = CFrame.new(-1+0.5*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45+20*i)) | |
| 3919 | end | |
| 3920 | wait(0.1) | |
| 3921 | ss(Head,1.5) | |
| 3922 | fs(Head,0.5+1.5*math.random()) | |
| 3923 | local efftab = {}
| |
| 3924 | RW.C0 = CFrame.new(0.5,0.5,-1) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(10)) | |
| 3925 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45), math.rad(0), math.rad(0)) | |
| 3926 | LW.C0 = CFrame.new(-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(65)) | |
| 3927 | dmgcnnct(hitbox) | |
| 3928 | for i = 0 , 1 , 0.15 do | |
| 3929 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 3930 | wait() | |
| 3931 | RW.C0 = CFrame.new(0.5+1*i,0.5,-1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(10)) | |
| 3932 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45+135*i*i), math.rad(0), math.rad(0)) | |
| 3933 | LW.C0 = CFrame.new(-0.5-1*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+20*i),math.rad(-45),math.rad(65-155*i)) | |
| 3934 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0) | |
| 3935 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180*i), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 3936 | if FTCount <= MaxFT then | |
| 3937 | local eff = effect("Bright red",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0),true)
| |
| 3938 | eff.Transparency = 1 | |
| 3939 | table.insert(efftab,eff) | |
| 3940 | FTCount = FTCount + 1 | |
| 3941 | OTND(eff) | |
| 3942 | coroutine.resume(coroutine.create(function() | |
| 3943 | for i = 0 , 1 , 0.15 do | |
| 3944 | wait() | |
| 3945 | eff.Transparency = 1-0.5*i | |
| 3946 | end | |
| 3947 | wait() | |
| 3948 | eff.Transparency = 0.5 | |
| 3949 | end)) | |
| 3950 | end | |
| 3951 | end | |
| 3952 | local rndmneg = math.random(1,2) | |
| 3953 | if rndmneg == 1 then | |
| 3954 | rndmdec1 = 13 * math.random() | |
| 3955 | else | |
| 3956 | rndmdec1 = -13 * math.random() | |
| 3957 | end | |
| 3958 | for i = 0 , 1 , 0.1 do | |
| 3959 | wait() | |
| 3960 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90-rndmdec1*i), math.rad(90), math.rad(10-(rndmdec1*2)*i)) | |
| 3961 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90+20*i), math.rad(0), math.rad(0)) | |
| 3962 | LW.C0 = CFrame.new(-1.5,0.5,-0) * CFrame.fromEulerAnglesXYZ(math.rad(100),math.rad(-45),math.rad(-90)) | |
| 3963 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0) | |
| 3964 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 3965 | end | |
| 3966 | ss(Head,1.5) | |
| 3967 | fs(Head,0.5+1.5*math.random()) | |
| 3968 | Hitdeb = 0 | |
| 3969 | for i = 0 , 1 , 0.15 do | |
| 3970 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 3971 | wait() | |
| 3972 | RW.C0 = CFrame.new(1.5-1.5*i,0.5,-1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-rndmdec1), math.rad(90), math.rad(10-(rndmdec1*2))) | |
| 3973 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(110-200*i), math.rad(0), math.rad(0)) | |
| 3974 | LW.C0 = CFrame.new(-1.5+1*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(100-80*i),math.rad(-45),math.rad(-90+135*i)) | |
| 3975 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0) | |
| 3976 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180-180*i), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 3977 | if FTCount <= MaxFT then | |
| 3978 | local eff = effect("Bright red",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0),true)
| |
| 3979 | eff.Transparency = 1 | |
| 3980 | table.insert(efftab,eff) | |
| 3981 | FTCount = FTCount + 1 | |
| 3982 | OTND(eff) | |
| 3983 | coroutine.resume(coroutine.create(function() | |
| 3984 | for i = 0 , 1 , 0.15 do | |
| 3985 | wait() | |
| 3986 | eff.Transparency = 1-0.5*i | |
| 3987 | end | |
| 3988 | wait() | |
| 3989 | eff.Transparency = 0.5 | |
| 3990 | end)) | |
| 3991 | end | |
| 3992 | end | |
| 3993 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 3994 | for i = 0 , 1 , 0.2 do | |
| 3995 | wait() | |
| 3996 | local rndmd = rndmdec1-rndmdec1*i | |
| 3997 | RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(math.rad((90-rndmd)), math.rad(90), math.rad((10-(rndmd*2))-20*i)) | |
| 3998 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-90-10*i), math.rad(0), math.rad(0)) | |
| 3999 | LW.C0 = CFrame.new(-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45)) | |
| 4000 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0) | |
| 4001 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 4002 | end | |
| 4003 | for i = 0 , 1 , 0.1 do | |
| 4004 | wait() | |
| 4005 | RW.C0 = CFrame.new(1*i,0.5,-1) * CFrame.fromEulerAnglesXYZ(math.rad(90-20*i), math.rad(90-90*i), math.rad(-10-35*i)) | |
| 4006 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-100+100*i), math.rad(0), math.rad(0)) | |
| 4007 | LW.C0 = CFrame.new(-0.5-0.5*i,0.5,-0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80-10*i),math.rad(-45+45*i),math.rad(45)) | |
| 4008 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0) | |
| 4009 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180*i), math.rad(90-45*i)) * CFrame.new(0, 0, 0.2) | |
| 4010 | end | |
| 4011 | ss(Head,1.5) | |
| 4012 | fs(Head,0.5+1.5*math.random()) | |
| 4013 | wait(0.1) | |
| 4014 | Hitdeb = 0 | |
| 4015 | for i = 0 , 1 , 0.2 do | |
| 4016 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 4017 | wait() | |
| 4018 | RW.C0 = CFrame.new(1,0.5+1*i,-1) * CFrame.fromEulerAnglesXYZ(math.rad(70+65*i), math.rad(0), math.rad(-45)) | |
| 4019 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 4020 | LW.C0 = CFrame.new(-1,0.5+1*i,-1) * CFrame.fromEulerAnglesXYZ(math.rad(70+65*i),math.rad(0),math.rad(45)) | |
| 4021 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0) | |
| 4022 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180-180*i), math.rad(45)) * CFrame.new(0, 0, 0.2) | |
| 4023 | if FTCount <= MaxFT then | |
| 4024 | local eff = effect("Bright red",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0),true)
| |
| 4025 | eff.Transparency = 1 | |
| 4026 | table.insert(efftab,eff) | |
| 4027 | FTCount = FTCount + 1 | |
| 4028 | OTND(eff) | |
| 4029 | coroutine.resume(coroutine.create(function() | |
| 4030 | for i = 0 , 1 , 0.15 do | |
| 4031 | wait() | |
| 4032 | eff.Transparency = 1-0.5*i | |
| 4033 | end | |
| 4034 | wait() | |
| 4035 | eff.Transparency = 0.5 | |
| 4036 | end)) | |
| 4037 | end | |
| 4038 | end | |
| 4039 | coroutine.resume(coroutine.create(function() | |
| 4040 | wait(5) | |
| 4041 | for _,eff in pairs(efftab) do | |
| 4042 | wait() | |
| 4043 | eff.Parent = nil | |
| 4044 | FTCount = FTCount - 1 | |
| 4045 | end end)) | |
| 4046 | for i = 0 , 1 , 0.1 do | |
| 4047 | wait() | |
| 4048 | RW.C0 = CFrame.new(1,1.5-1*i,-1+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(135-55*i), math.rad(45*i), math.rad(-45)) | |
| 4049 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 4050 | LW.C0 = CFrame.new(-1,1.5-1*i,-1+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(135-55*i),math.rad(-45*i),math.rad(45)) | |
| 4051 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0) | |
| 4052 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(45+45*i)) * CFrame.new(0, 0, 0.2) | |
| 4053 | end | |
| 4054 | dmgdc() | |
| 4055 | attack=false | |
| 4056 | end | |
| 4057 | ||
| 4058 | ||
| 4059 | function LifeDrain() | |
| 4060 | attack=true | |
| 4061 | for i = 0 , 1 , 0.1 do | |
| 4062 | wait() | |
| 4063 | RW.C0 = CFrame.new(1,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+55*i), math.rad(45), math.rad(-45+90*i)) | |
| 4064 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90*i), math.rad(0)) | |
| 4065 | LW.C0 = CFrame.new(-1+1.25*i,0.5+0.25*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+25*i),math.rad(-45+90*i),math.rad(45+25*i)) | |
| 4066 | LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90*i), math.rad(0)) | |
| 4067 | w1.C1 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 0,0) | |
| 4068 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 4069 | end | |
| 4070 | ------ | |
| 4071 | local nrmag = 50 | |
| 4072 | local nrprsn = nil | |
| 4073 | wait() | |
| 4074 | -- | |
| 4075 | local c = game.Workspace:GetChildren(); | |
| 4076 | for i = 1, #c do | |
| 4077 | local hum = c[i]:findFirstChild("Humanoid")
| |
| 4078 | if hum ~= nil and hum.Health ~= 0 then | |
| 4079 | local head = c[i]:findFirstChild("Torso");
| |
| 4080 | if head ~= nil then | |
| 4081 | local targ = head.Position - Torso.Position; | |
| 4082 | local mag = targ.magnitude; | |
| 4083 | if mag <= 50 and c[i].Name ~= Player.Name then | |
| 4084 | if mag < nrmag then | |
| 4085 | nrmag = mag | |
| 4086 | nrprsn = c[i] | |
| 4087 | end | |
| 4088 | end end end end | |
| 4089 | -- | |
| 4090 | if nrprsn == nil then | |
| 4091 | attack = false | |
| 4092 | return end | |
| 4093 | local C = 0 | |
| 4094 | local bp = Instance.new("BodyPosition")
| |
| 4095 | local bg = Instance.new("BodyGyro")
| |
| 4096 | bp.Parent = Torso | |
| 4097 | bp.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 4098 | bp.P = bp.P + 10000 | |
| 4099 | local CF = nrprsn.Torso.CFrame | |
| 4100 | bp.position = CF.p + CFrame.new(Torso.Position,CF.p).lookVector * -3 | |
| 4101 | bg.Parent = Torso | |
| 4102 | bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge) | |
| 4103 | bg.P = bg.P + 100000 | |
| 4104 | bg.cframe = CFrame.new(Torso.Position,CF.p) * CFrame.Angles(math.rad(0),0,0) | |
| 4105 | ss(Head,2) | |
| 4106 | wait(0.1) | |
| 4107 | local FirstP = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 4108 | local LastP = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 4109 | for i = 0 , 1 , 0.2 do | |
| 4110 | wait() | |
| 4111 | C = C + 1 | |
| 4112 | RW.C0 = CFrame.new(1-1*i,0.5,-1*i) * CFrame.fromEulerAnglesXYZ(math.rad(135-90*i), math.rad(45), math.rad(45-135*i)) | |
| 4113 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90), math.rad(0)) | |
| 4114 | LW.C0 = CFrame.new(0.25-1.75*i,0.75-0.25*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(105-60*i),math.rad(45),math.rad(70-125*i)) | |
| 4115 | LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90), math.rad(0)) | |
| 4116 | w1.C1 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 0,0) | |
| 4117 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90*i), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 4118 | if C == 3 then | |
| 4119 | bp.P = bp.P + 10000 | |
| 4120 | bp.position = CF.p + CFrame.new(Torso.Position,CF.p).lookVector * 6 | |
| 4121 | bg.cframe = CFrame.new(Torso.Position,CF.p) * CFrame.Angles(math.rad(-45),0,0) | |
| 4122 | end | |
| 4123 | if C == 2 then | |
| 4124 | FirstP = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 4125 | elseif C == 5 then | |
| 4126 | LastP = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 4127 | end | |
| 4128 | end | |
| 4129 | local effectsmsh = Instance.new("SpecialMesh")
| |
| 4130 | effectsmsh.Scale = Vector3.new(5,1,5) | |
| 4131 | effectsmsh.MeshType = "Sphere" | |
| 4132 | local effectsg = Instance.new("Part")
| |
| 4133 | effectsg.formFactor = 3 | |
| 4134 | effectsg.CanCollide = false | |
| 4135 | effectsg.Name = "Eff" | |
| 4136 | effectsg.Locked = true | |
| 4137 | effectsg.Anchored = true | |
| 4138 | effectsg.Size = Vector3.new(0.2,1,0.2) | |
| 4139 | effectsg.Parent = swordholder | |
| 4140 | effectsmsh.Parent = effectsg | |
| 4141 | effectsg.BrickColor = BrickColor.new("White")
| |
| 4142 | effectsg.Reflectance = Ref | |
| 4143 | local point1 = FirstP | |
| 4144 | local LP = LastP | |
| 4145 | local mg = (LP.p - point1.p).magnitude | |
| 4146 | effectsg.Size = Vector3.new(0.2,mg,0.2) | |
| 4147 | effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0) | |
| 4148 | if returnn then return effectsg end | |
| 4149 | coroutine.resume(coroutine.create(function() | |
| 4150 | if not returnn then | |
| 4151 | for i = 0 , 1 , 0.1 do | |
| 4152 | wait() | |
| 4153 | effectsg.Transparency = 1*i | |
| 4154 | end | |
| 4155 | wait() | |
| 4156 | effectsg.Parent = nil | |
| 4157 | end | |
| 4158 | end)) | |
| 4159 | local critrandomizer = math.random(1,crtrate) | |
| 4160 | local rndmdamage = 0 | |
| 4161 | if critrandomizer ~= 1 then | |
| 4162 | rndmdamage = math.random(mindamage,maxdamage) | |
| 4163 | damagesplat(rndmdamage,nrprsn.Head,false) | |
| 4164 | nrprsn.Humanoid:TakeDamage(rndmdamage) | |
| 4165 | elseif critrandomizer == 1 then | |
| 4166 | rndmdamage = math.random(maxdamage,crtmaxdamage) | |
| 4167 | damagesplat(rndmdamage,nrprsn.Head,true) | |
| 4168 | nrprsn.Humanoid:TakeDamage(rndmdamage) | |
| 4169 | end | |
| 4170 | local tempmod = Instance.new("Model",Workspace)
| |
| 4171 | for l = 1 , rndmdamage/5 do | |
| 4172 | local meshz = Instance.new("SpecialMesh")
| |
| 4173 | meshz.Scale = Vector3.new(1.5,1.5,1.5) | |
| 4174 | meshz.MeshType = "Sphere" | |
| 4175 | local shellz = Instance.new("Part")
| |
| 4176 | meshz.Parent = shellz | |
| 4177 | shellz.Anchored = false | |
| 4178 | shellz.formFactor = 0 | |
| 4179 | shellz.Size = Vector3.new(1,1,1) | |
| 4180 | shellz.CFrame = hitbox.CFrame | |
| 4181 | shellz.Parent = tempmod | |
| 4182 | shellz.Transparency = 0.5 | |
| 4183 | shellz.BrickColor = BrickColor.new("White")
| |
| 4184 | shellz.CanCollide = false | |
| 4185 | shellz.Reflectance = 0 | |
| 4186 | local bv = Instance.new("BodyPosition")
| |
| 4187 | bv.Parent = shellz | |
| 4188 | bv.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 4189 | bv.P = bv.P + 10000 | |
| 4190 | bv.position = shellz.Position + Vector3.new(math.random(-25,25),math.random(-2.5,7.5),math.random(-25,25)) | |
| 4191 | coroutine.resume(coroutine.create(function() | |
| 4192 | wait(3) | |
| 4193 | bv.maxForce = Vector3.new(0,math.huge,0) | |
| 4194 | coroutine.resume(coroutine.create(function() | |
| 4195 | local dd = false | |
| 4196 | while shellz.Transparency ~= 1 and not dd do | |
| 4197 | wait(0.1) | |
| 4198 | local cc = game.Workspace:GetChildren(); | |
| 4199 | for i = 1, #c do | |
| 4200 | local hum = cc[i]:findFirstChild("Humanoid")
| |
| 4201 | if hum ~= nil and hum.Health ~= 0 then | |
| 4202 | local head = cc[i]:findFirstChild("Head");
| |
| 4203 | if head ~= nil then | |
| 4204 | local targ = head.Position - shellz.Position; | |
| 4205 | local mag = targ.magnitude; | |
| 4206 | if mag <= 5 then | |
| 4207 | dd = true | |
| 4208 | damagesplat(5+darkboost,head,false) | |
| 4209 | hum.Health = hum.Health + 5 + darkboost | |
| 4210 | for i = 0 , 1 , 0.05 do | |
| 4211 | wait() | |
| 4212 | shellz.Transparency = 1*i | |
| 4213 | end | |
| 4214 | shellz.Parent = nil | |
| 4215 | end | |
| 4216 | end | |
| 4217 | end | |
| 4218 | end | |
| 4219 | end | |
| 4220 | end)) | |
| 4221 | ||
| 4222 | end)) | |
| 4223 | local hx = false | |
| 4224 | coroutine.resume(coroutine.create(function() | |
| 4225 | for i = 0 , 1 , 0.05 do | |
| 4226 | wait() | |
| 4227 | shellz.Transparency = 1-1*i | |
| 4228 | end | |
| 4229 | shellz.Transparency = 0 | |
| 4230 | end)) | |
| 4231 | coroutine.resume(coroutine.create(function() | |
| 4232 | wait(60) | |
| 4233 | for ii,shellz in pairs(tempmod:GetChildren()) do | |
| 4234 | for i = 0 , 1 , 0.1 do | |
| 4235 | wait() | |
| 4236 | shellz.Transparency = 1*i | |
| 4237 | end | |
| 4238 | shellz.Parent = nil | |
| 4239 | end | |
| 4240 | tempmod.Parent = nil | |
| 4241 | end)) | |
| 4242 | end | |
| 4243 | wait(0.5) | |
| 4244 | ---- | |
| 4245 | RW.C0 = CFrame.new(1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(45), math.rad(-45)) | |
| 4246 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 4247 | LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45)) | |
| 4248 | LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 4249 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 4250 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 4251 | attack=false | |
| 4252 | bp.Parent = nil bg.Parent = nil | |
| 4253 | end | |
| 4254 | ||
| 4255 | ||
| 4256 | --TEST | |
| 4257 | ||
| 4258 | hammer = Torso | |
| 4259 | ||
| 4260 | function doDamage(hit) | |
| 4261 | local humanoid = hit.Parent:findFirstChild("Humanoid")
| |
| 4262 | local hum = Player.Character:findFirstChild("Humanoid") -- non-nil if tool held by a character
| |
| 4263 | if humanoid~=nil and humanoid ~= hum and hum ~= nil then | |
| 4264 | local foundd = false | |
| 4265 | for ii = 1 , #AoETrue do | |
| 4266 | if AoETrue[ii] == hit.Parent.Name then | |
| 4267 | foundd = true | |
| 4268 | end | |
| 4269 | end | |
| 4270 | if foundd then | |
| 4271 | end | |
| 4272 | -- | |
| 4273 | if not foundd then | |
| 4274 | humanoid:TakeDamage(5) | |
| 4275 | if Mode == "Fire" then | |
| 4276 | end | |
| 4277 | damagesplat(5,humanoid.Parent.Torso,false) | |
| 4278 | table.insert(AoETrue,hit.Parent) | |
| 4279 | end | |
| 4280 | ||
| 4281 | if humanoid.Health <= 0 then | |
| 4282 | local c = hit.CFrame | |
| 4283 | hit.CFrame = CFrame.new(hit.Position) | |
| 4284 | hit.CFrame = c | |
| 4285 | end | |
| 4286 | delay(1, function() end) | |
| 4287 | else | |
| 4288 | local c = hit.CFrame hit.CFrame = CFrame.new(hit.Position) hit.CFrame = c | |
| 4289 | end | |
| 4290 | end | |
| 4291 | function bewm(obj, pos, notme) | |
| 4292 | if (obj ~= notme) then | |
| 4293 | if (obj.className == "Part") or (obj.className == "Seat") then | |
| 4294 | if (not obj.Anchored) and (((pos - obj.Position) * Vector3.new(1, 0, 1)).magnitude < 24) and (pos.y <= obj.Position.y + 2) and (pos.y >= obj.Position.y - 2) then | |
| 4295 | delay((pos - obj.Position).magnitude / 24, function() obj.Velocity = ((obj.Position - pos).unit + Vector3.new(0, 0.5, 0)) * 96 + obj.Velocity obj.RotVelocity = obj.RotVelocity + Vector3.new(obj.Position.z - pos.z, 0, pos.x - obj.Position.x).unit * 40 doDamage(obj) end) | |
| 4296 | end | |
| 4297 | elseif (obj.className == "Model") or (obj.className == "Hat") or (obj.className == "Tool") or (obj == workspace) then | |
| 4298 | local list = obj:GetChildren() | |
| 4299 | for x = 1, #list do | |
| 4300 | bewm(list[x], pos, notme) | |
| 4301 | end | |
| 4302 | end | |
| 4303 | end | |
| 4304 | end | |
| 4305 | ||
| 4306 | function attackr() | |
| 4307 | local shockRing = Instance.new("Part")
| |
| 4308 | shockRing.formFactor = 2 | |
| 4309 | shockRing.Size = Vector3.new(1, 0.4, 1) | |
| 4310 | shockRing.Anchored = true | |
| 4311 | shockRing.Locked = true | |
| 4312 | shockRing.CanCollide = false | |
| 4313 | shockRing.archivable = false | |
| 4314 | shockRing.TopSurface = 0 | |
| 4315 | shockRing.BottomSurface = 0 | |
| 4316 | shockRing.Transparency = 0 | |
| 4317 | if Mode == "Fire" then | |
| 4318 | shockRing.BrickColor = BrickColor.new("Really red")
| |
| 4319 | elseif Mode == "Dark" then | |
| 4320 | shockRing.BrickColor = BrickColor.new("Bright violet")
| |
| 4321 | elseif Mode == "Ice" then | |
| 4322 | shockRing.BrickColor = BrickColor.new("Bright blue")
| |
| 4323 | shockRing.Reflectance = 0.2 | |
| 4324 | end | |
| 4325 | local decal = Instance.new("CylinderMesh")
| |
| 4326 | decal.Parent = shockRing | |
| 4327 | decal.Scale = Vector3.new(1,0.1,1) | |
| 4328 | wait(0.2) | |
| 4329 | local pos = hammer.CFrame * (Vector3.new(0, -2.5, 0)) | |
| 4330 | bewm(game.Workspace, pos, Player.Character) | |
| 4331 | shockRing.CFrame = CFrame.new(pos) | |
| 4332 | for x = 0, 1 , 0.0625 do | |
| 4333 | delay((x*16) / 30, function() shockRing.Parent = nil shockRing.Size = Vector3.new(0, 0.4, 0) + Vector3.new(3.2, 0, 3.2) * (x*16) shockRing.Transparency = 1*x shockRing.Parent = Player.Character end) | |
| 4334 | end | |
| 4335 | delay(1, function() | |
| 4336 | shockRing.Parent = nil | |
| 4337 | for ii = 1 , #AoETrue do | |
| 4338 | table.remove(AoETrue,#AoETrue) | |
| 4339 | end end) | |
| 4340 | end | |
| 4341 | local modemodel = Instance.new("Model",swordholder)
| |
| 4342 | local mrdychng = false | |
| 4343 | function FireMode() | |
| 4344 | attack=true | |
| 4345 | Mode = "Fire" | |
| 4346 | fireboost = 5 | |
| 4347 | mrdychng = true | |
| 4348 | for i = 0 , 1 , 0.1 do | |
| 4349 | wait() | |
| 4350 | RW.C0 = CFrame.new(1+0.5*i,0.5+1*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+55*i), math.rad(45-45*i), math.rad(-45+45*i)) | |
| 4351 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 4352 | LW.C0 = CFrame.new(-1+1*i,0.5+1*i,-0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80-80*i),math.rad(-45+45*i),math.rad(45+65*i)) | |
| 4353 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 4354 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180*i), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 4355 | end | |
| 4356 | cs(Head,1.5) | |
| 4357 | local tempmod = Instance.new("Model",swordholder)
| |
| 4358 | for l = 1 , 20 do | |
| 4359 | local meshz = Instance.new("SpecialMesh")
| |
| 4360 | meshz.Scale = Vector3.new(0.5,0.5,0.5) | |
| 4361 | meshz.MeshType = "Sphere" | |
| 4362 | local shellz = Instance.new("Part")
| |
| 4363 | meshz.Parent = shellz | |
| 4364 | shellz.Anchored = false | |
| 4365 | shellz.formFactor = 0 | |
| 4366 | shellz.Size = Vector3.new(1,1,1) | |
| 4367 | shellz.CFrame = hitbox.CFrame * CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)) | |
| 4368 | shellz.Parent = tempmod | |
| 4369 | shellz.Transparency = 0.5 | |
| 4370 | shellz.BrickColor = BrickColor.new("Really red")
| |
| 4371 | shellz.CanCollide = false | |
| 4372 | shellz.Reflectance = 0 | |
| 4373 | local bv = Instance.new("BodyPosition")
| |
| 4374 | bv.Parent = shellz | |
| 4375 | bv.maxForce = Vector3.new(200000,200000,200000) | |
| 4376 | bv.position = shellz.Position | |
| 4377 | coroutine.resume(coroutine.create(function() | |
| 4378 | for i = 0 , 1 , 0.025 do | |
| 4379 | wait() | |
| 4380 | shellz.Transparency = 1-1*i | |
| 4381 | end | |
| 4382 | shellz.Transparency = 0 | |
| 4383 | end)) | |
| 4384 | coroutine.resume(coroutine.create(function() | |
| 4385 | wait(0.05) | |
| 4386 | bv.position = hitbox.Position | |
| 4387 | for i = 1 , 20 do | |
| 4388 | wait(0.1) | |
| 4389 | bv.position = shell.Position | |
| 4390 | end | |
| 4391 | shellz.Parent = nil | |
| 4392 | end)) | |
| 4393 | wait(0.01) | |
| 4394 | end | |
| 4395 | coroutine.resume(coroutine.create(function () | |
| 4396 | wait(0.25) | |
| 4397 | tempmod.Parent = nil | |
| 4398 | end)) | |
| 4399 | for i = 0 , 1 , 0.2 do | |
| 4400 | wait() | |
| 4401 | RW.C0 = CFrame.new(1.5,1.5-1*i,0) * CFrame.fromEulerAnglesXYZ(math.rad(135-45*i), math.rad(0), math.rad(0)) | |
| 4402 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 4403 | LW.C0 = CFrame.new(0,1.5-1*i,-1) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(110-45*i)) | |
| 4404 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 4405 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 4406 | end | |
| 4407 | bs(Head,0.75) | |
| 4408 | attackr() | |
| 4409 | for zz = 1 , 1 do | |
| 4410 | local mesh = Instance.new("SpecialMesh")
| |
| 4411 | mesh.MeshType = "FileMesh" | |
| 4412 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 4413 | mesh.Scale = Vector3.new(10,5,10) * Vector3.new(0.01,0.01,0.01) | |
| 4414 | local shell = Instance.new("Part")
| |
| 4415 | mesh.Parent = shell | |
| 4416 | shell.Anchored = true | |
| 4417 | shell.formFactor = 1 | |
| 4418 | shell.Size = Vector3.new(1,1,1) | |
| 4419 | shell.CFrame = Torso.CFrame * CFrame.new(0,-1.5,0) | |
| 4420 | shell.Parent = swordholder | |
| 4421 | shell.Transparency = 0 | |
| 4422 | shell.BrickColor = BrickColor.new("Really red")
| |
| 4423 | shell.CanCollide = false | |
| 4424 | coroutine.resume(coroutine.create(function() | |
| 4425 | for i = 0 , 1 , 0.075 do | |
| 4426 | wait() | |
| 4427 | mesh.Scale = Vector3.new(20,5,20) * Vector3.new(i,1,i) | |
| 4428 | shell.Transparency = 1*i | |
| 4429 | end | |
| 4430 | shell.Transparency = 1 | |
| 4431 | shell.Parent = nil | |
| 4432 | end)) | |
| 4433 | end | |
| 4434 | for zz = 1 , 1 do | |
| 4435 | local mesh = Instance.new("SpecialMesh")
| |
| 4436 | mesh.MeshType = "FileMesh" | |
| 4437 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 4438 | mesh.Scale = Vector3.new(10,20,10) * Vector3.new(0.01,0.01,0.01) | |
| 4439 | local shell = Instance.new("Part")
| |
| 4440 | mesh.Parent = shell | |
| 4441 | shell.Anchored = true | |
| 4442 | shell.formFactor = 1 | |
| 4443 | shell.Size = Vector3.new(1,1,1) | |
| 4444 | shell.CFrame = Torso.CFrame * CFrame.new(0,1,0) | |
| 4445 | shell.Parent = swordholder | |
| 4446 | shell.Transparency = 0 | |
| 4447 | shell.BrickColor = BrickColor.new("Really red")
| |
| 4448 | shell.CanCollide = false | |
| 4449 | coroutine.resume(coroutine.create(function() | |
| 4450 | for i = 0 , 1 , 0.05 do | |
| 4451 | wait() | |
| 4452 | mesh.Scale = Vector3.new(10,20,10) * Vector3.new(i,1,i) | |
| 4453 | shell.Transparency = 1*i | |
| 4454 | end | |
| 4455 | shell.Transparency = 1 | |
| 4456 | shell.Parent = nil | |
| 4457 | end)) | |
| 4458 | end | |
| 4459 | for zz = 1 , 3 do | |
| 4460 | local mesh = Instance.new("SpecialMesh")
| |
| 4461 | mesh.MeshType = "Sphere" | |
| 4462 | mesh.Scale = Vector3.new(5*zz,5*zz,5*zz) * Vector3.new(0.01,0.01,0.01) | |
| 4463 | local shell = Instance.new("Part")
| |
| 4464 | mesh.Parent = shell | |
| 4465 | shell.Anchored = true | |
| 4466 | shell.formFactor = 3 | |
| 4467 | shell.Size = Vector3.new(1,1,1) | |
| 4468 | shell.CFrame = Torso.CFrame * CFrame.new(0,-1,0) | |
| 4469 | shell.Parent = swordholder | |
| 4470 | shell.Transparency = 0 | |
| 4471 | if math.fmod(zz,2) == 1 then | |
| 4472 | shell.BrickColor = BrickColor.new("Bright orange")
| |
| 4473 | elseif math.fmod(zz,2) == 0.5 then | |
| 4474 | shell.BrickColor = BrickColor.new("Bright red")
| |
| 4475 | else | |
| 4476 | shell.BrickColor = BrickColor.new("Bright yellow")
| |
| 4477 | end | |
| 4478 | shell.CanCollide = false | |
| 4479 | coroutine.resume(coroutine.create(function() | |
| 4480 | for i = 0 , 1 , 0.025 do | |
| 4481 | wait() | |
| 4482 | mesh.Scale = Vector3.new(10*zz,10*zz,10*zz) * Vector3.new(i,i,i) | |
| 4483 | shell.Transparency = 1*i | |
| 4484 | end | |
| 4485 | shell.Transparency = 1 | |
| 4486 | shell.Parent = nil | |
| 4487 | end)) | |
| 4488 | end | |
| 4489 | ||
| 4490 | ||
| 4491 | for ii,z in pairs(modemodel:GetChildren()) do | |
| 4492 | z.Parent = nil | |
| 4493 | end | |
| 4494 | ||
| 4495 | local wing1m = Instance.new("BlockMesh")
| |
| 4496 | wing1m.Scale = Vector3.new(1,1,1) | |
| 4497 | local wing1p = Instance.new("Part")
| |
| 4498 | wing1p.formFactor = 3 | |
| 4499 | wing1p.CanCollide = false | |
| 4500 | wing1p.Name = "FlameWingP1" | |
| 4501 | wing1p.Locked = true | |
| 4502 | wing1p.Size = Vector3.new(0.2,0.2,0.2) | |
| 4503 | wing1p.Parent = modemodel | |
| 4504 | wing1m.Parent = wing1p | |
| 4505 | wing1p.BrickColor = BrickColor.new("Bright red")
| |
| 4506 | wing1p.Transparency = 1 | |
| 4507 | local wing1w = Instance.new("Weld")
| |
| 4508 | wing1w.Parent = wing1p | |
| 4509 | wing1w.Part0 = wing1p | |
| 4510 | wing1w.Part1 = Torso | |
| 4511 | wing1w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0 , 0) | |
| 4512 | wing1w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(-1, 0, 0) | |
| 4513 | local wing2m = Instance.new("BlockMesh")
| |
| 4514 | wing2m.Scale = Vector3.new(1,1,1) | |
| 4515 | local wing2p = Instance.new("Part")
| |
| 4516 | wing2p.formFactor = 3 | |
| 4517 | wing2p.CanCollide = false | |
| 4518 | wing2p.Name = "FlameWingP2" | |
| 4519 | wing2p.Locked = true | |
| 4520 | wing2p.Size = Vector3.new(0.2,0.2,0.2) | |
| 4521 | wing2p.Parent = modemodel | |
| 4522 | wing2m.Parent = wing2p | |
| 4523 | wing2p.BrickColor = BrickColor.new("Bright red")
| |
| 4524 | wing2p.Transparency = 1 | |
| 4525 | local wing2w = Instance.new("Weld")
| |
| 4526 | wing2w.Parent = wing2p | |
| 4527 | wing2w.Part0 = wing2p | |
| 4528 | wing2w.Part1 = Torso | |
| 4529 | wing2w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0 , 0) | |
| 4530 | wing2w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(1, 0, 0) | |
| 4531 | coroutine.resume(coroutine.create(function() | |
| 4532 | for ringi = math.rad(-20) , math.rad(130) , math.rad(10) do | |
| 4533 | wait(0.1) | |
| 4534 | local ringm = Instance.new("BlockMesh")
| |
| 4535 | ringm.Scale = Vector3.new(1,1,1) | |
| 4536 | local ringp = Instance.new("Part")
| |
| 4537 | ringp.formFactor = 3 | |
| 4538 | ringp.CanCollide = false | |
| 4539 | ringp.Name = "FlameWing"..ringi | |
| 4540 | ringp.Locked = true | |
| 4541 | ringp.Size = Vector3.new(0.2,2,0.8) | |
| 4542 | ringp.Parent = modemodel | |
| 4543 | ringm.Parent = ringp | |
| 4544 | ringp.BrickColor = BrickColor.new("Bright red")
| |
| 4545 | ringp.Reflectance = 0.1 | |
| 4546 | ringp.Transparency = 1 | |
| 4547 | local ringw = Instance.new("Weld")
| |
| 4548 | ringw.Parent = ringp | |
| 4549 | ringw.Part0 = ringp | |
| 4550 | ringw.Part1 = wing1p | |
| 4551 | ringw.C1 = CFrame.fromEulerAnglesXYZ(ringi, 0, 0) * CFrame.new(0, ringp.Size.y/4 , 0) | |
| 4552 | ringw.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(45)) * CFrame.new(0, -1, 0) --* CFrame.new(-0.6, 0, 0) ---msh5.Scale.x/1.625 | |
| 4553 | coroutine.resume(coroutine.create(function() | |
| 4554 | for i = 0 , 1 , 0.025 do | |
| 4555 | wait() | |
| 4556 | ringp.Transparency = 1-1*i | |
| 4557 | end | |
| 4558 | ringp.Transparency = 0 | |
| 4559 | end)) | |
| 4560 | end end)) | |
| 4561 | coroutine.resume(coroutine.create(function() | |
| 4562 | for ringi = math.rad(-20) , math.rad(130) , math.rad(10) do | |
| 4563 | wait(0.1) | |
| 4564 | local ringm = Instance.new("BlockMesh")
| |
| 4565 | ringm.Scale = Vector3.new(1,1,1) | |
| 4566 | local ringp = Instance.new("Part")
| |
| 4567 | ringp.formFactor = 3 | |
| 4568 | ringp.CanCollide = false | |
| 4569 | ringp.Name = "FlameWing2_"..ringi | |
| 4570 | ringp.Locked = true | |
| 4571 | ringp.Size = Vector3.new(0.2,2,0.8) | |
| 4572 | ringp.Parent = modemodel | |
| 4573 | ringm.Parent = ringp | |
| 4574 | ringp.BrickColor = BrickColor.new("Bright red")
| |
| 4575 | ringp.Reflectance = 0.1 | |
| 4576 | ringp.Transparency = 1 | |
| 4577 | local ringw = Instance.new("Weld")
| |
| 4578 | ringw.Parent = ringp | |
| 4579 | ringw.Part0 = ringp | |
| 4580 | ringw.Part1 = wing2p | |
| 4581 | ringw.C1 = CFrame.fromEulerAnglesXYZ(ringi+math.rad(0), 0, 0) * CFrame.new(-0, ringp.Size.y/4 , 0) | |
| 4582 | ringw.C0 = CFrame.fromEulerAnglesXYZ(0, 0,math.rad(-45)) * CFrame.new(-0, -1, 0) | |
| 4583 | coroutine.resume(coroutine.create(function() | |
| 4584 | for i = 0 , 1 , 0.025 do | |
| 4585 | wait() | |
| 4586 | ringp.Transparency = 1-1*i | |
| 4587 | end | |
| 4588 | ringp.Transparency = 0 | |
| 4589 | end)) | |
| 4590 | end end)) | |
| 4591 | local wingp1m = Instance.new("SpecialMesh")
| |
| 4592 | wingp1m.Scale = Vector3.new(1,1,1) | |
| 4593 | wingp1m.MeshType = "Sphere" | |
| 4594 | local wingp1p = Instance.new("Part")
| |
| 4595 | wingp1p.formFactor = 3 | |
| 4596 | wingp1p.CanCollide = false | |
| 4597 | wingp1p.Name = "FlameOrb" | |
| 4598 | wingp1p.Locked = true | |
| 4599 | wingp1p.Size = Vector3.new(1,1,1) | |
| 4600 | wingp1p.Parent = modemodel | |
| 4601 | wingp1m.Parent = wingp1p | |
| 4602 | wingp1p.Reflectance = 0.2 | |
| 4603 | wingp1p.BrickColor = BrickColor.new("Bright red")
| |
| 4604 | local wingp1w = Instance.new("Weld")
| |
| 4605 | wingp1w.Parent = wingp1p | |
| 4606 | wingp1w.Part0 = wingp1p | |
| 4607 | wingp1w.Part1 = Torso | |
| 4608 | wingp1w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0 , 0) | |
| 4609 | wingp1w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(0, -0.5, 0.5) | |
| 4610 | coroutine.resume(coroutine.create(function() | |
| 4611 | for i = 0 , 1 , 0.025 do | |
| 4612 | wait() | |
| 4613 | wingp1p.Transparency = 1-1*i | |
| 4614 | end | |
| 4615 | wingp1p.Transparency = 0 | |
| 4616 | end)) | |
| 4617 | local Firee = modemodel | |
| 4618 | local Spawn = wingp1p | |
| 4619 | local colors = {BrickColor.new("Bright red"),BrickColor.new("Bright yellow"),BrickColor.new("Bright orange")}
| |
| 4620 | local Embers = {}
| |
| 4621 | local modelz = Instance.new("Model",Firee)
| |
| 4622 | modelz.Name = "FireHolder" | |
| 4623 | for X = 1, 15 do | |
| 4624 | local f = Instance.new("Part")
| |
| 4625 | f.Parent = nil | |
| 4626 | f.BrickColor = colors[math.random(1, # colors)] | |
| 4627 | f.Size = Vector3.new(1,1,1) | |
| 4628 | f.formFactor = 3 | |
| 4629 | f.Anchored = true | |
| 4630 | f.Locked = true | |
| 4631 | f.CanCollide = false | |
| 4632 | f.Transparency = 0.5 | |
| 4633 | f.Name = "Fire" | |
| 4634 | f.TopSurface = 0 | |
| 4635 | f.BottomSurface = 0 | |
| 4636 | Instance.new("BlockMesh",f)
| |
| 4637 | table.insert(Embers, f) | |
| 4638 | end | |
| 4639 | local R = 0 | |
| 4640 | coroutine.resume(coroutine.create(function () | |
| 4641 | repeat | |
| 4642 | wait() | |
| 4643 | R = R + 1 | |
| 4644 | for X = 1, # Embers do | |
| 4645 | Embers[X].Parent = modelz | |
| 4646 | local FM = math.fmod(R + X, # Embers) | |
| 4647 | if FM == 1 then | |
| 4648 | RandPos = Vector3.new(math.random(-Spawn.Size.x * 5, Spawn.Size.x * 5) / 10, Spawn.Size.y / 2, math.random(-Spawn.Size.x * 5, Spawn.Size.x * 5) / 10) | |
| 4649 | RandDir = Vector3.new(math.random(-100,100), math.random(-100,100), math.random(-100,100)) | |
| 4650 | Embers[X].CFrame = CFrame.new(Spawn.Position + RandPos, (Spawn.Position * rndm) + RandPos + RandDir) | |
| 4651 | Embers[X].Mesh.Scale = Vector3.new(1,1,1) | |
| 4652 | else | |
| 4653 | Embers[X].CFrame = Embers[X].CFrame + Embers[X].CFrame.lookVector*0.5 | |
| 4654 | Embers[X].Mesh.Scale = Embers[X].Mesh.Scale - Vector3.new(0.1,0.1,0.1) | |
| 4655 | end | |
| 4656 | end | |
| 4657 | until wingp1p.Parent == nil | |
| 4658 | for i = 0 ,1 , 0.1 do | |
| 4659 | wait(0.2) | |
| 4660 | for X = 1, # Embers do | |
| 4661 | Embers[X].Transparency = 0.5+0.5*i | |
| 4662 | end | |
| 4663 | end | |
| 4664 | for X = 1, # Embers do | |
| 4665 | Embers[X].Parent = nil | |
| 4666 | end | |
| 4667 | end)) | |
| 4668 | for ii = 1 , #AoETrue do | |
| 4669 | table.remove(AoETrue,#AoETrue) | |
| 4670 | end | |
| 4671 | wait(0.25) | |
| 4672 | for i = 0 , 1 , 0.1 do | |
| 4673 | wait() | |
| 4674 | RW.C0 = CFrame.new(1.5,0.5+0.5*i,0) * CFrame.fromEulerAnglesXYZ(math.rad(90+25*i), math.rad(0), math.rad(0)) | |
| 4675 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 4676 | LW.C0 = CFrame.new(0,0.5+0.5*i,-1) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(65+25*i)) | |
| 4677 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 4678 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 4679 | end | |
| 4680 | for i = 0 , 1 , 0.1 do | |
| 4681 | wait() | |
| 4682 | RW.C0 = CFrame.new(1.5,1-0.5*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(115-35*i), math.rad(45*i), math.rad(-45*i)) | |
| 4683 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 4684 | LW.C0 = CFrame.new(-1*i,1-0.5*i,-1+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80*i),math.rad(0),math.rad(90-45*i)) | |
| 4685 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 4686 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180-180*i), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 4687 | end | |
| 4688 | RW.C0 = CFrame.new(1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(45), math.rad(-45)) | |
| 4689 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 4690 | LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45)) | |
| 4691 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 4692 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 4693 | attack=false | |
| 4694 | wait(1.5) | |
| 4695 | mrdychng = false | |
| 4696 | end | |
| 4697 | function NeutralMode() | |
| 4698 | attack=true | |
| 4699 | Mode = "None" | |
| 4700 | fireboost = 0 | |
| 4701 | iceboost = 0 | |
| 4702 | darkboost = 0 | |
| 4703 | ss(Head,1) | |
| 4704 | cs(Head,2) | |
| 4705 | mrdychng = true | |
| 4706 | for i = 0 , 1 , 0.2 do | |
| 4707 | wait() | |
| 4708 | RW.C0 = CFrame.new(1+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i), math.rad(45), math.rad(-45+45*i)) | |
| 4709 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(100*i), math.rad(0), math.rad(0)) | |
| 4710 | LW.C0 = CFrame.new(-1-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i),math.rad(-45),math.rad(45-45*i)) | |
| 4711 | LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(100*i), math.rad(0), math.rad(0)) | |
| 4712 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 4713 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(70*i), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 4714 | end | |
| 4715 | coroutine.resume(coroutine.create(function() | |
| 4716 | for ii,z in pairs(modemodel:GetChildren()) do | |
| 4717 | if string.sub(z.Name,0,string.len(z.Name)-1) ~= "FlameWingP" then | |
| 4718 | wait() | |
| 4719 | coroutine.resume(coroutine.create(function() | |
| 4720 | for i = 0 , 1 , 0.1 do | |
| 4721 | wait() | |
| 4722 | z.Transparency = (1-z.Transparency)*i | |
| 4723 | end | |
| 4724 | z.Parent = nil | |
| 4725 | end)) | |
| 4726 | end | |
| 4727 | end | |
| 4728 | wait(0.5) | |
| 4729 | for ii,z in pairs(modemodel:GetChildren()) do | |
| 4730 | wait() | |
| 4731 | z.Parent = nil | |
| 4732 | end | |
| 4733 | end)) | |
| 4734 | for i = 0 , 1 , 0.1 do | |
| 4735 | wait() | |
| 4736 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(45), math.rad(0)) | |
| 4737 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(100+20*i), math.rad(0), math.rad(0)) | |
| 4738 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(-45),math.rad(0)) | |
| 4739 | LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(100+20*i), math.rad(0), math.rad(0)) | |
| 4740 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 4741 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(70+20*i), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 4742 | end | |
| 4743 | ||
| 4744 | wait(0.25) | |
| 4745 | for i = 0 , 1 , 0.1 do | |
| 4746 | wait() | |
| 4747 | RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i), math.rad(45), math.rad(-45*i)) | |
| 4748 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(120-120*i), math.rad(0), math.rad(0)) | |
| 4749 | LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i),math.rad(-45),math.rad(45*i)) | |
| 4750 | LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(120-120*i), math.rad(0), math.rad(0)) | |
| 4751 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 4752 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90-90*i), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 4753 | end | |
| 4754 | RW.C0 = CFrame.new(1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(45), math.rad(-45)) | |
| 4755 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 4756 | LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45)) | |
| 4757 | LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 4758 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 4759 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 4760 | attack=false | |
| 4761 | wait(0.5) | |
| 4762 | mrdychng = false | |
| 4763 | end | |
| 4764 | ||
| 4765 | function ob1d(mouse) | |
| 4766 | hold = true | |
| 4767 | if attack == true then return end | |
| 4768 | end | |
| 4769 | function ob1u(mouse) | |
| 4770 | end | |
| 4771 | buttonhold = false | |
| 4772 | function key(key) | |
| 4773 | if attack == true then return end | |
| 4774 | if key == "q" then | |
| 4775 | if attacktype == 1 then | |
| 4776 | Combo1a() | |
| 4777 | elseif attacktype == 2 then | |
| 4778 | Combo1b() | |
| 4779 | elseif attacktype == 3 then | |
| 4780 | Combo1c() | |
| 4781 | end | |
| 4782 | end | |
| 4783 | if key == "e" then | |
| 4784 | if attacktype == 1 then | |
| 4785 | BlizzardSword() | |
| 4786 | end | |
| 4787 | end | |
| 4788 | if key == "r" then | |
| 4789 | FlameTrail() | |
| 4790 | end | |
| 4791 | if key == "t" then | |
| 4792 | LifeDrain() | |
| 4793 | end | |
| 4794 | if Mode == "None" and not mrdychng then | |
| 4795 | if key == "z" then | |
| 4796 | FireMode() | |
| 4797 | end | |
| 4798 | elseif not mrdychng then | |
| 4799 | if key == "z" or key == "x" or key == "c" then | |
| 4800 | NeutralMode() | |
| 4801 | end | |
| 4802 | end | |
| 4803 | end | |
| 4804 | ||
| 4805 | function key2(key) | |
| 4806 | end | |
| 4807 | function s(mouse) | |
| 4808 | repeat wait() until not attack | |
| 4809 | while ev.Value ~= false do | |
| 4810 | wait(0.1) | |
| 4811 | end | |
| 4812 | MMouse = mouse | |
| 4813 | mouse.Button1Down:connect(function() ob1d(mouse) end) | |
| 4814 | mouse.Button1Up:connect(function() ob1u(mouse) end) | |
| 4815 | mouse.KeyDown:connect(key) | |
| 4816 | mouse.KeyUp:connect(key2) | |
| 4817 | equipanim() | |
| 4818 | ev.Value = true | |
| 4819 | --[[ | |
| 4820 | script.Parent = Bin.Parent | |
| 4821 | Bin:remove()]] | |
| 4822 | end | |
| 4823 | function ds(mouse) | |
| 4824 | repeat wait() until not attack | |
| 4825 | while ev.Value == false do | |
| 4826 | wait(0.1) | |
| 4827 | end | |
| 4828 | ||
| 4829 | hideanim() | |
| 4830 | wait(0.1) | |
| 4831 | ev.Value = false | |
| 4832 | end | |
| 4833 | Bin.Selected:connect(s) | |
| 4834 | Bin.Deselected:connect(ds) | |
| 4835 | ||
| 4836 | ||
| 4837 | --lego |