SHOW:
|
|
- or go back to the newest paste.
| 1 | ||
| 2 | --Converted with ttyyuu12345's model to script plugin v4 | |
| 3 | function sandbox(var,func) | |
| 4 | local env = getfenv(func) | |
| 5 | local newenv = setmetatable({},{
| |
| 6 | __index = function(self,k) | |
| 7 | if k=="script" then | |
| 8 | return var | |
| 9 | else | |
| 10 | return env[k] | |
| 11 | end | |
| 12 | end, | |
| 13 | }) | |
| 14 | setfenv(func,newenv) | |
| 15 | return func | |
| 16 | end | |
| 17 | cors = {}
| |
| 18 | mas = Instance.new("Model",game:GetService("Lighting"))
| |
| 19 | - | Tool0 = Instance.new("Tool")
|
| 19 | + | Model0 = Instance.new("Model")
|
| 20 | - | Part1 = Instance.new("Part")
|
| 20 | + | Model1 = Instance.new("Model")
|
| 21 | - | Sound2 = Instance.new("Sound")
|
| 21 | + | Model2 = Instance.new("Model")
|
| 22 | - | Decal3 = Instance.new("Decal")
|
| 22 | + | Part3 = Instance.new("Part")
|
| 23 | - | Decal4 = Instance.new("Decal")
|
| 23 | + | Part4 = Instance.new("Part")
|
| 24 | - | Decal5 = Instance.new("Decal")
|
| 24 | + | SpecialMesh5 = Instance.new("SpecialMesh")
|
| 25 | - | Decal6 = Instance.new("Decal")
|
| 25 | + | Part6 = Instance.new("Part")
|
| 26 | - | Decal7 = Instance.new("Decal")
|
| 26 | + | Part7 = Instance.new("Part")
|
| 27 | - | Decal8 = Instance.new("Decal")
|
| 27 | + | SpecialMesh8 = Instance.new("SpecialMesh")
|
| 28 | - | Script9 = Instance.new("Script")
|
| 28 | + | Part9 = Instance.new("Part")
|
| 29 | - | Script10 = Instance.new("Script")
|
| 29 | + | Part10 = Instance.new("Part")
|
| 30 | - | NumberValue11 = Instance.new("NumberValue")
|
| 30 | + | SpecialMesh11 = Instance.new("SpecialMesh")
|
| 31 | - | NumberValue12 = Instance.new("NumberValue")
|
| 31 | + | Part12 = Instance.new("Part")
|
| 32 | - | LocalScript13 = Instance.new("LocalScript")
|
| 32 | + | SpecialMesh13 = Instance.new("SpecialMesh")
|
| 33 | - | LocalScript14 = Instance.new("LocalScript")
|
| 33 | + | Part14 = Instance.new("Part")
|
| 34 | - | LocalScript15 = Instance.new("LocalScript")
|
| 34 | + | Part15 = Instance.new("Part")
|
| 35 | - | LocalScript16 = Instance.new("LocalScript")
|
| 35 | + | SpecialMesh16 = Instance.new("SpecialMesh")
|
| 36 | - | Tool0.Name = "C4" |
| 36 | + | Part17 = Instance.new("Part")
|
| 37 | - | Tool0.Parent = mas |
| 37 | + | SpecialMesh18 = Instance.new("SpecialMesh")
|
| 38 | - | Tool0.GripForward = Vector3.new(-0.999949992, 0.00999949966, -0) |
| 38 | + | Part19 = Instance.new("Part")
|
| 39 | - | Tool0.GripRight = Vector3.new(0, 0, -1) |
| 39 | + | SpecialMesh20 = Instance.new("SpecialMesh")
|
| 40 | - | Tool0.GripUp = Vector3.new(0.00999949966, 0.999949992, 0) |
| 40 | + | Part21 = Instance.new("Part")
|
| 41 | - | Part1.Name = "Handle" |
| 41 | + | SpecialMesh22 = Instance.new("SpecialMesh")
|
| 42 | - | Part1.Parent = Tool0 |
| 42 | + | Part23 = Instance.new("Part")
|
| 43 | - | Part1.BrickColor = BrickColor.new("Bright yellow")
|
| 43 | + | SpecialMesh24 = Instance.new("SpecialMesh")
|
| 44 | - | Part1.Rotation = Vector3.new(0, 0, -180) |
| 44 | + | Part25 = Instance.new("Part")
|
| 45 | - | Part1.FormFactor = Enum.FormFactor.Symmetric |
| 45 | + | SpecialMesh26 = Instance.new("SpecialMesh")
|
| 46 | - | Part1.Size = Vector3.new(2, 1, 2) |
| 46 | + | Part27 = Instance.new("Part")
|
| 47 | - | Part1.CFrame = CFrame.new(-8.00000286, 0.5, 32, -1, 8.81815954e-09, 2.77323443e-06, -8.81815598e-09, -1, 9.62744329e-10, 2.77323443e-06, 9.62719904e-10, 1) |
| 47 | + | SpecialMesh28 = Instance.new("SpecialMesh")
|
| 48 | - | Part1.BottomSurface = Enum.SurfaceType.Smooth |
| 48 | + | Part29 = Instance.new("Part")
|
| 49 | - | Part1.TopSurface = Enum.SurfaceType.Smooth |
| 49 | + | SpecialMesh30 = Instance.new("SpecialMesh")
|
| 50 | - | Part1.Color = Color3.new(0.960784, 0.803922, 0.188235) |
| 50 | + | Part31 = Instance.new("Part")
|
| 51 | - | Part1.Position = Vector3.new(-8.00000286, 0.5, 32) |
| 51 | + | SpecialMesh32 = Instance.new("SpecialMesh")
|
| 52 | - | Part1.Orientation = Vector3.new(0, 0, -180) |
| 52 | + | Part33 = Instance.new("Part")
|
| 53 | - | Part1.Color = Color3.new(0.960784, 0.803922, 0.188235) |
| 53 | + | SpecialMesh34 = Instance.new("SpecialMesh")
|
| 54 | - | Sound2.Name = "SlingshotSound" |
| 54 | + | Script35 = Instance.new("Script")
|
| 55 | - | Sound2.Parent = Part1 |
| 55 | + | Script36 = Instance.new("Script")
|
| 56 | - | Sound2.SoundId = "rbxasset://sounds//Rubber band sling shot.wav" |
| 56 | + | Script37 = Instance.new("Script")
|
| 57 | - | Sound2.Volume = 1 |
| 57 | + | Script38 = Instance.new("Script")
|
| 58 | - | Decal3.Parent = Part1 |
| 58 | + | Script39 = Instance.new("Script")
|
| 59 | - | Decal3.Texture = "http://www.roblox.com/asset/?id=6005835" |
| 59 | + | Part40 = Instance.new("Part")
|
| 60 | - | Decal3.Face = Enum.NormalId.Bottom |
| 60 | + | Script41 = Instance.new("Script")
|
| 61 | - | Decal4.Parent = Part1 |
| 61 | + | Part42 = Instance.new("Part")
|
| 62 | - | Decal4.Texture = "http://www.roblox.com/asset/?id=6005846" |
| 62 | + | Part43 = Instance.new("Part")
|
| 63 | - | Decal4.Face = Enum.NormalId.Right |
| 63 | + | Model0.Parent = mas |
| 64 | - | Decal5.Parent = Part1 |
| 64 | + | Model1.Name = "Nuke" |
| 65 | - | Decal5.Texture = "http://www.roblox.com/asset/?id=6005846" |
| 65 | + | Model1.Parent = Model0 |
| 66 | - | Decal5.Face = Enum.NormalId.Back |
| 66 | + | Model1.PrimaryPart = Part40 |
| 67 | - | Decal6.Parent = Part1 |
| 67 | + | Model2.Name = "Bomb" |
| 68 | - | Decal6.Texture = "http://www.roblox.com/asset/?id=6005846" |
| 68 | + | Model2.Parent = Model1 |
| 69 | - | Decal6.Face = Enum.NormalId.Left |
| 69 | + | Model2.PrimaryPart = Part3 |
| 70 | - | Decal7.Parent = Part1 |
| 70 | + | Part3.Name = "Smooth Block Model" |
| 71 | - | Decal7.Texture = "http://www.roblox.com/asset/?id=6005846" |
| 71 | + | Part3.Parent = Model2 |
| 72 | - | Decal8.Parent = Part1 |
| 72 | + | Part3.BrickColor = BrickColor.new("Bright red")
|
| 73 | - | Decal8.Texture = "http://www.roblox.com/asset/?id=6005835" |
| 73 | + | Part3.Rotation = Vector3.new(90, -90, 0) |
| 74 | - | Decal8.Face = Enum.NormalId.Top |
| 74 | + | Part3.FormFactor = Enum.FormFactor.Symmetric |
| 75 | - | Script9.Name = "Slingshot" |
| 75 | + | Part3.Shape = Enum.PartType.Cylinder |
| 76 | - | Script9.Parent = Tool0 |
| 76 | + | Part3.Size = Vector3.new(4, 4, 4) |
| 77 | - | table.insert(cors,sandbox(Script9,function() |
| 77 | + | Part3.CFrame = CFrame.new(46, 40.0000076, 11, -0, 0, -1, -1, 0, -0, -0, 1, -0) |
| 78 | - | Tool = script.Parent |
| 78 | + | Part3.BottomSurface = Enum.SurfaceType.Smooth |
| 79 | - | VELOCITY = 25 -- constant |
| 79 | + | Part3.LeftSurface = Enum.SurfaceType.Weld |
| 80 | Part3.RightSurface = Enum.SurfaceType.Weld | |
| 81 | - | local Pellet = script.Parent.Handle:clone() |
| 81 | + | Part3.TopSurface = Enum.SurfaceType.Smooth |
| 82 | - | Pellet.Locked = true |
| 82 | + | Part3.Color = Color3.new(0.768628, 0.156863, 0.109804) |
| 83 | - | Pellet.BackSurface = 0 |
| 83 | + | Part3.Position = Vector3.new(46, 40.0000076, 11) |
| 84 | - | Pellet.BottomSurface = 0 |
| 84 | + | Part3.Orientation = Vector3.new(0, -90, -90) |
| 85 | - | Pellet.FrontSurface = 0 |
| 85 | + | Part3.Color = Color3.new(0.768628, 0.156863, 0.109804) |
| 86 | - | Pellet.LeftSurface = 0 |
| 86 | + | Part4.Name = "Smooth Block Model" |
| 87 | - | Pellet.RightSurface = 0 |
| 87 | + | Part4.Parent = Model2 |
| 88 | - | Pellet.TopSurface = 0 |
| 88 | + | Part4.BrickColor = BrickColor.new("Bright red")
|
| 89 | - | Pellet.SlingshotSound:remove() |
| 89 | + | Part4.Rotation = Vector3.new(-180, 0, -180) |
| 90 | - | script.Parent.Bomb:clone().Parent = Pellet |
| 90 | + | Part4.FormFactor = Enum.FormFactor.Plate |
| 91 | Part4.Size = Vector3.new(4, 1.60000002, 4) | |
| 92 | - | function fire(mouse_pos) |
| 92 | + | Part4.CFrame = CFrame.new(46, 46.8000069, 11, -1, 0, 0, 0, 1, 0, 0, 0, -1) |
| 93 | Part4.BottomSurface = Enum.SurfaceType.Weld | |
| 94 | Part4.TopSurface = Enum.SurfaceType.Weld | |
| 95 | - | Tool.Handle.SlingshotSound:play() |
| 95 | + | Part4.Color = Color3.new(0.768628, 0.156863, 0.109804) |
| 96 | Part4.Position = Vector3.new(46, 46.8000069, 11) | |
| 97 | - | -- find player's head pos |
| 97 | + | Part4.Orientation = Vector3.new(0, 180, 0) |
| 98 | Part4.Color = Color3.new(0.768628, 0.156863, 0.109804) | |
| 99 | - | local vCharacter = Tool.Parent |
| 99 | + | SpecialMesh5.Parent = Part4 |
| 100 | - | local vPlayer = game.Players:playerFromCharacter(vCharacter) |
| 100 | + | SpecialMesh5.Scale = Vector3.new(1, 2.79999995, 1) |
| 101 | SpecialMesh5.MeshType = Enum.MeshType.Sphere | |
| 102 | - | local head = vCharacter:findFirstChild("Head")
|
| 102 | + | SpecialMesh5.Scale = Vector3.new(1, 2.79999995, 1) |
| 103 | - | if head == nil then return end |
| 103 | + | Part6.Name = "Smooth Block Model" |
| 104 | Part6.Parent = Model2 | |
| 105 | - | local dir = mouse_pos - head.Position |
| 105 | + | Part6.BrickColor = BrickColor.new("Bright red")
|
| 106 | - | dir = computeDirection(dir) |
| 106 | + | Part6.Rotation = Vector3.new(90, -90, 0) |
| 107 | Part6.FormFactor = Enum.FormFactor.Symmetric | |
| 108 | - | local launch = head.Position + 5 * dir |
| 108 | + | Part6.Shape = Enum.PartType.Cylinder |
| 109 | Part6.Size = Vector3.new(4, 4, 4) | |
| 110 | - | local delta = mouse_pos - launch |
| 110 | + | Part6.CFrame = CFrame.new(46, 44.0000076, 11, 0, 0, -1, -1, 0, 0, 0, 1, 0) |
| 111 | - | |
| 111 | + | Part6.BottomSurface = Enum.SurfaceType.Smooth |
| 112 | - | local dy = delta.y |
| 112 | + | Part6.RightSurface = Enum.SurfaceType.Weld |
| 113 | - | |
| 113 | + | Part6.TopSurface = Enum.SurfaceType.Smooth |
| 114 | - | local new_delta = Vector3.new(delta.x, 0, delta.z) |
| 114 | + | Part6.Color = Color3.new(0.768628, 0.156863, 0.109804) |
| 115 | - | delta = new_delta |
| 115 | + | Part6.Position = Vector3.new(46, 44.0000076, 11) |
| 116 | Part6.Orientation = Vector3.new(0, -90, -90) | |
| 117 | - | local dx = delta.magnitude |
| 117 | + | Part6.Color = Color3.new(0.768628, 0.156863, 0.109804) |
| 118 | - | local unit_delta = delta.unit |
| 118 | + | Part7.Name = "Smooth Block Model" |
| 119 | - | |
| 119 | + | Part7.Parent = Model2 |
| 120 | - | -- acceleration due to gravity in RBX units |
| 120 | + | Part7.BrickColor = BrickColor.new("Bright red")
|
| 121 | - | local g = (-9.81 * 20) |
| 121 | + | Part7.Rotation = Vector3.new(-180, 0, 0) |
| 122 | Part7.Size = Vector3.new(2, 2.4000001, 1) | |
| 123 | - | local theta = computeLaunchAngle( dx, dy, g) |
| 123 | + | Part7.CFrame = CFrame.new(46, 48.8000069, 12.5, 1, 0, 0, 0, -1, 0, 0, 0, -1) |
| 124 | Part7.BackSurface = Enum.SurfaceType.Weld | |
| 125 | - | local vy = math.sin(theta) |
| 125 | + | Part7.BottomSurface = Enum.SurfaceType.Weld |
| 126 | - | local xz = math.cos(theta) |
| 126 | + | Part7.TopSurface = Enum.SurfaceType.Weld |
| 127 | - | local vx = unit_delta.x * xz |
| 127 | + | Part7.Color = Color3.new(0.768628, 0.156863, 0.109804) |
| 128 | - | local vz = unit_delta.z * xz |
| 128 | + | Part7.Position = Vector3.new(46, 48.8000069, 12.5) |
| 129 | - | |
| 129 | + | Part7.Orientation = Vector3.new(0, 180, 180) |
| 130 | Part7.Color = Color3.new(0.768628, 0.156863, 0.109804) | |
| 131 | - | local missile = Pellet:clone() |
| 131 | + | SpecialMesh8.Parent = Part7 |
| 132 | - | |
| 132 | + | SpecialMesh8.Scale = Vector3.new(0.200000003, 1, 1) |
| 133 | SpecialMesh8.MeshType = Enum.MeshType.Wedge | |
| 134 | - | |
| 134 | + | SpecialMesh8.Scale = Vector3.new(0.200000003, 1, 1) |
| 135 | Part9.Name = "Smooth Block Model" | |
| 136 | - | missile.Position = launch |
| 136 | + | Part9.Parent = Model2 |
| 137 | - | missile.Velocity = Vector3.new(vx,vy,vz) * VELOCITY |
| 137 | + | Part9.BrickColor = BrickColor.new("Bright red")
|
| 138 | Part9.Rotation = Vector3.new(-90, -90, 0) | |
| 139 | - | missile.Bomb.Disabled = false |
| 139 | + | Part9.FormFactor = Enum.FormFactor.Symmetric |
| 140 | Part9.Shape = Enum.PartType.Cylinder | |
| 141 | - | local creator_tag = Instance.new("ObjectValue")
|
| 141 | + | Part9.Size = Vector3.new(2, 2, 2) |
| 142 | - | creator_tag.Value = vPlayer |
| 142 | + | Part9.CFrame = CFrame.new(46, 51.0000076, 11, 0, 0, -1, 1, 0, 0, 0, -1, 0) |
| 143 | - | creator_tag.Name = "creator" |
| 143 | + | Part9.BottomSurface = Enum.SurfaceType.Smooth |
| 144 | - | creator_tag.Parent = missile |
| 144 | + | Part9.TopSurface = Enum.SurfaceType.Smooth |
| 145 | - | |
| 145 | + | Part9.Color = Color3.new(0.768628, 0.156863, 0.109804) |
| 146 | - | missile.Parent = game.Workspace |
| 146 | + | Part9.Position = Vector3.new(46, 51.0000076, 11) |
| 147 | - | script.Parent.BombOut.Value = 1 |
| 147 | + | Part9.Orientation = Vector3.new(0, -90, 90) |
| 148 | Part9.Color = Color3.new(0.768628, 0.156863, 0.109804) | |
| 149 | Part10.Name = "Smooth Block Model" | |
| 150 | Part10.Parent = Model2 | |
| 151 | Part10.BrickColor = BrickColor.new("Bright red")
| |
| 152 | - | function computeLaunchAngle(dx,dy,grav) |
| 152 | + | Part10.Rotation = Vector3.new(-90, 0, 0) |
| 153 | - | -- arcane |
| 153 | + | Part10.FormFactor = Enum.FormFactor.Plate |
| 154 | - | -- http://en.wikipedia.org/wiki/Trajectory_of_a_projectile |
| 154 | + | Part10.Size = Vector3.new(2, 1.20000005, 2) |
| 155 | - | |
| 155 | + | Part10.CFrame = CFrame.new(46, 51.0000076, 12.6000004, 1, 0, 0, 0, 0, 1, 0, -1, 0) |
| 156 | - | local g = math.abs(grav) |
| 156 | + | Part10.BottomSurface = Enum.SurfaceType.Weld |
| 157 | - | local inRoot = (VELOCITY*VELOCITY*VELOCITY*VELOCITY) - (g * ((g*dx*dx) + (2*dy*VELOCITY*VELOCITY))) |
| 157 | + | Part10.TopSurface = Enum.SurfaceType.Weld |
| 158 | - | if inRoot <= 0 then |
| 158 | + | Part10.Color = Color3.new(0.768628, 0.156863, 0.109804) |
| 159 | - | return .25 * math.pi |
| 159 | + | Part10.Position = Vector3.new(46, 51.0000076, 12.6000004) |
| 160 | - | end |
| 160 | + | Part10.Orientation = Vector3.new(-90, 0, 0) |
| 161 | - | local root = math.sqrt(inRoot) |
| 161 | + | Part10.Color = Color3.new(0.768628, 0.156863, 0.109804) |
| 162 | - | local inATan1 = ((VELOCITY*VELOCITY) + root) / (g*dx) |
| 162 | + | SpecialMesh11.Parent = Part10 |
| 163 | SpecialMesh11.Scale = Vector3.new(0.200000003, 1, 1) | |
| 164 | - | local inATan2 = ((VELOCITY*VELOCITY) - root) / (g*dx) |
| 164 | + | SpecialMesh11.MeshType = Enum.MeshType.Brick |
| 165 | - | local answer1 = math.atan(inATan1) |
| 165 | + | SpecialMesh11.Scale = Vector3.new(0.200000003, 1, 1) |
| 166 | - | local answer2 = math.atan(inATan2) |
| 166 | + | Part12.Name = "Smooth Block Model" |
| 167 | - | if answer1 < answer2 then return answer1 end |
| 167 | + | Part12.Parent = Model2 |
| 168 | - | return answer2 |
| 168 | + | Part12.BrickColor = BrickColor.new("Bright red")
|
| 169 | Part12.Rotation = Vector3.new(90, -90, 0) | |
| 170 | Part12.FormFactor = Enum.FormFactor.Plate | |
| 171 | - | function computeDirection(vec) |
| 171 | + | Part12.Size = Vector3.new(2, 0.400000006, 4) |
| 172 | - | local lenSquared = vec.magnitude * vec.magnitude |
| 172 | + | Part12.CFrame = CFrame.new(46, 51.0000076, 13.3999996, 0, 0, -1, -1, 0, 0, 0, 1, 0) |
| 173 | - | local invSqrt = 1 / math.sqrt(lenSquared) |
| 173 | + | Part12.BottomSurface = Enum.SurfaceType.Weld |
| 174 | - | return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt) |
| 174 | + | Part12.TopSurface = Enum.SurfaceType.Smooth |
| 175 | Part12.Color = Color3.new(0.768628, 0.156863, 0.109804) | |
| 176 | Part12.Position = Vector3.new(46, 51.0000076, 13.3999996) | |
| 177 | Part12.Orientation = Vector3.new(0, -90, -90) | |
| 178 | Part12.Color = Color3.new(0.768628, 0.156863, 0.109804) | |
| 179 | SpecialMesh13.Parent = Part12 | |
| 180 | - | Tool.Enabled = true |
| 180 | + | SpecialMesh13.Scale = Vector3.new(1, 1, 1.29999995) |
| 181 | - | function onActivated() |
| 181 | + | SpecialMesh13.MeshType = Enum.MeshType.Brick |
| 182 | SpecialMesh13.Scale = Vector3.new(1, 1, 1.29999995) | |
| 183 | - | if not Tool.Enabled or script.Parent.BombOut.Value == 1 then |
| 183 | + | Part14.Name = "Smooth Block Model" |
| 184 | - | return |
| 184 | + | Part14.Parent = Model2 |
| 185 | - | end |
| 185 | + | Part14.BrickColor = BrickColor.new("Black")
|
| 186 | - | Pellet.Name = ""..script.Parent.Parent.Name.." Bomb" |
| 186 | + | Part14.Rotation = Vector3.new(-90, -90, 0) |
| 187 | - | Tool.Enabled = false |
| 187 | + | Part14.FormFactor = Enum.FormFactor.Symmetric |
| 188 | Part14.Shape = Enum.PartType.Cylinder | |
| 189 | - | local character = Tool.Parent; |
| 189 | + | Part14.Size = Vector3.new(2, 2, 2) |
| 190 | - | local humanoid = character.Humanoid |
| 190 | + | Part14.CFrame = CFrame.new(46, 49.0000076, 11, 0, 0, -1, 1, 0, 0, 0, -1, 0) |
| 191 | - | if humanoid == nil then |
| 191 | + | Part14.BottomSurface = Enum.SurfaceType.Smooth |
| 192 | - | print("Humanoid not found")
|
| 192 | + | Part14.RightSurface = Enum.SurfaceType.Weld |
| 193 | - | return |
| 193 | + | Part14.TopSurface = Enum.SurfaceType.Smooth |
| 194 | - | end |
| 194 | + | Part14.Color = Color3.new(0.105882, 0.164706, 0.207843) |
| 195 | Part14.Position = Vector3.new(46, 49.0000076, 11) | |
| 196 | - | local targetPos = humanoid.TargetPoint |
| 196 | + | Part14.Orientation = Vector3.new(0, -90, 90) |
| 197 | Part14.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
| 198 | - | fire(targetPos) |
| 198 | + | Part15.Name = "Smooth Block Model" |
| 199 | Part15.Parent = Model2 | |
| 200 | - | wait(.2) |
| 200 | + | Part15.BrickColor = BrickColor.new("Bright red")
|
| 201 | Part15.Rotation = Vector3.new(-180, -90, 0) | |
| 202 | - | Tool.Enabled = true |
| 202 | + | Part15.Size = Vector3.new(2, 2.4000001, 1) |
| 203 | Part15.CFrame = CFrame.new(47.5, 48.8000069, 11, 0, 0, -1, 0, -1, 0, -1, 0, 0) | |
| 204 | Part15.BackSurface = Enum.SurfaceType.Weld | |
| 205 | - | script.Parent.Activated:connect(onActivated) |
| 205 | + | Part15.BottomSurface = Enum.SurfaceType.Weld |
| 206 | Part15.TopSurface = Enum.SurfaceType.Weld | |
| 207 | Part15.Color = Color3.new(0.768628, 0.156863, 0.109804) | |
| 208 | Part15.Position = Vector3.new(47.5, 48.8000069, 11) | |
| 209 | Part15.Orientation = Vector3.new(0, -90, 180) | |
| 210 | - | Script10.Name = "Bomb" |
| 210 | + | Part15.Color = Color3.new(0.768628, 0.156863, 0.109804) |
| 211 | - | Script10.Parent = Tool0 |
| 211 | + | SpecialMesh16.Parent = Part15 |
| 212 | - | Script10.Disabled = true |
| 212 | + | SpecialMesh16.Scale = Vector3.new(0.200000003, 1, 1) |
| 213 | - | table.insert(cors,sandbox(Script10,function() |
| 213 | + | SpecialMesh16.MeshType = Enum.MeshType.Wedge |
| 214 | - | updateInterval = 0.4 |
| 214 | + | SpecialMesh16.Scale = Vector3.new(0.200000003, 1, 1) |
| 215 | Part17.Name = "Smooth Block Model" | |
| 216 | - | currentColor = 1 |
| 216 | + | Part17.Parent = Model2 |
| 217 | - | colors = {26, 21}
|
| 217 | + | Part17.BrickColor = BrickColor.new("Bright red")
|
| 218 | Part17.Rotation = Vector3.new(-90, 0, -90) | |
| 219 | - | function onTouched(hit) |
| 219 | + | Part17.FormFactor = Enum.FormFactor.Plate |
| 220 | - | local weld = Instance.new("Weld")
|
| 220 | + | Part17.Size = Vector3.new(2, 1.20000005, 2) |
| 221 | - | weld.Part0 = script.Parent |
| 221 | + | Part17.CFrame = CFrame.new(44.4000015, 51.0000076, 11, 0, 1, 0, 0, 0, 1, 1, 0, 0) |
| 222 | - | weld.Part1 = hit |
| 222 | + | Part17.BottomSurface = Enum.SurfaceType.Weld |
| 223 | - | local temp = CFrame.new((script.Parent.Position + hit.Position) * 0.5) |
| 223 | + | Part17.TopSurface = Enum.SurfaceType.Weld |
| 224 | - | weld.C0 = script.Parent.CFrame:inverse() * temp |
| 224 | + | Part17.Color = Color3.new(0.768628, 0.156863, 0.109804) |
| 225 | - | weld.C1 = hit.CFrame:inverse() * temp |
| 225 | + | Part17.Position = Vector3.new(44.4000015, 51.0000076, 11) |
| 226 | - | weld.Parent = script.Parent |
| 226 | + | Part17.Orientation = Vector3.new(-90, -90, 0) |
| 227 | - | connection:disconnect() |
| 227 | + | Part17.Color = Color3.new(0.768628, 0.156863, 0.109804) |
| 228 | - | Remove() |
| 228 | + | SpecialMesh18.Parent = Part17 |
| 229 | SpecialMesh18.Scale = Vector3.new(0.200000003, 1, 1) | |
| 230 | SpecialMesh18.MeshType = Enum.MeshType.Brick | |
| 231 | - | function Remove() |
| 231 | + | SpecialMesh18.Scale = Vector3.new(0.200000003, 1, 1) |
| 232 | - | wait(10) |
| 232 | + | Part19.Name = "Smooth Block Model" |
| 233 | - | if script.Parent.Parent ~= nil then |
| 233 | + | Part19.Parent = Model2 |
| 234 | - | script.Parent.Parent = nil |
| 234 | + | Part19.BrickColor = BrickColor.new("Bright red")
|
| 235 | - | elseif script.Parent.Parent == nil then |
| 235 | + | Part19.Rotation = Vector3.new(0, 0, -180) |
| 236 | - | return |
| 236 | + | Part19.Size = Vector3.new(2, 2.4000001, 1) |
| 237 | - | end |
| 237 | + | Part19.CFrame = CFrame.new(46, 48.8000069, 9.5, -1, 0, 0, 0, -1, 0, 0, 0, 1) |
| 238 | Part19.BackSurface = Enum.SurfaceType.Weld | |
| 239 | Part19.BottomSurface = Enum.SurfaceType.Weld | |
| 240 | - | connection = script.Parent.Touched:connect(onTouched) |
| 240 | + | Part19.TopSurface = Enum.SurfaceType.Weld |
| 241 | Part19.Color = Color3.new(0.768628, 0.156863, 0.109804) | |
| 242 | Part19.Position = Vector3.new(46, 48.8000069, 9.5) | |
| 243 | Part19.Orientation = Vector3.new(0, 0, 180) | |
| 244 | Part19.Color = Color3.new(0.768628, 0.156863, 0.109804) | |
| 245 | - | NumberValue11.Name = "BombOut" |
| 245 | + | SpecialMesh20.Parent = Part19 |
| 246 | - | NumberValue11.Parent = Tool0 |
| 246 | + | SpecialMesh20.Scale = Vector3.new(0.200000003, 1, 1) |
| 247 | - | NumberValue12.Name = "Tutorialized" |
| 247 | + | SpecialMesh20.MeshType = Enum.MeshType.Wedge |
| 248 | - | NumberValue12.Parent = Tool0 |
| 248 | + | SpecialMesh20.Scale = Vector3.new(0.200000003, 1, 1) |
| 249 | - | NumberValue12.Value = 14 |
| 249 | + | Part21.Name = "Smooth Block Model" |
| 250 | - | LocalScript13.Parent = Tool0 |
| 250 | + | Part21.Parent = Model2 |
| 251 | - | table.insert(cors,sandbox(LocalScript13,function() |
| 251 | + | Part21.BrickColor = BrickColor.new("Bright red")
|
| 252 | - | local Tool = script.Parent; |
| 252 | + | Part21.Rotation = Vector3.new(180, 90, 0) |
| 253 | - | local check = script.Parent.BombOut |
| 253 | + | Part21.Size = Vector3.new(2, 2.4000001, 1) |
| 254 | - | local db = script.Parent.Tutorialized |
| 254 | + | Part21.CFrame = CFrame.new(44.5, 48.8000069, 11, 0, 0, 1, 0, -1, 0, 1, 0, 0) |
| 255 | Part21.BackSurface = Enum.SurfaceType.Weld | |
| 256 | - | function onKeyDown(key) |
| 256 | + | Part21.BottomSurface = Enum.SurfaceType.Weld |
| 257 | - | if (key~=nil) then |
| 257 | + | Part21.TopSurface = Enum.SurfaceType.Weld |
| 258 | - | key = key:lower() |
| 258 | + | Part21.Color = Color3.new(0.768628, 0.156863, 0.109804) |
| 259 | - | if (key=="q") then |
| 259 | + | Part21.Position = Vector3.new(44.5, 48.8000069, 11) |
| 260 | - | if script.Parent.BombOut.Value == 1 then |
| 260 | + | Part21.Orientation = Vector3.new(0, 90, 180) |
| 261 | - | local bomb = game.Workspace:FindFirstChild(""..script.Parent.Parent.Name.." Bomb")
|
| 261 | + | Part21.Color = Color3.new(0.768628, 0.156863, 0.109804) |
| 262 | - | if bomb ~= nil then |
| 262 | + | SpecialMesh22.Parent = Part21 |
| 263 | - | blowUp(bomb) |
| 263 | + | SpecialMesh22.Scale = Vector3.new(0.200000003, 1, 1) |
| 264 | - | bomb.Transparency = 1 |
| 264 | + | SpecialMesh22.MeshType = Enum.MeshType.Wedge |
| 265 | - | local decal = bomb:GetChildren() |
| 265 | + | SpecialMesh22.Scale = Vector3.new(0.200000003, 1, 1) |
| 266 | - | for i=1, #decal do |
| 266 | + | Part23.Name = "Smooth Block Model" |
| 267 | - | if decal[i].className == "Decal" then |
| 267 | + | Part23.Parent = Model2 |
| 268 | - | decal[i]:remove() |
| 268 | + | Part23.BrickColor = BrickColor.new("Bright red")
|
| 269 | - | end |
| 269 | + | Part23.Rotation = Vector3.new(0, 0, 90) |
| 270 | - | end |
| 270 | + | Part23.FormFactor = Enum.FormFactor.Plate |
| 271 | - | end |
| 271 | + | Part23.Size = Vector3.new(2, 0.400000006, 4) |
| 272 | - | wait(3) |
| 272 | + | Part23.CFrame = CFrame.new(43.6000023, 51.0000076, 11, 0, -1, 0, 1, 0, 0, 0, 0, 1) |
| 273 | - | script.Parent.BombOut.Value = 0 |
| 273 | + | Part23.BottomSurface = Enum.SurfaceType.Weld |
| 274 | - | bomb:remove() |
| 274 | + | Part23.TopSurface = Enum.SurfaceType.Smooth |
| 275 | - | end |
| 275 | + | Part23.Color = Color3.new(0.768628, 0.156863, 0.109804) |
| 276 | - | end |
| 276 | + | Part23.Position = Vector3.new(43.6000023, 51.0000076, 11) |
| 277 | Part23.Orientation = Vector3.new(0, 0, 90) | |
| 278 | - | if (key=="e") then |
| 278 | + | Part23.Color = Color3.new(0.768628, 0.156863, 0.109804) |
| 279 | - | local clean = game.Workspace:GetChildren() |
| 279 | + | SpecialMesh24.Parent = Part23 |
| 280 | - | for i=1, #clean do |
| 280 | + | SpecialMesh24.Scale = Vector3.new(1, 1, 1.29999995) |
| 281 | - | if clean[i].Name == ""..script.Parent.Parent.Name.." Bomb" then |
| 281 | + | SpecialMesh24.MeshType = Enum.MeshType.Brick |
| 282 | - | clean[i]:remove() |
| 282 | + | SpecialMesh24.Scale = Vector3.new(1, 1, 1.29999995) |
| 283 | - | end |
| 283 | + | Part25.Name = "Smooth Block Model" |
| 284 | - | end |
| 284 | + | Part25.Parent = Model2 |
| 285 | - | script.Parent.BombOut.Value = 0 |
| 285 | + | Part25.BrickColor = BrickColor.new("Bright red")
|
| 286 | Part25.Rotation = Vector3.new(0, 0, -90) | |
| 287 | Part25.FormFactor = Enum.FormFactor.Plate | |
| 288 | Part25.Size = Vector3.new(2, 0.400000006, 4) | |
| 289 | - | enabled = true |
| 289 | + | Part25.CFrame = CFrame.new(48.4000015, 51.0000076, 11, 0, 1, 0, -1, 0, 0, 0, 0, 1) |
| 290 | - | function onButton1Down(mouse) |
| 290 | + | Part25.BottomSurface = Enum.SurfaceType.Weld |
| 291 | - | if not enabled then |
| 291 | + | Part25.TopSurface = Enum.SurfaceType.Smooth |
| 292 | - | return |
| 292 | + | Part25.Color = Color3.new(0.768628, 0.156863, 0.109804) |
| 293 | - | end |
| 293 | + | Part25.Position = Vector3.new(48.4000015, 51.0000076, 11) |
| 294 | Part25.Orientation = Vector3.new(0, 0, -90) | |
| 295 | - | enabled = false |
| 295 | + | Part25.Color = Color3.new(0.768628, 0.156863, 0.109804) |
| 296 | SpecialMesh26.Parent = Part25 | |
| 297 | SpecialMesh26.Scale = Vector3.new(1, 1, 1.29999995) | |
| 298 | - | wait(3) |
| 298 | + | SpecialMesh26.MeshType = Enum.MeshType.Brick |
| 299 | SpecialMesh26.Scale = Vector3.new(1, 1, 1.29999995) | |
| 300 | - | enabled = true |
| 300 | + | Part27.Name = "Smooth Block Model" |
| 301 | Part27.Parent = Model2 | |
| 302 | Part27.BrickColor = BrickColor.new("Bright red")
| |
| 303 | Part27.Rotation = Vector3.new(-90, 0, -90) | |
| 304 | - | function onEquippedLocal(mouse) |
| 304 | + | Part27.FormFactor = Enum.FormFactor.Plate |
| 305 | Part27.Size = Vector3.new(2, 1.20000005, 2) | |
| 306 | - | if mouse == nil then |
| 306 | + | Part27.CFrame = CFrame.new(47.5999985, 51.0000076, 11, 0, 1, 0, 0, 0, 1, 1, 0, 0) |
| 307 | - | print("Mouse not found")
|
| 307 | + | Part27.BottomSurface = Enum.SurfaceType.Weld |
| 308 | - | return |
| 308 | + | Part27.TopSurface = Enum.SurfaceType.Weld |
| 309 | - | end |
| 309 | + | Part27.Color = Color3.new(0.768628, 0.156863, 0.109804) |
| 310 | Part27.Position = Vector3.new(47.5999985, 51.0000076, 11) | |
| 311 | Part27.Orientation = Vector3.new(-90, -90, 0) | |
| 312 | - | mouse.Button1Down:connect(function() onButton1Down(mouse) end) |
| 312 | + | Part27.Color = Color3.new(0.768628, 0.156863, 0.109804) |
| 313 | - | mouse.KeyDown:connect(onKeyDown) |
| 313 | + | SpecialMesh28.Parent = Part27 |
| 314 | SpecialMesh28.Scale = Vector3.new(0.200000003, 1, 1) | |
| 315 | - | if db.Value == 0 then |
| 315 | + | SpecialMesh28.MeshType = Enum.MeshType.Brick |
| 316 | - | db.Value = 14 |
| 316 | + | SpecialMesh28.Scale = Vector3.new(0.200000003, 1, 1) |
| 317 | - | local message = Instance.new("Hint")
|
| 317 | + | Part29.Name = "Smooth Block Model" |
| 318 | - | message.Parent = game.Players:findFirstChild(script.Parent.Parent.Name) |
| 318 | + | Part29.Parent = Model2 |
| 319 | - | message.Text = "Thanks for using C4 by Malvaviscos" |
| 319 | + | Part29.BrickColor = BrickColor.new("Bright red")
|
| 320 | - | wait(3) |
| 320 | + | Part29.Rotation = Vector3.new(-90, 0, 0) |
| 321 | - | message.Text = "Click to drop C4 (Fires like a slingshot)" |
| 321 | + | Part29.FormFactor = Enum.FormFactor.Plate |
| 322 | - | wait(3) |
| 322 | + | Part29.Size = Vector3.new(2, 1.20000005, 2) |
| 323 | - | message.Text = "Press 'q' to detonate the C4, and 'e' to remove it." |
| 323 | + | Part29.CFrame = CFrame.new(46, 51.0000076, 9.39999962, 1, 0, 0, 0, 0, 1, 0, -1, 0) |
| 324 | - | wait(3) |
| 324 | + | Part29.BottomSurface = Enum.SurfaceType.Weld |
| 325 | - | message.Text = "If the tool stops working, press 'e' also to reset it." |
| 325 | + | Part29.TopSurface = Enum.SurfaceType.Weld |
| 326 | - | wait(3) |
| 326 | + | Part29.Color = Color3.new(0.768628, 0.156863, 0.109804) |
| 327 | - | message:remove() |
| 327 | + | Part29.Position = Vector3.new(46, 51.0000076, 9.39999962) |
| 328 | - | end |
| 328 | + | Part29.Orientation = Vector3.new(-90, 0, 0) |
| 329 | Part29.Color = Color3.new(0.768628, 0.156863, 0.109804) | |
| 330 | SpecialMesh30.Parent = Part29 | |
| 331 | - | function blowUp(obj) |
| 331 | + | SpecialMesh30.Scale = Vector3.new(0.200000003, 1, 1) |
| 332 | - | local sound = Instance.new("Sound")
|
| 332 | + | SpecialMesh30.MeshType = Enum.MeshType.Brick |
| 333 | - | sound.SoundId = "rbxasset://sounds\\Rocket shot.wav" |
| 333 | + | SpecialMesh30.Scale = Vector3.new(0.200000003, 1, 1) |
| 334 | - | sound.Parent = obj |
| 334 | + | Part31.Name = "Smooth Block Model" |
| 335 | - | sound.Volume = 1 |
| 335 | + | Part31.Parent = Model2 |
| 336 | - | sound:play() |
| 336 | + | Part31.BrickColor = BrickColor.new("Bright red")
|
| 337 | - | explosion = Instance.new("Explosion")
|
| 337 | + | Part31.Rotation = Vector3.new(-90, -90, 0) |
| 338 | - | explosion.BlastRadius = 15 |
| 338 | + | Part31.FormFactor = Enum.FormFactor.Plate |
| 339 | - | explosion.BlastPressure = 100 -- these are really wussy units |
| 339 | + | Part31.Size = Vector3.new(2, 0.400000006, 4) |
| 340 | Part31.CFrame = CFrame.new(46, 51.0000076, 8.60000038, 0, 0, -1, 1, 0, 0, 0, -1, 0) | |
| 341 | - | -- find instigator tag |
| 341 | + | Part31.BottomSurface = Enum.SurfaceType.Weld |
| 342 | - | local creator = script.Parent:findFirstChild("creator")
|
| 342 | + | Part31.TopSurface = Enum.SurfaceType.Smooth |
| 343 | - | if creator ~= nil then |
| 343 | + | Part31.Color = Color3.new(0.768628, 0.156863, 0.109804) |
| 344 | - | explosion.Hit:connect(function(part, distance) onPlayerBlownUp(part, distance, creator) end) |
| 344 | + | Part31.Position = Vector3.new(46, 51.0000076, 8.60000038) |
| 345 | - | end |
| 345 | + | Part31.Orientation = Vector3.new(0, -90, 90) |
| 346 | Part31.Color = Color3.new(0.768628, 0.156863, 0.109804) | |
| 347 | - | explosion.Position = obj.Position |
| 347 | + | SpecialMesh32.Parent = Part31 |
| 348 | - | explosion.Parent = game.Workspace |
| 348 | + | SpecialMesh32.Scale = Vector3.new(1, 1, 1.29999995) |
| 349 | SpecialMesh32.MeshType = Enum.MeshType.Brick | |
| 350 | SpecialMesh32.Scale = Vector3.new(1, 1, 1.29999995) | |
| 351 | - | function onPlayerBlownUp(part, distance, creator) |
| 351 | + | Part33.Name = "Tip" |
| 352 | - | if part.Name == "Head" then |
| 352 | + | Part33.Parent = Model2 |
| 353 | - | local humanoid = part.Parent.Humanoid |
| 353 | + | Part33.BrickColor = BrickColor.new("Bright violet")
|
| 354 | - | tagHumanoid(humanoid, creator) |
| 354 | + | Part33.Reflectance = 0.5 |
| 355 | - | end |
| 355 | + | Part33.Rotation = Vector3.new(180, -90, 0) |
| 356 | Part33.FormFactor = Enum.FormFactor.Plate | |
| 357 | Part33.Size = Vector3.new(4, 1.20000005, 4) | |
| 358 | - | function tagHumanoid(humanoid, creator) |
| 358 | + | Part33.CFrame = CFrame.new(46, 37.4000092, 11, -0, -0, -1, -0, -1, -0, -1, -0, -0) |
| 359 | - | -- tag does not need to expire iff all explosions lethal |
| 359 | + | Part33.BottomSurface = Enum.SurfaceType.Smooth |
| 360 | - | |
| 360 | + | Part33.TopSurface = Enum.SurfaceType.Smooth |
| 361 | - | if creator ~= nil then |
| 361 | + | Part33.Color = Color3.new(0.419608, 0.196078, 0.486275) |
| 362 | - | local new_tag = creator:clone() |
| 362 | + | Part33.Position = Vector3.new(46, 37.4000092, 11) |
| 363 | - | new_tag.Parent = humanoid |
| 363 | + | Part33.Orientation = Vector3.new(0, -90, -180) |
| 364 | - | end |
| 364 | + | Part33.Color = Color3.new(0.419608, 0.196078, 0.486275) |
| 365 | SpecialMesh34.Parent = Part33 | |
| 366 | SpecialMesh34.Scale = Vector3.new(1, 5, 1) | |
| 367 | - | function untagHumanoid(humanoid) |
| 367 | + | SpecialMesh34.MeshType = Enum.MeshType.Sphere |
| 368 | - | if humanoid ~= nil then |
| 368 | + | SpecialMesh34.Scale = Vector3.new(1, 5, 1) |
| 369 | - | local tag = humanoid:findFirstChild("creator")
|
| 369 | + | Script35.Name = "Touch" |
| 370 | - | if tag ~= nil then |
| 370 | + | Script35.Parent = Part33 |
| 371 | - | tag.Parent = nil |
| 371 | + | table.insert(cors,sandbox(Script35,function() |
| 372 | debounce = true | |
| 373 | - | end |
| 373 | + | function activate(hit) |
| 374 | if debounce == false then return end | |
| 375 | debounce = false | |
| 376 | - | Tool.Equipped:connect(onEquippedLocal) |
| 376 | + | script.Parent.Anchored = true |
| 377 | wait(0.05) | |
| 378 | Boom2 = Instance.new("Explosion")
| |
| 379 | - | LocalScript14.Name = "Local Gui" |
| 379 | + | Boom2.BlastRadius = 40 |
| 380 | - | LocalScript14.Parent = Tool0 |
| 380 | + | Boom2.Parent = game.Workspace |
| 381 | - | table.insert(cors,sandbox(LocalScript14,function() |
| 381 | + | Boom2.Position = script.Parent.Position |
| 382 | - | local Tool = script.Parent; |
| 382 | + | wait(0.5) |
| 383 | Boom2:Remove() | |
| 384 | Boom = Instance.new("Part")
| |
| 385 | Boom.Parent = game.Workspace | |
| 386 | - | enabled = true |
| 386 | + | Boom.formFactor = 0 |
| 387 | Boom.Shape = 0 | |
| 388 | - | function onButton1Down(mouse) |
| 388 | + | Boom.BrickColor = BrickColor:Yellow() |
| 389 | Boom.Position = script.Parent.Position | |
| 390 | - | if not enabled then |
| 390 | + | Boom.Transparency = 0.3 |
| 391 | Boom.Size = Vector3.new(4, 1, 4) | |
| 392 | - | return |
| 392 | + | Boom.Anchored = true |
| 393 | Boom.TopSurface = "Smooth" | |
| 394 | - | end |
| 394 | + | Boom.BottomSurface = "Smooth" |
| 395 | script.Parent.Transparency = 1 | |
| 396 | Script = script.Parent.Explosion | |
| 397 | SC = Script:clone() | |
| 398 | - | enabled = false |
| 398 | + | SC.Disabled = false |
| 399 | SC.Parent = Boom | |
| 400 | Grow = script.Parent.Grow | |
| 401 | GC = Grow:clone() | |
| 402 | GC.Disabled = false | |
| 403 | GC.Parent = Boom | |
| 404 | - | wait(2) |
| 404 | + | Stay = script.Parent.Stay |
| 405 | SC = Stay:clone() | |
| 406 | SC.Disabled = false | |
| 407 | SC.Parent = Boom | |
| 408 | Boom2 = Instance.new("Explosion")
| |
| 409 | - | enabled = true |
| 409 | + | Boom2.BlastRadius = 40 |
| 410 | Boom2.Position = script.Parent.Position | |
| 411 | wait(0.5) | |
| 412 | Boom2:Remove() | |
| 413 | wait(5) | |
| 414 | script.Parent.Parent:Remove() | |
| 415 | wait(100) | |
| 416 | end | |
| 417 | - | function onEquippedLocal(mouse) |
| 417 | + | |
| 418 | script.Parent.Touched:connect(activate) | |
| 419 | ||
| 420 | end)) | |
| 421 | - | if mouse == nil then |
| 421 | + | Script36.Name = "Stay" |
| 422 | Script36.Parent = Part33 | |
| 423 | - | print("Mouse not found")
|
| 423 | + | Script36.Disabled = true |
| 424 | table.insert(cors,sandbox(Script36,function() | |
| 425 | - | return |
| 425 | + | wait(0.1) |
| 426 | pos = script.Parent.CFrame | |
| 427 | - | end |
| 427 | + | while true do |
| 428 | script.Parent.CFrame = pos | |
| 429 | wait(0.000000000000000000000000000000000000000000000000001) | |
| 430 | end | |
| 431 | ||
| 432 | end)) | |
| 433 | - | mouse.Button1Down:connect(function() onButton1Down(mouse) end) |
| 433 | + | Script37.Name = "Grow" |
| 434 | Script37.Parent = Part33 | |
| 435 | Script37.Disabled = true | |
| 436 | table.insert(cors,sandbox(Script37,function() | |
| 437 | wait(0.1) | |
| 438 | Boom = script.Parent | |
| 439 | for i = 1, 200 do | |
| 440 | Boom.Size = Boom.Size + Vector3.new(1, 1, 1) | |
| 441 | - | Tool.Equipped:connect(onEquippedLocal) |
| 441 | + | wait(0.01) |
| 442 | end | |
| 443 | Boom:Remove() | |
| 444 | end)) | |
| 445 | - | LocalScript15.Name = "IFF" |
| 445 | + | Script38.Name = "Explosion" |
| 446 | - | LocalScript15.Parent = Tool0 |
| 446 | + | Script38.Parent = Part33 |
| 447 | - | table.insert(cors,sandbox(LocalScript15,function() |
| 447 | + | Script38.Disabled = true |
| 448 | - | --hey. it's me alextomcool. just change the normel, friendly and enemy crosshair's or just use the starter crosshair's. |
| 448 | + | table.insert(cors,sandbox(Script38,function() |
| 449 | - | --this was modifed from a KeyDoor script. credit's to whomever made the KeyDoors |
| 449 | + | wait(0.1) |
| 450 | function destroy(hit) | |
| 451 | - | bin = script.Parent |
| 451 | + | Boom = Instance.new("Explosion")
|
| 452 | - | normel = "http://www.roblox.com/asset/?id=7419350" |
| 452 | + | Boom.Parent = game.Workspace |
| 453 | - | friendly = "http://www.roblox.com/asset/?id=7419364" |
| 453 | + | Boom.Position = hit.Position |
| 454 | - | enemy = "http://www.roblox.com/asset/?id=7419379" |
| 454 | + | wait(1) |
| 455 | - | function Run(mouse) |
| 455 | + | Boom:Remove() |
| 456 | - | mouse.Icon = normel |
| 456 | + | |
| 457 | - | local hit = mouse.Target |
| 457 | + | |
| 458 | - | if (hit == nil) then return end |
| 458 | + | script.Parent.Touched:connect(destroy) |
| 459 | - | h = hit.Parent:FindFirstChild("Humanoid")
|
| 459 | + | |
| 460 | - | if h ~= nil then |
| 460 | + | |
| 461 | - | torso = hit.Parent.Torso |
| 461 | + | Script39.Name = "BloodScript" |
| 462 | - | if torso ~= nil then |
| 462 | + | Script39.Parent = Model2 |
| 463 | - | if h.Health > 0 then |
| 463 | + | table.insert(cors,sandbox(Script39,function() |
| 464 | - | if (torso.BrickColor == bin.Parent.Torso.BrickColor) then |
| 464 | + | function onPlayerDied(dead) |
| 465 | - | mouse.Icon = friendly |
| 465 | + | local h = script.Parent.Humanoid |
| 466 | - | elseif torso.BrickColor ~= bin.Parent.Torso.BrickColor then |
| 466 | + | if (h.Health==0) then |
| 467 | - | mouse.Icon = enemy |
| 467 | + | local head = script.Parent.Head |
| 468 | - | end |
| 468 | + | local blood1 = Instance.new("Part")
|
| 469 | - | end |
| 469 | + | blood1.BrickColor = BrickColor.new(21) |
| 470 | - | end |
| 470 | + | blood1.formFactor = 2 |
| 471 | - | |
| 471 | + | blood1.Size = Vector3.new(1, 0.4, 1) |
| 472 | - | end |
| 472 | + | blood1.Position = head.Position |
| 473 | blood1.Name = "Blood" | |
| 474 | blood1.Parent = script.Parent | |
| 475 | local blood2 = Instance.new("Part")
| |
| 476 | blood2.BrickColor = BrickColor.new(21) | |
| 477 | blood2.formFactor = 2 | |
| 478 | blood2.Size = Vector3.new(1, 0.4, 1) | |
| 479 | blood2.Position = head.Position | |
| 480 | blood2.Name = "Blood" | |
| 481 | - | function on(mouse) |
| 481 | + | blood2.Parent = script.Parent |
| 482 | - | while true do |
| 482 | + | local blood3 = Instance.new("Part")
|
| 483 | - | wait() |
| 483 | + | blood3.BrickColor = BrickColor.new(21) |
| 484 | - | Run(mouse) |
| 484 | + | blood3.formFactor = 2 |
| 485 | - | end |
| 485 | + | blood3.Size = Vector3.new(1, 0.4, 1) |
| 486 | blood3.Position = head.Position | |
| 487 | blood3.Name = "Blood" | |
| 488 | blood3.Parent = script.Parent | |
| 489 | ||
| 490 | - | script.Parent.Equipped:connect(on) |
| 490 | + | |
| 491 | end | |
| 492 | ||
| 493 | script.Parent.Humanoid.Died:connect(onPlayerDied) | |
| 494 | - | LocalScript16.Name = "AmmoScript" |
| 494 | + | |
| 495 | - | LocalScript16.Parent = Tool0 |
| 495 | + | |
| 496 | - | table.insert(cors,sandbox(LocalScript16,function() |
| 496 | + | Part40.Name = "Door" |
| 497 | - | Tool = script.Parent |
| 497 | + | Part40.Parent = Model1 |
| 498 | - | function equip() |
| 498 | + | Part40.BrickColor = BrickColor.new("Bright violet")
|
| 499 | - | print("Equipped")
|
| 499 | + | Part40.Transparency = 1 |
| 500 | - | if game.Players.LocalPlayer ~= nil then |
| 500 | + | Part40.Rotation = Vector3.new(180, 0, -180) |
| 501 | - | local m = Instance.new("Message")
|
| 501 | + | Part40.Anchored = true |
| 502 | - | m.Parent = game.Players.LocalPlayer |
| 502 | + | Part40.Size = Vector3.new(10, 1.20000005, 9) |
| 503 | - | m.Name = "AmmoStats" |
| 503 | + | Part40.CFrame = CFrame.new(46, 34.2000084, 11.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) |
| 504 | - | while m ~= nil do |
| 504 | + | Part40.Color = Color3.new(0.419608, 0.196078, 0.486275) |
| 505 | - | wait(0.1) |
| 505 | + | Part40.Position = Vector3.new(46, 34.2000084, 11.5) |
| 506 | - | m.Text = "click to place charge" |
| 506 | + | Part40.Orientation = Vector3.new(0, -180, 0) |
| 507 | - | wait(2) |
| 507 | + | Part40.Color = Color3.new(0.419608, 0.196078, 0.486275) |
| 508 | - | m.Text = "E to remove charge" |
| 508 | + | Script41.Parent = Part40 |
| 509 | - | wait(2) |
| 509 | + | table.insert(cors,sandbox(Script41,function() |
| 510 | - | m.Text = "Q to detonate charge" |
| 510 | + | doorName = "Door" --name of the door or whatever it is |
| 511 | - | wait(2) |
| 511 | + | door = game.Workspace:findFirstChild(doorName) |
| 512 | - | m.Text = "Or Press E to reset the tool" |
| 512 | + | function chat(msg, speaker) |
| 513 | - | wait(2) |
| 513 | + | if msg=="GO" then |
| 514 | - | m:remove() |
| 514 | + | door.CanCollide = false |
| 515 | door.Transparency = 1 | |
| 516 | - | end |
| 516 | + | wait(10) |
| 517 | door.CanCollide = true | |
| 518 | door.Transparency = 0 | |
| 519 | - | function unequip() |
| 519 | + | end |
| 520 | - | print("Unequipped")
|
| 520 | + | end |
| 521 | - | if game.Players.LocalPlayer ~= nil then |
| 521 | + | function enter(player) |
| 522 | - | print("localplayer found")
|
| 522 | + | player.Chatted:connect(function(msg) chat(msg, player) end) |
| 523 | - | local m = game.Players.LocalPlayer:FindFirstChild("AmmoStats")
|
| 523 | + | end |
| 524 | - | if m ~= nil then |
| 524 | + | game.Players.ChildAdded:connect(enter) |
| 525 | - | m:remove() |
| 525 | + | |
| 526 | Part42.Parent = Model0 | |
| 527 | - | end |
| 527 | + | Part42.BrickColor = BrickColor.new("Bright red")
|
| 528 | Part42.Rotation = Vector3.new(90, 0, -90) | |
| 529 | Part42.Anchored = true | |
| 530 | - | script.Parent.Equipped:connect(equip) |
| 530 | + | Part42.Size = Vector3.new(6, 4.80000019, 1) |
| 531 | - | script.Parent.Unequipped:connect(unequip) |
| 531 | + | Part42.CFrame = CFrame.new(46.1999969, 52.5000076, 10, 0, 1, 0, 0, 0, -1, -1, 0, 0) |
| 532 | Part42.BottomSurface = Enum.SurfaceType.Smooth | |
| 533 | Part42.TopSurface = Enum.SurfaceType.Smooth | |
| 534 | Part42.Color = Color3.new(0.768628, 0.156863, 0.109804) | |
| 535 | - | v.Parent = game:GetService("Players").LocalPlayer.Backpack
|
| 535 | + | Part42.Position = Vector3.new(46.1999969, 52.5000076, 10) |
| 536 | Part42.Orientation = Vector3.new(90, 90, 0) | |
| 537 | Part42.Color = Color3.new(0.768628, 0.156863, 0.109804) | |
| 538 | Part43.Parent = Model0 | |
| 539 | Part43.BrickColor = BrickColor.new("Bright red")
| |
| 540 | Part43.Rotation = Vector3.new(90, 0, -90) | |
| 541 | Part43.Anchored = true | |
| 542 | Part43.Size = Vector3.new(5, 4.80000019, 53) | |
| 543 | Part43.CFrame = CFrame.new(46.2000008, 26.5000019, 4.5, 0, 1, 0, 0, 0, -1, -1, 0, 0) | |
| 544 | Part43.BottomSurface = Enum.SurfaceType.Smooth | |
| 545 | Part43.TopSurface = Enum.SurfaceType.Smooth | |
| 546 | Part43.Color = Color3.new(0.768628, 0.156863, 0.109804) | |
| 547 | Part43.Position = Vector3.new(46.2000008, 26.5000019, 4.5) | |
| 548 | Part43.Orientation = Vector3.new(90, 90, 0) | |
| 549 | Part43.Color = Color3.new(0.768628, 0.156863, 0.109804) | |
| 550 | for i,v in pairs(mas:GetChildren()) do | |
| 551 | v.Parent = workspace | |
| 552 | pcall(function() v:MakeJoints() end) | |
| 553 | end | |
| 554 | mas:Destroy() | |
| 555 | for i,v in pairs(cors) do | |
| 556 | spawn(function() | |
| 557 | pcall(v) | |
| 558 | end) | |
| 559 | end |