SHOW:
|
|
- or go back to the newest paste.
| 1 | tool = Instance.new("HopperBin")
| |
| 2 | ||
| 3 | - | player = game.Players.KeroroGunso2016 |
| 3 | + | player = game.Players.overhaleren |
| 4 | char = player.Character | |
| 5 | tool = Instance.new("HopperBin")
| |
| 6 | tool.Parent = player.Backpack | |
| 7 | script.Parent = tool | |
| 8 | tool.Name = "Wand" | |
| 9 | ||
| 10 | spin = false | |
| 11 | ||
| 12 | landc = "Earth green" | |
| 13 | firec = "Bright red" | |
| 14 | icec = "Light blue" | |
| 15 | windc = "Institutional white" | |
| 16 | helthc = "Lime green" | |
| 17 | elec = "New Yeller" | |
| 18 | ||
| 19 | norm = 18 | |
| 20 | ||
| 21 | handle = Instance.new("Part")
| |
| 22 | handle.Parent = game.Lighting | |
| 23 | handle.Name = "Handle" | |
| 24 | handle.FormFactor = "Symmetric" | |
| 25 | handle.Size = Vector3.new(1,4,1) | |
| 26 | handle.TopSurface = 0 | |
| 27 | handle.BottomSurface = 0 | |
| 28 | handle.BrickColor = BrickColor.new("Black")
| |
| 29 | handle.Anchored = false | |
| 30 | handle.Position = char["Right Arm"].Position | |
| 31 | handle.CanCollide = false | |
| 32 | handle.Locked = true | |
| 33 | handle2 = Instance.new("Part")
| |
| 34 | handle2.Parent = game.Lighting | |
| 35 | handle2.Name = "Handle2" | |
| 36 | handle2.Shape = "Ball" | |
| 37 | handle2.Size = Vector3.new(1,1,1) | |
| 38 | handle2.TopSurface = 0 | |
| 39 | handle2.BottomSurface = 0 | |
| 40 | handle2.BrickColor = BrickColor.new("Bright red")
| |
| 41 | handle2.Anchored = false | |
| 42 | handle2.Position = char["Right Arm"].Position | |
| 43 | handle2.Transparency = 0.1 | |
| 44 | handle2.CanCollide = false | |
| 45 | handle2.Locked = true | |
| 46 | ||
| 47 | handle3 = Instance.new("Part")
| |
| 48 | handle3.Parent = game.Lighting | |
| 49 | handle3.Name = "Handle2" | |
| 50 | handle3.Shape = "Ball" | |
| 51 | handle3.Size = Vector3.new(1,1,1) | |
| 52 | handle3.TopSurface = 0 | |
| 53 | handle3.BottomSurface = 0 | |
| 54 | handle3.BrickColor = BrickColor.new("Black")
| |
| 55 | handle3.Anchored = false | |
| 56 | handle3.Position = char["Right Arm"].Position | |
| 57 | handle3.CanCollide = false | |
| 58 | handle3.Locked = true | |
| 59 | local m = Instance.new("CylinderMesh")
| |
| 60 | m.Parent = handle | |
| 61 | m.Scale = Vector3.new(0.42,1,0.42) | |
| 62 | local m2 = Instance.new("SpecialMesh")
| |
| 63 | m2.Parent = handle2 | |
| 64 | m2.MeshType = "Sphere" | |
| 65 | m2.Scale = Vector3.new(0.8,0.8,0.8) | |
| 66 | local m3 = Instance.new("SpecialMesh")
| |
| 67 | m3.Parent = handle3 | |
| 68 | m3.MeshType = "FileMesh" | |
| 69 | m3.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
| 70 | m3.Scale = Vector3.new(0.4,0.85,0.4) | |
| 71 | brick1 = Instance.new("Part")
| |
| 72 | brick1.Parent = char | |
| 73 | brick1.formFactor = "Symmetric" | |
| 74 | brick1.Size = Vector3.new(1,1,1) | |
| 75 | brick1.CFrame = player.Character.Torso.CFrame * CFrame.new(-1.5,0.5,0) | |
| 76 | brick1.Shape = "Ball" | |
| 77 | brick1.CanCollide = false | |
| 78 | brick1.Transparency = 1 | |
| 79 | brick1.Locked = true | |
| 80 | mesh1 = Instance.new("SpecialMesh")
| |
| 81 | mesh1.Parent = brick1 | |
| 82 | mesh1.MeshType = "Sphere" | |
| 83 | mesh1.Scale = Vector3.new(1.4,1.4,1.4) | |
| 84 | brick2 = Instance.new("Part")
| |
| 85 | brick2.Parent = game.Lighting | |
| 86 | brick2.formFactor = "Symmetric" | |
| 87 | brick2.Size = Vector3.new(1,1,1) | |
| 88 | brick2.CFrame = player.Character.Torso.CFrame * CFrame.new(-1.5,0.5,0) | |
| 89 | brick2.Shape = "Ball" | |
| 90 | brick2.CanCollide = false | |
| 91 | brick2.Transparency = 1 | |
| 92 | brick2.BrickColor = handle2.BrickColor | |
| 93 | brick2.Locked = true | |
| 94 | mesh2 = Instance.new("SpecialMesh")
| |
| 95 | mesh2.Parent = brick2 | |
| 96 | mesh2.MeshType = "Sphere" | |
| 97 | mesh2.Scale = Vector3.new(0.5,0.5,0.5) | |
| 98 | brick3 = Instance.new("Part")
| |
| 99 | brick3.Parent = game.Lighting | |
| 100 | brick3.formFactor = "Symmetric" | |
| 101 | brick3.Size = Vector3.new(1,1,1) | |
| 102 | brick3.CFrame = player.Character.Torso.CFrame * CFrame.new(-1.5,0.5,0) | |
| 103 | brick3.Shape = "Ball" | |
| 104 | brick3.CanCollide = false | |
| 105 | brick3.Transparency = 1 | |
| 106 | brick3.BrickColor = handle2.BrickColor | |
| 107 | brick3.Locked = true | |
| 108 | mesh3 = Instance.new("SpecialMesh")
| |
| 109 | mesh3.Parent = brick3 | |
| 110 | mesh3.MeshType = "Sphere" | |
| 111 | mesh3.Scale = Vector3.new(0.5,0.5,0.5) | |
| 112 | wads = Instance.new("Weld")
| |
| 113 | wads.Parent = char.Torso | |
| 114 | wads.Part0 = wads.Parent | |
| 115 | wads.Part1 = brick1 | |
| 116 | wads.C1 = CFrame.new(-1.5,-0.5,0) | |
| 117 | wads2 = Instance.new("Weld")
| |
| 118 | wads2.Parent = handle2 | |
| 119 | wads2.Part0 = wads2.Parent | |
| 120 | wads2.Part1 = brick2 | |
| 121 | wads2.C1 = CFrame.new(1,0,0) | |
| 122 | wads3 = Instance.new("Weld")
| |
| 123 | wads3.Parent = handle2 | |
| 124 | wads3.Part0 = wads2.Parent | |
| 125 | wads3.Part1 = brick2 | |
| 126 | wads3.C1 = CFrame.new(-1,0,0) | |
| 127 | ||
| 128 | wa = Instance.new("Weld")
| |
| 129 | wa.Parent = brick1 | |
| 130 | wa.Part0 = nil | |
| 131 | wa.Part1 = nil | |
| 132 | ||
| 133 | weld = Instance.new("Weld")
| |
| 134 | ||
| 135 | toha = Instance.new("Weld")
| |
| 136 | toha.Parent = char.Torso | |
| 137 | toha.Part0 = nil | |
| 138 | toha.Part1 = nil | |
| 139 | toha.C1 = CFrame.fromEulerAnglesXYZ(0,0,-2.5) * CFrame.new(0,0,-0.7) | |
| 140 | ||
| 141 | original = CFrame.fromEulerAnglesXYZ(-1.55,0,0) * CFrame.new(0,0,0.6) | |
| 142 | weporigin = CFrame.fromEulerAnglesXYZ(1.55,0,0) * CFrame.new(0, 1.1, 0.5) | |
| 143 | ||
| 144 | myhum = char.Humanoid | |
| 145 | myhum.WalkSpeed = norm | |
| 146 | ||
| 147 | enabled = false | |
| 148 | hol = false | |
| 149 | ||
| 150 | function select(mouse, key) | |
| 151 | wa.Part0 = wa.Parent | |
| 152 | wa.Part1 = char["Right Arm"] | |
| 153 | wa.C1 = original | |
| 154 | weld.Parent = char["Right Arm"] | |
| 155 | weld.Part0 = nil | |
| 156 | weld.Part1 = nil | |
| 157 | weld.C1 = weporigin | |
| 158 | handle.Parent = char | |
| 159 | handle2.Parent = char | |
| 160 | handle3.Parent = char | |
| 161 | for i = 1, 8 do | |
| 162 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(-0.35,0,0) | |
| 163 | wait() | |
| 164 | end | |
| 165 | for i = 1, 4 do | |
| 166 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,0.2,0) | |
| 167 | wait() | |
| 168 | end | |
| 169 | toha.Part0 = nil | |
| 170 | toha.Part1 = nil | |
| 171 | weld.Part0 = weld.Parent | |
| 172 | weld.Part1 = handle | |
| 173 | for i = 1, 4 do | |
| 174 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,-0.2,0) | |
| 175 | wait() | |
| 176 | end | |
| 177 | for i = 1, 8 do | |
| 178 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0.35,0,0) | |
| 179 | wait() | |
| 180 | end | |
| 181 | wa.C1 = original | |
| 182 | spin = true | |
| 183 | brick2.Transparency = 0.3 | |
| 184 | brick2.Parent = char | |
| 185 | brick3.Transparency = 0.3 | |
| 186 | brick3.Parent = char | |
| 187 | weld2 = Instance.new("Weld")
| |
| 188 | weld2.Parent = handle | |
| 189 | weld2.Part0 = weld2.Parent | |
| 190 | weld2.Part1 = handle2 | |
| 191 | weld2.C1 = CFrame.new(0, 0, 2.1) | |
| 192 | weld3 = Instance.new("Weld")
| |
| 193 | weld3.Parent = handle | |
| 194 | weld3.Part0 = weld3.Parent | |
| 195 | weld3.Part1 = handle3 | |
| 196 | weld3.C1 = CFrame.new(0, 0, 1.4) | |
| 197 | weld.C1 = CFrame.fromEulerAnglesXYZ(1.55,0,0) * CFrame.new(0, 1.1, 0.5) | |
| 198 | weld2.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0, -2.1, 0) | |
| 199 | weld3.C1 = CFrame.fromEulerAnglesXYZ(3.2,0,0) * CFrame.new(0, -1.5, 0) | |
| 200 | coroutine.resume(coroutine.create(function() | |
| 201 | while spin == true do | |
| 202 | for i=1, 20 do | |
| 203 | wait() | |
| 204 | handle2.Transparency = handle2.Transparency + 0.025 | |
| 205 | end | |
| 206 | for i=1, 20 do | |
| 207 | wait() | |
| 208 | handle2.Transparency = handle2.Transparency - 0.025 | |
| 209 | end | |
| 210 | end | |
| 211 | end)) | |
| 212 | coroutine.resume(coroutine.create(function() | |
| 213 | while spin == true do | |
| 214 | wait() | |
| 215 | wads2.C1 = wads2.C1 * CFrame.fromEulerAnglesXYZ(0,0.15,0) | |
| 216 | wads3.C1 = wads3.C1 * CFrame.fromEulerAnglesXYZ(0,0.15,0) | |
| 217 | local fade = brick2:clone() | |
| 218 | fade.Parent = char | |
| 219 | fade.CFrame = brick2.CFrame | |
| 220 | local weld = wads2:clone() | |
| 221 | weld.Parent = handle2 | |
| 222 | weld.Part0 = weld.Parent | |
| 223 | weld.Part1 = fade | |
| 224 | local fade2 = brick3:clone() | |
| 225 | fade2.Parent = char | |
| 226 | fade2.CFrame = brick3.CFrame | |
| 227 | local weld2 = wads3:clone() | |
| 228 | weld2.Parent = handle2 | |
| 229 | weld2.Part0 = weld2.Parent | |
| 230 | weld2.Part1 = fade2 | |
| 231 | coroutine.resume(coroutine.create(function() | |
| 232 | for i=1, 8 do | |
| 233 | wait() | |
| 234 | fade.Transparency = fade.Transparency + 0.12 | |
| 235 | fade2.Transparency = fade2.Transparency + 0.12 | |
| 236 | end | |
| 237 | fade:remove() | |
| 238 | fade2:remove() | |
| 239 | end)) | |
| 240 | end | |
| 241 | end)) | |
| 242 | enabled = false | |
| 243 | mouse.KeyDown:connect(function(key) | |
| 244 | key = key:lower() | |
| 245 | if (key == "k") then | |
| 246 | if enabled == true then return end | |
| 247 | enabled = true | |
| 248 | hol = true | |
| 249 | for i=1, 6 do | |
| 250 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0.1,0.1,0) | |
| 251 | wait() | |
| 252 | end | |
| 253 | handle2.BrickColor = BrickColor.new(landc) | |
| 254 | brick2.BrickColor = handle2.BrickColor | |
| 255 | brick3.BrickColor = handle2.BrickColor | |
| 256 | while hol == true do | |
| 257 | wait(0.05) | |
| 258 | local ki = Instance.new("Part")
| |
| 259 | ki.Parent = workspace | |
| 260 | ki.Name = "Landmon" | |
| 261 | ki.Size = Vector3.new(1,1,1) | |
| 262 | ki.BrickColor = handle2.BrickColor | |
| 263 | ki.TopSurface = 0 | |
| 264 | ki.BottomSurface = 0 | |
| 265 | ki.CanCollide = false | |
| 266 | ki.Anchored = true | |
| 267 | ki.CFrame = CFrame.new(mouse.Hit.p) | |
| 268 | ki.CFrame = ki.CFrame * CFrame.new(0, -4, 0) | |
| 269 | local mef = Instance.new("SpecialMesh")
| |
| 270 | mef.Parent = ki | |
| 271 | mef.MeshType = "Sphere" | |
| 272 | mef.Scale = Vector3.new(9,16,9) | |
| 273 | coroutine.resume(coroutine.create(function() | |
| 274 | for i=1, 5 do | |
| 275 | wait() | |
| 276 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,0.12,0) | |
| 277 | end | |
| 278 | for i=1, 5 do | |
| 279 | wait() | |
| 280 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,-0.12,0) | |
| 281 | end | |
| 282 | end)) | |
| 283 | coroutine.resume(coroutine.create(function() | |
| 284 | for i=1, 25 do | |
| 285 | wait() | |
| 286 | ki.CFrame = ki.CFrame * CFrame.new(0, 0.3, 0) | |
| 287 | end | |
| 288 | loo = ki.CFrame | |
| 289 | ki.CanCollide = true | |
| 290 | mef.Scale = Vector3.new(1,1,1) | |
| 291 | ki.Size = Vector3.new(9,16,9) | |
| 292 | ki.CFrame = loo | |
| 293 | wait(7) | |
| 294 | for i=1, 20 do | |
| 295 | wait() | |
| 296 | ki.Transparency = ki.Transparency + 0.05 | |
| 297 | end | |
| 298 | ki:remove() | |
| 299 | end)) | |
| 300 | end | |
| 301 | elseif (key == "f") then | |
| 302 | if enabled == true then return end | |
| 303 | enabled = true | |
| 304 | pof = mouse.Hit.p | |
| 305 | local part = Instance.new("Part")
| |
| 306 | local fire = Instance.new("Fire")
| |
| 307 | fire.Parent = part | |
| 308 | fire.Heat = 30 | |
| 309 | fire.Size = 40 | |
| 310 | local smoke = Instance.new("Smoke")
| |
| 311 | smoke.Parent = part | |
| 312 | smoke.RiseVelocity = 2 | |
| 313 | smoke.Size = 20 | |
| 314 | smoke.Color = Color3.new(0,0,0) | |
| 315 | smoke.Opacity = 1 | |
| 316 | local par = Instance.new("Part")
| |
| 317 | par.Parent = workspace | |
| 318 | par.Size = Vector3.new(9,1,1) | |
| 319 | par.Transparency = 0 | |
| 320 | par.Anchored = true | |
| 321 | par.TopSurface = 0 | |
| 322 | par.BottomSurface = 0 | |
| 323 | par.BrickColor = BrickColor.new(firec) | |
| 324 | par.CFrame = CFrame.new(pof) * CFrame.new(0,-0.498,0) | |
| 325 | par.CFrame = par.CFrame * CFrame.Angles(0,0.8,0) | |
| 326 | par.CanCollide = false | |
| 327 | local mes = Instance.new("SpecialMesh")
| |
| 328 | mes.Parent = par | |
| 329 | mes.MeshType = "Brick" | |
| 330 | mes.Scale = Vector3.new(1,1,1) | |
| 331 | local pa = par:clone() | |
| 332 | pa.Parent = workspace | |
| 333 | pa.CFrame = CFrame.new(pof) * CFrame.new(0,-0.498,0) | |
| 334 | pa.CFrame = pa.CFrame * CFrame.Angles(0,-0.8,0) | |
| 335 | handle2.BrickColor = BrickColor.new(firec) | |
| 336 | brick2.BrickColor = handle2.BrickColor | |
| 337 | brick3.BrickColor = handle2.BrickColor | |
| 338 | for i=1, 10 do | |
| 339 | wait(0.03) | |
| 340 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(-0.1,0.05,0) | |
| 341 | end | |
| 342 | for i=1, 4 do | |
| 343 | for i=1, 3 do | |
| 344 | wait(0.01) | |
| 345 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,-0.05,0.1) | |
| 346 | end | |
| 347 | for i=1, 3 do | |
| 348 | wait(0.01) | |
| 349 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0.03,0.05,-0.1) | |
| 350 | end | |
| 351 | end | |
| 352 | for i=1, 7 do | |
| 353 | wait(0.01) | |
| 354 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,0.1,-0.1) | |
| 355 | end | |
| 356 | wait(0.6) | |
| 357 | for i=1, 10 do | |
| 358 | wait(0.02) | |
| 359 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0.1,-0.05,0.3) | |
| 360 | par.Transparency = par.Transparency + 0.1 | |
| 361 | pa.Transparency = pa.Transparency + 0.1 | |
| 362 | mes.Scale = mes.Scale + Vector3.new(0.1,0,0.05) | |
| 363 | pa.Mesh.Scale = pa.Mesh.Scale + Vector3.new(0.1,0,0.05) | |
| 364 | end | |
| 365 | wait(0.1) | |
| 366 | pa:remove() | |
| 367 | par:remove() | |
| 368 | part.Parent = workspace | |
| 369 | part.Size = Vector3.new(3,3,3) | |
| 370 | part.Anchored = true | |
| 371 | part.CFrame = CFrame.new(pof) | |
| 372 | part.CFrame = part.CFrame * CFrame.Angles(1.2,0,0) | |
| 373 | part.Transparency = 1 | |
| 374 | coroutine.resume(coroutine.create(function() | |
| 375 | for i=1, 100 do | |
| 376 | wait() | |
| 377 | part.CFrame = part.CFrame * CFrame.Angles(0,0,0.4) | |
| 378 | end | |
| 379 | end)) | |
| 380 | local explode = Instance.new("Explosion")
| |
| 381 | explode.Parent = char | |
| 382 | explode.BlastRadius = 11 | |
| 383 | explode.BlastPressure = 400000 | |
| 384 | explode.Position = part.Position | |
| 385 | explode.archivable = false | |
| 386 | wait(0.3) | |
| 387 | wa.C1 = original | |
| 388 | wait(0.7) | |
| 389 | fire.Enabled = false | |
| 390 | smoke.Enabled = false | |
| 391 | wait(0.2) | |
| 392 | part:remove() | |
| 393 | wait(1) | |
| 394 | enabled = false | |
| 395 | elseif (key == "q") then | |
| 396 | if enabled == true then return end | |
| 397 | enabled = true | |
| 398 | handle2.BrickColor = BrickColor.new(windc) | |
| 399 | brick2.BrickColor = handle2.BrickColor | |
| 400 | brick3.BrickColor = handle2.BrickColor | |
| 401 | for i=1, 8 do | |
| 402 | wait(0.01) | |
| 403 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,0,-0.18) | |
| 404 | end | |
| 405 | for i=1, 2 do | |
| 406 | wait(0.01) | |
| 407 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,-0.15,0) | |
| 408 | end | |
| 409 | wait(0.3) | |
| 410 | for i=1, 2 do | |
| 411 | wait(0.01) | |
| 412 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,0.3,0) | |
| 413 | end | |
| 414 | local p = Instance.new("Part")
| |
| 415 | p.Parent = workspace | |
| 416 | p.Name = "Sword" | |
| 417 | p.Size = Vector3.new(1,4,1) | |
| 418 | p.BottomSurface = 0 | |
| 419 | p.TopSurface = 0 | |
| 420 | p.Anchored = false | |
| 421 | p.CanCollide = false | |
| 422 | p.CFrame = handle.CFrame | |
| 423 | p.CFrame = p.CFrame * CFrame.Angles(0,0,1.55) | |
| 424 | p:BreakJoints() | |
| 425 | local mt = Instance.new("SpecialMesh")
| |
| 426 | mt.Parent = p | |
| 427 | mt.MeshType = "FileMesh" | |
| 428 | mt.MeshId = "http://www.roblox.com/asset/?id=12768042" | |
| 429 | mt.TextureId = "http://www.roblox.com/asset/?id=21262906" | |
| 430 | local bv = Instance.new("BodyVelocity")
| |
| 431 | bv.Parent = p | |
| 432 | bv.velocity = char.Torso.CFrame.lookVector * 45 | |
| 433 | local bva = Instance.new("BodyAngularVelocity")
| |
| 434 | bva.Parent = p | |
| 435 | bva.angularvelocity = Vector3.new(0,14,0) | |
| 436 | p.Touched:connect(function(hit) | |
| 437 | if hit.Parent.Name == player.Name then return end | |
| 438 | local hum = hit.Parent:findFirstChild("Humanoid")
| |
| 439 | if hum ~= nil then | |
| 440 | local hed = hit.Parent:findFirstChild("Head")
| |
| 441 | if hed ~= nil then | |
| 442 | for i=1, 5 do | |
| 443 | wait() | |
| 444 | hed.Parent.Torso.Neck.C1 = hed.Parent.Torso.Neck.C1 * CFrame.new(0, 0, -0.9) | |
| 445 | end | |
| 446 | hum.Health = 0 | |
| 447 | wait(0.05) | |
| 448 | hed.Velocity = Vector3.new(math.random(-30,30),40,math.random(-30,30)) | |
| 449 | hed.RotVelocity = Vector3.new(math.random(-25,25),math.random(-25,25),math.random(-25,25)) | |
| 450 | end | |
| 451 | hum.Health = 0 | |
| 452 | end | |
| 453 | end) | |
| 454 | local spi = true | |
| 455 | coroutine.resume(coroutine.create(function() | |
| 456 | while spi == true do | |
| 457 | local fad = p:clone() | |
| 458 | fad.Parent = workspace | |
| 459 | fad.BrickColor = BrickColor.new(windc) | |
| 460 | fad.Transparency = 0.2 | |
| 461 | fad.Mesh.TextureId = "Clear" | |
| 462 | fad.Anchored = true | |
| 463 | coroutine.resume(coroutine.create(function() | |
| 464 | for i=1, 8 do | |
| 465 | wait() | |
| 466 | fad.Transparency = fad.Transparency + 0.1 | |
| 467 | end | |
| 468 | fad:remove() | |
| 469 | end)) | |
| 470 | wait() | |
| 471 | end | |
| 472 | end)) | |
| 473 | for i=1, 4 do | |
| 474 | wait(0.01) | |
| 475 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,0.3,0) | |
| 476 | end | |
| 477 | wait(0.3) | |
| 478 | for i=1, 7 do | |
| 479 | wait(0.01) | |
| 480 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,-0.2,0.3) | |
| 481 | end | |
| 482 | wa.C1 = original | |
| 483 | wait(0.3) | |
| 484 | enabled = false | |
| 485 | wait(1.2) | |
| 486 | spi = false | |
| 487 | wait() | |
| 488 | p:remove() | |
| 489 | elseif (key == "e") then | |
| 490 | if enabled == true then return end | |
| 491 | enabled = true | |
| 492 | myhum.WalkSpeed = 0 | |
| 493 | handle2.BrickColor = BrickColor.new(helthc) | |
| 494 | brick2.BrickColor = handle2.BrickColor | |
| 495 | brick3.BrickColor = handle2.BrickColor | |
| 496 | hol = true | |
| 497 | for i=1, 6 do | |
| 498 | wait(0.01) | |
| 499 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(-0.13,0,0) | |
| 500 | weld.C1 = weld.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,-0.1) | |
| 501 | end | |
| 502 | wait(0.5) | |
| 503 | for i=1, 3 do | |
| 504 | wait(0.01) | |
| 505 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0.4,0,0) | |
| 506 | weld.C1 = weld.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,-0.23) | |
| 507 | end | |
| 508 | local pf = Instance.new("Part")
| |
| 509 | pf.Parent = workspace | |
| 510 | pf.Name = "Healthbump" | |
| 511 | pf.Size = Vector3.new(7,1,7) | |
| 512 | pf.BottomSurface = 0 | |
| 513 | pf.TopSurface = 0 | |
| 514 | pf.Anchored = true | |
| 515 | pf.CanCollide = false | |
| 516 | pf.CFrame = char.Torso.CFrame * CFrame.new(0,-2.8, 0) | |
| 517 | pf.Transparency = 0.3 | |
| 518 | pf.BrickColor = handle2.BrickColor | |
| 519 | local meg = Instance.new("CylinderMesh")
| |
| 520 | meg.Parent = pf | |
| 521 | meg.Scale = Vector3.new(0.6,0.8,0.6) | |
| 522 | hecols = {"Bright green", "Lime green", "Dark green", "Camo"}
| |
| 523 | coroutine.resume(coroutine.create(function() | |
| 524 | for i=1, 50 do | |
| 525 | wait() | |
| 526 | pf.Transparency = pf.Transparency + 0.02 | |
| 527 | meg.Scale = meg.Scale + Vector3.new(0.045,0,0.045) | |
| 528 | end | |
| 529 | end)) | |
| 530 | while hol == true do | |
| 531 | wait(0) | |
| 532 | myhum.Health = myhum.Health + 0.5 | |
| 533 | local chanc = math.random(1,20) | |
| 534 | if chanc == 8 then | |
| 535 | coroutine.resume(coroutine.create(function() | |
| 536 | pf.Transparency = 0.3 | |
| 537 | meg.Scale = Vector3.new(0.6,0.8,0.6) | |
| 538 | for i=1, 50 do | |
| 539 | wait() | |
| 540 | pf.Transparency = pf.Transparency + 0.02 | |
| 541 | meg.Scale = meg.Scale + Vector3.new(0.045,0,0.045) | |
| 542 | end | |
| 543 | end)) | |
| 544 | end | |
| 545 | local hp = Instance.new("Part")
| |
| 546 | hp.Parent = workspace | |
| 547 | hp.formFactor = "Symmetric" | |
| 548 | local randsiz = math.random(1,2) | |
| 549 | local col = math.random(1,4) | |
| 550 | hp.Size = Vector3.new(randsiz,randsiz,randsiz) | |
| 551 | hp.BrickColor = BrickColor.new(hecols[col]) | |
| 552 | hp.TopSurface = 0 | |
| 553 | hp.BottomSurface = 0 | |
| 554 | hp.Transparency = 0.1 | |
| 555 | hp.CFrame = char.Torso.CFrame * CFrame.new(math.random(-5,5),-3,math.random(-5,5)) | |
| 556 | hp.CFrame = hp.CFrame * CFrame.Angles(math.random(),math.random(),math.random()) | |
| 557 | hp.CanCollide = false | |
| 558 | hp.Anchored = false | |
| 559 | hp:BreakJoints() | |
| 560 | local mf = Instance.new("SpecialMesh")
| |
| 561 | mf.MeshType = "Brick" | |
| 562 | mf.Parent = hp | |
| 563 | mf.Scale = Vector3.new(0.65,0.65,0.65) | |
| 564 | local bv = Instance.new("BodyVelocity")
| |
| 565 | bv.Parent = hp | |
| 566 | bv.velocity = Vector3.new(0,10,0) | |
| 567 | coroutine.resume(coroutine.create(function() | |
| 568 | wait(0.9) | |
| 569 | for i=1, 9 do | |
| 570 | hp.Transparency = hp.Transparency + 0.1 | |
| 571 | wait() | |
| 572 | end | |
| 573 | hp:remove() | |
| 574 | end)) | |
| 575 | end | |
| 576 | elseif (key == "r") then | |
| 577 | if enabled == true then return end | |
| 578 | enabled = true | |
| 579 | myhum.WalkSpeed = 0 | |
| 580 | handle2.BrickColor = BrickColor.new(elec) | |
| 581 | brick2.BrickColor = handle2.BrickColor | |
| 582 | brick3.BrickColor = handle2.BrickColor | |
| 583 | cols = {"Neon orange", "New Yeller", "Bright yellow", "Bright orange"}
| |
| 584 | for i=1, 6 do | |
| 585 | wait(0.01) | |
| 586 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(-0.11,0,0) | |
| 587 | end | |
| 588 | wait(0.35) | |
| 589 | tab = {}
| |
| 590 | for i=1, 50 do | |
| 591 | for i=1, 20 do | |
| 592 | local a = Instance.new("Part")
| |
| 593 | a.Parent = workspace | |
| 594 | a.formFactor = "Symmetric" | |
| 595 | a.Size = Vector3.new(4,1,1) | |
| 596 | a.TopSurface = 0 | |
| 597 | a.BottomSurface = 0 | |
| 598 | local numb = math.random(1,4) | |
| 599 | a.BrickColor = BrickColor.new(cols[numb]) | |
| 600 | a.Anchored = true | |
| 601 | a.CanCollide = false | |
| 602 | a.Transparency = 0.3 | |
| 603 | local mo = Instance.new("SpecialMesh")
| |
| 604 | mo.Parent = a | |
| 605 | mo.MeshType = "Brick" | |
| 606 | mo.Scale = Vector3.new(1,0.2,0.2) | |
| 607 | a.CFrame = handle2.CFrame | |
| 608 | a.CFrame = a.CFrame * CFrame.Angles(math.random(-3.2,3.2),math.random(-3.2,3.2),math.random(-3.2,3.2)) * CFrame.new(2,0,0) | |
| 609 | table.insert(tab, a) | |
| 610 | end | |
| 611 | wait() | |
| 612 | for _, v in pairs(tab) do | |
| 613 | v:remove() | |
| 614 | end | |
| 615 | end | |
| 616 | for i=1, 7 do | |
| 617 | wait(0.01) | |
| 618 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0.17,0.1,0) | |
| 619 | end | |
| 620 | coroutine.resume(coroutine.create(function() | |
| 621 | for i=1, 10 do | |
| 622 | wait(0.2) | |
| 623 | local h = Instance.new("Part")
| |
| 624 | h.Parent = workspace | |
| 625 | h.Shape = "Ball" | |
| 626 | h.Size = Vector3.new(3,3,3) | |
| 627 | h.TopSurface = 0 | |
| 628 | h.BottomSurface = 0 | |
| 629 | local numb = math.random(1,4) | |
| 630 | h.BrickColor = BrickColor.new(cols[numb]) | |
| 631 | h.Anchored = true | |
| 632 | h.CanCollide = false | |
| 633 | h.Transparency = 0.5 | |
| 634 | h.CFrame = handle2.CFrame | |
| 635 | local function magn(hif) | |
| 636 | if hif.Parent.Name == player.Name then return end | |
| 637 | local dist = (char.Torso.Position - hif.Position).magnitude | |
| 638 | if dist >= 10 then | |
| 639 | print(dist) | |
| 640 | local hum = hif.Parent:findFirstChild("Humanoid")
| |
| 641 | if hum ~= nil then | |
| 642 | hum.Health = 0 | |
| 643 | end | |
| 644 | end | |
| 645 | end | |
| 646 | coroutine.resume(coroutine.create(function() | |
| 647 | for i=1, 30 do | |
| 648 | wait() | |
| 649 | magn(char.Torso) | |
| 650 | end | |
| 651 | end)) | |
| 652 | coroutine.resume(coroutine.create(function() | |
| 653 | for i=1, 30 do | |
| 654 | wait(0.04) | |
| 655 | h.Size = h.Size + Vector3.new(2,2,2) | |
| 656 | h.Transparency = h.Transparency + 0.023 | |
| 657 | h.CFrame = handle2.CFrame | |
| 658 | end | |
| 659 | h:remove() | |
| 660 | end)) | |
| 661 | end | |
| 662 | end)) | |
| 663 | for i=1, 19 do | |
| 664 | for i=1, 30 do | |
| 665 | local f = Instance.new("Part")
| |
| 666 | f.Parent = workspace | |
| 667 | f.formFactor = "Symmetric" | |
| 668 | f.Size = Vector3.new(25,1,1) | |
| 669 | f.TopSurface = 0 | |
| 670 | f.BottomSurface = 0 | |
| 671 | local numb = math.random(1,4) | |
| 672 | f.BrickColor = BrickColor.new(cols[numb]) | |
| 673 | f.Anchored = true | |
| 674 | f.CanCollide = false | |
| 675 | f.Transparency = 0.3 | |
| 676 | local mo = Instance.new("SpecialMesh")
| |
| 677 | mo.Parent = f | |
| 678 | mo.MeshType = "Brick" | |
| 679 | mo.Scale = Vector3.new(1,math.random(0.8,1.7),math.random(0.8,1.7)) | |
| 680 | f.CFrame = handle2.CFrame | |
| 681 | f.CFrame = f.CFrame * CFrame.Angles(math.random(-3.2,3.2),math.random(-3.2,3.2),math.random(-3.2,3.2)) * CFrame.new(12.5,0,0) | |
| 682 | table.insert(tab, f) | |
| 683 | end | |
| 684 | wait(0.1) | |
| 685 | for _, v in pairs(tab) do | |
| 686 | v:remove() | |
| 687 | end | |
| 688 | end | |
| 689 | myhum.WalkSpeed = norm | |
| 690 | enabled = false | |
| 691 | end | |
| 692 | end) | |
| 693 | mouse.KeyUp:connect(function(key) | |
| 694 | key = key:lower() | |
| 695 | if (key == "k") then | |
| 696 | hol = false | |
| 697 | for i=1, 6 do | |
| 698 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(-0.1,-0.1,0) | |
| 699 | wait() | |
| 700 | end | |
| 701 | wa.C1 = original | |
| 702 | enabled = false | |
| 703 | wait(0.3) | |
| 704 | wa.C1 = original | |
| 705 | elseif (key == "e") then | |
| 706 | hol = false | |
| 707 | for i=1, 6 do | |
| 708 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(-0.1,-0.02,0) | |
| 709 | weld.C1 = weld.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0.24) | |
| 710 | wait() | |
| 711 | end | |
| 712 | myhum.WalkSpeed = norm | |
| 713 | for i=1, 5 do | |
| 714 | wait(0.15) | |
| 715 | wa.C1 = original | |
| 716 | weld.C1 = weporigin | |
| 717 | end | |
| 718 | enabled = false | |
| 719 | end | |
| 720 | end) | |
| 721 | mouse.Button1Down:connect(function() | |
| 722 | e = char.Torso | |
| 723 | wait(0.2) | |
| 724 | e.CFrame = CFrame.new(mouse.Hit.p) * CFrame.new(0,2.5,0) | |
| 725 | end) | |
| 726 | end | |
| 727 | ||
| 728 | function deselect() | |
| 729 | spin = false | |
| 730 | for i = 1, 8 do | |
| 731 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(-0.35,0,0) | |
| 732 | wait() | |
| 733 | end | |
| 734 | for i = 1, 4 do | |
| 735 | wa.C1 = wa.C1 * CFrame.fromEulerAnglesXYZ(0,0.2,0) | |
| 736 | wait() | |
| 737 | end | |
| 738 | toha.Part0 = toha.Parent | |
| 739 | toha.Part1 = handle | |
| 740 | weld.Part0 = nil | |
| 741 | weld.Part1 = nil | |
| 742 | wait() | |
| 743 | wa.Part0 = nil | |
| 744 | wa.Part1 = nil | |
| 745 | end | |
| 746 | ||
| 747 | ||
| 748 | script.Parent.Selected:connect(select) | |
| 749 | script.Parent.Deselected:connect(deselect) |