SHOW:
|
|
- or go back to the newest paste.
| 1 | - | Player = game:GetService("Players").0bingo53442
|
| 1 | + | local Player = game.Players.LocalPlayer |
| 2 | - | Character = Player.Character |
| 2 | + | repeat |
| 3 | - | PlayerGui = Player.PlayerGui |
| 3 | + | wait() |
| 4 | - | Backpack = Player.Backpack |
| 4 | + | until Player |
| 5 | - | Torso = Character.Torso |
| 5 | + | local Character = Player.Character |
| 6 | - | Head = Character.Head |
| 6 | + | repeat |
| 7 | - | LeftArm = Character["Left Arm"] |
| 7 | + | wait() |
| 8 | - | LeftLeg = Character["Left Leg"] |
| 8 | + | until Character |
| 9 | - | RightArm = Character["Right Arm"] |
| 9 | + | local Effects = {}
|
| 10 | - | RightLeg = Character["Right Leg"] |
| 10 | + | local Humanoid = Character.Humanoid |
| 11 | - | LS = Torso["Left Shoulder"] |
| 11 | + | local mouse = Player:GetMouse() |
| 12 | - | LH = Torso["Left Hip"] |
| 12 | + | local m = Instance.new("Model", Character)
|
| 13 | - | RS = Torso["Right Shoulder"] |
| 13 | + | m.Name = "WeaponModel" |
| 14 | - | RH = Torso["Right Hip"] |
| 14 | + | local sp = Instance.new("Model", Character)
|
| 15 | sp.Name = "WeaponModel" | |
| 16 | local LeftArm = Character["Left Arm"] | |
| 17 | local RightArm = Character["Right Arm"] | |
| 18 | local LeftLeg = Character["Left Leg"] | |
| 19 | local RightLeg = Character["Right Leg"] | |
| 20 | local Head = Character.Head | |
| 21 | local Torso = Character.Torso | |
| 22 | local cam = game.Workspace.CurrentCamera | |
| 23 | ModelName = "Weapon" | |
| 24 | ToolName = "Yamato" | |
| 25 | attack = false | |
| 26 | attacktype = 1 | |
| 27 | mindamage = 153333333333333333333333333333666666663333333333 | |
| 28 | maxdamage = 253333333333333333333333336666666666666 | |
| 29 | crtmaxdamage = 45333333333333333333333333333333 | |
| 30 | omindamage = 15333333333333333333333333366666666666666666 | |
| 31 | omaxdamage = 2533333333333333333366666666666666666666666 | |
| 32 | ocrtmaxdamage = 4533333333333333333333333333333366666666 | |
| 33 | crtrate = 1266666666666666666666666666666666666 | |
| 34 | fireboost = 3333333333333333333333333333333333333333333332 | |
| 35 | iceboost = 66666666666666666666666666666666666666666666666 | |
| 36 | darkboost = 666666666666666666666666666666666666666666666666666 | |
| 37 | Mode = "None" | |
| 38 | ssh = false | |
| 39 | atktypez = 1 | |
| 40 | Hitdeb = 0 | |
| 41 | ammo = 1 | |
| 42 | MMouse = nil | |
| 43 | point = false | |
| 44 | offset = 0 | |
| 45 | radv = 90 | |
| 46 | ---------------------------- | |
| 47 | --Customize | |
| 48 | DarkFire = true | |
| 49 | MaxFT = 40 | |
| 50 | ||
| 51 | ||
| 52 | ||
| 53 | --------------------------------------------------------------------------------------------------------------------------------------- | |
| 54 | if Character:findFirstChild("EquippedVal",true) ~= nil then
| |
| 55 | Character:findFirstChild("EquippedVal",true).Parent = nil
| |
| 56 | end | |
| 57 | ev = Instance.new("BoolValue")
| |
| 58 | ev.Parent = Character | |
| 59 | ev.Name = "EquippedVal" | |
| 60 | ev.Value = false | |
| 61 | --player | |
| 62 | player = nil | |
| 63 | --welds | |
| 64 | RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld")
| |
| 65 | --what anim | |
| 66 | anim = "none" | |
| 67 | --other var | |
| 68 | player = Player | |
| 69 | ch = Character | |
| 70 | --save shoulders | |
| 71 | AoETrue = {}
| |
| 72 | RSH, LSH , RHL, LHL = ch.Torso["Right Shoulder"], ch.Torso["Left Shoulder"] , ch.Torso["Right Hip"] , ch.Torso["Left Hip"] | |
| 73 | ||
| 74 | function RWFunc() | |
| 75 | RW.Part1 = ch["Right Arm"] | |
| 76 | RSH.Part1 = nil | |
| 77 | end | |
| 78 | function LWFunc() | |
| 79 | LW.Part1 = ch["Left Arm"] | |
| 80 | LSH.Part1 = nil | |
| 81 | end | |
| 82 | function RWLFunc() | |
| 83 | RWL.Part1 = ch["Right Leg"] | |
| 84 | RHL.Part1 = nil | |
| 85 | ch["Right Leg"].Name = "RightLeg" | |
| 86 | RightLeg.CanCollide = false | |
| 87 | end | |
| 88 | function LWLFunc() | |
| 89 | LWL.Part1 = ch["Left Leg"] | |
| 90 | LHL.Part1 = nil | |
| 91 | ch["Left Leg"].Name = "LeftLeg" | |
| 92 | LeftLeg.CanCollide = true | |
| 93 | end | |
| 94 | function RWLRem() | |
| 95 | RightLeg.Name = "Right Leg" | |
| 96 | RWL.Part1 = nil | |
| 97 | RHL.Part1 = ch["Right Leg"] | |
| 98 | RightLeg.CanCollide = false | |
| 99 | end | |
| 100 | function LWLRem() | |
| 101 | LeftLeg.Name = "Left Leg" | |
| 102 | LWL.Part1 = nil | |
| 103 | LHL.Part1 = ch["Left Leg"] | |
| 104 | LeftLeg.CanCollide = false | |
| 105 | end | |
| 106 | function RWRem() | |
| 107 | RW.Part1 = nil | |
| 108 | RSH.Part1 = ch["Right Arm"] | |
| 109 | end | |
| 110 | function LWRem() | |
| 111 | LW.Part1 = nil | |
| 112 | LSH.Part1 = ch["Left Arm"] | |
| 113 | end | |
| 114 | ||
| 115 | ||
| 116 | if Character:findFirstChild(ModelName,true) ~= nil then | |
| 117 | Character:findFirstChild(ModelName,true).Parent = nil | |
| 118 | RHL.Part1 = ch["Right Leg"] | |
| 119 | LHL.Part1 = ch["Left Leg"] | |
| 120 | RSH.Part1 = ch["Right Arm"] | |
| 121 | LSH.Part1 = ch["Left Arm"] | |
| 122 | end | |
| 123 | ||
| 124 | ||
| 125 | ||
| 126 | local swordholder = Instance.new("Model")
| |
| 127 | swordholder.Name = ModelName | |
| 128 | swordholder.Parent = Character | |
| 129 | --derp | |
| 130 | RW.Part0 = ch.Torso | |
| 131 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 132 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 133 | RW.Parent = swordholder | |
| 134 | -- | |
| 135 | LW.Part0 = ch.Torso | |
| 136 | LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
| 137 | LW.C1 = CFrame.new(0, 0.5, 0) | |
| 138 | LW.Parent = swordholder | |
| 139 | -- | |
| 140 | RWL.Part0 = ch.Torso | |
| 141 | RWL.C0 = CFrame.new(1, -1, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
| 142 | RWL.C1 = CFrame.new(0.5, 1, 0) | |
| 143 | RWL.Parent = swordholder | |
| 144 | -- | |
| 145 | LWL.Part0 = ch.Torso | |
| 146 | LWL.C0 = CFrame.new(-1, -1, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
| 147 | LWL.C1 = CFrame.new(-0.5, 1, 0) | |
| 148 | LWL.Parent = swordholder | |
| 149 | handlecolor = BrickColor.new("Really black")
| |
| 150 | scndryclr = BrickColor.new("Bright violet")
| |
| 151 | firepri = BrickColor.new("Bright red")
| |
| 152 | icepri = BrickColor.new("Bright blue")
| |
| 153 | local msh1 = Instance.new("CylinderMesh")
| |
| 154 | msh1.Scale = Vector3.new(1,1,1) | |
| 155 | local msh2 = Instance.new("BlockMesh")
| |
| 156 | msh2.Scale = Vector3.new(1,1,1) | |
| 157 | -- | |
| 158 | local msh3 = Instance.new("BlockMesh")
| |
| 159 | msh3.Scale = Vector3.new(1,1,1) | |
| 160 | local msh3a = Instance.new("SpecialMesh")
| |
| 161 | msh3a.Scale = Vector3.new(1,1,1) | |
| 162 | msh3a.MeshType = "Wedge" | |
| 163 | local msh4 = Instance.new("BlockMesh")
| |
| 164 | msh4.Scale = Vector3.new(1,1,1) | |
| 165 | local msh4a = Instance.new("SpecialMesh")
| |
| 166 | msh4a.Scale = Vector3.new(1,1,1) | |
| 167 | msh4a.MeshType = "Wedge" | |
| 168 | -- | |
| 169 | local msh5 = Instance.new("SpecialMesh")
| |
| 170 | msh5.Scale = Vector3.new(1,1,2) | |
| 171 | msh5.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 172 | local msh6 = Instance.new("BlockMesh")
| |
| 173 | msh6.Scale = Vector3.new(1,1,0.5) | |
| 174 | local msh7 = Instance.new("BlockMesh")
| |
| 175 | msh7.Scale = Vector3.new(1,1,1) | |
| 176 | local msh8 = Instance.new("BlockMesh")
| |
| 177 | msh8.Scale = Vector3.new(0.5,1,1) | |
| 178 | local prt1 = Instance.new("Part")
| |
| 179 | prt1.formFactor = 3 | |
| 180 | prt1.CanCollide = false | |
| 181 | prt1.Name = "Handle" | |
| 182 | prt1.Locked = true | |
| 183 | prt1.Size = Vector3.new(0.2,1.5,0.2) | |
| 184 | prt1.Parent = swordholder | |
| 185 | msh1.Parent = prt1 | |
| 186 | prt1.BrickColor = handlecolor | |
| 187 | local prt2 = Instance.new("Part")
| |
| 188 | prt2.formFactor = 3 | |
| 189 | prt2.CanCollide = false | |
| 190 | prt2.Name = "HandleTop" | |
| 191 | prt2.Locked = true | |
| 192 | prt2.Size = Vector3.new(1.6,0.2,0.5) | |
| 193 | prt2.Parent = swordholder | |
| 194 | msh2.Parent = prt2 | |
| 195 | prt2.BrickColor = scndryclr | |
| 196 | --- | |
| 197 | local prt3 = Instance.new("Part")
| |
| 198 | prt3.formFactor = 3 | |
| 199 | prt3.CanCollide = false | |
| 200 | prt3.Name = "FlameBlade" | |
| 201 | prt3.Locked = true | |
| 202 | prt3.Size = Vector3.new(0.4,3,0.2) | |
| 203 | prt3.Parent = swordholder | |
| 204 | msh3.Parent = prt3 | |
| 205 | prt3.BrickColor = firepri | |
| 206 | prt3.Reflectance = 0 | |
| 207 | local prt3a = Instance.new("Part")
| |
| 208 | prt3a.formFactor = 3 | |
| 209 | prt3a.CanCollide = false | |
| 210 | prt3a.Name = "FlameBladeP1" | |
| 211 | prt3a.Locked = true | |
| 212 | prt3a.Size = Vector3.new(0.2,1,0.4) | |
| 213 | prt3a.Parent = swordholder | |
| 214 | msh3a.Parent = prt3a | |
| 215 | prt3a.BrickColor = firepri | |
| 216 | prt3a.Reflectance = 0 | |
| 217 | -- | |
| 218 | local prt4 = Instance.new("Part")
| |
| 219 | prt4.formFactor = 3 | |
| 220 | prt4.CanCollide = false | |
| 221 | prt4.Name = "FrostBlade" | |
| 222 | prt4.Locked = true | |
| 223 | prt4.Size = Vector3.new(0.4,3,0.2) | |
| 224 | prt4.Parent = swordholder | |
| 225 | msh4.Parent = prt4 | |
| 226 | prt4.BrickColor = icepri | |
| 227 | prt4.Reflectance = 0.5 | |
| 228 | local prt4a = Instance.new("Part")
| |
| 229 | prt4a.formFactor = 3 | |
| 230 | prt4a.CanCollide = false | |
| 231 | prt4a.Name = "FrostBladeP1" | |
| 232 | prt4a.Locked = true | |
| 233 | prt4a.Size = Vector3.new(0.2,1,0.4) | |
| 234 | prt4a.Parent = swordholder | |
| 235 | msh4a.Parent = prt4a | |
| 236 | prt4a.BrickColor = icepri | |
| 237 | prt4a.Reflectance = 0.5 | |
| 238 | -- | |
| 239 | local prt5 = Instance.new("Part")
| |
| 240 | prt5.formFactor = 3 | |
| 241 | prt5.CanCollide = false | |
| 242 | prt5.Name = "HandleRing" | |
| 243 | prt5.Locked = true | |
| 244 | prt5.Size = Vector3.new(1,1,0.2) | |
| 245 | prt5.Parent = swordholder | |
| 246 | msh5.Parent = prt5 | |
| 247 | prt5.BrickColor = scndryclr | |
| 248 | prt5.Reflectance = 0 | |
| 249 | local DFlame = Instance.new("Fire")
| |
| 250 | DFlame.Parent = prt5 | |
| 251 | DFlame.Color = Color3.new(0.5,0,0.5) | |
| 252 | DFlame.SecondaryColor = Color3.new(0.5,0,0.5) | |
| 253 | DFlame.Heat = 25 | |
| 254 | DFlame.Size = 1 | |
| 255 | DFlame.Enabled = DarkFire | |
| 256 | local prt6 = Instance.new("Part")
| |
| 257 | prt6.formFactor = 3 | |
| 258 | prt6.CanCollide = false | |
| 259 | prt6.Name = "HandleP1" | |
| 260 | prt6.Locked = true | |
| 261 | prt6.Size = Vector3.new(0.2,1.5,0.2) | |
| 262 | prt6.Parent = swordholder | |
| 263 | msh6.Parent = prt6 | |
| 264 | prt6.BrickColor = scndryclr | |
| 265 | prt6.Reflectance = 0 | |
| 266 | local prt7 = Instance.new("Part")
| |
| 267 | prt7.formFactor = 3 | |
| 268 | prt7.CanCollide = false | |
| 269 | prt7.Name = "HandleP2" | |
| 270 | prt7.Locked = true | |
| 271 | prt7.Size = Vector3.new(0.7,0.2,0.2) | |
| 272 | prt7.Parent = swordholder | |
| 273 | msh7.Parent = prt7 | |
| 274 | prt7.BrickColor = scndryclr | |
| 275 | prt7.Reflectance = 0 | |
| 276 | local prt8 = Instance.new("Part")
| |
| 277 | prt8.formFactor = 3 | |
| 278 | prt8.CanCollide = false | |
| 279 | prt8.Name = "DarkBlade" | |
| 280 | prt8.Locked = true | |
| 281 | prt8.Size = Vector3.new(0.2,4,0.2) | |
| 282 | prt8.Parent = swordholder | |
| 283 | msh8.Parent = prt8 | |
| 284 | prt8.BrickColor = handlecolor | |
| 285 | prt8.Transparency = 1 | |
| 286 | local hitbox = Instance.new("Part")
| |
| 287 | hitbox.formFactor = 3 | |
| 288 | hitbox.CanCollide = false | |
| 289 | hitbox.Name = "Hitbox" | |
| 290 | hitbox.Locked = true | |
| 291 | hitbox.Size = Vector3.new(1,4,0.2) | |
| 292 | hitbox.Parent = swordholder | |
| 293 | hitbox.Transparency = 1 | |
| 294 | local hbw = Instance.new("Weld")
| |
| 295 | hbw.Parent = hitbox | |
| 296 | hbw.Part0 = hitbox | |
| 297 | hbw.Part1 = prt1 | |
| 298 | hbw.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 299 | hbw.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(0, -2.95, 0) | |
| 300 | ||
| 301 | local w1 = Instance.new("Weld")
| |
| 302 | w1.Parent = prt1 | |
| 303 | w1.Part0 = prt1 | |
| 304 | local w2 = Instance.new("Weld")
| |
| 305 | w2.Parent = prt2 | |
| 306 | w2.Part0 = prt2 | |
| 307 | w2.Part1 = prt1 | |
| 308 | w2.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 309 | w2.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(0, -0.85, 0) | |
| 310 | -- | |
| 311 | local w3 = Instance.new("Weld")
| |
| 312 | w3.Parent = prt3 | |
| 313 | w3.Part0 = prt3 | |
| 314 | w3.Part1 = prt1 | |
| 315 | w3.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 316 | w3.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(0.25, -2.45, 0) | |
| 317 | local w3a = Instance.new("Weld")
| |
| 318 | w3a.Parent = prt3a | |
| 319 | w3a.Part0 = prt3a | |
| 320 | w3a.Part1 = prt1 | |
| 321 | w3a.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 322 | w3a.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(-90),0) * CFrame.new(0.25, -4.45, 0) | |
| 323 | local w4 = Instance.new("Weld")
| |
| 324 | w4.Parent = prt4 | |
| 325 | w4.Part0 = prt4 | |
| 326 | w4.Part1 = prt1 | |
| 327 | w4.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 328 | w4.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(-0.25, -2.45, 0) | |
| 329 | local w4a = Instance.new("Weld")
| |
| 330 | w4a.Parent = prt4a | |
| 331 | w4a.Part0 = prt4a | |
| 332 | w4a.Part1 = prt1 | |
| 333 | w4a.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 334 | w4a.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90),0) * CFrame.new(-0.25, -4.45, 0) | |
| 335 | -- | |
| 336 | local w5 = Instance.new("Weld")
| |
| 337 | w5.Parent = prt5 | |
| 338 | w5.Part0 = prt5 | |
| 339 | w5.Part1 = prt1 | |
| 340 | w5.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 341 | w5.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(-0, -0.85, 0) | |
| 342 | local w6 = Instance.new("Weld")
| |
| 343 | w6.Parent = prt6 | |
| 344 | w6.Part0 = prt6 | |
| 345 | w6.Part1 = prt1 | |
| 346 | w6.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 347 | w6.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(-0.5, -0, 0) | |
| 348 | local w7 = Instance.new("Weld")
| |
| 349 | w7.Parent = prt7 | |
| 350 | w7.Part0 = prt7 | |
| 351 | w7.Part1 = prt1 | |
| 352 | w7.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 353 | w7.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(-0.25, 0.75, 0) | |
| 354 | local w8 = Instance.new("Weld")
| |
| 355 | w8.Parent = prt8 | |
| 356 | w8.Part0 = prt8 | |
| 357 | w8.Part1 = prt1 | |
| 358 | w8.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) | |
| 359 | w8.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(0, -2.95, 0) | |
| 360 | for ringi = 0 , math.rad(350) , math.rad(50) do | |
| 361 | local ringm = Instance.new("BlockMesh")
| |
| 362 | ringm.Scale = Vector3.new(1,1.5,1) | |
| 363 | local ringp = Instance.new("Part")
| |
| 364 | ringp.formFactor = 3 | |
| 365 | ringp.CanCollide = false | |
| 366 | ringp.Name = "HandleRingP"..ringi | |
| 367 | ringp.Locked = true | |
| 368 | ringp.Size = Vector3.new(0.2,0.2,0.2) | |
| 369 | ringp.Parent = swordholder | |
| 370 | ringm.Parent = ringp | |
| 371 | ringp.BrickColor = scndryclr | |
| 372 | ringp.Reflectance = 0.1 | |
| 373 | local ringw = Instance.new("Weld")
| |
| 374 | ringw.Parent = ringp | |
| 375 | ringw.Part0 = ringp | |
| 376 | ringw.Part1 = prt5 | |
| 377 | ringw.C1 = CFrame.fromEulerAnglesXYZ(math.rad(90), -ringi, 0) * CFrame.new(0, 0 , 0) | |
| 378 | 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 | |
| 379 | end | |
| 380 | ||
| 381 | local Objects = {}
| |
| 382 | function getAllObjects(obj) | |
| 383 | for a,v in pairs(obj:GetChildren()) do | |
| 384 | if v:IsA("BasePart") then
| |
| 385 | table.insert(Objects,v) | |
| 386 | end | |
| 387 | if #v:GetChildren() > 0 then | |
| 388 | getAllObjects(v) | |
| 389 | end | |
| 390 | end | |
| 391 | end | |
| 392 | getAllObjects(Workspace) | |
| 393 | function Raycast(Start,End,Range) | |
| 394 | -- | |
| 395 | for ii = 0 , #Objects do | |
| 396 | table.remove(Objects,ii) | |
| 397 | end | |
| 398 | getAllObjects(Workspace) | |
| 399 | local MA = math.abs | |
| 400 | local CF = CFrame.new(Start,End) | |
| 401 | local CP = Start | |
| 402 | for i = 1, Range do--(Start - End).magnitude do | |
| 403 | for b,v in pairs(Objects) do | |
| 404 | if v.Parent ~= nil then | |
| 405 | local pos = Start + (CF.lookVector*i) | |
| 406 | local dist = v.CFrame:pointToObjectSpace(pos) | |
| 407 | 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 | |
| 408 | if v.Parent ~= Character or v.Parent ~= swordholder or v.Parent.Parent ~= Character then | |
| 409 | return v,Start,pos | |
| 410 | end | |
| 411 | end | |
| 412 | end | |
| 413 | end | |
| 414 | end | |
| 415 | return nil,Start,End | |
| 416 | end | |
| 417 | local RAP = Instance.new("Part")
| |
| 418 | RAP.formFactor = 0 | |
| 419 | RAP.CanCollide = false | |
| 420 | RAP.Name = "RAPart" | |
| 421 | RAP.Locked = true | |
| 422 | RAP.Size = Vector3.new(1,1,1) | |
| 423 | RAP.Parent = swordholder | |
| 424 | RAP.Transparency = 1 | |
| 425 | local w = Instance.new("Weld")
| |
| 426 | w.Parent = RAP | |
| 427 | w.Part0 = RAP | |
| 428 | w.Part1 = RightArm | |
| 429 | w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 430 | w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 1, 0) | |
| 431 | ||
| 432 | function unequipweld() | |
| 433 | w1.Part1 = Torso | |
| 434 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), math.rad(0)) * CFrame.new(0, 0,0) | |
| 435 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(180), math.rad(-150)) * CFrame.new(-1, -1.5, -0.6) | |
| 436 | end | |
| 437 | unequipweld() | |
| 438 | ||
| 439 | function equipweld() | |
| 440 | w1.Part1 = RAP | |
| 441 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 442 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 443 | end | |
| 444 | ||
| 445 | function ss(parent,p) --Slash | |
| 446 | local SlashSound = Instance.new("Sound")
| |
| 447 | SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav" | |
| 448 | SlashSound.Parent = parent | |
| 449 | SlashSound.Volume = .7 | |
| 450 | SlashSound.Pitch = p | |
| 451 | SlashSound.PlayOnRemove = true | |
| 452 | coroutine.resume(coroutine.create(function() | |
| 453 | wait() | |
| 454 | SlashSound.Parent = nil | |
| 455 | end)) | |
| 456 | end | |
| 457 | function uss(parent,p) --unsheath | |
| 458 | local SlashSound = Instance.new("Sound")
| |
| 459 | SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav" | |
| 460 | SlashSound.Parent = parent | |
| 461 | SlashSound.Volume = .7 | |
| 462 | SlashSound.Pitch = p | |
| 463 | SlashSound.PlayOnRemove = true | |
| 464 | coroutine.resume(coroutine.create(function() | |
| 465 | wait() | |
| 466 | SlashSound.Parent = nil | |
| 467 | end)) | |
| 468 | end | |
| 469 | function cs(parent,p) --Magic Charge | |
| 470 | local SlashSound = Instance.new("Sound")
| |
| 471 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=2101137" | |
| 472 | SlashSound.Parent = parent | |
| 473 | SlashSound.Volume = .7 | |
| 474 | SlashSound.Pitch = p | |
| 475 | SlashSound.PlayOnRemove = true | |
| 476 | coroutine.resume(coroutine.create(function() | |
| 477 | wait() | |
| 478 | SlashSound.Parent = nil | |
| 479 | end)) | |
| 480 | end | |
| 481 | function ls(parent,p) --Lazer Sound | |
| 482 | local SlashSound = Instance.new("Sound")
| |
| 483 | SlashSound.SoundId = "http://www.roblox.com/asset?id=1369158" | |
| 484 | SlashSound.Parent = parent | |
| 485 | SlashSound.Volume = .7 | |
| 486 | SlashSound.Pitch = p | |
| 487 | SlashSound.PlayOnRemove = true | |
| 488 | coroutine.resume(coroutine.create(function() | |
| 489 | wait() | |
| 490 | SlashSound.Parent = nil | |
| 491 | end)) | |
| 492 | end | |
| 493 | function is(parent,p) --Ice Sound | |
| 494 | local SlashSound = Instance.new("Sound")
| |
| 495 | local rndm = math.random(1,3) | |
| 496 | if rndm == 1 then | |
| 497 | SlashSound.SoundId = "rbxasset://sounds\\ice.ogg" | |
| 498 | elseif rndm == 2 then | |
| 499 | SlashSound.SoundId = "rbxasset://sounds\\ice2.ogg" | |
| 500 | elseif rndm == 3 then | |
| 501 | SlashSound.SoundId = "rbxasset://sounds\\ice3.ogg" | |
| 502 | end | |
| 503 | SlashSound.Parent = parent | |
| 504 | SlashSound.Volume = .7 | |
| 505 | SlashSound.Pitch = p | |
| 506 | SlashSound.PlayOnRemove = true | |
| 507 | coroutine.resume(coroutine.create(function() | |
| 508 | wait() | |
| 509 | SlashSound.Parent = nil | |
| 510 | end)) | |
| 511 | end | |
| 512 | function fs(parent,p) --Fire Sound | |
| 513 | local SlashSound = Instance.new("Sound")
| |
| 514 | SlashSound.SoundId = "http://www.roblox.com/asset/?id=31758982" | |
| 515 | SlashSound.Parent = parent | |
| 516 | SlashSound.Volume = .7 | |
| 517 | SlashSound.Pitch = p | |
| 518 | SlashSound.PlayOnRemove = true | |
| 519 | coroutine.resume(coroutine.create(function() | |
| 520 | wait() | |
| 521 | SlashSound.Parent = nil | |
| 522 | end)) | |
| 523 | end | |
| 524 | function bs(parent,p) --Boom Sound | |
| 525 | local SlashSound = Instance.new("Sound")
| |
| 526 | SlashSound.SoundId = "rbxasset://sounds/Rocket shot.wav" | |
| 527 | SlashSound.Parent = parent | |
| 528 | SlashSound.Volume = .7 | |
| 529 | SlashSound.Pitch = p | |
| 530 | SlashSound.PlayOnRemove = true | |
| 531 | coroutine.resume(coroutine.create(function() | |
| 532 | wait() | |
| 533 | SlashSound.Parent = nil | |
| 534 | end)) | |
| 535 | end | |
| 536 | -- | |
| 537 | ||
| 538 | ||
| 539 | function hideanim() | |
| 540 | attack = true | |
| 541 | for i = 0 , 1 , 0.2 do | |
| 542 | wait() | |
| 543 | 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)) | |
| 544 | 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)) | |
| 545 | end | |
| 546 | LWRem() | |
| 547 | for i = 0 , 1 , 0.15 do | |
| 548 | wait() | |
| 549 | 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)) | |
| 550 | end | |
| 551 | unequipweld() | |
| 552 | wait(0.1) | |
| 553 | for i = 0 , 1 , 0.1 do | |
| 554 | wait() | |
| 555 | 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)) | |
| 556 | end | |
| 557 | RWRem() | |
| 558 | attack = false | |
| 559 | end | |
| 560 | ||
| 561 | function equipanim() | |
| 562 | attack = true | |
| 563 | RWFunc() | |
| 564 | for i = 0 , 1 , 0.1 do | |
| 565 | wait() | |
| 566 | 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)) | |
| 567 | end | |
| 568 | equipweld() | |
| 569 | uss(Head,1) | |
| 570 | for i = 0 , 1 , 0.2 do | |
| 571 | wait() | |
| 572 | 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)) | |
| 573 | end | |
| 574 | for i = 0 , 1 , 0.15 do | |
| 575 | wait() | |
| 576 | 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)) | |
| 577 | end | |
| 578 | LWFunc() | |
| 579 | for i = 0 , 1 , 0.1 do | |
| 580 | wait() | |
| 581 | 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)) | |
| 582 | 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)) | |
| 583 | end | |
| 584 | attack = false | |
| 585 | end | |
| 586 | ||
| 587 | if (script.Parent.className ~= "HopperBin") then | |
| 588 | Tool = Instance.new("HopperBin")
| |
| 589 | Tool.Parent = Backpack | |
| 590 | Tool.Name = ToolName | |
| 591 | script.Parent = Tool | |
| 592 | end | |
| 593 | Bin = script.Parent | |
| 594 | ||
| 595 | function damagesplat(dmg,hit,critornot,healornot) | |
| 596 | local OffsetX = -2.5 | |
| 597 | local OffsetY = 5 | |
| 598 | local OffsetZ = 0 | |
| 599 | local bill = Instance.new("BillboardGui")
| |
| 600 | bill.Size = UDim2.new(1,0,1,0) | |
| 601 | bill.Adornee = hit | |
| 602 | bill.StudsOffset = Vector3.new(OffsetX,OffsetY,OffsetZ) | |
| 603 | bill.Parent = hit.Parent | |
| 604 | bill.Name = "DamageSplat" | |
| 605 | local tex = Instance.new("TextLabel")
| |
| 606 | tex.Size = UDim2.new(5,0,2.5,0) | |
| 607 | tex.Parent = bill | |
| 608 | tex.Text = dmg | |
| 609 | tex.BackgroundTransparency = 1 | |
| 610 | tex.ZIndex = 4 | |
| 611 | tex.FontSize = "Size24" | |
| 612 | local tex2 = Instance.new("ImageLabel")
| |
| 613 | tex2.Size = UDim2.new(1,0,1,0) | |
| 614 | tex2.Parent = tex | |
| 615 | tex2.BackgroundTransparency = 1 | |
| 616 | tex2.Image = "http://www.roblox.com/asset/?id=42611276" | |
| 617 | if critornot == true then | |
| 618 | tex.TextColor3 = Color3.new(1,0.2,0.2) | |
| 619 | elseif critornot == false then | |
| 620 | tex.TextColor3 = Color3.new(0,0,0) | |
| 621 | end | |
| 622 | if healornot == true then | |
| 623 | tex.TextColor3 = Color3.new(0.2,0.5,0.5) | |
| 624 | end | |
| 625 | coroutine.resume(coroutine.create(function() | |
| 626 | wait(0.25) | |
| 627 | for i = 0 , 1 , 0.075 do | |
| 628 | wait() | |
| 629 | bill.StudsOffset = Vector3.new(OffsetX,OffsetY+5*i,OffsetZ) | |
| 630 | tex.TextTransparency = 1*i | |
| 631 | end | |
| 632 | bill.Parent = nil | |
| 633 | end)) | |
| 634 | end | |
| 635 | function FireEff(Part,Time,Color1,Color2,Color3) | |
| 636 | local Firee = Part | |
| 637 | local Spawn = Part | |
| 638 | local colors = {}
| |
| 639 | if Color1 ~= nil then | |
| 640 | table.insert(colors,BrickColor.new(Color1)) | |
| 641 | end | |
| 642 | if Color2 ~= nil then | |
| 643 | table.insert(colors,BrickColor.new(Color2)) | |
| 644 | end | |
| 645 | if Color3 ~= nil then | |
| 646 | table.insert(colors,BrickColor.new(Color3)) | |
| 647 | end | |
| 648 | if Color4 ~= nil then | |
| 649 | table.insert(colors,BrickColor.new(Color4)) | |
| 650 | end | |
| 651 | local Embers = {}
| |
| 652 | local modelz = Instance.new("Model",Firee)
| |
| 653 | modelz.Name = "FireHolder" | |
| 654 | for X = 1, 3 do | |
| 655 | local f = Instance.new("Part")
| |
| 656 | f.Parent = nil | |
| 657 | f.BrickColor = colors[math.random(1, # colors)] | |
| 658 | f.Size = Vector3.new(1,1,1) | |
| 659 | f.formFactor = 1 | |
| 660 | f.Anchored = true | |
| 661 | f.Locked = true | |
| 662 | f.CanCollide = false | |
| 663 | f.Transparency = 0.5 | |
| 664 | f.Name = "Fire" | |
| 665 | f.TopSurface = 0 | |
| 666 | f.BottomSurface = 0 | |
| 667 | table.insert(Embers, f) | |
| 668 | end | |
| 669 | local R = 0 | |
| 670 | coroutine.resume(coroutine.create(function () | |
| 671 | repeat | |
| 672 | wait() | |
| 673 | R = R + 1 | |
| 674 | for X = 1, # Embers do | |
| 675 | Embers[X].Parent = modelz | |
| 676 | local FM = math.fmod(R + X, # Embers) | |
| 677 | if FM == 1 then | |
| 678 | 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) | |
| 679 | RandDir = Vector3.new(math.random(-100,100), math.random(-100,100), math.random(-100,100)) | |
| 680 | Embers[X].CFrame = CFrame.new(Spawn.Position + RandPos, Spawn.Position + RandPos + RandDir) | |
| 681 | else | |
| 682 | 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) | |
| 683 | end | |
| 684 | end | |
| 685 | until R == Time | |
| 686 | for i = 0 ,1 , 0.1 do | |
| 687 | wait(0.2) | |
| 688 | for X = 1, # Embers do | |
| 689 | Embers[X].Transparency = 0.5+0.5*i | |
| 690 | end | |
| 691 | end | |
| 692 | for X = 1, # Embers do | |
| 693 | Embers[X].Parent = nil | |
| 694 | end | |
| 695 | end)) | |
| 696 | end | |
| 697 | ||
| 698 | function OT(hit) --Normal Damage | |
| 699 | if Hitdeb == 1 then return end | |
| 700 | if hit.Parent == nil then return end | |
| 701 | local hum = hit.Parent:findFirstChild("Humanoid")
| |
| 702 | if hum ~= nil and hum ~= Character.Humanoid then | |
| 703 | local critrandomizer = math.random(1,crtrate) | |
| 704 | if critrandomizer ~= 1 then | |
| 705 | local rndmdamage = math.random(mindamage,maxdamage) | |
| 706 | damagesplat(rndmdamage,hit,false) | |
| 707 | hum:TakeDamage(rndmdamage) | |
| 708 | elseif critrandomizer == 1 then | |
| 709 | local rndmdamage = math.random(maxdamage,crtmaxdamage) | |
| 710 | damagesplat(rndmdamage,hit,true) | |
| 711 | hum:TakeDamage(rndmdamage) | |
| 712 | end | |
| 713 | Hitdeb = 1 | |
| 714 | end | |
| 715 | end | |
| 716 | ||
| 717 | function OTND(part) --No Debounce Damage | |
| 718 | coroutine.resume(coroutine.create(function() | |
| 719 | local dd = false | |
| 720 | while part.Parent ~= nil and not dd do | |
| 721 | wait() | |
| 722 | local c = game.Workspace:GetChildren(); | |
| 723 | for i = 1, #c do | |
| 724 | local hum = c[i]:findFirstChild("Humanoid")
| |
| 725 | if hum ~= nil and hum.Health ~= 0 then | |
| 726 | local head = c[i]:findFirstChild("Torso");
| |
| 727 | if head ~= nil then | |
| 728 | local targ = head.Position - part.Position; ------------------------------------------------Local | |
| 729 | local mag = targ.magnitude; | |
| 730 | if mag <= 5 and c[i].Name ~= Player.Name then | |
| 731 | dd = true | |
| 732 | local rndmdamage = math.random(1,7+5*math.random()) + fireboost | |
| 733 | damagesplat(rndmdamage,head,false) | |
| 734 | hum:TakeDamage(rndmdamage) | |
| 735 | FireEff(head,150,"Bright red","Bright orange","Cool yellow") | |
| 736 | part.Parent = nil | |
| 737 | ||
| 738 | end | |
| 739 | end | |
| 740 | end | |
| 741 | end | |
| 742 | end | |
| 743 | end)) | |
| 744 | end | |
| 745 | ||
| 746 | function AoE(p,magnitude,damage,critornot) | |
| 747 | local c = game.Workspace:GetChildren(); | |
| 748 | for i = 1, #c do | |
| 749 | local hum = c[i]:findFirstChild("Humanoid")
| |
| 750 | if hum ~= nil and hum.Health ~= 0 then | |
| 751 | local head = c[i]:findFirstChild("Head");
| |
| 752 | if head ~= nil then | |
| 753 | local targ = head.Position - p; | |
| 754 | local mag = targ.magnitude; | |
| 755 | if mag <= magnitude and c[i].Name ~= Character.Name then | |
| 756 | local foundd = false | |
| 757 | for ii = 1 , #AoETrue do | |
| 758 | if AoETrue[ii] == c[i].Name then | |
| 759 | --delay(1,function() table.remove(AoETrue,ii) end) | |
| 760 | --blast(2.5,0.5,"Bright red",prt2,false) | |
| 761 | foundd = true | |
| 762 | end | |
| 763 | end | |
| 764 | if foundd then | |
| 765 | end | |
| 766 | -- | |
| 767 | if not foundd then | |
| 768 | hum:TakeDamage(damage) | |
| 769 | damagesplat(damage,head,critornot) | |
| 770 | table.insert(AoETrue,c[i].Name) | |
| 771 | --blast(2.5,0.5,"Bright red",prt2) | |
| 772 | end | |
| 773 | end | |
| 774 | end | |
| 775 | end | |
| 776 | end | |
| 777 | end | |
| 778 | function AoEP(p,magnitude,damage,critornot) | |
| 779 | local c = game.Workspace:GetChildren(); | |
| 780 | for i = 1, #c do | |
| 781 | local hum = c[i]:findFirstChild("Humanoid")
| |
| 782 | if hum ~= nil and hum.Health ~= 0 then | |
| 783 | local head = c[i]:findFirstChild("Head");
| |
| 784 | if head ~= nil then | |
| 785 | local targ = head.Position - p; | |
| 786 | local mag = targ.magnitude; | |
| 787 | if mag <= magnitude and c[i].Name ~= Character.Name then | |
| 788 | local foundd = false | |
| 789 | for ii = 1 , #AoETrue do | |
| 790 | if AoETrue[ii] == c[i].Name then | |
| 791 | --delay(1,function() table.remove(AoETrue,ii) end) | |
| 792 | --blast(2.5,0.5,"Bright red",prt2,false) | |
| 793 | foundd = true | |
| 794 | end | |
| 795 | end | |
| 796 | if foundd then | |
| 797 | end | |
| 798 | -- | |
| 799 | if not foundd then | |
| 800 | hum:TakeDamage(damage) | |
| 801 | damagesplat(damage,head,critornot) | |
| 802 | c[i].Humanoid.Sit = true | |
| 803 | coroutine.resume(coroutine.create(function() | |
| 804 | local bp = Instance.new("BodyVelocity",c[i].Torso)
| |
| 805 | bp.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 806 | bp.P = bp.P*2 | |
| 807 | bp.velocity = CFrame.new(c[i].Torso.Position , p).lookVector * 150 + Vector3.new(0,25,0) | |
| 808 | coroutine.resume(coroutine.create(function() | |
| 809 | for i=1, | |
| 810 | bp.velocity.y/3 do | |
| 811 | bp.velocity = bp.velocity+Vector3.new(0,-4.25,0) | |
| 812 | wait() | |
| 813 | end | |
| 814 | bp.Parent = nil | |
| 815 | end)) | |
| 816 | c[i].Torso.RotVelocity = CFrame.new(c[i].Torso.Position , p).lookVector * 25 | |
| 817 | wait(0.4) c[i].Humanoid.Sit = false end)) | |
| 818 | table.insert(AoETrue,c[i].Name) | |
| 819 | end | |
| 820 | end | |
| 821 | end | |
| 822 | end | |
| 823 | end | |
| 824 | end | |
| 825 | -- | |
| 826 | ||
| 827 | local LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 828 | function effect(Color,Ref,LP,P1,returnn) | |
| 829 | local effectsmsh = Instance.new("BlockMesh")
| |
| 830 | effectsmsh.Scale = Vector3.new(0.5,1,0.5) | |
| 831 | effectsmsh.Name = "Mesh" | |
| 832 | local effectsg = Instance.new("Part")
| |
| 833 | effectsg.formFactor = 3 | |
| 834 | effectsg.CanCollide = false | |
| 835 | effectsg.Name = "Eff" | |
| 836 | effectsg.Locked = true | |
| 837 | effectsg.Anchored = true | |
| 838 | effectsg.Size = Vector3.new(0.2,1,0.2) | |
| 839 | effectsg.Parent = swordholder | |
| 840 | effectsmsh.Parent = effectsg | |
| 841 | effectsg.BrickColor = BrickColor.new(Color) | |
| 842 | effectsg.Reflectance = Ref | |
| 843 | local point1 = P1 | |
| 844 | local mg = (LP.p - point1.p).magnitude | |
| 845 | effectsg.Size = Vector3.new(0.2,mg,0.2) | |
| 846 | effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0) | |
| 847 | if returnn then return effectsg end | |
| 848 | coroutine.resume(coroutine.create(function() | |
| 849 | if not returnn then | |
| 850 | for i = 0 , 1 , 0.1 do | |
| 851 | wait() | |
| 852 | effectsg.Transparency = 1*i | |
| 853 | end | |
| 854 | wait() | |
| 855 | effectsg.Parent = nil | |
| 856 | end | |
| 857 | end)) | |
| 858 | end | |
| 859 | ||
| 860 | con = nil | |
| 861 | function dmgcnnct(p) | |
| 862 | con = p.Touched:connect(OT) | |
| 863 | end | |
| 864 | function dmgdc() | |
| 865 | if con ~= nil then | |
| 866 | con:disconnect() | |
| 867 | Hitdeb = 0 | |
| 868 | end | |
| 869 | end | |
| 870 | function atktype(s,e) | |
| 871 | coroutine.resume(coroutine.create(function () | |
| 872 | attacktype = e | |
| 873 | wait(0.5) | |
| 874 | repeat wait() until attack | |
| 875 | attacktype = s | |
| 876 | end)) | |
| 877 | end | |
| 878 | ||
| 879 | hold = false | |
| 880 | function Combo1a() | |
| 881 | attack=true | |
| 882 | for i = 0 , 1 , 0.1 do | |
| 883 | wait() | |
| 884 | 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)) | |
| 885 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45*i), math.rad(10*i), math.rad(0)) | |
| 886 | 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)) | |
| 887 | end | |
| 888 | dmgcnnct(hitbox) | |
| 889 | ss(Head,1.5) | |
| 890 | for i = 0 , 1 , 0.2 do | |
| 891 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 892 | wait() | |
| 893 | RW.C0 = CFrame.new(0.5+1*i,0.5,-1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0)) | |
| 894 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45+135*i), math.rad(10+35*i), math.rad(0)) | |
| 895 | LW.C0 = CFrame.new(-1+1*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(25+65*i)) | |
| 896 | effect("Bright blue",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
| |
| 897 | end | |
| 898 | dmgdc() | |
| 899 | for i = 0 , 1 , 0.2 do | |
| 900 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 901 | wait() | |
| 902 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0)) | |
| 903 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90+20*i), math.rad(45+5*i), math.rad(0)) | |
| 904 | LW.C0 = CFrame.new(-0.25*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(90+10*i)) | |
| 905 | effect("Bright blue",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
| |
| 906 | end | |
| 907 | attacktype = 2 | |
| 908 | coroutine.resume(coroutine.create(function () | |
| 909 | wait(0.25) | |
| 910 | attacktype = 1 | |
| 911 | end)) | |
| 912 | attack=false | |
| 913 | wait(0.15) | |
| 914 | wait() | |
| 915 | for i = 0 , 1 , 0.1 do | |
| 916 | if not attack then | |
| 917 | wait() | |
| 918 | 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)) | |
| 919 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(110-110*i), math.rad(50-50*i), math.rad(0)) | |
| 920 | 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)) | |
| 921 | end | |
| 922 | end | |
| 923 | ||
| 924 | end | |
| 925 | function Combo1b() | |
| 926 | attack=true | |
| 927 | for i = 0 , 1 , 0.1 do | |
| 928 | wait() | |
| 929 | 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)) | |
| 930 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(110-155*i), math.rad(50-40*i), math.rad(0)) | |
| 931 | 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)) | |
| 932 | end | |
| 933 | ||
| 934 | cs(Head,1.5) | |
| 935 | local tempmod = Instance.new("Model",swordholder)
| |
| 936 | for l = 1 , 20 do | |
| 937 | local meshz = Instance.new("SpecialMesh")
| |
| 938 | meshz.Scale = Vector3.new(0.5,0.5,0.5) | |
| 939 | meshz.MeshType = "Sphere" | |
| 940 | local shellz = Instance.new("Part")
| |
| 941 | meshz.Parent = shellz | |
| 942 | shellz.Anchored = false | |
| 943 | shellz.formFactor = 0 | |
| 944 | shellz.Size = Vector3.new(1,1,1) | |
| 945 | shellz.CFrame = hitbox.CFrame * CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)) | |
| 946 | shellz.Parent = tempmod | |
| 947 | shellz.Transparency = 0.5 | |
| 948 | shellz.BrickColor = BrickColor.new("Bright violet")
| |
| 949 | shellz.CanCollide = false | |
| 950 | shellz.Reflectance = 0.25 | |
| 951 | local bv = Instance.new("BodyPosition")
| |
| 952 | bv.Parent = shellz | |
| 953 | bv.maxForce = Vector3.new(200000,200000,200000) | |
| 954 | bv.position = shellz.Position | |
| 955 | coroutine.resume(coroutine.create(function() | |
| 956 | for i = 0 , 1 , 0.025 do | |
| 957 | wait() | |
| 958 | shellz.Transparency = 1-1*i | |
| 959 | end | |
| 960 | shellz.Transparency = 0 | |
| 961 | end)) | |
| 962 | coroutine.resume(coroutine.create(function() | |
| 963 | wait(0.05) | |
| 964 | bv.position = hitbox.Position | |
| 965 | for i = 1 , 20 do | |
| 966 | wait(0.1) | |
| 967 | bv.position = shell.Position | |
| 968 | end | |
| 969 | shellz.Parent = nil | |
| 970 | end)) | |
| 971 | wait(0.01) | |
| 972 | end | |
| 973 | coroutine.resume(coroutine.create(function () | |
| 974 | wait(0.25) | |
| 975 | tempmod.Parent = nil | |
| 976 | end)) | |
| 977 | for i = 0 , 1 , 0.2 do | |
| 978 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 979 | wait() | |
| 980 | 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)) | |
| 981 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45+135*i), math.rad(10), math.rad(0)) | |
| 982 | 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)) | |
| 983 | effect("Really red",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
| |
| 984 | end | |
| 985 | local gyro = Instance.new("BodyGyro")
| |
| 986 | gyro.maxTorque = Vector3.new(math.huge,math.huge,math.huge) | |
| 987 | gyro.P = gyro.P + 10000 | |
| 988 | local CF = Torso.CFrame | |
| 989 | gyro.cframe = CF | |
| 990 | gyro.Parent = Torso | |
| 991 | dmgcnnct(hitbox) | |
| 992 | ss(Head,1) | |
| 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 | ss(Head,1) | |
| 1000 | Hitdeb = 0 | |
| 1001 | for i = 0 , 1 , 0.1 do | |
| 1002 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 1003 | wait() | |
| 1004 | gyro.cframe = CF * CFrame.Angles(0,math.rad(-360*i),0) | |
| 1005 | effect("Really red",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
| |
| 1006 | end | |
| 1007 | dmgdc() | |
| 1008 | attacktype = 3 | |
| 1009 | coroutine.resume(coroutine.create(function () | |
| 1010 | wait(0.5) | |
| 1011 | attacktype = 1 | |
| 1012 | end)) | |
| 1013 | wait(0.15) | |
| 1014 | wait() | |
| 1015 | gyro.Parent = nil | |
| 1016 | attack=false | |
| 1017 | for i = 0 , 1 , 0.1 do | |
| 1018 | if not attack then | |
| 1019 | wait() | |
| 1020 | 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)) | |
| 1021 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90-90*i), math.rad(10-10*i), math.rad(0)) | |
| 1022 | 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)) | |
| 1023 | end | |
| 1024 | end | |
| 1025 | end | |
| 1026 | ||
| 1027 | function Combo1c() | |
| 1028 | attack=true | |
| 1029 | local bp = Instance.new("BodyPosition")
| |
| 1030 | bp.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1031 | bp.P = bp.P + 10000 | |
| 1032 | local CF = Torso.CFrame | |
| 1033 | bp.position = CF.p | |
| 1034 | bp.Parent = Torso | |
| 1035 | RWLFunc() | |
| 1036 | LWLFunc() | |
| 1037 | for zz = 1 , 2 do | |
| 1038 | local mesh = Instance.new("SpecialMesh")
| |
| 1039 | mesh.MeshType = "FileMesh" | |
| 1040 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 1041 | mesh.Scale = Vector3.new(10,5,10) * Vector3.new(0.01,0.01,0.01) | |
| 1042 | local shell = Instance.new("Part")
| |
| 1043 | mesh.Parent = shell | |
| 1044 | shell.Anchored = true | |
| 1045 | shell.formFactor = 1 | |
| 1046 | shell.Size = Vector3.new(1,1,1) | |
| 1047 | shell.CFrame = Torso.CFrame * CFrame.Angles(0,0.5*zz,0) + Vector3.new(0,-2.5,0) -- + shellspawn.CFrame.lookVector * 2 | |
| 1048 | shell.Parent = swordholder | |
| 1049 | shell.Transparency = 0 | |
| 1050 | shell.BrickColor = BrickColor.new("White")
| |
| 1051 | shell.CanCollide = false | |
| 1052 | coroutine.resume(coroutine.create(function() | |
| 1053 | for i = 0 , 1 , 0.05 do | |
| 1054 | wait() | |
| 1055 | mesh.Scale = Vector3.new(10,5,10) * Vector3.new(i,1,i) | |
| 1056 | shell.Transparency = 1*i | |
| 1057 | end | |
| 1058 | shell.Transparency = 1 | |
| 1059 | shell.Parent = nil | |
| 1060 | end)) | |
| 1061 | end | |
| 1062 | for i = 0 , 1 , 0.1 do | |
| 1063 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 1064 | wait() | |
| 1065 | 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)) | |
| 1066 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90-90*i), math.rad(10-10*i), math.rad(0)) | |
| 1067 | 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)) | |
| 1068 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 1069 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90-45*i)) * CFrame.new(0, 0, 0.2) | |
| 1070 | bp.position = CF.p + Vector3.new(0,10,0) | |
| 1071 | RWL.C0 = CFrame.new(1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-20*i), math.rad(0), math.rad(0)) | |
| 1072 | LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-20*i), math.rad(0), math.rad(0)) | |
| 1073 | prt8.Transparency = 1-1*i | |
| 1074 | effect("Really black",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
| |
| 1075 | end | |
| 1076 | cs(Head,1.5) | |
| 1077 | coroutine.resume(coroutine.create(function () | |
| 1078 | local tempmod = Instance.new("Model",swordholder)
| |
| 1079 | for l = 1 , 20 do | |
| 1080 | local meshz = Instance.new("SpecialMesh")
| |
| 1081 | meshz.Scale = Vector3.new(1.5,1.5,1.5) | |
| 1082 | meshz.MeshType = "Sphere" | |
| 1083 | local shellz = Instance.new("Part")
| |
| 1084 | meshz.Parent = shellz | |
| 1085 | shellz.Anchored = false | |
| 1086 | shellz.formFactor = 0 | |
| 1087 | shellz.Size = Vector3.new(1,1,1) | |
| 1088 | shellz.CFrame = hitbox.CFrame * CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15)) | |
| 1089 | shellz.Parent = tempmod | |
| 1090 | shellz.Transparency = 0.5 | |
| 1091 | shellz.BrickColor = BrickColor.new("Really black")
| |
| 1092 | shellz.CanCollide = false | |
| 1093 | shellz.Reflectance = 0 | |
| 1094 | local bv = Instance.new("BodyPosition")
| |
| 1095 | bv.Parent = shellz | |
| 1096 | bv.maxForce = Vector3.new(200000,200000,200000) | |
| 1097 | bv.position = shellz.Position | |
| 1098 | local hx = false | |
| 1099 | coroutine.resume(coroutine.create(function() | |
| 1100 | for i = 0 , 1 , 0.05 do | |
| 1101 | wait() | |
| 1102 | shellz.Transparency = 1-1*i | |
| 1103 | end | |
| 1104 | shellz.Transparency = 0 | |
| 1105 | end)) | |
| 1106 | coroutine.resume(coroutine.create(function() | |
| 1107 | wait(0.05) | |
| 1108 | bv.position = hitbox.Position | |
| 1109 | for i = 1 , 20 do | |
| 1110 | wait(0.1) | |
| 1111 | bv.position = shell.Position | |
| 1112 | end | |
| 1113 | shellz.Parent = nil | |
| 1114 | end)) | |
| 1115 | wait(0.01) | |
| 1116 | end | |
| 1117 | coroutine.resume(coroutine.create(function () | |
| 1118 | repeat wait() until hx | |
| 1119 | tempmod.Parent = nil | |
| 1120 | end)) | |
| 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,0) * CFrame.fromEulerAnglesXYZ(math.rad(190+20*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,0) * CFrame.fromEulerAnglesXYZ(math.rad(190+20*i),math.rad(0),math.rad(45)) | |
| 1128 | effect("Really black",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
| |
| 1129 | end | |
| 1130 | for i = 0 , 1 , 0.1 do | |
| 1131 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 1132 | wait() | |
| 1133 | 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)) | |
| 1134 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1135 | 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)) | |
| 1136 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 1137 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180*i), math.rad(45)) * CFrame.new(0, 0, 0.2) | |
| 1138 | bp.position = CF.p + CF.lookVector * 2.5 + Vector3.new(0,-1,0) | |
| 1139 | RWL.C0 = CFrame.new(1, -1+1*i, -1*i) * CFrame.fromEulerAnglesXYZ(math.rad(-20+20*i), math.rad(0), math.rad(0)) | |
| 1140 | LWL.C0 = CFrame.new(-1, -1+1*i, -1*i) * CFrame.fromEulerAnglesXYZ(math.rad(-20+20*i), math.rad(0), math.rad(0)) | |
| 1141 | effect("Really black",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
| |
| 1142 | end | |
| 1143 | hx = true | |
| 1144 | wait(0.1) | |
| 1145 | 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) | |
| 1146 | local effectsmsh = Instance.new("CylinderMesh")
| |
| 1147 | effectsmsh.Scale = Vector3.new(1,1,1) | |
| 1148 | local effectsg = Instance.new("Part")
| |
| 1149 | effectsg.formFactor = 3 | |
| 1150 | effectsg.CanCollide = false | |
| 1151 | effectsg.Name = "LAZOR" | |
| 1152 | effectsg.Locked = true | |
| 1153 | effectsg.Anchored = true | |
| 1154 | effectsg.Parent = swordholder | |
| 1155 | effectsmsh.Parent = effectsg | |
| 1156 | effectsg.BrickColor = BrickColor.new("Black")
| |
| 1157 | effectsg.Reflectance = 0.5 | |
| 1158 | local point1 = B | |
| 1159 | local point0 = A | |
| 1160 | for zz = 1 , 5 do | |
| 1161 | local mesh = Instance.new("SpecialMesh")
| |
| 1162 | mesh.MeshType = "FileMesh" | |
| 1163 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 1164 | mesh.Scale = Vector3.new(10,5,10) * Vector3.new(0.01,0.01,0.01) | |
| 1165 | local shell = Instance.new("Part")
| |
| 1166 | mesh.Parent = shell | |
| 1167 | shell.Anchored = true | |
| 1168 | shell.formFactor = 1 | |
| 1169 | shell.Size = Vector3.new(1,1,1) | |
| 1170 | shell.CFrame = CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /-2) + Torso.CFrame.lookVector * 2 | |
| 1171 | shell.CFrame = shell.CFrame * CFrame.Angles(math.rad(-90),0.5*zz,0) | |
| 1172 | shell.Parent = swordholder | |
| 1173 | shell.Transparency = 0 | |
| 1174 | if math.fmod(zz,2) == 0 then | |
| 1175 | shell.BrickColor = BrickColor.new("Really black")
| |
| 1176 | else | |
| 1177 | shell.BrickColor = BrickColor.new("Bright violet")
| |
| 1178 | end | |
| 1179 | shell.CanCollide = false | |
| 1180 | coroutine.resume(coroutine.create(function() | |
| 1181 | for i = 0 , 1 , 0.01 do | |
| 1182 | wait() | |
| 1183 | mesh.Scale = Vector3.new(10,5,10) * Vector3.new(i,1,i) | |
| 1184 | shell.Transparency = 1*i | |
| 1185 | end | |
| 1186 | shell.Transparency = 1 | |
| 1187 | shell.Parent = nil | |
| 1188 | end)) | |
| 1189 | end | |
| 1190 | for zz = 1 , 1 do | |
| 1191 | local mesh = Instance.new("SpecialMesh")
| |
| 1192 | mesh.MeshType = "Sphere" | |
| 1193 | mesh.Scale = Vector3.new(20,15,10) * Vector3.new(0.01,0.01,0.01) | |
| 1194 | local shell = Instance.new("Part")
| |
| 1195 | mesh.Parent = shell | |
| 1196 | shell.Anchored = true | |
| 1197 | shell.formFactor = 1 | |
| 1198 | shell.Size = Vector3.new(1,1,1) | |
| 1199 | shell.CFrame = CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /-2) + Torso.CFrame.lookVector * 10 | |
| 1200 | shell.CFrame = shell.CFrame * CFrame.Angles(math.rad(-90),0,0) | |
| 1201 | shell.Parent = swordholder | |
| 1202 | shell.Transparency = 0 | |
| 1203 | shell.BrickColor = BrickColor.new("Bright violet")
| |
| 1204 | shell.CanCollide = false | |
| 1205 | coroutine.resume(coroutine.create(function() | |
| 1206 | for i = 0 , 1 , 0.02 do | |
| 1207 | wait() | |
| 1208 | mesh.Scale = Vector3.new(10,15,15) * Vector3.new(i,1,i) | |
| 1209 | shell.CFrame = shell.CFrame * CFrame.Angles(0,i,0) | |
| 1210 | shell.Transparency = 1-1*i | |
| 1211 | end | |
| 1212 | for i = 0 , 1 , 0.05 do | |
| 1213 | wait() | |
| 1214 | shell.CFrame = shell.CFrame * CFrame.Angles(0,i,0) | |
| 1215 | shell.Transparency = 1*i | |
| 1216 | end | |
| 1217 | shell.Transparency = 1 | |
| 1218 | shell.Parent = nil | |
| 1219 | end)) | |
| 1220 | end | |
| 1221 | for zz = 1 , 1 do | |
| 1222 | local mesh = Instance.new("CylinderMesh")
| |
| 1223 | mesh.Scale = Vector3.new(20,0.5,10) * Vector3.new(0.01,0.01,0.01) | |
| 1224 | local shell = Instance.new("Part")
| |
| 1225 | mesh.Parent = shell | |
| 1226 | shell.Anchored = true | |
| 1227 | shell.formFactor = 1 | |
| 1228 | shell.Size = Vector3.new(1,1,1) | |
| 1229 | shell.CFrame = CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /-2) + Torso.CFrame.lookVector * -0.5 | |
| 1230 | shell.CFrame = shell.CFrame * CFrame.Angles(math.rad(-90),0,0) | |
| 1231 | shell.Parent = swordholder | |
| 1232 | shell.Transparency = 0 | |
| 1233 | shell.BrickColor = BrickColor.new("Bright violet")
| |
| 1234 | shell.CanCollide = false | |
| 1235 | coroutine.resume(coroutine.create(function() | |
| 1236 | for i = 0 , 1 , 0.02 do | |
| 1237 | wait() | |
| 1238 | mesh.Scale = Vector3.new(20,0.5,20) * Vector3.new(i,1,i) | |
| 1239 | shell.Transparency = 1-1*i | |
| 1240 | end | |
| 1241 | for i = 0 , 1 , 0.02 do | |
| 1242 | wait() | |
| 1243 | shell.Transparency = 1*i | |
| 1244 | end | |
| 1245 | shell.Transparency = 1 | |
| 1246 | shell.Parent = nil | |
| 1247 | end)) | |
| 1248 | end | |
| 1249 | for zz = 1 , 10 do | |
| 1250 | local mesh = Instance.new("SpecialMesh")
| |
| 1251 | mesh.MeshType = "FileMesh" | |
| 1252 | mesh.MeshId = "http://www.roblox.com/Asset/?id=9756362" | |
| 1253 | mesh.Scale = Vector3.new(5,5,5) * Vector3.new(0.01,0.01,0.01) | |
| 1254 | local shell = Instance.new("Part")
| |
| 1255 | mesh.Parent = shell | |
| 1256 | shell.Anchored = true | |
| 1257 | shell.formFactor = 1 | |
| 1258 | shell.Size = Vector3.new(1,1,1) | |
| 1259 | shell.CFrame = CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /2) | |
| 1260 | shell.CFrame = shell.CFrame * CFrame.Angles(math.rad(-90)+2*math.random(),2*math.random(),2*math.random()) | |
| 1261 | shell.Parent = swordholder | |
| 1262 | shell.Transparency = 0 | |
| 1263 | if math.fmod(zz,2) == 0 then | |
| 1264 | shell.BrickColor = BrickColor.new("Really black")
| |
| 1265 | else | |
| 1266 | shell.BrickColor = BrickColor.new("Bright violet")
| |
| 1267 | end | |
| 1268 | shell.CanCollide = false | |
| 1269 | coroutine.resume(coroutine.create(function() | |
| 1270 | for i = 0 , 1 , 0.01 do | |
| 1271 | wait() | |
| 1272 | mesh.Scale = Vector3.new(25,25,25) * Vector3.new(i,i,i) | |
| 1273 | shell.Transparency = 1*i | |
| 1274 | end | |
| 1275 | shell.Transparency = 1 | |
| 1276 | shell.Parent = nil | |
| 1277 | end)) | |
| 1278 | end | |
| 1279 | coroutine.resume(coroutine.create(function() | |
| 1280 | effectsg.Transparency = 1 | |
| 1281 | for i = 0 , 1 , 0.1 do | |
| 1282 | wait() | |
| 1283 | effectsg.Transparency = 1-1*i | |
| 1284 | end | |
| 1285 | wait(2) | |
| 1286 | for i = 0 , 1 , 0.1 do | |
| 1287 | wait() | |
| 1288 | effectsg.Transparency = 1*i | |
| 1289 | end | |
| 1290 | effectsg.Parent = nil | |
| 1291 | end)) | |
| 1292 | local mg = 100 | |
| 1293 | if Hit ~= nil then | |
| 1294 | mg = (point0-point1).magnitude | |
| 1295 | elseif Hit == nil then | |
| 1296 | mg = 100 | |
| 1297 | end | |
| 1298 | ls(Head,0.5) | |
| 1299 | ls(Head,0.75) | |
| 1300 | cs(Head,0.25) | |
| 1301 | ls(Head,1) | |
| 1302 | ls(Head,3) | |
| 1303 | cs(Head,0.15) | |
| 1304 | for mgg = 0 , 1,0.1 do | |
| 1305 | wait() | |
| 1306 | effectsg.Size = Vector3.new(5,(mg*mgg)+0.2,5) | |
| 1307 | local durr = CFrame.new((point0+(point1))/2,(point1)) | |
| 1308 | effectsg.CFrame = CFrame.new((point0+(point1-durr.lookVector * (mg*(1-mgg))))/2,(point1)) * CFrame.Angles(math.rad(90),0,0) | |
| 1309 | end | |
| 1310 | local critrandomizer = math.random(1,crtrate) | |
| 1311 | if critrandomizer ~= 1 then | |
| 1312 | local rndmdamage = math.random(mindamage+30,maxdamage+30) | |
| 1313 | AoEP((CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /2)).p,15,rndmdamage+darkboost,false) | |
| 1314 | elseif critrandomizer == 1 then | |
| 1315 | local rndmdamage = math.random(maxdamage+30,crtmaxdamage+30) | |
| 1316 | AoEP((CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /2)).p,15,rndmdamage+darkboost,true) | |
| 1317 | end | |
| 1318 | bp.Parent = nil | |
| 1319 | for i = 0 , 1 , 0.1 do | |
| 1320 | wait() | |
| 1321 | RW.C0 = CFrame.new(1,1-0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(90-45*i), math.rad(-45)) | |
| 1322 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1323 | LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45*i),math.rad(45)) | |
| 1324 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 1325 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180-180*i), math.rad(45+45*i)) * CFrame.new(0, 0, 0.2) | |
| 1326 | RWL.C0 = CFrame.new(1, -1*i, -1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1327 | LWL.C0 = CFrame.new(-1, -1*i, -1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1328 | prt8.Transparency = 1*i | |
| 1329 | end | |
| 1330 | for ii = 1 , #AoETrue do | |
| 1331 | table.remove(AoETrue,#AoETrue) | |
| 1332 | end | |
| 1333 | RWLRem() | |
| 1334 | LWLRem() | |
| 1335 | attack = false | |
| 1336 | attacktype = 1 | |
| 1337 | end | |
| 1338 | function BlizzardSword() | |
| 1339 | attack=true | |
| 1340 | for i = 0 , 1 , 0.2 do | |
| 1341 | wait() | |
| 1342 | 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)) | |
| 1343 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1344 | 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)) | |
| 1345 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0) | |
| 1346 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90-45*i)) * CFrame.new(0, 0, 0.2) | |
| 1347 | end | |
| 1348 | local wssave = Character.Humanoid.WalkSpeed | |
| 1349 | Character.Humanoid.WalkSpeed = 0 | |
| 1350 | ss(Head,1.5) | |
| 1351 | local efftab = {}
| |
| 1352 | for i = 0 , 1 , 0.2 do | |
| 1353 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 1354 | wait() | |
| 1355 | 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)) | |
| 1356 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1357 | 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)) | |
| 1358 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0) | |
| 1359 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(45)) * CFrame.new(0, 0, 0.2) | |
| 1360 | local eff = effect("Bright blue",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0),true)
| |
| 1361 | table.insert(efftab,eff) | |
| 1362 | end | |
| 1363 | local trspos = Torso.Position | |
| 1364 | Character.Humanoid.WalkSpeed = wssave | |
| 1365 | for _,efff in pairs(efftab) do | |
| 1366 | wait() | |
| 1367 | coroutine.resume(coroutine.create(function() | |
| 1368 | for i = 0 , 1 , 0.15 do | |
| 1369 | wait() | |
| 1370 | efff.Transparency = 1*i | |
| 1371 | end | |
| 1372 | wait() | |
| 1373 | efff.Transparency = 1 | |
| 1374 | end)) | |
| 1375 | end | |
| 1376 | for io,eff in pairs(efftab) do | |
| 1377 | wait() | |
| 1378 | for zz = 1 , 1 do | |
| 1379 | local mesh = Instance.new("CylinderMesh")
| |
| 1380 | mesh.Scale = Vector3.new(0.1,0.5,0.1) | |
| 1381 | local shell = Instance.new("Part")
| |
| 1382 | mesh.Parent = shell | |
| 1383 | shell.Anchored = true | |
| 1384 | shell.formFactor = 1 | |
| 1385 | shell.Size = Vector3.new(1,1,1) | |
| 1386 | local dur = CFrame.new(trspos,eff.Position) | |
| 1387 | local CF1 = dur * CFrame.Angles(math.rad(90),0,0) * CFrame.new(0,-6,0) | |
| 1388 | shell.CFrame = CF1 | |
| 1389 | shell.Parent = eff | |
| 1390 | shell.Transparency = 1 | |
| 1391 | shell.Reflectance = 0.25 | |
| 1392 | shell.BrickColor = BrickColor.new("Bright blue")
| |
| 1393 | shell.CanCollide = false | |
| 1394 | is(shell,0.5) | |
| 1395 | coroutine.resume(coroutine.create(function() | |
| 1396 | for i = 0 , 1 , 0.1 do | |
| 1397 | wait() | |
| 1398 | shell.Transparency = 1-1*i | |
| 1399 | mesh.Scale = Vector3.new(0.1+4.9*i,0.5,0.1+4.9*i) | |
| 1400 | end | |
| 1401 | wait(0.25) | |
| 1402 | for i = 0 , 1 , 0.1 do | |
| 1403 | wait() | |
| 1404 | shell.Transparency = 1*i | |
| 1405 | mesh.Scale = Vector3.new(5-5*i,0.5-0.5*i,5-5*i) | |
| 1406 | end | |
| 1407 | shell.Parent = nil | |
| 1408 | end)) | |
| 1409 | end | |
| 1410 | end | |
| 1411 | for io,eff in pairs(efftab) do | |
| 1412 | wait() | |
| 1413 | for zz = 1 , 1 do | |
| 1414 | local mesh = Instance.new("SpecialMesh")
| |
| 1415 | mesh.MeshType = "FileMesh" | |
| 1416 | mesh.Scale = Vector3.new(5,2,1) | |
| 1417 | mesh.MeshId = "rbxasset://fonts/sword.mesh" | |
| 1418 | local shell = Instance.new("Part")
| |
| 1419 | mesh.Parent = shell | |
| 1420 | shell.Anchored = true | |
| 1421 | shell.formFactor = 1 | |
| 1422 | shell.Size = Vector3.new(2,2,5) | |
| 1423 | local dur = CFrame.new(trspos,eff.Position) | |
| 1424 | local CF1 = dur * CFrame.Angles(math.rad(180),0,0) * CFrame.new(0,0,6.5)* CFrame.Angles(0,0,math.rad(90)) | |
| 1425 | shell.CFrame = CF1 | |
| 1426 | shell.Parent = eff | |
| 1427 | shell.Transparency = 1 | |
| 1428 | shell.Reflectance = 0.25 | |
| 1429 | shell.BrickColor = BrickColor.new("Bright blue")
| |
| 1430 | shell.CanCollide = false | |
| 1431 | local hitd = 0 | |
| 1432 | coroutine.resume(coroutine.create(function() | |
| 1433 | local dd = false | |
| 1434 | while shell.Parent ~= nil and not dd do | |
| 1435 | wait() | |
| 1436 | local c = game.Workspace:GetChildren(); | |
| 1437 | for i = 1, #c do | |
| 1438 | local hum = c[i]:findFirstChild("Humanoid")
| |
| 1439 | if hum ~= nil and hum.Health ~= 0 then | |
| 1440 | local head = c[i]:findFirstChild("Torso");
| |
| 1441 | if head ~= nil then | |
| 1442 | local targ = head.Position - shell.Position; | |
| 1443 | local mag = targ.magnitude; | |
| 1444 | if mag <= 3 and c[i].Name ~= Player.Name then | |
| 1445 | dd = true | |
| 1446 | local critrandomizer = math.random(1,crtrate) | |
| 1447 | if critrandomizer ~= 1 then | |
| 1448 | local rndmdamage = math.random(mindamage+iceboost,maxdamage+iceboost) | |
| 1449 | damagesplat(rndmdamage,head,false) | |
| 1450 | hum:TakeDamage(rndmdamage) | |
| 1451 | elseif critrandomizer == 1 then | |
| 1452 | local rndmdamage = math.random(maxdamage+iceboost,crtmaxdamage+iceboost) | |
| 1453 | damagesplat(rndmdamage,head,true) | |
| 1454 | hum:TakeDamage(rndmdamage) | |
| 1455 | end | |
| 1456 | end | |
| 1457 | end | |
| 1458 | end | |
| 1459 | end | |
| 1460 | end | |
| 1461 | end)) | |
| 1462 | coroutine.resume(coroutine.create(function() | |
| 1463 | uss(eff,1) | |
| 1464 | ||
| 1465 | for i = 0 , 1 , 0.1 do | |
| 1466 | wait() | |
| 1467 | shell.Transparency = 1-1*i | |
| 1468 | CF1 = dur * CFrame.Angles(math.rad(180),0,0) * CFrame.new(0,0,6.5+2*i)* CFrame.Angles(0,0,math.rad(90)) | |
| 1469 | shell.CFrame = CF1 | |
| 1470 | mesh.Scale = Vector3.new(5,2,1+0.5*i) | |
| 1471 | end | |
| 1472 | wait(0.25) | |
| 1473 | ss(eff,2) | |
| 1474 | for i = 0 , 1 , 0.1 do | |
| 1475 | wait() | |
| 1476 | shell.Transparency = 1*i | |
| 1477 | CF1 = dur * CFrame.Angles(math.rad(180),0,0) * CFrame.new(0,0,8.5+25*i)* CFrame.Angles(0,0,math.rad(90)) | |
| 1478 | shell.CFrame = CF1 | |
| 1479 | mesh.Scale = Vector3.new(5-5*i,2-2*i,1.5-1.5*i*i) | |
| 1480 | end | |
| 1481 | shell.Parent = nil | |
| 1482 | end)) | |
| 1483 | end | |
| 1484 | end | |
| 1485 | coroutine.resume(coroutine.create(function() | |
| 1486 | wait(1.5) | |
| 1487 | for _,eff in pairs(efftab) do | |
| 1488 | wait() | |
| 1489 | eff.Parent = nil | |
| 1490 | end end)) | |
| 1491 | for i = 0 , 1 , 0.1 do | |
| 1492 | wait() | |
| 1493 | RW.C0 = CFrame.new(1,0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80*i), math.rad(45*i), math.rad(-45)) | |
| 1494 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1495 | LW.C0 = CFrame.new(-1,0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80*i),math.rad(-45*i),math.rad(45)) | |
| 1496 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0) | |
| 1497 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(45+45*i)) * CFrame.new(0, 0, 0.2) | |
| 1498 | end | |
| 1499 | attack=false | |
| 1500 | end | |
| 1501 | local FTCount = 0 | |
| 1502 | function FlameTrail() | |
| 1503 | attack=true | |
| 1504 | for i = 0 , 1 , 0.15 do | |
| 1505 | wait() | |
| 1506 | 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)) | |
| 1507 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45*i), math.rad(0), math.rad(0)) | |
| 1508 | 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)) | |
| 1509 | end | |
| 1510 | wait(0.1) | |
| 1511 | ss(Head,1.5) | |
| 1512 | fs(Head,0.5+1.5*math.random()) | |
| 1513 | local efftab = {}
| |
| 1514 | RW.C0 = CFrame.new(0.5,0.5,-1) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(10)) | |
| 1515 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45), math.rad(0), math.rad(0)) | |
| 1516 | LW.C0 = CFrame.new(-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(65)) | |
| 1517 | dmgcnnct(hitbox) | |
| 1518 | for i = 0 , 1 , 0.15 do | |
| 1519 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 1520 | wait() | |
| 1521 | RW.C0 = CFrame.new(0.5+1*i,0.5,-1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(10)) | |
| 1522 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45+135*i*i), math.rad(0), math.rad(0)) | |
| 1523 | 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)) | |
| 1524 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0) | |
| 1525 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180*i), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 1526 | if FTCount <= MaxFT then | |
| 1527 | local eff = effect("Bright red",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0),true)
| |
| 1528 | eff.Transparency = 1 | |
| 1529 | table.insert(efftab,eff) | |
| 1530 | FTCount = FTCount + 1 | |
| 1531 | OTND(eff) | |
| 1532 | coroutine.resume(coroutine.create(function() | |
| 1533 | for i = 0 , 1 , 0.15 do | |
| 1534 | wait() | |
| 1535 | eff.Transparency = 1-0.5*i | |
| 1536 | end | |
| 1537 | wait() | |
| 1538 | eff.Transparency = 0.5 | |
| 1539 | end)) | |
| 1540 | end | |
| 1541 | end | |
| 1542 | local rndmneg = math.random(1,2) | |
| 1543 | if rndmneg == 1 then | |
| 1544 | rndmdec1 = 13 * math.random() | |
| 1545 | else | |
| 1546 | rndmdec1 = -13 * math.random() | |
| 1547 | end | |
| 1548 | for i = 0 , 1 , 0.1 do | |
| 1549 | wait() | |
| 1550 | 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)) | |
| 1551 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90+20*i), math.rad(0), math.rad(0)) | |
| 1552 | LW.C0 = CFrame.new(-1.5,0.5,-0) * CFrame.fromEulerAnglesXYZ(math.rad(100),math.rad(-45),math.rad(-90)) | |
| 1553 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0) | |
| 1554 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 1555 | end | |
| 1556 | ss(Head,1.5) | |
| 1557 | fs(Head,0.5+1.5*math.random()) | |
| 1558 | Hitdeb = 0 | |
| 1559 | for i = 0 , 1 , 0.15 do | |
| 1560 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 1561 | wait() | |
| 1562 | 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))) | |
| 1563 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(110-200*i), math.rad(0), math.rad(0)) | |
| 1564 | 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)) | |
| 1565 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0) | |
| 1566 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180-180*i), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 1567 | if FTCount <= MaxFT then | |
| 1568 | local eff = effect("Bright red",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0),true)
| |
| 1569 | eff.Transparency = 1 | |
| 1570 | table.insert(efftab,eff) | |
| 1571 | FTCount = FTCount + 1 | |
| 1572 | OTND(eff) | |
| 1573 | coroutine.resume(coroutine.create(function() | |
| 1574 | for i = 0 , 1 , 0.15 do | |
| 1575 | wait() | |
| 1576 | eff.Transparency = 1-0.5*i | |
| 1577 | end | |
| 1578 | wait() | |
| 1579 | eff.Transparency = 0.5 | |
| 1580 | end)) | |
| 1581 | end | |
| 1582 | end | |
| 1583 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 1584 | for i = 0 , 1 , 0.2 do | |
| 1585 | wait() | |
| 1586 | local rndmd = rndmdec1-rndmdec1*i | |
| 1587 | RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(math.rad((90-rndmd)), math.rad(90), math.rad((10-(rndmd*2))-20*i)) | |
| 1588 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-90-10*i), math.rad(0), math.rad(0)) | |
| 1589 | LW.C0 = CFrame.new(-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),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(0), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 1592 | end | |
| 1593 | for i = 0 , 1 , 0.1 do | |
| 1594 | wait() | |
| 1595 | 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)) | |
| 1596 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-100+100*i), math.rad(0), math.rad(0)) | |
| 1597 | 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)) | |
| 1598 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0) | |
| 1599 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180*i), math.rad(90-45*i)) * CFrame.new(0, 0, 0.2) | |
| 1600 | end | |
| 1601 | ss(Head,1.5) | |
| 1602 | fs(Head,0.5+1.5*math.random()) | |
| 1603 | wait(0.1) | |
| 1604 | Hitdeb = 0 | |
| 1605 | for i = 0 , 1 , 0.2 do | |
| 1606 | LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 1607 | wait() | |
| 1608 | RW.C0 = CFrame.new(1,0.5+1*i,-1) * CFrame.fromEulerAnglesXYZ(math.rad(70+65*i), math.rad(0), math.rad(-45)) | |
| 1609 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1610 | LW.C0 = CFrame.new(-1,0.5+1*i,-1) * CFrame.fromEulerAnglesXYZ(math.rad(70+65*i),math.rad(0),math.rad(45)) | |
| 1611 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0) | |
| 1612 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180-180*i), math.rad(45)) * CFrame.new(0, 0, 0.2) | |
| 1613 | if FTCount <= MaxFT then | |
| 1614 | local eff = effect("Bright red",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0),true)
| |
| 1615 | eff.Transparency = 1 | |
| 1616 | table.insert(efftab,eff) | |
| 1617 | FTCount = FTCount + 1 | |
| 1618 | OTND(eff) | |
| 1619 | coroutine.resume(coroutine.create(function() | |
| 1620 | for i = 0 , 1 , 0.15 do | |
| 1621 | wait() | |
| 1622 | eff.Transparency = 1-0.5*i | |
| 1623 | end | |
| 1624 | wait() | |
| 1625 | eff.Transparency = 0.5 | |
| 1626 | end)) | |
| 1627 | end | |
| 1628 | end | |
| 1629 | coroutine.resume(coroutine.create(function() | |
| 1630 | wait(5) | |
| 1631 | for _,eff in pairs(efftab) do | |
| 1632 | wait() | |
| 1633 | eff.Parent = nil | |
| 1634 | FTCount = FTCount - 1 | |
| 1635 | end end)) | |
| 1636 | for i = 0 , 1 , 0.1 do | |
| 1637 | wait() | |
| 1638 | 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)) | |
| 1639 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1640 | 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)) | |
| 1641 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0) | |
| 1642 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(45+45*i)) * CFrame.new(0, 0, 0.2) | |
| 1643 | end | |
| 1644 | dmgdc() | |
| 1645 | attack=false | |
| 1646 | end | |
| 1647 | ||
| 1648 | ||
| 1649 | function LifeDrain() | |
| 1650 | attack=true | |
| 1651 | for i = 0 , 1 , 0.1 do | |
| 1652 | wait() | |
| 1653 | 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)) | |
| 1654 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90*i), math.rad(0)) | |
| 1655 | 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)) | |
| 1656 | LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90*i), math.rad(0)) | |
| 1657 | w1.C1 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 0,0) | |
| 1658 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 1659 | end | |
| 1660 | ------ | |
| 1661 | local nrmag = 50 | |
| 1662 | local nrprsn = nil | |
| 1663 | wait() | |
| 1664 | -- | |
| 1665 | local c = game.Workspace:GetChildren(); | |
| 1666 | for i = 1, #c do | |
| 1667 | local hum = c[i]:findFirstChild("Humanoid")
| |
| 1668 | if hum ~= nil and hum.Health ~= 0 then | |
| 1669 | local head = c[i]:findFirstChild("Torso");
| |
| 1670 | if head ~= nil then | |
| 1671 | local targ = head.Position - Torso.Position; | |
| 1672 | local mag = targ.magnitude; | |
| 1673 | if mag <= 50 and c[i].Name ~= Player.Name then | |
| 1674 | if mag < nrmag then | |
| 1675 | nrmag = mag | |
| 1676 | nrprsn = c[i] | |
| 1677 | end | |
| 1678 | end end end end | |
| 1679 | -- | |
| 1680 | if nrprsn == nil then | |
| 1681 | attack = false | |
| 1682 | return end | |
| 1683 | local C = 0 | |
| 1684 | local bp = Instance.new("BodyPosition")
| |
| 1685 | local bg = Instance.new("BodyGyro")
| |
| 1686 | bp.Parent = Torso | |
| 1687 | bp.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1688 | bp.P = bp.P + 10000 | |
| 1689 | local CF = nrprsn.Torso.CFrame | |
| 1690 | bp.position = CF.p + CFrame.new(Torso.Position,CF.p).lookVector * -3 | |
| 1691 | bg.Parent = Torso | |
| 1692 | bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge) | |
| 1693 | bg.P = bg.P + 100000 | |
| 1694 | bg.cframe = CFrame.new(Torso.Position,CF.p) * CFrame.Angles(math.rad(0),0,0) | |
| 1695 | ss(Head,2) | |
| 1696 | wait(0.1) | |
| 1697 | local FirstP = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 1698 | local LastP = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 1699 | for i = 0 , 1 , 0.2 do | |
| 1700 | wait() | |
| 1701 | C = C + 1 | |
| 1702 | 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)) | |
| 1703 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90), math.rad(0)) | |
| 1704 | 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)) | |
| 1705 | LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90), math.rad(0)) | |
| 1706 | w1.C1 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 0,0) | |
| 1707 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90*i), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 1708 | if C == 3 then | |
| 1709 | bp.P = bp.P + 10000 | |
| 1710 | bp.position = CF.p + CFrame.new(Torso.Position,CF.p).lookVector * 6 | |
| 1711 | bg.cframe = CFrame.new(Torso.Position,CF.p) * CFrame.Angles(math.rad(-45),0,0) | |
| 1712 | end | |
| 1713 | if C == 2 then | |
| 1714 | FirstP = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 1715 | elseif C == 5 then | |
| 1716 | LastP = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0) | |
| 1717 | end | |
| 1718 | end | |
| 1719 | local effectsmsh = Instance.new("SpecialMesh")
| |
| 1720 | effectsmsh.Scale = Vector3.new(5,1,5) | |
| 1721 | effectsmsh.MeshType = "Sphere" | |
| 1722 | local effectsg = Instance.new("Part")
| |
| 1723 | effectsg.formFactor = 3 | |
| 1724 | effectsg.CanCollide = false | |
| 1725 | effectsg.Name = "Eff" | |
| 1726 | effectsg.Locked = true | |
| 1727 | effectsg.Anchored = true | |
| 1728 | effectsg.Size = Vector3.new(0.2,1,0.2) | |
| 1729 | effectsg.Parent = swordholder | |
| 1730 | effectsmsh.Parent = effectsg | |
| 1731 | effectsg.BrickColor = BrickColor.new("White")
| |
| 1732 | effectsg.Reflectance = Ref | |
| 1733 | local point1 = FirstP | |
| 1734 | local LP = LastP | |
| 1735 | local mg = (LP.p - point1.p).magnitude | |
| 1736 | effectsg.Size = Vector3.new(0.2,mg,0.2) | |
| 1737 | effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0) | |
| 1738 | if returnn then return effectsg end | |
| 1739 | coroutine.resume(coroutine.create(function() | |
| 1740 | if not returnn then | |
| 1741 | for i = 0 , 1 , 0.1 do | |
| 1742 | wait() | |
| 1743 | effectsg.Transparency = 1*i | |
| 1744 | end | |
| 1745 | wait() | |
| 1746 | effectsg.Parent = nil | |
| 1747 | end | |
| 1748 | end)) | |
| 1749 | local critrandomizer = math.random(1,crtrate) | |
| 1750 | local rndmdamage = 0 | |
| 1751 | if critrandomizer ~= 1 then | |
| 1752 | rndmdamage = math.random(mindamage,maxdamage) | |
| 1753 | damagesplat(rndmdamage,nrprsn.Head,false) | |
| 1754 | nrprsn.Humanoid:TakeDamage(rndmdamage) | |
| 1755 | elseif critrandomizer == 1 then | |
| 1756 | rndmdamage = math.random(maxdamage,crtmaxdamage) | |
| 1757 | damagesplat(rndmdamage,nrprsn.Head,true) | |
| 1758 | nrprsn.Humanoid:TakeDamage(rndmdamage) | |
| 1759 | end | |
| 1760 | local tempmod = Instance.new("Model",Workspace)
| |
| 1761 | for l = 1 , rndmdamage/5 do | |
| 1762 | local meshz = Instance.new("SpecialMesh")
| |
| 1763 | meshz.Scale = Vector3.new(1.5,1.5,1.5) | |
| 1764 | meshz.MeshType = "Sphere" | |
| 1765 | local shellz = Instance.new("Part")
| |
| 1766 | meshz.Parent = shellz | |
| 1767 | shellz.Anchored = false | |
| 1768 | shellz.formFactor = 0 | |
| 1769 | shellz.Size = Vector3.new(1,1,1) | |
| 1770 | shellz.CFrame = hitbox.CFrame | |
| 1771 | shellz.Parent = tempmod | |
| 1772 | shellz.Transparency = 0.5 | |
| 1773 | shellz.BrickColor = BrickColor.new("White")
| |
| 1774 | shellz.CanCollide = false | |
| 1775 | shellz.Reflectance = 0 | |
| 1776 | local bv = Instance.new("BodyPosition")
| |
| 1777 | bv.Parent = shellz | |
| 1778 | bv.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1779 | bv.P = bv.P + 10000 | |
| 1780 | bv.position = shellz.Position + Vector3.new(math.random(-25,25),math.random(-2.5,7.5),math.random(-25,25)) | |
| 1781 | coroutine.resume(coroutine.create(function() | |
| 1782 | wait(3) | |
| 1783 | bv.maxForce = Vector3.new(0,math.huge,0) | |
| 1784 | coroutine.resume(coroutine.create(function() | |
| 1785 | local dd = false | |
| 1786 | while shellz.Transparency ~= 1 and not dd do | |
| 1787 | wait(0.1) | |
| 1788 | local cc = game.Workspace:GetChildren(); | |
| 1789 | for i = 1, #c do | |
| 1790 | local hum = cc[i]:findFirstChild("Humanoid")
| |
| 1791 | if hum ~= nil and hum.Health ~= 0 then | |
| 1792 | local head = cc[i]:findFirstChild("Head");
| |
| 1793 | if head ~= nil then | |
| 1794 | local targ = head.Position - shellz.Position; | |
| 1795 | local mag = targ.magnitude; | |
| 1796 | if mag <= 5 then | |
| 1797 | dd = true | |
| 1798 | damagesplat(5+darkboost,head,false) | |
| 1799 | hum.Health = hum.Health + 5 + darkboost | |
| 1800 | for i = 0 , 1 , 0.05 do | |
| 1801 | wait() | |
| 1802 | shellz.Transparency = 1*i | |
| 1803 | end | |
| 1804 | shellz.Parent = nil | |
| 1805 | end | |
| 1806 | end | |
| 1807 | end | |
| 1808 | end | |
| 1809 | end | |
| 1810 | end)) | |
| 1811 | ||
| 1812 | end)) | |
| 1813 | local hx = false | |
| 1814 | coroutine.resume(coroutine.create(function() | |
| 1815 | for i = 0 , 1 , 0.05 do | |
| 1816 | wait() | |
| 1817 | shellz.Transparency = 1-1*i | |
| 1818 | end | |
| 1819 | shellz.Transparency = 0 | |
| 1820 | end)) | |
| 1821 | coroutine.resume(coroutine.create(function() | |
| 1822 | wait(60) | |
| 1823 | for ii,shellz in pairs(tempmod:GetChildren()) do | |
| 1824 | for i = 0 , 1 , 0.1 do | |
| 1825 | wait() | |
| 1826 | shellz.Transparency = 1*i | |
| 1827 | end | |
| 1828 | shellz.Parent = nil | |
| 1829 | end | |
| 1830 | tempmod.Parent = nil | |
| 1831 | end)) | |
| 1832 | end | |
| 1833 | wait(0.5) | |
| 1834 | ---- | |
| 1835 | RW.C0 = CFrame.new(1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(45), math.rad(-45)) | |
| 1836 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1837 | LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45)) | |
| 1838 | LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1839 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 1840 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 1841 | attack=false | |
| 1842 | bp.Parent = nil bg.Parent = nil | |
| 1843 | end | |
| 1844 | ||
| 1845 | ||
| 1846 | --TEST | |
| 1847 | ||
| 1848 | hammer = Torso | |
| 1849 | ||
| 1850 | function doDamage(hit) | |
| 1851 | local humanoid = hit.Parent:findFirstChild("Humanoid")
| |
| 1852 | local hum = Player.Character:findFirstChild("Humanoid") -- non-nil if tool held by a character
| |
| 1853 | if humanoid~=nil and humanoid ~= hum and hum ~= nil then | |
| 1854 | local foundd = false | |
| 1855 | for ii = 1 , #AoETrue do | |
| 1856 | if AoETrue[ii] == hit.Parent.Name then | |
| 1857 | foundd = true | |
| 1858 | end | |
| 1859 | end | |
| 1860 | if foundd then | |
| 1861 | end | |
| 1862 | -- | |
| 1863 | if not foundd then | |
| 1864 | humanoid:TakeDamage(5) | |
| 1865 | if Mode == "Fire" then | |
| 1866 | end | |
| 1867 | damagesplat(5,humanoid.Parent.Torso,false) | |
| 1868 | table.insert(AoETrue,hit.Parent) | |
| 1869 | end | |
| 1870 | ||
| 1871 | if humanoid.Health <= 0 then | |
| 1872 | local c = hit.CFrame | |
| 1873 | hit.CFrame = CFrame.new(hit.Position) | |
| 1874 | hit.CFrame = c | |
| 1875 | end | |
| 1876 | delay(1, function() end) | |
| 1877 | else | |
| 1878 | local c = hit.CFrame hit.CFrame = CFrame.new(hit.Position) hit.CFrame = c | |
| 1879 | end | |
| 1880 | end | |
| 1881 | function bewm(obj, pos, notme) | |
| 1882 | if (obj ~= notme) then | |
| 1883 | if (obj.className == "Part") or (obj.className == "Seat") then | |
| 1884 | 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 | |
| 1885 | 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) | |
| 1886 | end | |
| 1887 | elseif (obj.className == "Model") or (obj.className == "Hat") or (obj.className == "Tool") or (obj == workspace) then | |
| 1888 | local list = obj:GetChildren() | |
| 1889 | for x = 1, #list do | |
| 1890 | bewm(list[x], pos, notme) | |
| 1891 | end | |
| 1892 | end | |
| 1893 | end | |
| 1894 | end | |
| 1895 | ||
| 1896 | function attackr() | |
| 1897 | local shockRing = Instance.new("Part")
| |
| 1898 | shockRing.formFactor = 2 | |
| 1899 | shockRing.Size = Vector3.new(1, 0.4, 1) | |
| 1900 | shockRing.Anchored = true | |
| 1901 | shockRing.Locked = true | |
| 1902 | shockRing.CanCollide = false | |
| 1903 | shockRing.archivable = false | |
| 1904 | shockRing.TopSurface = 0 | |
| 1905 | shockRing.BottomSurface = 0 | |
| 1906 | shockRing.Transparency = 0 | |
| 1907 | if Mode == "Fire" then | |
| 1908 | shockRing.BrickColor = BrickColor.new("Really red")
| |
| 1909 | elseif Mode == "Dark" then | |
| 1910 | shockRing.BrickColor = BrickColor.new("Bright violet")
| |
| 1911 | elseif Mode == "Ice" then | |
| 1912 | shockRing.BrickColor = BrickColor.new("Bright blue")
| |
| 1913 | shockRing.Reflectance = 0.2 | |
| 1914 | end | |
| 1915 | local decal = Instance.new("CylinderMesh")
| |
| 1916 | decal.Parent = shockRing | |
| 1917 | decal.Scale = Vector3.new(1,0.1,1) | |
| 1918 | wait(0.2) | |
| 1919 | local pos = hammer.CFrame * (Vector3.new(0, -2.5, 0)) | |
| 1920 | bewm(game.Workspace, pos, Player.Character) | |
| 1921 | shockRing.CFrame = CFrame.new(pos) | |
| 1922 | for x = 0, 1 , 0.0625 do | |
| 1923 | 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) | |
| 1924 | end | |
| 1925 | delay(1, function() | |
| 1926 | shockRing.Parent = nil | |
| 1927 | for ii = 1 , #AoETrue do | |
| 1928 | table.remove(AoETrue,#AoETrue) | |
| 1929 | end end) | |
| 1930 | end | |
| 1931 | local modemodel = Instance.new("Model",swordholder)
| |
| 1932 | local mrdychng = false | |
| 1933 | function FireMode() | |
| 1934 | attack=true | |
| 1935 | Mode = "Fire" | |
| 1936 | fireboost = 5 | |
| 1937 | mrdychng = true | |
| 1938 | for i = 0 , 1 , 0.1 do | |
| 1939 | wait() | |
| 1940 | 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)) | |
| 1941 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1942 | 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)) | |
| 1943 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 1944 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180*i), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 1945 | end | |
| 1946 | cs(Head,1.5) | |
| 1947 | local tempmod = Instance.new("Model",swordholder)
| |
| 1948 | for l = 1 , 20 do | |
| 1949 | local meshz = Instance.new("SpecialMesh")
| |
| 1950 | meshz.Scale = Vector3.new(0.5,0.5,0.5) | |
| 1951 | meshz.MeshType = "Sphere" | |
| 1952 | local shellz = Instance.new("Part")
| |
| 1953 | meshz.Parent = shellz | |
| 1954 | shellz.Anchored = false | |
| 1955 | shellz.formFactor = 0 | |
| 1956 | shellz.Size = Vector3.new(1,1,1) | |
| 1957 | shellz.CFrame = hitbox.CFrame * CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)) | |
| 1958 | shellz.Parent = tempmod | |
| 1959 | shellz.Transparency = 0.5 | |
| 1960 | shellz.BrickColor = BrickColor.new("Really red")
| |
| 1961 | shellz.CanCollide = false | |
| 1962 | shellz.Reflectance = 0 | |
| 1963 | local bv = Instance.new("BodyPosition")
| |
| 1964 | bv.Parent = shellz | |
| 1965 | bv.maxForce = Vector3.new(200000,200000,200000) | |
| 1966 | bv.position = shellz.Position | |
| 1967 | coroutine.resume(coroutine.create(function() | |
| 1968 | for i = 0 , 1 , 0.025 do | |
| 1969 | wait() | |
| 1970 | shellz.Transparency = 1-1*i | |
| 1971 | end | |
| 1972 | shellz.Transparency = 0 | |
| 1973 | end)) | |
| 1974 | coroutine.resume(coroutine.create(function() | |
| 1975 | wait(0.05) | |
| 1976 | bv.position = hitbox.Position | |
| 1977 | for i = 1 , 20 do | |
| 1978 | wait(0.1) | |
| 1979 | bv.position = shell.Position | |
| 1980 | end | |
| 1981 | shellz.Parent = nil | |
| 1982 | end)) | |
| 1983 | wait(0.01) | |
| 1984 | end | |
| 1985 | coroutine.resume(coroutine.create(function () | |
| 1986 | wait(0.25) | |
| 1987 | tempmod.Parent = nil | |
| 1988 | end)) | |
| 1989 | for i = 0 , 1 , 0.2 do | |
| 1990 | wait() | |
| 1991 | RW.C0 = CFrame.new(1.5,1.5-1*i,0) * CFrame.fromEulerAnglesXYZ(math.rad(135-45*i), math.rad(0), math.rad(0)) | |
| 1992 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1993 | LW.C0 = CFrame.new(0,1.5-1*i,-1) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(110-45*i)) | |
| 1994 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 1995 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 1996 | end | |
| 1997 | bs(Head,0.75) | |
| 1998 | attackr() | |
| 1999 | for zz = 1 , 1 do | |
| 2000 | local mesh = Instance.new("SpecialMesh")
| |
| 2001 | mesh.MeshType = "FileMesh" | |
| 2002 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 2003 | mesh.Scale = Vector3.new(10,5,10) * Vector3.new(0.01,0.01,0.01) | |
| 2004 | local shell = Instance.new("Part")
| |
| 2005 | mesh.Parent = shell | |
| 2006 | shell.Anchored = true | |
| 2007 | shell.formFactor = 1 | |
| 2008 | shell.Size = Vector3.new(1,1,1) | |
| 2009 | shell.CFrame = Torso.CFrame * CFrame.new(0,-1.5,0) | |
| 2010 | shell.Parent = swordholder | |
| 2011 | shell.Transparency = 0 | |
| 2012 | shell.BrickColor = BrickColor.new("Really red")
| |
| 2013 | shell.CanCollide = false | |
| 2014 | coroutine.resume(coroutine.create(function() | |
| 2015 | for i = 0 , 1 , 0.075 do | |
| 2016 | wait() | |
| 2017 | mesh.Scale = Vector3.new(20,5,20) * Vector3.new(i,1,i) | |
| 2018 | shell.Transparency = 1*i | |
| 2019 | end | |
| 2020 | shell.Transparency = 1 | |
| 2021 | shell.Parent = nil | |
| 2022 | end)) | |
| 2023 | end | |
| 2024 | for zz = 1 , 1 do | |
| 2025 | local mesh = Instance.new("SpecialMesh")
| |
| 2026 | mesh.MeshType = "FileMesh" | |
| 2027 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 2028 | mesh.Scale = Vector3.new(10,20,10) * Vector3.new(0.01,0.01,0.01) | |
| 2029 | local shell = Instance.new("Part")
| |
| 2030 | mesh.Parent = shell | |
| 2031 | shell.Anchored = true | |
| 2032 | shell.formFactor = 1 | |
| 2033 | shell.Size = Vector3.new(1,1,1) | |
| 2034 | shell.CFrame = Torso.CFrame * CFrame.new(0,1,0) | |
| 2035 | shell.Parent = swordholder | |
| 2036 | shell.Transparency = 0 | |
| 2037 | shell.BrickColor = BrickColor.new("Really red")
| |
| 2038 | shell.CanCollide = false | |
| 2039 | coroutine.resume(coroutine.create(function() | |
| 2040 | for i = 0 , 1 , 0.05 do | |
| 2041 | wait() | |
| 2042 | mesh.Scale = Vector3.new(10,20,10) * Vector3.new(i,1,i) | |
| 2043 | shell.Transparency = 1*i | |
| 2044 | end | |
| 2045 | shell.Transparency = 1 | |
| 2046 | shell.Parent = nil | |
| 2047 | end)) | |
| 2048 | end | |
| 2049 | for zz = 1 , 3 do | |
| 2050 | local mesh = Instance.new("SpecialMesh")
| |
| 2051 | mesh.MeshType = "Sphere" | |
| 2052 | mesh.Scale = Vector3.new(5*zz,5*zz,5*zz) * Vector3.new(0.01,0.01,0.01) | |
| 2053 | local shell = Instance.new("Part")
| |
| 2054 | mesh.Parent = shell | |
| 2055 | shell.Anchored = true | |
| 2056 | shell.formFactor = 3 | |
| 2057 | shell.Size = Vector3.new(1,1,1) | |
| 2058 | shell.CFrame = Torso.CFrame * CFrame.new(0,-1,0) | |
| 2059 | shell.Parent = swordholder | |
| 2060 | shell.Transparency = 0 | |
| 2061 | if math.fmod(zz,2) == 1 then | |
| 2062 | shell.BrickColor = BrickColor.new("Bright orange")
| |
| 2063 | elseif math.fmod(zz,2) == 0.5 then | |
| 2064 | shell.BrickColor = BrickColor.new("Bright red")
| |
| 2065 | else | |
| 2066 | shell.BrickColor = BrickColor.new("Bright yellow")
| |
| 2067 | end | |
| 2068 | shell.CanCollide = false | |
| 2069 | coroutine.resume(coroutine.create(function() | |
| 2070 | for i = 0 , 1 , 0.025 do | |
| 2071 | wait() | |
| 2072 | mesh.Scale = Vector3.new(10*zz,10*zz,10*zz) * Vector3.new(i,i,i) | |
| 2073 | shell.Transparency = 1*i | |
| 2074 | end | |
| 2075 | shell.Transparency = 1 | |
| 2076 | shell.Parent = nil | |
| 2077 | end)) | |
| 2078 | end | |
| 2079 | ||
| 2080 | ||
| 2081 | for ii,z in pairs(modemodel:GetChildren()) do | |
| 2082 | z.Parent = nil | |
| 2083 | end | |
| 2084 | ||
| 2085 | local wing1m = Instance.new("BlockMesh")
| |
| 2086 | wing1m.Scale = Vector3.new(1,1,1) | |
| 2087 | local wing1p = Instance.new("Part")
| |
| 2088 | wing1p.formFactor = 3 | |
| 2089 | wing1p.CanCollide = false | |
| 2090 | wing1p.Name = "FlameWingP1" | |
| 2091 | wing1p.Locked = true | |
| 2092 | wing1p.Size = Vector3.new(0.2,0.2,0.2) | |
| 2093 | wing1p.Parent = modemodel | |
| 2094 | wing1m.Parent = wing1p | |
| 2095 | wing1p.BrickColor = BrickColor.new("Bright red")
| |
| 2096 | wing1p.Transparency = 1 | |
| 2097 | local wing1w = Instance.new("Weld")
| |
| 2098 | wing1w.Parent = wing1p | |
| 2099 | wing1w.Part0 = wing1p | |
| 2100 | wing1w.Part1 = Torso | |
| 2101 | wing1w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0 , 0) | |
| 2102 | wing1w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(-1, 0, 0) | |
| 2103 | local wing2m = Instance.new("BlockMesh")
| |
| 2104 | wing2m.Scale = Vector3.new(1,1,1) | |
| 2105 | local wing2p = Instance.new("Part")
| |
| 2106 | wing2p.formFactor = 3 | |
| 2107 | wing2p.CanCollide = false | |
| 2108 | wing2p.Name = "FlameWingP2" | |
| 2109 | wing2p.Locked = true | |
| 2110 | wing2p.Size = Vector3.new(0.2,0.2,0.2) | |
| 2111 | wing2p.Parent = modemodel | |
| 2112 | wing2m.Parent = wing2p | |
| 2113 | wing2p.BrickColor = BrickColor.new("Bright red")
| |
| 2114 | wing2p.Transparency = 1 | |
| 2115 | local wing2w = Instance.new("Weld")
| |
| 2116 | wing2w.Parent = wing2p | |
| 2117 | wing2w.Part0 = wing2p | |
| 2118 | wing2w.Part1 = Torso | |
| 2119 | wing2w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0 , 0) | |
| 2120 | wing2w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(1, 0, 0) | |
| 2121 | coroutine.resume(coroutine.create(function() | |
| 2122 | for ringi = math.rad(-20) , math.rad(130) , math.rad(10) do | |
| 2123 | wait(0.1) | |
| 2124 | local ringm = Instance.new("BlockMesh")
| |
| 2125 | ringm.Scale = Vector3.new(1,1,1) | |
| 2126 | local ringp = Instance.new("Part")
| |
| 2127 | ringp.formFactor = 3 | |
| 2128 | ringp.CanCollide = false | |
| 2129 | ringp.Name = "FlameWing"..ringi | |
| 2130 | ringp.Locked = true | |
| 2131 | ringp.Size = Vector3.new(0.2,2,0.8) | |
| 2132 | ringp.Parent = modemodel | |
| 2133 | ringm.Parent = ringp | |
| 2134 | ringp.BrickColor = BrickColor.new("Bright red")
| |
| 2135 | ringp.Reflectance = 0.1 | |
| 2136 | ringp.Transparency = 1 | |
| 2137 | local ringw = Instance.new("Weld")
| |
| 2138 | ringw.Parent = ringp | |
| 2139 | ringw.Part0 = ringp | |
| 2140 | ringw.Part1 = wing1p | |
| 2141 | ringw.C1 = CFrame.fromEulerAnglesXYZ(ringi, 0, 0) * CFrame.new(0, ringp.Size.y/4 , 0) | |
| 2142 | 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 | |
| 2143 | coroutine.resume(coroutine.create(function() | |
| 2144 | for i = 0 , 1 , 0.025 do | |
| 2145 | wait() | |
| 2146 | ringp.Transparency = 1-1*i | |
| 2147 | end | |
| 2148 | ringp.Transparency = 0 | |
| 2149 | end)) | |
| 2150 | end end)) | |
| 2151 | coroutine.resume(coroutine.create(function() | |
| 2152 | for ringi = math.rad(-20) , math.rad(130) , math.rad(10) do | |
| 2153 | wait(0.1) | |
| 2154 | local ringm = Instance.new("BlockMesh")
| |
| 2155 | ringm.Scale = Vector3.new(1,1,1) | |
| 2156 | local ringp = Instance.new("Part")
| |
| 2157 | ringp.formFactor = 3 | |
| 2158 | ringp.CanCollide = false | |
| 2159 | ringp.Name = "FlameWing2_"..ringi | |
| 2160 | ringp.Locked = true | |
| 2161 | ringp.Size = Vector3.new(0.2,2,0.8) | |
| 2162 | ringp.Parent = modemodel | |
| 2163 | ringm.Parent = ringp | |
| 2164 | ringp.BrickColor = BrickColor.new("Bright red")
| |
| 2165 | ringp.Reflectance = 0.1 | |
| 2166 | ringp.Transparency = 1 | |
| 2167 | local ringw = Instance.new("Weld")
| |
| 2168 | ringw.Parent = ringp | |
| 2169 | ringw.Part0 = ringp | |
| 2170 | ringw.Part1 = wing2p | |
| 2171 | ringw.C1 = CFrame.fromEulerAnglesXYZ(ringi+math.rad(0), 0, 0) * CFrame.new(-0, ringp.Size.y/4 , 0) | |
| 2172 | ringw.C0 = CFrame.fromEulerAnglesXYZ(0, 0,math.rad(-45)) * CFrame.new(-0, -1, 0) | |
| 2173 | coroutine.resume(coroutine.create(function() | |
| 2174 | for i = 0 , 1 , 0.025 do | |
| 2175 | wait() | |
| 2176 | ringp.Transparency = 1-1*i | |
| 2177 | end | |
| 2178 | ringp.Transparency = 0 | |
| 2179 | end)) | |
| 2180 | end end)) | |
| 2181 | local wingp1m = Instance.new("SpecialMesh")
| |
| 2182 | wingp1m.Scale = Vector3.new(1,1,1) | |
| 2183 | wingp1m.MeshType = "Sphere" | |
| 2184 | local wingp1p = Instance.new("Part")
| |
| 2185 | wingp1p.formFactor = 3 | |
| 2186 | wingp1p.CanCollide = false | |
| 2187 | wingp1p.Name = "FlameOrb" | |
| 2188 | wingp1p.Locked = true | |
| 2189 | wingp1p.Size = Vector3.new(1,1,1) | |
| 2190 | wingp1p.Parent = modemodel | |
| 2191 | wingp1m.Parent = wingp1p | |
| 2192 | wingp1p.Reflectance = 0.2 | |
| 2193 | wingp1p.BrickColor = BrickColor.new("Bright red")
| |
| 2194 | local wingp1w = Instance.new("Weld")
| |
| 2195 | wingp1w.Parent = wingp1p | |
| 2196 | wingp1w.Part0 = wingp1p | |
| 2197 | wingp1w.Part1 = Torso | |
| 2198 | wingp1w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0 , 0) | |
| 2199 | wingp1w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(0, -0.5, 0.5) | |
| 2200 | coroutine.resume(coroutine.create(function() | |
| 2201 | for i = 0 , 1 , 0.025 do | |
| 2202 | wait() | |
| 2203 | wingp1p.Transparency = 1-1*i | |
| 2204 | end | |
| 2205 | wingp1p.Transparency = 0 | |
| 2206 | end)) | |
| 2207 | local Firee = modemodel | |
| 2208 | local Spawn = wingp1p | |
| 2209 | local colors = {BrickColor.new("Bright red"),BrickColor.new("Bright yellow"),BrickColor.new("Bright orange")}
| |
| 2210 | local Embers = {}
| |
| 2211 | local modelz = Instance.new("Model",Firee)
| |
| 2212 | modelz.Name = "FireHolder" | |
| 2213 | for X = 1, 15 do | |
| 2214 | local f = Instance.new("Part")
| |
| 2215 | f.Parent = nil | |
| 2216 | f.BrickColor = colors[math.random(1, # colors)] | |
| 2217 | f.Size = Vector3.new(1,1,1) | |
| 2218 | f.formFactor = 3 | |
| 2219 | f.Anchored = true | |
| 2220 | f.Locked = true | |
| 2221 | f.CanCollide = false | |
| 2222 | f.Transparency = 0.5 | |
| 2223 | f.Name = "Fire" | |
| 2224 | f.TopSurface = 0 | |
| 2225 | f.BottomSurface = 0 | |
| 2226 | Instance.new("BlockMesh",f)
| |
| 2227 | table.insert(Embers, f) | |
| 2228 | end | |
| 2229 | local R = 0 | |
| 2230 | coroutine.resume(coroutine.create(function () | |
| 2231 | repeat | |
| 2232 | wait() | |
| 2233 | R = R + 1 | |
| 2234 | for X = 1, # Embers do | |
| 2235 | Embers[X].Parent = modelz | |
| 2236 | local FM = math.fmod(R + X, # Embers) | |
| 2237 | if FM == 1 then | |
| 2238 | 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) | |
| 2239 | RandDir = Vector3.new(math.random(-100,100), math.random(-100,100), math.random(-100,100)) | |
| 2240 | Embers[X].CFrame = CFrame.new(Spawn.Position + RandPos, (Spawn.Position * rndm) + RandPos + RandDir) | |
| 2241 | Embers[X].Mesh.Scale = Vector3.new(1,1,1) | |
| 2242 | else | |
| 2243 | Embers[X].CFrame = Embers[X].CFrame + Embers[X].CFrame.lookVector*0.5 | |
| 2244 | Embers[X].Mesh.Scale = Embers[X].Mesh.Scale - Vector3.new(0.1,0.1,0.1) | |
| 2245 | end | |
| 2246 | end | |
| 2247 | until wingp1p.Parent == nil | |
| 2248 | for i = 0 ,1 , 0.1 do | |
| 2249 | wait(0.2) | |
| 2250 | for X = 1, # Embers do | |
| 2251 | Embers[X].Transparency = 0.5+0.5*i | |
| 2252 | end | |
| 2253 | end | |
| 2254 | for X = 1, # Embers do | |
| 2255 | Embers[X].Parent = nil | |
| 2256 | end | |
| 2257 | end)) | |
| 2258 | for ii = 1 , #AoETrue do | |
| 2259 | table.remove(AoETrue,#AoETrue) | |
| 2260 | end | |
| 2261 | wait(0.25) | |
| 2262 | for i = 0 , 1 , 0.1 do | |
| 2263 | wait() | |
| 2264 | 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)) | |
| 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(0,0.5+0.5*i,-1) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(65+25*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), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 2269 | end | |
| 2270 | for i = 0 , 1 , 0.1 do | |
| 2271 | wait() | |
| 2272 | 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)) | |
| 2273 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 2274 | 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)) | |
| 2275 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 2276 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180-180*i), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 2277 | end | |
| 2278 | RW.C0 = CFrame.new(1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(45), math.rad(-45)) | |
| 2279 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 2280 | LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45)) | |
| 2281 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 2282 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 2283 | attack=false | |
| 2284 | wait(1.5) | |
| 2285 | mrdychng = false | |
| 2286 | end | |
| 2287 | function NeutralMode() | |
| 2288 | attack=true | |
| 2289 | Mode = "None" | |
| 2290 | fireboost = 0 | |
| 2291 | iceboost = 0 | |
| 2292 | darkboost = 0 | |
| 2293 | ss(Head,1) | |
| 2294 | cs(Head,2) | |
| 2295 | mrdychng = true | |
| 2296 | for i = 0 , 1 , 0.2 do | |
| 2297 | wait() | |
| 2298 | 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)) | |
| 2299 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(100*i), math.rad(0), math.rad(0)) | |
| 2300 | 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)) | |
| 2301 | LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(100*i), math.rad(0), math.rad(0)) | |
| 2302 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 2303 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(70*i), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 2304 | end | |
| 2305 | coroutine.resume(coroutine.create(function() | |
| 2306 | for ii,z in pairs(modemodel:GetChildren()) do | |
| 2307 | if string.sub(z.Name,0,string.len(z.Name)-1) ~= "FlameWingP" then | |
| 2308 | wait() | |
| 2309 | coroutine.resume(coroutine.create(function() | |
| 2310 | for i = 0 , 1 , 0.1 do | |
| 2311 | wait() | |
| 2312 | z.Transparency = (1-z.Transparency)*i | |
| 2313 | end | |
| 2314 | z.Parent = nil | |
| 2315 | end)) | |
| 2316 | end | |
| 2317 | end | |
| 2318 | wait(0.5) | |
| 2319 | for ii,z in pairs(modemodel:GetChildren()) do | |
| 2320 | wait() | |
| 2321 | z.Parent = nil | |
| 2322 | end | |
| 2323 | end)) | |
| 2324 | for i = 0 , 1 , 0.1 do | |
| 2325 | wait() | |
| 2326 | RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(45), math.rad(0)) | |
| 2327 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(100+20*i), math.rad(0), math.rad(0)) | |
| 2328 | LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(-45),math.rad(0)) | |
| 2329 | LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(100+20*i), math.rad(0), math.rad(0)) | |
| 2330 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 2331 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(70+20*i), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 2332 | end | |
| 2333 | ||
| 2334 | wait(0.25) | |
| 2335 | for i = 0 , 1 , 0.1 do | |
| 2336 | wait() | |
| 2337 | 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)) | |
| 2338 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(120-120*i), math.rad(0), math.rad(0)) | |
| 2339 | 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)) | |
| 2340 | LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(120-120*i), math.rad(0), math.rad(0)) | |
| 2341 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 2342 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90-90*i), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 2343 | end | |
| 2344 | RW.C0 = CFrame.new(1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(45), math.rad(-45)) | |
| 2345 | RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 2346 | LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45)) | |
| 2347 | LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 2348 | w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0) | |
| 2349 | w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2) | |
| 2350 | attack=false | |
| 2351 | wait(0.5) | |
| 2352 | mrdychng = false | |
| 2353 | end | |
| 2354 | ||
| 2355 | function ob1d(mouse) | |
| 2356 | hold = true | |
| 2357 | if attack == true then return end | |
| 2358 | end | |
| 2359 | function ob1u(mouse) | |
| 2360 | end | |
| 2361 | buttonhold = false | |
| 2362 | function key(key) | |
| 2363 | if attack == true then return end | |
| 2364 | if key == "q" then | |
| 2365 | if attacktype == 1 then | |
| 2366 | Combo1a() | |
| 2367 | elseif attacktype == 2 then | |
| 2368 | Combo1b() | |
| 2369 | elseif attacktype == 3 then | |
| 2370 | Combo1c() | |
| 2371 | end | |
| 2372 | end | |
| 2373 | if key == "e" then | |
| 2374 | if attacktype == 1 then | |
| 2375 | BlizzardSword() | |
| 2376 | end | |
| 2377 | end | |
| 2378 | if key == "r" then | |
| 2379 | FlameTrail() | |
| 2380 | end | |
| 2381 | if key == "t" then | |
| 2382 | LifeDrain() | |
| 2383 | end | |
| 2384 | if Mode == "None" and not mrdychng then | |
| 2385 | if key == "z" then | |
| 2386 | FireMode() | |
| 2387 | end | |
| 2388 | elseif not mrdychng then | |
| 2389 | if key == "z" or key == "x" or key == "c" then | |
| 2390 | NeutralMode() | |
| 2391 | end | |
| 2392 | end | |
| 2393 | end | |
| 2394 | ||
| 2395 | function key2(key) | |
| 2396 | end | |
| 2397 | function s(mouse) | |
| 2398 | repeat wait() until not attack | |
| 2399 | while ev.Value ~= false do | |
| 2400 | wait(0.1) | |
| 2401 | end | |
| 2402 | MMouse = mouse | |
| 2403 | mouse.Button1Down:connect(function() ob1d(mouse) end) | |
| 2404 | mouse.Button1Up:connect(function() ob1u(mouse) end) | |
| 2405 | mouse.KeyDown:connect(key) | |
| 2406 | mouse.KeyUp:connect(key2) | |
| 2407 | equipanim() | |
| 2408 | ev.Value = true | |
| 2409 | --[[ | |
| 2410 | script.Parent = Bin.Parent | |
| 2411 | Bin:remove()]] | |
| 2412 | end | |
| 2413 | function ds(mouse) | |
| 2414 | repeat wait() until not attack | |
| 2415 | while ev.Value == false do | |
| 2416 | wait(0.1) | |
| 2417 | end | |
| 2418 | ||
| 2419 | hideanim() | |
| 2420 | wait(0.1) | |
| 2421 | ev.Value = false | |
| 2422 | end | |
| 2423 | Bin.Selected:connect(s) | |
| 2424 | Bin.Deselected:connect(ds) | |
| 2425 | ||
| 2426 | ||
| 2427 | --lego |