SHOW:
|
|
- or go back to the newest paste.
| 1 | if (script.Parent.className ~= "HopperBin") then | |
| 2 | local h = Instance.new("HopperBin")
| |
| 3 | h.Name = "Jetpack V2" | |
| 4 | h.Parent = game.Players.Vfen.Backpack | |
| 5 | script.Parent = h | |
| 6 | script.Name = "Function" | |
| 7 | end | |
| 8 | Bin = script.Parent | |
| 9 | - | Person = game.Players.LocalPlayer |
| 9 | + | Person = game.Players.talocool |
| 10 | PersonT = Person.Character.Torso | |
| 11 | Hold = false | |
| 12 | Lazer = false | |
| 13 | Grabbed = nil | |
| 14 | Debounce = false | |
| 15 | FDebounce = false | |
| 16 | Flight = false | |
| 17 | NormalHand = 1 --Change to your preffered hand 1 being "Right" and 2 begin "Left" | |
| 18 | NormalFoot = 4 --Change to your preffered foot 3 being "Right" and 4 begin "Left" | |
| 19 | Joints = {PersonT:findFirstChild("Right Shoulder"), PersonT:findFirstChild("Left Shoulder"), PersonT:findFirstChild("Right Hip"), PersonT:findFirstChild("Left Hip")}
| |
| 20 | Limbs = {Person.Character:findFirstChild("Right Arm"), Person.Character:findFirstChild("Left Arm"), Person.Character:findFirstChild("Right Leg"), Person.Character:findFirstChild("Left Leg")}
| |
| 21 | if (Person.Character:findFirstChild("Suit") ~= nil) then
| |
| 22 | Person.Character.Suit:remove() | |
| 23 | end | |
| 24 | Suit = Instance.new("Model")
| |
| 25 | Suit.Parent = Person.Character | |
| 26 | Suit.Name = "Suit" | |
| 27 | LJet = Instance.new("Part")
| |
| 28 | LJet.Parent = Suit | |
| 29 | LJet.Name = "Left Jet" | |
| 30 | LJet.CanCollide = false | |
| 31 | LJet.formFactor = "Symmetric" | |
| 32 | LJet.Size = Vector3.new(1, 1, 1) | |
| 33 | LJet.BrickColor = BrickColor.new("Really black")
| |
| 34 | LJet.Reflectance = 0.1 | |
| 35 | LJet.TopSurface = 0 | |
| 36 | LJet.BottomSurface = 0 | |
| 37 | LJMesh = Instance.new("CylinderMesh")
| |
| 38 | LJMesh.Parent = LJet | |
| 39 | LJMesh.Scale = Vector3.new(0.8, 2, 0.8) | |
| 40 | LJet:BreakJoints() | |
| 41 | Weld = Instance.new("Weld")
| |
| 42 | Weld.Parent = LJet | |
| 43 | Weld.Part0 = PersonT | |
| 44 | Weld.Part1 = LJet | |
| 45 | Weld.C0 = CFrame.new(-0.3, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 46 | LJetT = Instance.new("Part")
| |
| 47 | LJetT.Parent = Suit | |
| 48 | LJetT.Name = "Left Jet Tip" | |
| 49 | LJetT.CanCollide = false | |
| 50 | LJetT.formFactor = "Symmetric" | |
| 51 | LJetT.Size = Vector3.new(1, 1, 1) | |
| 52 | LJetT.BrickColor = BrickColor.new("Really black")
| |
| 53 | LJetT.Reflectance = 0.1 | |
| 54 | LJetT.TopSurface = 0 | |
| 55 | LJetT.BottomSurface = 0 | |
| 56 | LJTMesh = Instance.new("SpecialMesh")
| |
| 57 | LJTMesh.Parent = LJetT | |
| 58 | LJTMesh.MeshType = "Cylinder" | |
| 59 | LJTMesh.Scale = Vector3.new(0.8, 0.8, 0.8) | |
| 60 | LJetT:BreakJoints() | |
| 61 | Weld = Instance.new("Weld")
| |
| 62 | Weld.Parent = LJet | |
| 63 | Weld.Part0 = LJet | |
| 64 | Weld.Part1 = LJetT | |
| 65 | Weld.C0 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 66 | LJetB = Instance.new("Part")
| |
| 67 | LJetB.Parent = Suit | |
| 68 | LJetB.Name = "Left Jet Barrel" | |
| 69 | LJetB.CanCollide = false | |
| 70 | LJetB.formFactor = "Symmetric" | |
| 71 | LJetB.Size = Vector3.new(1, 1, 1) | |
| 72 | LJetB.BrickColor = BrickColor.new("Really black")
| |
| 73 | LJetB.Reflectance = 0.1 | |
| 74 | LJetB.TopSurface = 0 | |
| 75 | LJetB.BottomSurface = 0 | |
| 76 | Flame = Instance.new("Part") --
| |
| 77 | Flame.Name = "Flame" | |
| 78 | Flame.Transparency =1 | |
| 79 | Flame.CanCollide = false | |
| 80 | Flame.Locked = true | |
| 81 | Flame.formFactor = 2 | |
| 82 | Flame.Size = Vector3.new(1,0.4,1) | |
| 83 | Flame.Parent = LJetB | |
| 84 | local Fire = Instance.new("Fire")
| |
| 85 | Fire.Heat = -12 | |
| 86 | Fire.Size = 2 | |
| 87 | Fire.Enabled = false | |
| 88 | Fire.Parent = LJetB -- | |
| 89 | LJBMesh = Instance.new("CylinderMesh")
| |
| 90 | LJBMesh.Parent = LJetB | |
| 91 | LJBMesh.Scale = Vector3.new(0.1, 0.2, 0.1) | |
| 92 | LJetB:BreakJoints() | |
| 93 | Weld = Instance.new("Weld")
| |
| 94 | Weld.Parent = LJet | |
| 95 | Weld.Part0 = LJet | |
| 96 | Weld.Part1 = LJetB | |
| 97 | Weld.C0 = CFrame.new(0, -1.1, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 98 | ---Right Jet | |
| 99 | RJet = Instance.new("Part")
| |
| 100 | RJet.Parent = Suit | |
| 101 | RJet.Name = "Right Jet" | |
| 102 | RJet.CanCollide = false | |
| 103 | RJet.formFactor = "Symmetric" | |
| 104 | RJet.Size = Vector3.new(1, 1, 1) | |
| 105 | RJet.BrickColor = BrickColor.new("Really black")
| |
| 106 | RJet.Reflectance = 0.1 | |
| 107 | RJet.TopSurface = 0 | |
| 108 | RJet.BottomSurface = 0 | |
| 109 | RJMesh = Instance.new("CylinderMesh")
| |
| 110 | RJMesh.Parent = RJet | |
| 111 | RJMesh.Scale = Vector3.new(0.8, 2, 0.8) | |
| 112 | RJet:BreakJoints() | |
| 113 | Weld = Instance.new("Weld")
| |
| 114 | Weld.Parent = RJet | |
| 115 | Weld.Part0 = PersonT | |
| 116 | Weld.Part1 = RJet | |
| 117 | Weld.C0 = CFrame.new(0.3, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 118 | RJetT = Instance.new("Part")
| |
| 119 | RJetT.Parent = Suit | |
| 120 | RJetT.Name = "Right Jet Tip" | |
| 121 | RJetT.CanCollide = false | |
| 122 | RJetT.formFactor = "Symmetric" | |
| 123 | RJetT.Size = Vector3.new(1, 1, 1) | |
| 124 | RJetT.BrickColor = BrickColor.new("Really black")
| |
| 125 | RJetT.Reflectance = 0.1 | |
| 126 | RJetT.TopSurface = 0 | |
| 127 | RJetT.BottomSurface = 0 | |
| 128 | RJTMesh = Instance.new("SpecialMesh")
| |
| 129 | RJTMesh.Parent = RJetT | |
| 130 | RJTMesh.MeshType = "Cylinder" | |
| 131 | RJTMesh.Scale = Vector3.new(0.8, 0.8, 0.8) | |
| 132 | RJetT:BreakJoints() | |
| 133 | Weld = Instance.new("Weld")
| |
| 134 | Weld.Parent = RJet | |
| 135 | Weld.Part0 = RJet | |
| 136 | Weld.Part1 = RJetT | |
| 137 | Weld.C0 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 138 | RJetB = Instance.new("Part")
| |
| 139 | RJetB.Parent = Suit | |
| 140 | RJetB.Name = "Right Jet Barrel" | |
| 141 | RJetB.CanCollide = false | |
| 142 | RJetB.formFactor = "Symmetric" | |
| 143 | RJetB.Size = Vector3.new(1, 1, 1) | |
| 144 | RJetB.BrickColor = BrickColor.new("Really black")
| |
| 145 | RJetB.Reflectance = 0.1 | |
| 146 | RJetB.TopSurface = 0 | |
| 147 | RJetB.BottomSurface = 0 | |
| 148 | Flame = Instance.new("Part") --
| |
| 149 | Flame.Name = "Flame" | |
| 150 | Flame.Transparency =1 | |
| 151 | Flame.CanCollide = false | |
| 152 | Flame.Locked = true | |
| 153 | Flame.formFactor = 2 | |
| 154 | Flame.Size = Vector3.new(1,0.4,1) | |
| 155 | Flame.Parent = RJetB | |
| 156 | local Fire = Instance.new("Fire")
| |
| 157 | Fire.Heat = -12 | |
| 158 | Fire.Size = 2 | |
| 159 | Fire.Enabled = false | |
| 160 | Fire.Parent = RJetB -- | |
| 161 | RJBMesh = Instance.new("CylinderMesh")
| |
| 162 | RJBMesh.Parent = RJetB | |
| 163 | RJBMesh.Scale = Vector3.new(0.1, 0.2, 0.1) | |
| 164 | RJetB:BreakJoints() | |
| 165 | Weld = Instance.new("Weld")
| |
| 166 | Weld.Parent = RJet | |
| 167 | Weld.Part0 = RJet | |
| 168 | Weld.Part1 = RJetB | |
| 169 | Weld.C0 = CFrame.new(0, -1.1, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 170 | ---Watch | |
| 171 | Band = Instance.new("Part")
| |
| 172 | Band.Parent = Suit | |
| 173 | Band.Name = "Band" | |
| 174 | Band.CanCollide = false | |
| 175 | Band.formFactor = "Symmetric" | |
| 176 | Band.Size = Vector3.new(1, 1, 1) | |
| 177 | Band.BrickColor = BrickColor.new("Black")
| |
| 178 | Band.TopSurface = 0 | |
| 179 | Band.BottomSurface = 0 | |
| 180 | BandM = Instance.new("SpecialMesh")
| |
| 181 | BandM.MeshType = "Brick" | |
| 182 | BandM.Parent = Band | |
| 183 | BandM.Scale = Vector3.new(1.03, 0.2, 1.03) | |
| 184 | Band:BreakJoints() | |
| 185 | Weld = Instance.new("Weld")
| |
| 186 | Weld.Parent = Band | |
| 187 | Weld.Part0 = Limbs[NormalHand] | |
| 188 | Weld.Part1 = Band | |
| 189 | Weld.C0 = CFrame.new(0, -0.6, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 190 | Watch1 = Instance.new("Part")
| |
| 191 | Watch1.Parent = Suit | |
| 192 | Watch1.Name = "Watch1" | |
| 193 | Watch1.CanCollide = false | |
| 194 | Watch1.formFactor = "Symmetric" | |
| 195 | Watch1.Size = Vector3.new(1, 1, 1) | |
| 196 | Watch1.BrickColor = BrickColor.new("Black")
| |
| 197 | Watch1.TopSurface = 0 | |
| 198 | Watch1.BottomSurface = 0 | |
| 199 | Watch1M = Instance.new("CylinderMesh")
| |
| 200 | Watch1M.Parent = Watch1 | |
| 201 | Watch1M.Scale = Vector3.new(0.3, 0.2, 0.3) | |
| 202 | Watch1:BreakJoints() | |
| 203 | Weld = Instance.new("Weld")
| |
| 204 | Weld.Parent = Watch1 | |
| 205 | Weld.Part0 = Band | |
| 206 | Weld.Part1 = Watch1 | |
| 207 | Weld.C0 = CFrame.new(0, 0, -0.41) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0) | |
| 208 | Watch2 = Instance.new("Part")
| |
| 209 | Watch2.Parent = Suit | |
| 210 | Watch2.Name = "Watch2" | |
| 211 | Watch2.CanCollide = false | |
| 212 | Watch2.formFactor = "Symmetric" | |
| 213 | Watch2.Size = Vector3.new(1, 1, 1) | |
| 214 | Watch2.BrickColor = BrickColor.new("White")
| |
| 215 | Watch2.TopSurface = 0 | |
| 216 | Watch2.BottomSurface = 0 | |
| 217 | Watch2M = Instance.new("CylinderMesh")
| |
| 218 | Watch2M.Parent = Watch2 | |
| 219 | Watch2M.Scale = Vector3.new(0.25, 0.2, 0.25) | |
| 220 | Watch2:BreakJoints() | |
| 221 | Weld = Instance.new("Weld")
| |
| 222 | Weld.Parent = Watch2 | |
| 223 | Weld.Part0 = Band | |
| 224 | Weld.Part1 = Watch2 | |
| 225 | Weld.C0 = CFrame.new(0, 0, -0.42) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0) | |
| 226 | ---Real Function | |
| 227 | function SetAngle(Joint, Angle) | |
| 228 | if (Joint == 1) or (Joint == 3) then | |
| 229 | Joints[Joint].DesiredAngle = Angle | |
| 230 | end | |
| 231 | if (Joint == 2) or (Joint == 4) then | |
| 232 | Joints[Joint].DesiredAngle = -Angle | |
| 233 | end | |
| 234 | end | |
| 235 | function DisableLimb(Limb) | |
| 236 | Joints[Limb]:remove() | |
| 237 | ||
| 238 | Joint = Instance.new("Motor")
| |
| 239 | Joint.Parent = Person.Character.Torso | |
| 240 | Joint.Part0 = Person.Character.Torso | |
| 241 | Joint.Part1 = Limbs[Limb] | |
| 242 | Joint.MaxVelocity = 0.1 | |
| 243 | if (Limb == 1) then | |
| 244 | C0 = CFrame.new(PersonT.Size.x/2 + Limbs[Limb].Size.x/2, Limbs[Limb].Size.y/4, 0) * CFrame.fromEulerAnglesXYZ(0, 3.14/2, 0) | |
| 245 | Joint.C1 = CFrame.new(0, Limbs[Limb].Size.y/4, 0) * CFrame.fromEulerAnglesXYZ(0, 3.14/2, 0) | |
| 246 | Joint.Name = "Right Joint Top" | |
| 247 | elseif (Limb == 2) then | |
| 248 | C0 = CFrame.new(-PersonT.Size.x/2 - Limbs[Limb].Size.x/2, Limbs[Limb].Size.y/4, 0) * CFrame.fromEulerAnglesXYZ(0, -3.14/2, 0) | |
| 249 | Joint.C1 = CFrame.new(0, Limbs[Limb].Size.y/4, 0) * CFrame.fromEulerAnglesXYZ(0, -3.14/2, 0) | |
| 250 | Joint.Name = "Left Joint Top" | |
| 251 | elseif (Limb == 3) then | |
| 252 | C0 = CFrame.new(Limbs[Limb].Size.x/2, -(Limbs[Limb].Size.y/4) * 3, 0) * CFrame.fromEulerAnglesXYZ(0, 3.14/2, 0) | |
| 253 | Joint.C1 = CFrame.new(0, Limbs[Limb].Size.y/4, 0) * CFrame.fromEulerAnglesXYZ(0, 3.14/2, 0) | |
| 254 | Joint.Name = "Right Joint Bottom" | |
| 255 | elseif(Limb == 4) then | |
| 256 | C0 = CFrame.new(-Limbs[Limb].Size.x/2, -(Limbs[Limb].Size.y/4) * 3, 0) * CFrame.fromEulerAnglesXYZ(0, -3.14/2, 0) | |
| 257 | Joint.C1 = CFrame.new(0, Limbs[Limb].Size.y/4, 0) * CFrame.fromEulerAnglesXYZ(0, -3.14/2, 0) | |
| 258 | Joint.Name = "Left Joint Bottom" | |
| 259 | end | |
| 260 | Joint.C0 = C0 | |
| 261 | Joints[Limb] = Joint | |
| 262 | end | |
| 263 | function EnableLimb(Limb) | |
| 264 | if (Limb == 1) then | |
| 265 | Joints[Limb].Name = "Right Shoulder" | |
| 266 | elseif (Limb == 2) then | |
| 267 | Joints[Limb].Name = "Left Shoulder" | |
| 268 | elseif (Limb == 3) then | |
| 269 | Joints[Limb].Name = "Right Hip" | |
| 270 | elseif(Limb == 4) then | |
| 271 | Joints[Limb].Name = "Left Hip" | |
| 272 | end | |
| 273 | Anim = Person.Character.Animate:clone() | |
| 274 | Person.Character.Animate:remove() | |
| 275 | Anim.Parent = Person.Character | |
| 276 | end | |
| 277 | function Grab(Part) | |
| 278 | if (Grabbed == nil) then | |
| 279 | if (Part.Parent ~= nil) then | |
| 280 | Human = Part.Parent:findFirstChild("Humanoid")
| |
| 281 | if (Human ~= nil) then | |
| 282 | Player = game.Players:GetPlayerFromCharacter(Human.Parent) | |
| 283 | if (Player ~= nil) then | |
| 284 | if (Player ~= Person) then | |
| 285 | Human.Sit = true | |
| 286 | Weld = Instance.new("Weld")
| |
| 287 | Weld.Name = "Grip" | |
| 288 | Weld.Parent = Person.Character.Torso | |
| 289 | Weld.Part0 = Person.Character.Torso | |
| 290 | Weld.Part1 = Player.Character.Torso | |
| 291 | Weld.C0 = CFrame.new(0, 2.5, 0) * CFrame.fromEulerAnglesXYZ(3.14/2, 0, 0) | |
| 292 | SetAngle(1, 3.14) | |
| 293 | SetAngle(2, 3.14) | |
| 294 | Grabbed = Player | |
| 295 | Human.Sit = true | |
| 296 | Connection1:disconnect() | |
| 297 | Connection2:disconnect() | |
| 298 | while true do | |
| 299 | if (Weld.Part1 == nil) then | |
| 300 | Debounce = false | |
| 301 | EnableLimb(1) | |
| 302 | EnableLimb(2) | |
| 303 | Grabbed = nil | |
| 304 | break | |
| 305 | elseif (Weld.Parent == nil) then | |
| 306 | Debounce = false | |
| 307 | EnableLimb(1) | |
| 308 | EnableLimb(2) | |
| 309 | Grabbed = nil | |
| 310 | break | |
| 311 | else | |
| 312 | Human.Sit = true | |
| 313 | end | |
| 314 | wait() | |
| 315 | end | |
| 316 | end | |
| 317 | end | |
| 318 | end | |
| 319 | end | |
| 320 | end | |
| 321 | end | |
| 322 | function Click(mouse) | |
| 323 | Hold = true | |
| 324 | if (Flight == true) then | |
| 325 | Person.Character.Engine.BodyPosition.maxForce = Vector3.new(0, 0, 0) | |
| 326 | Person.Character.Engine.BodyVelocity.maxForce = Vector3.new(4e+030, 4e+030, 4e+030) | |
| 327 | Position = Person.Character.Engine.Position | |
| 328 | Person.Character.Suit["Left Jet Barrel"].Fire.Enabled = true -- | |
| 329 | Person.Character.Suit["Right Jet Barrel"].Fire.Enabled = true -- | |
| 330 | Person.Character.Engine.Weld.C0 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(3.14/2, 0, 0) | |
| 331 | SetAngle(NormalHand, 3.14) | |
| 332 | while true do | |
| 333 | if (Flight == false) then | |
| 334 | break | |
| 335 | end | |
| 336 | if (Hold == false) then | |
| 337 | break | |
| 338 | end | |
| 339 | Direction = Person.Character.Engine.CFrame.lookVector | |
| 340 | Position = Position + 2 * 3 * Direction | |
| 341 | error = Position - Person.Character.Engine.Position | |
| 342 | Person.Character.Engine.BodyVelocity.velocity = 2 * error | |
| 343 | wait() | |
| 344 | end | |
| 345 | BodyP.position = Engine.Position | |
| 346 | Person.Character.Engine.BodyPosition.maxForce = Vector3.new(4e+050, 4e+050, 4e+050) | |
| 347 | Person.Character.Suit["Left Jet Barrel"].Fire.Enabled = false -- | |
| 348 | Person.Character.Suit["Right Jet Barrel"].Fire.Enabled = false -- | |
| 349 | Person.Character.Engine.Weld.C0 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 350 | SetAngle(NormalHand, 0) | |
| 351 | ||
| 352 | end | |
| 353 | ||
| 354 | end | |
| 355 | ||
| 356 | ||
| 357 | function Release(mouse) | |
| 358 | Hold = false | |
| 359 | end | |
| 360 | function Direct(En, Target) | |
| 361 | local OriginCFrame = En:findFirstChild("BodyGyro").cframe
| |
| 362 | local Direction = (Target - En.Position).unit | |
| 363 | local SpawnPosition = En.Position | |
| 364 | local Position = SpawnPosition + (Direction * 1) | |
| 365 | En:findFirstChild("BodyGyro").maxTorque = Vector3.new(9000, 9000, 9000)
| |
| 366 | En:findFirstChild("BodyGyro").cframe = CFrame.new(Position, Position + Direction)
| |
| 367 | end | |
| 368 | function PressKey(key, mouse) | |
| 369 | key = key:upper() | |
| 370 | if (key == "Z") then | |
| 371 | if (Debounce == false) then | |
| 372 | Debounce = true | |
| 373 | DisableLimb(1) | |
| 374 | DisableLimb(2) | |
| 375 | Joints[1].MaxVelocity = 1 | |
| 376 | SetAngle(1, 3.14) | |
| 377 | Joints[2].MaxVelocity = 1 | |
| 378 | SetAngle(2, 3.14) | |
| 379 | function Touch(Part) | |
| 380 | if (Part.Parent ~= nil) then | |
| 381 | Human = Part.Parent:findFirstChild("Humanoid")
| |
| 382 | if (Human ~= nil) then | |
| 383 | --Human.Sit = true | |
| 384 | Human.Parent.Torso.Velocity = Vector3.new(0, 300, 0) | |
| 385 | end | |
| 386 | end | |
| 387 | end | |
| 388 | Connection = Limbs[1].Touched:connect(Touch) | |
| 389 | ConnectionB = Limbs[2].Touched:connect(Touch) | |
| 390 | wait(0.5) | |
| 391 | Joints[1].MaxVelocity = 0.1 | |
| 392 | Joints[2].MaxVelocity = 0.1 | |
| 393 | EnableLimb(1) | |
| 394 | EnableLimb(2) | |
| 395 | Connection:disconnect() | |
| 396 | ConnectionB:disconnect() | |
| 397 | Debounce = false | |
| 398 | end | |
| 399 | end | |
| 400 | if (key == "U") then | |
| 401 | X = game.Workspace:GetChildren() | |
| 402 | for I, E in pairs(X) do | |
| 403 | if (E.Name == "Bomb") then | |
| 404 | Ex = Instance.new("Explosion")
| |
| 405 | Ex.Parent = game.Workspace | |
| 406 | Ex.BlastRadius = 12 | |
| 407 | Ex.Position = E.Position | |
| 408 | Ex.BlastPressure = 1000 | |
| 409 | E:remove() | |
| 410 | end | |
| 411 | end | |
| 412 | end | |
| 413 | if (key == "Y") then | |
| 414 | Bomb = Instance.new("Part")
| |
| 415 | Bomb.Name = "Bomb" | |
| 416 | Bomb.formFactor = "Plate" | |
| 417 | Bomb.Size = Vector3.new(1, 0.4, 1) | |
| 418 | Bomb.TopSurface = 0 | |
| 419 | Bomb.BottomSurface = 0 | |
| 420 | Bomb.BrickColor = BrickColor.new("Black")
| |
| 421 | Bomb.CFrame = CFrame.new(Person.Character.Suit.Watch2.Position) | |
| 422 | Bomb.CanCollide = true | |
| 423 | Bomb.Parent = game.Workspace | |
| 424 | Smoke = Instance.new("Smoke")
| |
| 425 | Smoke.Parent = Bomb | |
| 426 | local c = (PersonT.Color.r + PersonT.Color.g + PersonT.Color.b)/3 | |
| 427 | Smoke.Color = Color3.new(c, c, c) | |
| 428 | Smoke.Size = 1 | |
| 429 | Smoke.Opacity = 0.7 | |
| 430 | Smoke.RiseVelocity = 10 | |
| 431 | Bomb:BreakJoints() | |
| 432 | end | |
| 433 | if (key == "Q") then | |
| 434 | if (Debounce == false) then | |
| 435 | Debounce = true | |
| 436 | DisableLimb(NormalFoot) | |
| 437 | Joints[NormalFoot].MaxVelocity = 1 | |
| 438 | SetAngle(NormalFoot, 0.7) | |
| 439 | function Touch(Part) | |
| 440 | if (Part.Parent ~= nil) then | |
| 441 | Human = Part.Parent:findFirstChild("Humanoid")
| |
| 442 | if (Human ~= nil) then | |
| 443 | Human.Sit = true | |
| 444 | Position = Human.Parent.Torso.Position | |
| 445 | Direction = PersonT.CFrame.lookVector | |
| 446 | Position = Position + 10 * 3 * Direction | |
| 447 | error = Position - PersonT.Position | |
| 448 | Human.Parent.Torso.Velocity = 10 * error | |
| 449 | Human.Parent.Torso.Velocity = Human.Parent.Torso.Velocity + Vector3.new(0, 100, 0) | |
| 450 | end | |
| 451 | end | |
| 452 | end | |
| 453 | Connection = Limbs[NormalFoot].Touched:connect(Touch) | |
| 454 | wait(0.5) | |
| 455 | Joints[NormalFoot].MaxVelocity = 0.1 | |
| 456 | EnableLimb(NormalFoot) | |
| 457 | Connection:disconnect() | |
| 458 | Debounce = false | |
| 459 | end | |
| 460 | end | |
| 461 | if (key == "F") then | |
| 462 | if (Debounce == false) then | |
| 463 | Debounce = true | |
| 464 | DisableLimb(NormalFoot) | |
| 465 | Joints[NormalFoot].MaxVelocity = 1 | |
| 466 | SetAngle(NormalFoot, 0.7) | |
| 467 | function Touch(Part) | |
| 468 | if (Part.Parent ~= nil) then | |
| 469 | Human = Part.Parent:findFirstChild("Humanoid")
| |
| 470 | if (Human ~= nil) then | |
| 471 | Player = game.Players:GetPlayerFromCharacter(Human.Parent) | |
| 472 | if (Player ~= nil) then | |
| 473 | if (Player ~= Person) then | |
| 474 | Human.Sit = true | |
| 475 | Position = Human.Parent.Torso.Position | |
| 476 | Direction = PersonT.CFrame.lookVector | |
| 477 | Position = Position + 10 * 3 * Direction | |
| 478 | error = Position - PersonT.Position | |
| 479 | Human.Parent.Torso.Velocity = 10 * error | |
| 480 | Human.Parent.Torso.Velocity = Human.Parent.Torso.Velocity + Vector3.new(0, 100, 0) | |
| 481 | wait(0.4) | |
| 482 | Player:remove() | |
| 483 | end | |
| 484 | end | |
| 485 | end | |
| 486 | end | |
| 487 | end | |
| 488 | Connection = Limbs[NormalFoot].Touched:connect(Touch) | |
| 489 | wait(0.5) | |
| 490 | Joints[NormalFoot].MaxVelocity = 0.1 | |
| 491 | EnableLimb(NormalFoot) | |
| 492 | Connection:disconnect() | |
| 493 | Debounce = false | |
| 494 | end | |
| 495 | end | |
| 496 | if (key == "E") then | |
| 497 | if (Flight == true) then | |
| 498 | if (FDebounce == false) then | |
| 499 | FDebounce = true | |
| 500 | function Touch(Part) | |
| 501 | if (Part.Parent ~= nil) then | |
| 502 | Human = Part.Parent:findFirstChild("Humanoid")
| |
| 503 | if (Human ~= nil) then | |
| 504 | Human.Sit = true | |
| 505 | Position = Human.Parent.Torso.Position | |
| 506 | Direction = Person.Character.Engine.CFrame.lookVector | |
| 507 | Position = Position + 10 * 3 * Direction | |
| 508 | error = Position - PersonT.Position | |
| 509 | Human.Parent.Torso.Velocity = 10 * error | |
| 510 | end | |
| 511 | end | |
| 512 | end | |
| 513 | Connection = PersonT.Touched:connect(Touch) | |
| 514 | wait(2) | |
| 515 | Connection:disconnect() | |
| 516 | FDebounce = false | |
| 517 | end | |
| 518 | end | |
| 519 | if (Debounce == false) then | |
| 520 | Debounce = true | |
| 521 | DisableLimb(NormalHand) | |
| 522 | Joints[NormalHand].MaxVelocity = 1 | |
| 523 | SetAngle(NormalHand, 1.57) | |
| 524 | function Touch(Part) | |
| 525 | if (Part.Parent ~= nil) then | |
| 526 | Human = Part.Parent:findFirstChild("Humanoid")
| |
| 527 | if (Human ~= nil) then | |
| 528 | Human.Sit = true | |
| 529 | Position = Human.Parent.Torso.Position | |
| 530 | Direction = PersonT.CFrame.lookVector | |
| 531 | Position = Position + 10 * 3 * Direction | |
| 532 | error = Position - PersonT.Position | |
| 533 | Human.Parent.Torso.Velocity = 10 * error | |
| 534 | end | |
| 535 | end | |
| 536 | end | |
| 537 | Connection = Limbs[NormalHand].Touched:connect(Touch) | |
| 538 | wait(0.5) | |
| 539 | EnableLimb(NormalHand) | |
| 540 | Connection:disconnect() | |
| 541 | Debounce = false | |
| 542 | end | |
| 543 | end | |
| 544 | if (key == "T") then | |
| 545 | E = Instance.new("Explosion")
| |
| 546 | E.Parent = game.Workspace | |
| 547 | E.BlastRadius = 12 | |
| 548 | E.Position = mouse.hit.p | |
| 549 | E.BlastPressure = 1000 | |
| 550 | end | |
| 551 | if (key == "G") then | |
| 552 | if (Grabbed == nil) then | |
| 553 | if (Debounce == false) then | |
| 554 | Debounce = true | |
| 555 | DisableLimb(1) | |
| 556 | DisableLimb(2) | |
| 557 | SetAngle(1, 1.57) | |
| 558 | SetAngle(2, 1.57) | |
| 559 | Connection1 = Limbs[1].Touched:connect(Grab) | |
| 560 | Connection2 = Limbs[2].Touched:connect(Grab) | |
| 561 | for E = 1, 30 do | |
| 562 | if (Grabbed ~= nil) then | |
| 563 | break | |
| 564 | end | |
| 565 | wait(0.1) | |
| 566 | end | |
| 567 | if (Grabbed == nil) then | |
| 568 | EnableLimb(1) | |
| 569 | EnableLimb(2) | |
| 570 | Connection1:disconnect() | |
| 571 | Connection2:disconnect() | |
| 572 | Debounce = false | |
| 573 | end | |
| 574 | end | |
| 575 | else | |
| 576 | Person.Character.Torso.Grip:remove() | |
| 577 | Position = Grabbed.Character.Torso.Position | |
| 578 | Direction = PersonT.CFrame.lookVector | |
| 579 | Position = Position + 4 * 3 * Direction | |
| 580 | error = Position - PersonT.Position | |
| 581 | Grabbed.Character.Torso.Velocity = 4 * error | |
| 582 | end | |
| 583 | end | |
| 584 | if (key == "R") then | |
| 585 | if (Flight == false) then | |
| 586 | if (Debounce == false) then | |
| 587 | Debounce = true | |
| 588 | DisableLimb(1) | |
| 589 | DisableLimb(2) | |
| 590 | Flight = true | |
| 591 | DisableLimb(3) | |
| 592 | DisableLimb(4) | |
| 593 | SetAngle(1, 0) | |
| 594 | SetAngle(2, 0) | |
| 595 | SetAngle(3, 0) | |
| 596 | SetAngle(4, 0) | |
| 597 | Engine = Instance.new("Part")
| |
| 598 | Engine.Parent = Person.Character | |
| 599 | Engine.Size = PersonT.Size | |
| 600 | Engine.Name = "Engine" | |
| 601 | Engine.TopSurface = 0 | |
| 602 | Engine.BottomSurface = 0 | |
| 603 | Engine.formFactor = "Symmetric" | |
| 604 | Engine.Transparency = 1 | |
| 605 | Engine:BreakJoints() | |
| 606 | Weld = Instance.new("Weld")
| |
| 607 | Weld.Parent = Engine | |
| 608 | Weld.Part0 = PersonT | |
| 609 | Weld.Part1 = Engine | |
| 610 | Weld.C0 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 611 | BodyP = Instance.new("BodyPosition")
| |
| 612 | BodyP.Parent = Engine | |
| 613 | BodyP.position = Engine.Position + Vector3.new(0, 10, 0) | |
| 614 | BodyP.maxForce = Vector3.new(4e+050, 4e+050, 4e+050) | |
| 615 | BodyG = Instance.new("BodyGyro")
| |
| 616 | BodyG.Parent = Engine | |
| 617 | BodyV = Instance.new("BodyVelocity")
| |
| 618 | BodyV.Parent = Engine | |
| 619 | BodyV.velocity = Vector3.new(0, 0, 0) | |
| 620 | BodyV.maxForce = Vector3.new(0, 0, 0) | |
| 621 | while true do | |
| 622 | if (Flight == false) then | |
| 623 | break | |
| 624 | end | |
| 625 | Direct(Engine, mouse.hit.p) | |
| 626 | Person.Character.Humanoid.Sit = true | |
| 627 | Person.Character.Head.CanCollide = false | |
| 628 | Person.Character.Torso.CanCollide = false | |
| 629 | wait(0.000000000000000000000000000000001) | |
| 630 | end | |
| 631 | EnableLimb(1) | |
| 632 | EnableLimb(2) | |
| 633 | EnableLimb(3) | |
| 634 | EnableLimb(4) | |
| 635 | Debounce = false | |
| 636 | Person.Character.Engine:remove() | |
| 637 | Person.Character.Humanoid.Sit = false | |
| 638 | end | |
| 639 | else | |
| 640 | Flight = false | |
| 641 | end | |
| 642 | end | |
| 643 | if (key == "L") then | |
| 644 | DisableLimb(NormalHand) | |
| 645 | SetAngle(NormalHand, 1.57) | |
| 646 | Smoke = Instance.new("Smoke")
| |
| 647 | Smoke.Parent = Person.Character.Suit.Band | |
| 648 | local c = (PersonT.Color.r + PersonT.Color.g + PersonT.Color.b)/3 | |
| 649 | Smoke.Color = Color3.new(0, 0, 0) | |
| 650 | Smoke.Size = 15 | |
| 651 | Smoke.Opacity = 1 | |
| 652 | Smoke.RiseVelocity = -15 | |
| 653 | end | |
| 654 | if (key == "H") then | |
| 655 | if (Debounce == false) then | |
| 656 | if (Lazer == false) then | |
| 657 | if (mouse.Target ~= nil) then | |
| 658 | Debounce = true | |
| 659 | Lazer = true | |
| 660 | DisableLimb(NormalHand) | |
| 661 | SetAngle(NormalHand, 0.785) | |
| 662 | BP = Instance.new("BodyPosition")
| |
| 663 | BP.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
| 664 | BP.P = BP.P / 4 | |
| 665 | BG = Instance.new("BodyGyro")
| |
| 666 | BG.maxTorque = Vector3.new(math.huge, math.huge, math.huge) | |
| 667 | local Hit = mouse.Target | |
| 668 | local _P = mouse.Hit.p | |
| 669 | local Mag = (Hit.Position-_P).magnitude | |
| 670 | local Pos = (Hit.Position-_P).unit * -Mag | |
| 671 | local CF = Hit.CFrame.lookVector | |
| 672 | while true do | |
| 673 | if (Lazer == false) then | |
| 674 | break | |
| 675 | end | |
| 676 | BP.Parent = PersonT | |
| 677 | BP.position = ((((CFrame.new(Hit.Position + Pos)) + (-CF)) + (Hit.CFrame.lookVector)) + (mouse.Hit.lookVector * -16)).p + Vector3.new(0, 5.7, 0) | |
| 678 | BG.Parent = PersonT | |
| 679 | BG.cframe = CFrame.new((PersonT.CFrame + (mouse.Hit.lookVector * -8)).p, (Hit.Position + Pos)) | |
| 680 | if (Hit.Parent == nil) or (Hit.Parent.Parent == Person.Character) then | |
| 681 | BP.Parent = nil | |
| 682 | BG.Parent = nil | |
| 683 | end | |
| 684 | local P = Instance.new("Part")
| |
| 685 | P.Name = "Grapple Lazer" | |
| 686 | P.formFactor = 0 | |
| 687 | P.Parent = Person.Character | |
| 688 | P.BrickColor = BrickColor.new(1) | |
| 689 | P.Anchored = true | |
| 690 | P.Transparency = 0.05 | |
| 691 | P.Locked = true | |
| 692 | P.Reflectance = 0.025 | |
| 693 | P.CanCollide = false | |
| 694 | P.Size = Vector3.new(1, 1, 1) | |
| 695 | local mesh = Instance.new("CylinderMesh")
| |
| 696 | local Place0 = Person.Character.Suit.Watch2.CFrame * CFrame.new(0, -0.1, 0) | |
| 697 | ||
| 698 | mesh.Scale = Vector3.new(0.1, (Place0.p - (Hit.Position + Pos)).magnitude, 0.1) | |
| 699 | mesh.Parent = P | |
| 700 | P.CFrame = CFrame.new((Place0.p + (Hit.Position + Pos))/2, Place0.p) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
| 701 | wait() | |
| 702 | P:remove() | |
| 703 | end | |
| 704 | Debounce = false | |
| 705 | EnableLimb(NormalHand) | |
| 706 | BP.Parent = nil | |
| 707 | BG.Parent = nil | |
| 708 | end | |
| 709 | end | |
| 710 | end | |
| 711 | end | |
| 712 | if (key == "J") then | |
| 713 | if (Debounce == false) then | |
| 714 | if (Lazer == false) then | |
| 715 | Debounce = true | |
| 716 | Lazer = true | |
| 717 | DisableLimb(NormalHand) | |
| 718 | SetAngle(NormalHand, 0.785) | |
| 719 | smokeBrick = Instance.new("Part")
| |
| 720 | smokeBrick.CanCollide = false | |
| 721 | smokeBrick.Anchored = true | |
| 722 | smokeBrick.Transparency = 1 | |
| 723 | smokeBrick.Locked = true | |
| 724 | smokeBrick.archivable = false | |
| 725 | smokeBrick.TopSurface = 0 | |
| 726 | smokeBrick.BottomSurface = 0 | |
| 727 | smoke = Instance.new("Smoke")
| |
| 728 | smoke.Size = smoke.Size * 4 | |
| 729 | while true do | |
| 730 | if (Lazer == false) then | |
| 731 | break | |
| 732 | end | |
| 733 | local Pos = mouse.Hit.p | |
| 734 | smokeBrick.Parent = Person.Character | |
| 735 | smokeBrick.CFrame = CFrame.new(Pos) | |
| 736 | if (mouse.Target) and (mouse.Target ~= nil) then | |
| 737 | smoke.Parent = smokeBrick | |
| 738 | local c = (mouse.Target.Color.r + mouse.Target.Color.g + mouse.Target.Color.b)/3 | |
| 739 | smoke.Color = Color3.new(c, c, c) | |
| 740 | end | |
| 741 | local L = Instance.new("Part")
| |
| 742 | L.Parent = Person.Character | |
| 743 | L.Name = "Kill Lazer" | |
| 744 | L.BrickColor = BrickColor.new(21) | |
| 745 | L.formFactor = 0 | |
| 746 | L.Size = Vector3.new(1, 1, 1) | |
| 747 | L.Locked = true | |
| 748 | L.Anchored = true | |
| 749 | L.CanCollide = false | |
| 750 | L.Transparency = 0.05 | |
| 751 | L.Reflectance = 0.1 | |
| 752 | local Place0 = Person.Character.Suit.Watch2.CFrame * CFrame.new(0, -0.1, 0) | |
| 753 | local Mesh = Instance.new("CylinderMesh")
| |
| 754 | Mesh.Parent = L | |
| 755 | Mesh.Scale = Vector3.new(0.1, (Place0.p - Pos).magnitude, 0.1) | |
| 756 | L.CFrame = CFrame.new((Place0.p + Pos)/2, Place0.p) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
| 757 | if (mouse.Target ~= nil) then | |
| 758 | if (mouse.Target.Parent.Name:lower() == "") or ("" == "") then
| |
| 759 | if ("" ~= "") then
| |
| 760 | mouse.Target.Parent:BreakJoints() | |
| 761 | else | |
| 762 | mouse.Target:BreakJoints() | |
| 763 | end | |
| 764 | end | |
| 765 | end | |
| 766 | wait() | |
| 767 | L:Remove() | |
| 768 | end | |
| 769 | Debounce = false | |
| 770 | smokeBrick.Parent = nil | |
| 771 | EnableLimb(NormalHand) | |
| 772 | end | |
| 773 | end | |
| 774 | end | |
| 775 | if (key == "X") then | |
| 776 | if (Debounce == false) then | |
| 777 | if (Lazer == false) then | |
| 778 | Debounce = true | |
| 779 | Lazer = true | |
| 780 | DisableLimb(NormalHand) | |
| 781 | SetAngle(NormalHand, 0.785) | |
| 782 | smokeBrick = Instance.new("Part")
| |
| 783 | smokeBrick.CanCollide = false | |
| 784 | smokeBrick.Anchored = true | |
| 785 | smokeBrick.Transparency = 1 | |
| 786 | smokeBrick.Locked = true | |
| 787 | smokeBrick.archivable = false | |
| 788 | smokeBrick.TopSurface = 0 | |
| 789 | smokeBrick.BottomSurface = 0 | |
| 790 | smoke = Instance.new("Fire")
| |
| 791 | while true do | |
| 792 | if (Lazer == false) then | |
| 793 | break | |
| 794 | end | |
| 795 | local Pos = mouse.Hit.p | |
| 796 | smokeBrick.Parent = Person.Character | |
| 797 | smokeBrick.CFrame = CFrame.new(Pos) | |
| 798 | if (mouse.Target) and (mouse.Target ~= nil) then | |
| 799 | smoke.Parent = smokeBrick | |
| 800 | local c = (mouse.Target.Color.r + mouse.Target.Color.g + mouse.Target.Color.b)/3 | |
| 801 | smoke.Color = Color3.new(c, c, c) | |
| 802 | end | |
| 803 | local L = Instance.new("Part")
| |
| 804 | L.Parent = Person.Character | |
| 805 | L.Name = "Lock Lazer" | |
| 806 | L.BrickColor = BrickColor.new("Camo")
| |
| 807 | L.formFactor = 0 | |
| 808 | L.Size = Vector3.new(1, 1, 1) | |
| 809 | L.Locked = true | |
| 810 | L.Anchored = true | |
| 811 | L.CanCollide = false | |
| 812 | L.Transparency = 0.05 | |
| 813 | L.Reflectance = 0.1 | |
| 814 | local Place0 = Person.Character.Suit.Watch2.CFrame * CFrame.new(0, -0.1, 0) | |
| 815 | local Mesh = Instance.new("CylinderMesh")
| |
| 816 | Mesh.Parent = L | |
| 817 | Mesh.Scale = Vector3.new(0.1, (Place0.p - Pos).magnitude, 0.1) | |
| 818 | L.CFrame = CFrame.new((Place0.p + Pos)/2, Place0.p) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
| 819 | if (mouse.Target ~= nil) then | |
| 820 | if (mouse.Target.Parent.Name:lower() == "") or ("" == "") then
| |
| 821 | if ("" ~= "") then
| |
| 822 | mouse.Target.Parent.Locked=true | |
| 823 | else | |
| 824 | mouse.Target.Locked=true | |
| 825 | end | |
| 826 | end | |
| 827 | end | |
| 828 | wait() | |
| 829 | L:Remove() | |
| 830 | end | |
| 831 | Debounce = false | |
| 832 | smokeBrick.Parent = nil | |
| 833 | EnableLimb(NormalHand) | |
| 834 | end | |
| 835 | end | |
| 836 | end | |
| 837 | if (key == "C") then | |
| 838 | if (Debounce == false) then | |
| 839 | if (Lazer == false) then | |
| 840 | Debounce = true | |
| 841 | Lazer = true | |
| 842 | DisableLimb(NormalHand) | |
| 843 | SetAngle(NormalHand, 0.785) | |
| 844 | smokeBrick = Instance.new("Part")
| |
| 845 | smokeBrick.CanCollide = false | |
| 846 | smokeBrick.Anchored = true | |
| 847 | smokeBrick.Transparency = 1 | |
| 848 | smokeBrick.Locked = true | |
| 849 | smokeBrick.archivable = false | |
| 850 | smokeBrick.TopSurface = 0 | |
| 851 | smokeBrick.BottomSurface = 0 | |
| 852 | smoke = Instance.new("Smoke")
| |
| 853 | smoke.Size = smoke.Size * 4 | |
| 854 | while true do | |
| 855 | if (Lazer == false) then | |
| 856 | break | |
| 857 | end | |
| 858 | local Pos = mouse.Hit.p | |
| 859 | smokeBrick.Parent = Person.Character | |
| 860 | smokeBrick.CFrame = CFrame.new(Pos) | |
| 861 | if (mouse.Target) and (mouse.Target ~= nil) then | |
| 862 | smoke.Parent = smokeBrick | |
| 863 | local c = (mouse.Target.Color.r + mouse.Target.Color.g + mouse.Target.Color.b)/3 | |
| 864 | smoke.Color = Color3.new(c, c, c) | |
| 865 | end | |
| 866 | local L = Instance.new("Part")
| |
| 867 | L.Parent = Person.Character | |
| 868 | L.Name = "Unlock Lazer" | |
| 869 | L.BrickColor = BrickColor.new("Camo")
| |
| 870 | L.formFactor = 0 | |
| 871 | L.Size = Vector3.new(1, 1, 1) | |
| 872 | L.Locked = true | |
| 873 | L.Anchored = true | |
| 874 | L.CanCollide = false | |
| 875 | L.Transparency = 0.05 | |
| 876 | L.Reflectance = 0.1 | |
| 877 | local Place0 = Person.Character.Suit.Watch2.CFrame * CFrame.new(0, -0.1, 0) | |
| 878 | local Mesh = Instance.new("CylinderMesh")
| |
| 879 | Mesh.Parent = L | |
| 880 | Mesh.Scale = Vector3.new(0.1, (Place0.p - Pos).magnitude, 0.1) | |
| 881 | L.CFrame = CFrame.new((Place0.p + Pos)/2, Place0.p) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
| 882 | if (mouse.Target ~= nil) then | |
| 883 | if (mouse.Target.Parent.Name:lower() == "") or ("" == "") then
| |
| 884 | if ("" ~= "") then
| |
| 885 | mouse.Target.Parent.Locked=false | |
| 886 | else | |
| 887 | mouse.Target.Locked=false | |
| 888 | end | |
| 889 | end | |
| 890 | end | |
| 891 | wait() | |
| 892 | L:Remove() | |
| 893 | end | |
| 894 | Debounce = false | |
| 895 | smokeBrick.Parent = nil | |
| 896 | EnableLimb(NormalHand) | |
| 897 | end | |
| 898 | end | |
| 899 | end | |
| 900 | if (key == "V") then | |
| 901 | if (Debounce == false) then | |
| 902 | if (Lazer == false) then | |
| 903 | Debounce = true | |
| 904 | Lazer = true | |
| 905 | DisableLimb(NormalHand) | |
| 906 | SetAngle(NormalHand, 0.785) | |
| 907 | smokeBrick = Instance.new("Part")
| |
| 908 | smokeBrick.CanCollide = false | |
| 909 | smokeBrick.Anchored = true | |
| 910 | smokeBrick.Transparency = 1 | |
| 911 | smokeBrick.Locked = true | |
| 912 | smokeBrick.archivable = false | |
| 913 | smokeBrick.TopSurface = 0 | |
| 914 | smokeBrick.BottomSurface = 0 | |
| 915 | smoke = Instance.new("Fire")
| |
| 916 | while true do | |
| 917 | if (Lazer == false) then | |
| 918 | break | |
| 919 | end | |
| 920 | local Pos = mouse.Hit.p | |
| 921 | smokeBrick.Parent = Person.Character | |
| 922 | smokeBrick.CFrame = CFrame.new(Pos) | |
| 923 | if (mouse.Target) and (mouse.Target ~= nil) then | |
| 924 | smoke.Parent = smokeBrick | |
| 925 | local c = (mouse.Target.Color.r + mouse.Target.Color.g + mouse.Target.Color.b)/3 | |
| 926 | smoke.Color = Color3.new(c, c, c) | |
| 927 | end | |
| 928 | local L = Instance.new("Part")
| |
| 929 | L.Parent = Person.Character | |
| 930 | L.Name = "Anchor Lazer" | |
| 931 | L.BrickColor = BrickColor.new("Bright yellow")
| |
| 932 | L.formFactor = 0 | |
| 933 | L.Size = Vector3.new(1, 1, 1) | |
| 934 | L.Locked = true | |
| 935 | L.Anchored = true | |
| 936 | L.CanCollide = false | |
| 937 | L.Transparency = 0.05 | |
| 938 | L.Reflectance = 0.1 | |
| 939 | local Place0 = Person.Character.Suit.Watch2.CFrame * CFrame.new(0, -0.1, 0) | |
| 940 | local Mesh = Instance.new("CylinderMesh")
| |
| 941 | Mesh.Parent = L | |
| 942 | Mesh.Scale = Vector3.new(0.1, (Place0.p - Pos).magnitude, 0.1) | |
| 943 | L.CFrame = CFrame.new((Place0.p + Pos)/2, Place0.p) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
| 944 | if (mouse.Target ~= nil) then | |
| 945 | if (mouse.Target.Parent.Name:lower() == "") or ("" == "") then
| |
| 946 | if ("" ~= "") then
| |
| 947 | mouse.Target.Parent.Anchored=true | |
| 948 | else | |
| 949 | mouse.Target.Anchored=true | |
| 950 | end | |
| 951 | end | |
| 952 | end | |
| 953 | wait() | |
| 954 | L:Remove() | |
| 955 | end | |
| 956 | Debounce = false | |
| 957 | smokeBrick.Parent = nil | |
| 958 | EnableLimb(NormalHand) | |
| 959 | end | |
| 960 | end | |
| 961 | end | |
| 962 | if (key == "B") then | |
| 963 | if (Debounce == false) then | |
| 964 | if (Lazer == false) then | |
| 965 | Debounce = true | |
| 966 | Lazer = true | |
| 967 | DisableLimb(NormalHand) | |
| 968 | SetAngle(NormalHand, 0.785) | |
| 969 | smokeBrick = Instance.new("Part")
| |
| 970 | smokeBrick.CanCollide = false | |
| 971 | smokeBrick.Anchored = true | |
| 972 | smokeBrick.Transparency = 1 | |
| 973 | smokeBrick.Locked = true | |
| 974 | smokeBrick.archivable = false | |
| 975 | smokeBrick.TopSurface = 0 | |
| 976 | smokeBrick.BottomSurface = 0 | |
| 977 | smoke = Instance.new("Smoke")
| |
| 978 | smoke.Size = smoke.Size * 4 | |
| 979 | while true do | |
| 980 | if (Lazer == false) then | |
| 981 | break | |
| 982 | end | |
| 983 | local Pos = mouse.Hit.p | |
| 984 | smokeBrick.Parent = Person.Character | |
| 985 | smokeBrick.CFrame = CFrame.new(Pos) | |
| 986 | if (mouse.Target) and (mouse.Target ~= nil) then | |
| 987 | smoke.Parent = smokeBrick | |
| 988 | local c = (mouse.Target.Color.r + mouse.Target.Color.g + mouse.Target.Color.b)/3 | |
| 989 | smoke.Color = Color3.new(c, c, c) | |
| 990 | end | |
| 991 | local L = Instance.new("Part")
| |
| 992 | L.Parent = Person.Character | |
| 993 | L.Name = "Unanchor Lazer" | |
| 994 | L.BrickColor = BrickColor.new("Bright yellow")
| |
| 995 | L.formFactor = 0 | |
| 996 | L.Size = Vector3.new(1, 1, 1) | |
| 997 | L.Locked = true | |
| 998 | L.Anchored = true | |
| 999 | L.CanCollide = false | |
| 1000 | L.Transparency = 0.05 | |
| 1001 | L.Reflectance = 0.1 | |
| 1002 | local Place0 = Person.Character.Suit.Watch2.CFrame * CFrame.new(0, -0.1, 0) | |
| 1003 | local Mesh = Instance.new("CylinderMesh")
| |
| 1004 | Mesh.Parent = L | |
| 1005 | Mesh.Scale = Vector3.new(0.1, (Place0.p - Pos).magnitude, 0.1) | |
| 1006 | L.CFrame = CFrame.new((Place0.p + Pos)/2, Place0.p) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
| 1007 | if (mouse.Target ~= nil) then | |
| 1008 | if (mouse.Target.Parent.Name:lower() == "") or ("" == "") then
| |
| 1009 | if ("" ~= "") then
| |
| 1010 | mouse.Target.Parent.Anchored=false | |
| 1011 | else | |
| 1012 | mouse.Target.Anchored=false | |
| 1013 | end | |
| 1014 | end | |
| 1015 | end | |
| 1016 | wait() | |
| 1017 | L:Remove() | |
| 1018 | end | |
| 1019 | Debounce = false | |
| 1020 | smokeBrick.Parent = nil | |
| 1021 | EnableLimb(NormalHand) | |
| 1022 | end | |
| 1023 | end | |
| 1024 | end | |
| 1025 | if (key == "N") then | |
| 1026 | if (Debounce == false) then | |
| 1027 | if (Lazer == false) then | |
| 1028 | Debounce = true | |
| 1029 | Lazer = true | |
| 1030 | DisableLimb(NormalHand) | |
| 1031 | SetAngle(NormalHand, 0.785) | |
| 1032 | smokeBrick = Instance.new("Part")
| |
| 1033 | smokeBrick.CanCollide = false | |
| 1034 | smokeBrick.Anchored = true | |
| 1035 | smokeBrick.Transparency = 1 | |
| 1036 | smokeBrick.Locked = true | |
| 1037 | smokeBrick.archivable = false | |
| 1038 | smokeBrick.TopSurface = 0 | |
| 1039 | smokeBrick.BottomSurface = 0 | |
| 1040 | smoke = Instance.new("Smoke")
| |
| 1041 | smoke.Size = smoke.Size * 4 | |
| 1042 | while true do | |
| 1043 | if (Lazer == false) then | |
| 1044 | break | |
| 1045 | end | |
| 1046 | local Pos = mouse.Hit.p | |
| 1047 | smokeBrick.Parent = Person.Character | |
| 1048 | smokeBrick.CFrame = CFrame.new(Pos) | |
| 1049 | if (mouse.Target) and (mouse.Target ~= nil) then | |
| 1050 | smoke.Parent = smokeBrick | |
| 1051 | local c = (mouse.Target.Color.r + mouse.Target.Color.g + mouse.Target.Color.b)/3 | |
| 1052 | smoke.Color = Color3.new(c, c, c) | |
| 1053 | end | |
| 1054 | local L = Instance.new("Part")
| |
| 1055 | L.Parent = Person.Character | |
| 1056 | L.Name = "Remove Lazer" | |
| 1057 | L.BrickColor = BrickColor.new("Magenta")
| |
| 1058 | L.formFactor = 0 | |
| 1059 | L.Size = Vector3.new(1, 1, 1) | |
| 1060 | L.Locked = true | |
| 1061 | L.Anchored = true | |
| 1062 | L.CanCollide = false | |
| 1063 | L.Transparency = 0.05 | |
| 1064 | L.Reflectance = 0.1 | |
| 1065 | local Place0 = Person.Character.Suit.Watch2.CFrame * CFrame.new(0, -0.1, 0) | |
| 1066 | local Mesh = Instance.new("CylinderMesh")
| |
| 1067 | Mesh.Parent = L | |
| 1068 | Mesh.Scale = Vector3.new(0.1, (Place0.p - Pos).magnitude, 0.1) | |
| 1069 | L.CFrame = CFrame.new((Place0.p + Pos)/2, Place0.p) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
| 1070 | if (mouse.Target ~= nil) then | |
| 1071 | if (mouse.Target.Parent.Name:lower() == "") or ("" == "") then
| |
| 1072 | if ("" ~= "") then
| |
| 1073 | mouse.Target.Parent:remove() | |
| 1074 | else | |
| 1075 | mouse.Target:remove() | |
| 1076 | end | |
| 1077 | end | |
| 1078 | end | |
| 1079 | wait() | |
| 1080 | L:Remove() | |
| 1081 | end | |
| 1082 | Debounce = false | |
| 1083 | smokeBrick.Parent = nil | |
| 1084 | EnableLimb(NormalHand) | |
| 1085 | end | |
| 1086 | end | |
| 1087 | end | |
| 1088 | if (key == "K") then | |
| 1089 | if (Debounce == false) then | |
| 1090 | if (Lazer == false) then | |
| 1091 | Debounce = true | |
| 1092 | Lazer = true | |
| 1093 | DisableLimb(NormalHand) | |
| 1094 | SetAngle(NormalHand, 0.785) | |
| 1095 | BP = Instance.new("BodyPosition")
| |
| 1096 | BP.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
| 1097 | BP.P = BP.P / 4 | |
| 1098 | BG = Instance.new("BodyGyro")
| |
| 1099 | BG.maxTorque = Vector3.new(math.huge, math.huge, math.huge) | |
| 1100 | local targ = nil | |
| 1101 | local Mag = nil | |
| 1102 | local Pos = nil | |
| 1103 | while true do | |
| 1104 | if (Lazer == false) then | |
| 1105 | break | |
| 1106 | end | |
| 1107 | if (mouse.Target ~= nil) and (targ == nil) then | |
| 1108 | if (mouse.Target.Anchored == false) then | |
| 1109 | if ((mouse.Hit.p - Person.Character.Suit.Watch2.Position).magnitude <= 10000) then | |
| 1110 | targ = mouse.Target | |
| 1111 | BP.Parent = targ | |
| 1112 | BG.Parent = targ | |
| 1113 | Mag = (targ.Position - mouse.Hit.p).magnitude | |
| 1114 | Pos = (targ.Position - mouse.Hit.p).unit * -Mag | |
| 1115 | end | |
| 1116 | end | |
| 1117 | end | |
| 1118 | local pop = mouse.Hit.p | |
| 1119 | local G = Instance.new("Part")
| |
| 1120 | G.Parent = Person.Character | |
| 1121 | G.Name = "Grab Lazer" | |
| 1122 | G.Anchored = true | |
| 1123 | G.Locked = true | |
| 1124 | G.CanCollide = false | |
| 1125 | G.formFactor = 0 | |
| 1126 | G.Size = Vector3.new(1, 1, 1) | |
| 1127 | G.BrickColor = BrickColor.new("Royal blue")
| |
| 1128 | G.Reflectance = 0.05 | |
| 1129 | G.Transparency = 0.025 | |
| 1130 | local Place0 = Person.Character.Suit.Watch2.CFrame * CFrame.new(0, -0.1, 0) | |
| 1131 | local MeAsh = Instance.new("CylinderMesh")
| |
| 1132 | MeAsh.Parent = G | |
| 1133 | if (targ == nil) or (targ.Anchored == true) then | |
| 1134 | MeAsh.Scale = Vector3.new(0.1, (Place0.p-pop).magnitude, 0.1) | |
| 1135 | G.CFrame = CFrame.new((Place0.p + pop)/2, Place0.p) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
| 1136 | else | |
| 1137 | BP.Parent = targ | |
| 1138 | BP.position = (PersonT.CFrame + (mouse.Hit.lookVector * 8) + Pos).p + Vector3.new(0, 5.7, 0) | |
| 1139 | BG.Parent = targ | |
| 1140 | BG.cframe = CFrame.new(targ.Position, PersonT.Position) | |
| 1141 | if (targ.Parent == nil) or (targ.Parent.Parent == Person.Character) then | |
| 1142 | BP.Parent = nil | |
| 1143 | BG.Parent = nil | |
| 1144 | end | |
| 1145 | MeAsh.Scale = Vector3.new(0.1, (Place0.p - targ.Position).magnitude, 0.1) | |
| 1146 | G.CFrame = CFrame.new((Place0.p + (targ.Position + Pos))/2, Place0.p) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
| 1147 | end | |
| 1148 | wait() | |
| 1149 | G:Remove() | |
| 1150 | end | |
| 1151 | Debounce = false | |
| 1152 | EnableLimb(NormalHand) | |
| 1153 | BP.Parent = nil | |
| 1154 | BG.Parent = nil | |
| 1155 | end | |
| 1156 | end | |
| 1157 | end | |
| 1158 | end | |
| 1159 | function LiftKey(key, mouse) | |
| 1160 | key = key:upper() | |
| 1161 | if (key == "L") then | |
| 1162 | if (Person.Character.Suit.Band:findFirstChild("Smoke") ~= nil) then
| |
| 1163 | Person.Character.Suit.Band.Smoke:remove() | |
| 1164 | EnableLimb(NormalHand) | |
| 1165 | end | |
| 1166 | end | |
| 1167 | if (key == "H") then | |
| 1168 | if (Person.Character:findFirstChild("Grapple Lazer") ~= nil) then
| |
| 1169 | Lazer = false | |
| 1170 | end | |
| 1171 | end | |
| 1172 | if (key == "J") then | |
| 1173 | if (Person.Character:findFirstChild("Kill Lazer") ~= nil) then
| |
| 1174 | Lazer = false | |
| 1175 | end | |
| 1176 | end | |
| 1177 | if (key == "K") then | |
| 1178 | if (Person.Character:findFirstChild("Grab Lazer") ~= nil) then
| |
| 1179 | Lazer = false | |
| 1180 | end | |
| 1181 | end | |
| 1182 | if (key == "X") then | |
| 1183 | if (Person.Character:findFirstChild("Lock Lazer") ~= nil) then
| |
| 1184 | Lazer = false | |
| 1185 | end | |
| 1186 | end | |
| 1187 | if (key == "C") then | |
| 1188 | if (Person.Character:findFirstChild("Unlock Lazer") ~= nil) then
| |
| 1189 | Lazer = false | |
| 1190 | end | |
| 1191 | end | |
| 1192 | if (key == "V") then | |
| 1193 | if (Person.Character:findFirstChild("Anchor Lazer") ~= nil) then
| |
| 1194 | Lazer = false | |
| 1195 | end | |
| 1196 | end | |
| 1197 | if (key == "B") then | |
| 1198 | if (Person.Character:findFirstChild("Unanchor Lazer") ~= nil) then
| |
| 1199 | Lazer = false | |
| 1200 | end | |
| 1201 | end | |
| 1202 | if (key == "N") then | |
| 1203 | if (Person.Character:findFirstChild("Remove Lazer") ~= nil) then
| |
| 1204 | Lazer = false | |
| 1205 | end | |
| 1206 | end | |
| 1207 | end | |
| 1208 | function Select(mouse) | |
| 1209 | mouse.Button1Down:connect(function() Click(mouse) end) | |
| 1210 | mouse.Button1Up:connect(function() Release(mouse) end) | |
| 1211 | mouse.KeyDown:connect(function(key) PressKey(key, mouse) end) | |
| 1212 | mouse.KeyUp:connect(function(key) LiftKey(key, mouse) end) | |
| 1213 | end | |
| 1214 | function Deselect(mouse) | |
| 1215 | Hold = false | |
| 1216 | Lazer = false | |
| 1217 | Flight = false | |
| 1218 | end | |
| 1219 | Bin.Selected:connect(Select) | |
| 1220 | Bin.Deselected:connect(Deselect) |