SHOW:
|
|
- or go back to the newest paste.
| 1 | - | --=================================-- |
| 1 | + | z--=================================-- |
| 2 | ||
| 3 | ||
| 4 | - | -- EDIT BY MELISSA666666GIRL -- |
| 4 | + | -- EDIT BY joe201501-- |
| 5 | -- ORIGINAL SCRIPT -- | |
| 6 | -- Kirky's Realistic Pistol script -- | |
| 7 | ||
| 8 | -- https://pastebin.com/raw/2W78wPwu -- | |
| 9 | ||
| 10 | -- THANKS FOR USING :> -- | |
| 11 | ||
| 12 | ||
| 13 | --==================================-- | |
| 14 | ||
| 15 | - | AnimeHair = false --Change to true to get ANIME HAIR-- |
| 15 | + | AnimeHair == true --Change to true to get ANIME HAIR-- |
| 16 | - | TrapShirt = false --Change to true to get a TRAP SHIRT!-- |
| 16 | + | TrapShirt == false --Change to true to get a TRAP SHIRT!-- |
| 17 | ||
| 18 | ||
| 19 | - | local Pants = "rbxassetid://889200276" |
| 19 | + | |
| 20 | - | local Shirt = "rbxassetid://889202926" |
| 20 | + | local Pants = "rbxassetid://150219907" |
| 21 | local Shirt = "rbxassetid://150219868" | |
| 22 | local Pants2 = "rbxassetid://756532964" | |
| 23 | local Shirt2 = "" | |
| 24 | local Pants3 = "rbxassetid://587907973" | |
| 25 | local Shirt3 = "rbxassetid://1177765208" | |
| 26 | local Scale = game.Players.LocalPlayer.Character.Torso.Size.X/2*(game.Players.LocalPlayer.Character.Torso:FindFirstChild("ScaleInserted") ~= nil and game.Players.LocalPlayer.Character.Torso:FindFirstChild("ScaleInserted").Scale.Z or 1)*0.8
| |
| 27 | local Speed = 20*Scale | |
| 28 | local Gravity = 0.1 | |
| 29 | ||
| 30 | local Player = game.Players.LocalPlayer | |
| 31 | local Character = Player.Character | |
| 32 | local Humanoid = Character.Humanoid | |
| 33 | Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,false) | |
| 34 | local Torso = Character.HumanoidRootPart | |
| 35 | local Head = Character.Head | |
| 36 | local Mouse = game.Players.LocalPlayer:GetMouse() | |
| 37 | local RenderStepped = game:GetService("RunService").RenderStepped
| |
| 38 | local Camera = Workspace.CurrentCamera | |
| 39 | Camera:ClearAllChildren() | |
| 40 | local Model = Instance.new("Model",Character)
| |
| 41 | local IgnoreList = {Character,Workspace.Terrain}
| |
| 42 | ||
| 43 | local HBill = Instance.new("BillboardGui", Head)
| |
| 44 | local HMain, HBarBack, HBar = Instance.new("Frame", HBill), Instance.new("Frame"), Instance.new("Frame")
| |
| 45 | local HHealth, HName = Instance.new("TextLabel", HBarBack), Instance.new("TextLabel")
| |
| 46 | HBill.Size = UDim2.new(15,0,2.2,0) | |
| 47 | HBill.Name = "Health Display" | |
| 48 | HBill.StudsOffset = Vector3.new(0,4,0) | |
| 49 | HBill.AlwaysOnTop = true | |
| 50 | HBill.Enabled = true | |
| 51 | HMain.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 52 | HMain.BackgroundTransparency = 0.6 | |
| 53 | HMain.Size = UDim2.new(1,0,1,0) | |
| 54 | HBarBack.Parent = HMain | |
| 55 | HBarBack.BackgroundColor3 = Color3.new(0,0,0) | |
| 56 | HBarBack.BorderColor3 = Color3.new(0,0,0) | |
| 57 | HBarBack.BorderSizePixel = 2 | |
| 58 | HBarBack.Position = UDim2.new(.025, 0, .55, 0) | |
| 59 | HBarBack.Size = UDim2.new(.95, 0, .3, 0) | |
| 60 | HHealth.BackgroundTransparency = 1 | |
| 61 | HHealth.Size = UDim2.new(1,0,1,0) | |
| 62 | HHealth.Font = "Code" | |
| 63 | HHealth.Text = "No" | |
| 64 | HHealth.TextScaled = true | |
| 65 | HHealth.TextColor3 = Color3.new(1,1,1) | |
| 66 | HHealth.TextStrokeColor3 = BrickColor.new("Cyan").Color
| |
| 67 | HHealth.TextStrokeTransparency = 0 | |
| 68 | HName.Parent = HMain | |
| 69 | HName.BackgroundTransparency = 1 | |
| 70 | HName.Size = UDim2.new(1,0,.5,0) | |
| 71 | HName.Font = "Code" | |
| 72 | HName.Text = "Anime Master" | |
| 73 | HName.TextScaled = true | |
| 74 | HName.TextColor3 = BrickColor.new("Cyan").Color
| |
| 75 | HName.TextStrokeColor3 = Color3.new(0,0,0) | |
| 76 | HName.TextStrokeTransparency = 0 | |
| 77 | HName.TextYAlignment = "Top" | |
| 78 | ||
| 79 | - | z.SoundId = "rbxassetid://974451759" |
| 79 | + | |
| 80 | ||
| 81 | - | z.Pitch = 1.2 |
| 81 | + | Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=150219907" |
| 82 | - | z.Volume = 4 |
| 82 | + | Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=150219868" |
| 83 | ||
| 84 | Player.Character.Head.face.Texture = "rbxassetid://30233519" | |
| 85 | ||
| 86 | if TrapShirt == true then | |
| 87 | Player.Character.Shirt.ShirtTexture = "rbxassetid://877679540" | |
| 88 | end | |
| 89 | ||
| 90 | if AnimeHair == true then | |
| 91 | for i,v in pairs(Character:GetChildren()) do | |
| 92 | if v.ClassName == "Accessory" or v.ClassName == "Hat" then | |
| 93 | v:destroy() | |
| 94 | end | |
| 95 | end | |
| 96 | ||
| 97 | local Hair = Instance.new("Part")
| |
| 98 | Hair.Parent = Character | |
| 99 | Hair.Name = "Hair" | |
| 100 | Hair.Size = Vector3.new(0.1, 0.1, 0.1) | |
| 101 | Hair.CFrame = Character.Head.CFrame | |
| 102 | Hair:BreakJoints() | |
| 103 | Hair.CanCollide = false | |
| 104 | Hair.BrickColor = BrickColor.new("New Yeller")
| |
| 105 | Hair.TopSurface = "Smooth" | |
| 106 | Hair.BottomSurface = "Smooth" | |
| 107 | Weld = Instance.new("Weld")
| |
| 108 | - | Handle.BrickColor = BrickColor.new("Pink")
|
| 108 | + | |
| 109 | Weld.Part0 = Character.Head | |
| 110 | Weld.Part1 = Hair | |
| 111 | Weld.Parent = Character.Head | |
| 112 | Weld.C0 = CFrame.new(0, -1.4, 0.2)*CFrame.fromEulerAnglesXYZ(0.1, 0, 0) | |
| 113 | Mesh = Instance.new("SpecialMesh")
| |
| 114 | Mesh.Parent = Hair | |
| 115 | Mesh.MeshId = "rbxassetid://1389678629" | |
| 116 | Mesh.TextureId = "http://www.roblox.com/asset/?id=1389678737" | |
| 117 | Mesh.Scale = Vector3.new(0.050, 0.050, 0.050) | |
| 118 | end | |
| 119 | ||
| 120 | ||
| 121 | z = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
| |
| 122 | z.SoundId = "rbxassetid://276748653" | |
| 123 | z.Looped = true | |
| 124 | z.Pitch = 1 | |
| 125 | z.Volume = 5 | |
| 126 | wait(.1) | |
| 127 | z:Play() | |
| 128 | ||
| 129 | Character = game.Players.LocalPlayer.Character | |
| 130 | ||
| 131 | Character.Humanoid.Died:connect(function() | |
| 132 | z:Stop() | |
| 133 | z = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
| |
| 134 | z.SoundId = "rbxassetid://331314679" | |
| 135 | z.Looped = true | |
| 136 | z.Pitch = 1 | |
| 137 | z.Volume = 5 | |
| 138 | wait(.1) | |
| 139 | z:Play() | |
| 140 | ||
| 141 | local Part0Joint = CFrame.new(Vector3.new(1,0.75,0)*Scale*1.25) | |
| 142 | local Part1Joint = CFrame.new(Vector3.new(-0.5,0.75,0)*Scale*1.25) | |
| 143 | local RotationOffset = CFrame.Angles(math.rad(90),math.rad(0),0) | |
| 144 | local Gangster = false | |
| 145 | ||
| 146 | local Part0JointHead = CFrame.new(Vector3.new(0,1,0)*Scale*1.25) | |
| 147 | local Part1JointHead = CFrame.new(Vector3.new(0,-0.5,0)*Scale*1.25) | |
| 148 | local RotationOffsetHead = CFrame.Angles(0,0,0) | |
| 149 | ||
| 150 | local Handle = Instance.new("Part",Model)
| |
| 151 | Handle.CanCollide = false | |
| 152 | Handle.Name = "Handle" | |
| 153 | Handle.Position = Vector3.new(0,100,0) | |
| 154 | Handle:BreakJoints() | |
| 155 | Handle.FormFactor = "Custom" | |
| 156 | Handle.Size = Vector3.new(0.2,0.2,0.2) | |
| 157 | Handle.TopSurface = "SmoothNoOutlines" | |
| 158 | Handle.BottomSurface = "SmoothNoOutlines" | |
| 159 | Handle.FrontSurface = "SmoothNoOutlines" | |
| 160 | Handle.BackSurface = "SmoothNoOutlines" | |
| 161 | Handle.RightSurface = "SmoothNoOutlines" | |
| 162 | Handle.LeftSurface = "SmoothNoOutlines" | |
| 163 | Handle.BrickColor = BrickColor.new("Cyan")
| |
| 164 | Handle.Material = "Neon" | |
| 165 | local Mesh = Instance.new("BlockMesh",Handle)
| |
| 166 | Mesh.Scale = Vector3.new(0.25,1,0.4) / 0.2 * Scale | |
| 167 | local HandleWeld = Instance.new("Motor6D")
| |
| 168 | HandleWeld.Part0 = Character["Right Arm"] | |
| 169 | HandleWeld.Part1 = Handle | |
| 170 | HandleWeld.C0 = CFrame.new(Vector3.new(0,-1,0)*Scale) * CFrame.Angles(math.rad(-105),0,0) | |
| 171 | HandleWeld.Parent = Handle | |
| 172 | ||
| 173 | local Part = Instance.new("Part",Model)
| |
| 174 | Part.CanCollide = false | |
| 175 | Part.Position = Vector3.new(0,100,0) | |
| 176 | Part:BreakJoints() | |
| 177 | Part.FormFactor = "Custom" | |
| 178 | Part.Size = Vector3.new(0.2,0.2,0.2) | |
| 179 | Part.TopSurface = "SmoothNoOutlines" | |
| 180 | Part.BottomSurface = "SmoothNoOutlines" | |
| 181 | Part.FrontSurface = "SmoothNoOutlines" | |
| 182 | Part.BackSurface = "SmoothNoOutlines" | |
| 183 | Part.RightSurface = "SmoothNoOutlines" | |
| 184 | Part.LeftSurface = "SmoothNoOutlines" | |
| 185 | Part.BrickColor = BrickColor.new("Cyan")
| |
| 186 | Part.Material = "Neon" | |
| 187 | local Mesh = Instance.new("CylinderMesh",Part)
| |
| 188 | Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 0.2 * Scale | |
| 189 | local PartWeld = Instance.new("Motor6D")
| |
| 190 | PartWeld.Part0 = Handle | |
| 191 | PartWeld.Part1 = Part | |
| 192 | PartWeld.C0 = CFrame.new(Vector3.new(-0.115,-0.475,-0.190)*Scale) * CFrame.Angles(0,0,0) | |
| 193 | PartWeld.Parent = Part | |
| 194 | ||
| 195 | local Part = Instance.new("Part",Model)
| |
| 196 | Part.CanCollide = false | |
| 197 | Part.Position = Vector3.new(0,100,0) | |
| 198 | Part:BreakJoints() | |
| 199 | Part.FormFactor = "Custom" | |
| 200 | Part.Size = Vector3.new(0.2,0.2,0.2) | |
| 201 | Part.TopSurface = "SmoothNoOutlines" | |
| 202 | Part.BottomSurface = "SmoothNoOutlines" | |
| 203 | Part.FrontSurface = "SmoothNoOutlines" | |
| 204 | Part.BackSurface = "SmoothNoOutlines" | |
| 205 | Part.RightSurface = "SmoothNoOutlines" | |
| 206 | Part.LeftSurface = "SmoothNoOutlines" | |
| 207 | Part.BrickColor = BrickColor.new("Pink")
| |
| 208 | Part.Material = "Neon" | |
| 209 | local Mesh = Instance.new("CylinderMesh",Part)
| |
| 210 | Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 0.2 * Scale | |
| 211 | local PartWeld = Instance.new("Motor6D")
| |
| 212 | PartWeld.Part0 = Handle | |
| 213 | PartWeld.Part1 = Part | |
| 214 | PartWeld.C0 = CFrame.new(Vector3.new(0.115,-0.475,0.190)*Scale) * CFrame.Angles(0,0,0) | |
| 215 | PartWeld.Parent = Part | |
| 216 | ||
| 217 | local Part = Instance.new("Part",Model)
| |
| 218 | Part.CanCollide = false | |
| 219 | Part.Position = Vector3.new(0,100,0) | |
| 220 | Part:BreakJoints() | |
| 221 | Part.FormFactor = "Custom" | |
| 222 | Part.Size = Vector3.new(0.2,0.2,0.2) | |
| 223 | Part.TopSurface = "SmoothNoOutlines" | |
| 224 | Part.BottomSurface = "SmoothNoOutlines" | |
| 225 | Part.FrontSurface = "SmoothNoOutlines" | |
| 226 | Part.BackSurface = "SmoothNoOutlines" | |
| 227 | Part.RightSurface = "SmoothNoOutlines" | |
| 228 | Part.LeftSurface = "SmoothNoOutlines" | |
| 229 | Part.BrickColor = BrickColor.new("Cyan")
| |
| 230 | Part.Material = "Neon" | |
| 231 | local Mesh = Instance.new("CylinderMesh",Part)
| |
| 232 | Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 0.2 * Scale | |
| 233 | local PartWeld = Instance.new("Motor6D")
| |
| 234 | PartWeld.Part0 = Handle | |
| 235 | PartWeld.Part1 = Part | |
| 236 | PartWeld.C0 = CFrame.new(Vector3.new(-0.115,-0.475,0.190)*Scale) * CFrame.Angles(0,0,0) | |
| 237 | PartWeld.Parent = Part | |
| 238 | ||
| 239 | local Part = Instance.new("Part",Model)
| |
| 240 | Part.CanCollide = false | |
| 241 | Part.Position = Vector3.new(0,100,0) | |
| 242 | Part:BreakJoints() | |
| 243 | Part.FormFactor = "Custom" | |
| 244 | Part.Size = Vector3.new(0.2,0.2,0.2) | |
| 245 | Part.TopSurface = "SmoothNoOutlines" | |
| 246 | Part.BottomSurface = "SmoothNoOutlines" | |
| 247 | Part.FrontSurface = "SmoothNoOutlines" | |
| 248 | Part.BackSurface = "SmoothNoOutlines" | |
| 249 | Part.RightSurface = "SmoothNoOutlines" | |
| 250 | Part.LeftSurface = "SmoothNoOutlines" | |
| 251 | Part.BrickColor = BrickColor.new("Cyan")
| |
| 252 | Part.Material = "Neon" | |
| 253 | local Mesh = Instance.new("CylinderMesh",Part)
| |
| 254 | Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 0.2 * Scale | |
| 255 | local PartWeld = Instance.new("Motor6D")
| |
| 256 | PartWeld.Part0 = Handle | |
| 257 | PartWeld.Part1 = Part | |
| 258 | PartWeld.C0 = CFrame.new(Vector3.new(0.115,-0.475,-0.190)*Scale) * CFrame.Angles(0,0,0) | |
| 259 | PartWeld.Parent = Part | |
| 260 | ||
| 261 | local Part = Instance.new("Part",Model)
| |
| 262 | Part.CanCollide = false | |
| 263 | Part.Position = Vector3.new(0,100,0) | |
| 264 | Part:BreakJoints() | |
| 265 | Part.FormFactor = "Custom" | |
| 266 | Part.Size = Vector3.new(0.2,0.2,0.2) | |
| 267 | Part.TopSurface = "SmoothNoOutlines" | |
| 268 | Part.BottomSurface = "SmoothNoOutlines" | |
| 269 | Part.FrontSurface = "SmoothNoOutlines" | |
| 270 | Part.BackSurface = "SmoothNoOutlines" | |
| 271 | Part.RightSurface = "SmoothNoOutlines" | |
| 272 | Part.LeftSurface = "SmoothNoOutlines" | |
| 273 | Part.BrickColor = BrickColor.new("Cyan")
| |
| 274 | Part.Material = "Neon" | |
| 275 | local Mesh = Instance.new("BlockMesh",Part)
| |
| 276 | Mesh.Scale = Vector3.new(0.23,0.2,0.1) / 0.2 * Scale | |
| 277 | local PartWeld = Instance.new("Motor6D")
| |
| 278 | PartWeld.Part0 = Handle | |
| 279 | PartWeld.Part1 = Part | |
| 280 | PartWeld.C0 = CFrame.new(Vector3.new(0,-0.475,-0.175)*Scale) * CFrame.Angles(0,0,0) | |
| 281 | PartWeld.Parent = Part | |
| 282 | ||
| 283 | local Part = Instance.new("Part",Model)
| |
| 284 | Part.CanCollide = false | |
| 285 | Part.Position = Vector3.new(0,100,0) | |
| 286 | Part:BreakJoints() | |
| 287 | Part.FormFactor = "Custom" | |
| 288 | Part.Size = Vector3.new(0.2,0.2,0.2) | |
| 289 | Part.TopSurface = "SmoothNoOutlines" | |
| 290 | Part.BottomSurface = "SmoothNoOutlines" | |
| 291 | Part.FrontSurface = "SmoothNoOutlines" | |
| 292 | Part.BackSurface = "SmoothNoOutlines" | |
| 293 | Part.RightSurface = "SmoothNoOutlines" | |
| 294 | Part.LeftSurface = "SmoothNoOutlines" | |
| 295 | Part.BrickColor = BrickColor.new("Cyan")
| |
| 296 | Part.Material = "Neon" | |
| 297 | local Mesh = Instance.new("BlockMesh",Part)
| |
| 298 | Mesh.Scale = Vector3.new(0.23,0.2,0.1) / 0.2 * Scale | |
| 299 | local PartWeld = Instance.new("Motor6D")
| |
| 300 | PartWeld.Part0 = Handle | |
| 301 | PartWeld.Part1 = Part | |
| 302 | PartWeld.C0 = CFrame.new(Vector3.new(0,-0.475,0.175)*Scale) * CFrame.Angles(0,0,0) | |
| 303 | PartWeld.Parent = Part | |
| 304 | ||
| 305 | local Part = Instance.new("Part",Model)
| |
| 306 | Part.CanCollide = false | |
| 307 | Part.Position = Vector3.new(0,100,0) | |
| 308 | Part:BreakJoints() | |
| 309 | Part.FormFactor = "Custom" | |
| 310 | Part.Size = Vector3.new(0.2,0.2,0.2) | |
| 311 | Part.TopSurface = "SmoothNoOutlines" | |
| 312 | Part.BottomSurface = "SmoothNoOutlines" | |
| 313 | Part.FrontSurface = "SmoothNoOutlines" | |
| 314 | Part.BackSurface = "SmoothNoOutlines" | |
| 315 | Part.RightSurface = "SmoothNoOutlines" | |
| 316 | Part.LeftSurface = "SmoothNoOutlines" | |
| 317 | Part.BrickColor = BrickColor.new("Cyan")
| |
| 318 | Part.Material = "Neon" | |
| 319 | local Mesh = Instance.new("BlockMesh",Part)
| |
| 320 | Mesh.Scale = Vector3.new(0.1,0.2,0.38) / 0.2 * Scale | |
| 321 | local PartWeld = Instance.new("Motor6D")
| |
| 322 | PartWeld.Part0 = Handle | |
| 323 | PartWeld.Part1 = Part | |
| 324 | PartWeld.C0 = CFrame.new(Vector3.new(-0.1,-0.475,0)*Scale) * CFrame.Angles(0,0,0) | |
| 325 | PartWeld.Parent = Part | |
| 326 | ||
| 327 | local Part = Instance.new("Part",Model)
| |
| 328 | Part.CanCollide = false | |
| 329 | Part.Position = Vector3.new(0,100,0) | |
| 330 | Part:BreakJoints() | |
| 331 | Part.FormFactor = "Custom" | |
| 332 | Part.Size = Vector3.new(0.2,0.2,0.2) | |
| 333 | Part.TopSurface = "SmoothNoOutlines" | |
| 334 | Part.BottomSurface = "SmoothNoOutlines" | |
| 335 | Part.FrontSurface = "SmoothNoOutlines" | |
| 336 | Part.BackSurface = "SmoothNoOutlines" | |
| 337 | Part.RightSurface = "SmoothNoOutlines" | |
| 338 | Part.LeftSurface = "SmoothNoOutlines" | |
| 339 | Part.BrickColor = BrickColor.new("Cyan")
| |
| 340 | Part.Material = "Neon" | |
| 341 | local Mesh = Instance.new("BlockMesh",Part)
| |
| 342 | Mesh.Scale = Vector3.new(0.1,0.2,0.38) / 0.2 * Scale | |
| 343 | local PartWeld = Instance.new("Motor6D")
| |
| 344 | PartWeld.Part0 = Handle | |
| 345 | PartWeld.Part1 = Part | |
| 346 | PartWeld.C0 = CFrame.new(Vector3.new(0.1,-0.475,0)*Scale) * CFrame.Angles(0,0,0) | |
| 347 | PartWeld.Parent = Part | |
| 348 | ||
| 349 | local Part = Instance.new("Part",Model)
| |
| 350 | Part.CanCollide = false | |
| 351 | - | Part.BrickColor = BrickColor.new("Pink")
|
| 351 | + | |
| 352 | Part:BreakJoints() | |
| 353 | Part.FormFactor = "Custom" | |
| 354 | Part.Size = Vector3.new(0.2,0.2,0.2) | |
| 355 | Part.TopSurface = "SmoothNoOutlines" | |
| 356 | Part.BottomSurface = "SmoothNoOutlines" | |
| 357 | Part.FrontSurface = "SmoothNoOutlines" | |
| 358 | Part.BackSurface = "SmoothNoOutlines" | |
| 359 | Part.RightSurface = "SmoothNoOutlines" | |
| 360 | Part.LeftSurface = "SmoothNoOutlines" | |
| 361 | Part.BrickColor = BrickColor.new("Cyan")
| |
| 362 | Part.Material = "Neon" | |
| 363 | local Mesh = Instance.new("BlockMesh",Part)
| |
| 364 | Mesh.Scale = Vector3.new(0.1,0.3,0.05) / 0.2 * Scale | |
| 365 | local PartWeld = Instance.new("Motor6D")
| |
| 366 | PartWeld.Part0 = Handle | |
| 367 | PartWeld.Part1 = Part | |
| 368 | PartWeld.C0 = CFrame.Angles(math.rad(15),0,0) * CFrame.new(Vector3.new(0,0.25,-0.75)*Scale) * CFrame.Angles(math.rad(-10),0,0) | |
| 369 | PartWeld.Parent = Part | |
| 370 | ||
| 371 | local Part = Instance.new("Part",Model)
| |
| 372 | Part.CanCollide = false | |
| 373 | Part.Position = Vector3.new(0,100,0) | |
| 374 | - | Barrel.BrickColor = BrickColor.new("Pink")
|
| 374 | + | |
| 375 | Part.FormFactor = "Custom" | |
| 376 | Part.Size = Vector3.new(0.2,0.2,0.2) | |
| 377 | Part.TopSurface = "SmoothNoOutlines" | |
| 378 | Part.BottomSurface = "SmoothNoOutlines" | |
| 379 | Part.FrontSurface = "SmoothNoOutlines" | |
| 380 | Part.BackSurface = "SmoothNoOutlines" | |
| 381 | Part.RightSurface = "SmoothNoOutlines" | |
| 382 | Part.LeftSurface = "SmoothNoOutlines" | |
| 383 | Part.BrickColor = BrickColor.new("Cyan")
| |
| 384 | Part.Material = "Neon" | |
| 385 | local Mesh = Instance.new("BlockMesh",Part)
| |
| 386 | Mesh.Scale = Vector3.new(0.1,0.05,0.625) / 0.2 * Scale | |
| 387 | local PartWeld = Instance.new("Motor6D")
| |
| 388 | PartWeld.Part0 = Handle | |
| 389 | PartWeld.Part1 = Part | |
| 390 | PartWeld.C0 = CFrame.Angles(math.rad(15),0,0) * CFrame.new(Vector3.new(0,0.1,-0.435)*Scale) | |
| 391 | PartWeld.Parent = Part | |
| 392 | ||
| 393 | for i = 0,80,10 do | |
| 394 | local Part = Instance.new("Part",Model)
| |
| 395 | Part.CanCollide = false | |
| 396 | Part.Position = Vector3.new(0,100,0) | |
| 397 | Part:BreakJoints() | |
| 398 | - | Barrel2.BrickColor = BrickColor.new("Magenta")
|
| 398 | + | |
| 399 | Part.Size = Vector3.new(0.2,0.2,0.2) | |
| 400 | Part.TopSurface = "SmoothNoOutlines" | |
| 401 | Part.BottomSurface = "SmoothNoOutlines" | |
| 402 | Part.FrontSurface = "SmoothNoOutlines" | |
| 403 | Part.BackSurface = "SmoothNoOutlines" | |
| 404 | Part.RightSurface = "SmoothNoOutlines" | |
| 405 | Part.LeftSurface = "SmoothNoOutlines" | |
| 406 | Part.BrickColor = BrickColor.new("Cyan")
| |
| 407 | Part.Material = "Neon" | |
| 408 | local Mesh = Instance.new("BlockMesh",Part)
| |
| 409 | Mesh.Scale = Vector3.new(0.25,0.15,0.03555*2) / 0.2 * Scale | |
| 410 | local PartWeld = Instance.new("Motor6D")
| |
| 411 | PartWeld.Part0 = Handle | |
| 412 | PartWeld.Part1 = Part | |
| 413 | PartWeld.C0 = CFrame.new(Vector3.new(0,0.15,0.315)*Scale) * CFrame.Angles(math.rad(i-65),0,0) * CFrame.new(Vector3.new(0,0.2,0)*Scale) | |
| 414 | PartWeld.Parent = Part | |
| 415 | end | |
| 416 | ||
| 417 | local Barrel = Instance.new("Part",Model)
| |
| 418 | Barrel.CanCollide = false | |
| 419 | Barrel.Position = Vector3.new(0,100,0) | |
| 420 | Barrel:BreakJoints() | |
| 421 | Barrel.FormFactor = "Custom" | |
| 422 | Barrel.Size = Vector3.new(0.2,0.2,0.2) | |
| 423 | Barrel.TopSurface = "SmoothNoOutlines" | |
| 424 | Barrel.BottomSurface = "SmoothNoOutlines" | |
| 425 | Barrel.FrontSurface = "SmoothNoOutlines" | |
| 426 | Barrel.BackSurface = "SmoothNoOutlines" | |
| 427 | Barrel.RightSurface = "SmoothNoOutlines" | |
| 428 | Barrel.LeftSurface = "SmoothNoOutlines" | |
| 429 | Barrel.BrickColor = BrickColor.new("Cyan")
| |
| 430 | Barrel.Material = "Neon" | |
| 431 | local Mesh = Instance.new("BlockMesh",Barrel)
| |
| 432 | Mesh.Scale = Vector3.new(0.25,0.2,2) / 0.2 * Scale | |
| 433 | local BarrelWeld = Instance.new("Motor6D")
| |
| 434 | BarrelWeld.Part0 = Handle | |
| 435 | BarrelWeld.Part1 = Barrel | |
| 436 | BarrelWeld.C0 = CFrame.Angles(math.rad(15),0,0) * CFrame.new(Vector3.new(0,0.5,-0.7)*Scale) | |
| 437 | BarrelWeld.Parent = Barrel | |
| 438 | ||
| 439 | local Barrel1 = Barrel | |
| 440 | ||
| 441 | local Barrel2 = Instance.new("Part",Model)
| |
| 442 | Barrel2.CanCollide = false | |
| 443 | - | Part.BrickColor = BrickColor.new("Pink")
|
| 443 | + | |
| 444 | Barrel2:BreakJoints() | |
| 445 | Barrel2.FormFactor = "Custom" | |
| 446 | Barrel2.Size = Vector3.new(0.2,0.2,0.2) | |
| 447 | Barrel2.TopSurface = "SmoothNoOutlines" | |
| 448 | Barrel2.BottomSurface = "SmoothNoOutlines" | |
| 449 | Barrel2.FrontSurface = "SmoothNoOutlines" | |
| 450 | Barrel2.BackSurface = "SmoothNoOutlines" | |
| 451 | Barrel2.RightSurface = "SmoothNoOutlines" | |
| 452 | Barrel2.LeftSurface = "SmoothNoOutlines" | |
| 453 | Barrel2.BrickColor = BrickColor.new("Lapis")
| |
| 454 | Barrel2.Material = "Neon" | |
| 455 | local Mesh = Instance.new("BlockMesh",Barrel2)
| |
| 456 | Mesh.Scale = Vector3.new(0.25,0.25,2) / 0.2 * Scale | |
| 457 | local Barrel2Weld = Instance.new("Motor6D")
| |
| 458 | Barrel2Weld.Part0 = Barrel | |
| 459 | Barrel2Weld.Part1 = Barrel2 | |
| 460 | Barrel2Weld.C0 = CFrame.new(Vector3.new(0,0.225,0)*Scale) | |
| 461 | Barrel2Weld.Parent = Barrel2 | |
| 462 | ||
| 463 | local RealBarrel = Instance.new("Part",Model)
| |
| 464 | RealBarrel.CanCollide = false | |
| 465 | RealBarrel.Position = Vector3.new(0,100,0) | |
| 466 | - | Part.BrickColor = BrickColor.new("Magenta")
|
| 466 | + | |
| 467 | RealBarrel.FormFactor = "Custom" | |
| 468 | RealBarrel.Size = Vector3.new(0.2,0.2,0.2) | |
| 469 | RealBarrel.TopSurface = "SmoothNoOutlines" | |
| 470 | RealBarrel.BottomSurface = "SmoothNoOutlines" | |
| 471 | RealBarrel.FrontSurface = "SmoothNoOutlines" | |
| 472 | RealBarrel.BackSurface = "SmoothNoOutlines" | |
| 473 | RealBarrel.RightSurface = "SmoothNoOutlines" | |
| 474 | RealBarrel.LeftSurface = "SmoothNoOutlines" | |
| 475 | RealBarrel.BrickColor = BrickColor.new("Black")
| |
| 476 | RealBarrel.Material = "Neon" | |
| 477 | local Mesh = Instance.new("CylinderMesh",RealBarrel)
| |
| 478 | Mesh.Scale = Vector3.new(0.2,2,0.2) / 0.2 * Scale | |
| 479 | local RealBarrelWeld = Instance.new("Motor6D")
| |
| 480 | RealBarrelWeld.Part0 = Barrel | |
| 481 | RealBarrelWeld.Part1 = RealBarrel | |
| 482 | RealBarrelWeld.C0 = CFrame.new(Vector3.new(0,0.1,-0.01)*Scale) * CFrame.Angles(math.rad(-90),0,0) | |
| 483 | RealBarrelWeld.Parent = RealBarrel | |
| 484 | ||
| 485 | for i = 1,75,15 do | |
| 486 | local Part = Instance.new("Part",Model)
| |
| 487 | Part.CanCollide = false | |
| 488 | - | Part.BrickColor = BrickColor.new("Magenta")
|
| 488 | + | |
| 489 | Part:BreakJoints() | |
| 490 | Part.FormFactor = "Custom" | |
| 491 | Part.Size = Vector3.new(0.2,0.2,0.2) | |
| 492 | Part.TopSurface = "SmoothNoOutlines" | |
| 493 | Part.BottomSurface = "SmoothNoOutlines" | |
| 494 | Part.FrontSurface = "SmoothNoOutlines" | |
| 495 | Part.BackSurface = "SmoothNoOutlines" | |
| 496 | Part.RightSurface = "SmoothNoOutlines" | |
| 497 | Part.LeftSurface = "SmoothNoOutlines" | |
| 498 | Part.BrickColor = BrickColor.new("Cyan")
| |
| 499 | Part.Material = "Neon" | |
| 500 | local Mesh = Instance.new("BlockMesh",Part)
| |
| 501 | Mesh.Scale = Vector3.new(0.05,0.065,0.05) / 0.2 * Scale | |
| 502 | local PartWeld = Instance.new("Motor6D")
| |
| 503 | PartWeld.Part0 = Handle | |
| 504 | PartWeld.Part1 = Part | |
| 505 | PartWeld.C0 = CFrame.new(Vector3.new(0,0.525,-0.515)*Scale) * CFrame.Angles(math.rad(i),0,0) * CFrame.new(Vector3.new(0,0,0.2)*Scale) | |
| 506 | PartWeld.Parent = Part | |
| 507 | end | |
| 508 | ||
| 509 | local Part = Instance.new("Part",Model)
| |
| 510 | - | Part.BrickColor = BrickColor.new("Magenta")
|
| 510 | + | |
| 511 | Part.Position = Vector3.new(0,100,0) | |
| 512 | Part:BreakJoints() | |
| 513 | Part.FormFactor = "Custom" | |
| 514 | Part.Size = Vector3.new(0.2,0.2,0.2) | |
| 515 | Part.TopSurface = "SmoothNoOutlines" | |
| 516 | Part.BottomSurface = "SmoothNoOutlines" | |
| 517 | Part.FrontSurface = "SmoothNoOutlines" | |
| 518 | Part.BackSurface = "SmoothNoOutlines" | |
| 519 | Part.RightSurface = "SmoothNoOutlines" | |
| 520 | Part.LeftSurface = "SmoothNoOutlines" | |
| 521 | Part.BrickColor = BrickColor.new("Lapis")
| |
| 522 | Part.Material = "Neon" | |
| 523 | local Mesh = Instance.new("BlockMesh",Part)
| |
| 524 | Mesh.Scale = Vector3.new(0.05,0.11,0.1) / 0.2 * Scale | |
| 525 | local PartWeld = Instance.new("Motor6D")
| |
| 526 | PartWeld.Part0 = Barrel2 | |
| 527 | PartWeld.Part1 = Part | |
| 528 | PartWeld.C0 = CFrame.new(Vector3.new(0.06,0.135,0.925)*Scale) | |
| 529 | PartWeld.Parent = Part | |
| 530 | ||
| 531 | local Part = Instance.new("Part",Model)
| |
| 532 | Part.CanCollide = false | |
| 533 | - | Part.BrickColor = BrickColor.new("Magenta")
|
| 533 | + | |
| 534 | Part:BreakJoints() | |
| 535 | Part.FormFactor = "Custom" | |
| 536 | Part.Size = Vector3.new(0.2,0.2,0.2) | |
| 537 | Part.TopSurface = "SmoothNoOutlines" | |
| 538 | Part.BottomSurface = "SmoothNoOutlines" | |
| 539 | Part.FrontSurface = "SmoothNoOutlines" | |
| 540 | Part.BackSurface = "SmoothNoOutlines" | |
| 541 | Part.RightSurface = "SmoothNoOutlines" | |
| 542 | Part.LeftSurface = "SmoothNoOutlines" | |
| 543 | Part.BrickColor = BrickColor.new("Lapis")
| |
| 544 | - | Light.Color = BrickColor.new("Gold").Color
|
| 544 | + | |
| 545 | local Mesh = Instance.new("BlockMesh",Part)
| |
| 546 | Mesh.Scale = Vector3.new(0.05,0.11,0.1) / 0.2 * Scale | |
| 547 | local PartWeld = Instance.new("Motor6D")
| |
| 548 | PartWeld.Part0 = Barrel2 | |
| 549 | PartWeld.Part1 = Part | |
| 550 | PartWeld.C0 = CFrame.new(Vector3.new(-0.06,0.135,0.925)*Scale) | |
| 551 | PartWeld.Parent = Part | |
| 552 | ||
| 553 | local Part = Instance.new("Part",Model)
| |
| 554 | Part.CanCollide = false | |
| 555 | Part.Position = Vector3.new(0,100,0) | |
| 556 | Part:BreakJoints() | |
| 557 | Part.FormFactor = "Custom" | |
| 558 | Part.Size = Vector3.new(0.2,0.2,0.2) | |
| 559 | Part.TopSurface = "SmoothNoOutlines" | |
| 560 | Part.BottomSurface = "SmoothNoOutlines" | |
| 561 | Part.FrontSurface = "SmoothNoOutlines" | |
| 562 | Part.BackSurface = "SmoothNoOutlines" | |
| 563 | Part.RightSurface = "SmoothNoOutlines" | |
| 564 | Part.LeftSurface = "SmoothNoOutlines" | |
| 565 | Part.BrickColor = BrickColor.new("Lapis")
| |
| 566 | Part.Material = "Neon" | |
| 567 | local Mesh = Instance.new("BlockMesh",Part)
| |
| 568 | Mesh.Scale = Vector3.new(0.025,0.1,0.1) / 0.2 * Scale | |
| 569 | local PartWeld = Instance.new("Motor6D")
| |
| 570 | PartWeld.Part0 = Barrel2 | |
| 571 | PartWeld.Part1 = Part | |
| 572 | PartWeld.C0 = CFrame.new(Vector3.new(0,0.135,-0.925)*Scale) | |
| 573 | PartWeld.Parent = Part | |
| 574 | ||
| 575 | local Part = Instance.new("Part",Model)
| |
| 576 | Part.CanCollide = false | |
| 577 | Part.Position = Vector3.new(0,100,0) | |
| 578 | Part:BreakJoints() | |
| 579 | Part.FormFactor = "Custom" | |
| 580 | Part.Size = Vector3.new(0.2,0.2,0.2) | |
| 581 | Part.Transparency = 1 | |
| 582 | Part.TopSurface = "SmoothNoOutlines" | |
| 583 | Part.BottomSurface = "SmoothNoOutlines" | |
| 584 | Part.FrontSurface = "SmoothNoOutlines" | |
| 585 | Part.BackSurface = "SmoothNoOutlines" | |
| 586 | Part.RightSurface = "SmoothNoOutlines" | |
| 587 | Part.LeftSurface = "SmoothNoOutlines" | |
| 588 | Part.BrickColor = BrickColor.new("Lapis")
| |
| 589 | - | Bullet.BrickColor = BrickColor.new("Purple")
|
| 589 | + | |
| 590 | local Mesh = Instance.new("BlockMesh",Part)
| |
| 591 | - | --[[local Mesh = Instance.new("SpecialMesh",Bullet)
|
| 591 | + | |
| 592 | local PartWeld = Instance.new("Motor6D")
| |
| 593 | PartWeld.Part0 = Barrel | |
| 594 | - | Mesh.MeshId = "http://www.roblox.com/asset/?id=2697549" |
| 594 | + | |
| 595 | - | --Mesh.TextureId = "http://www.roblox.com/asset/?id=2697544"]] |
| 595 | + | |
| 596 | PartWeld.Parent = Part | |
| 597 | ||
| 598 | local Light = Instance.new("PointLight",Part)
| |
| 599 | Light.Color = BrickColor.new("Cyan").Color
| |
| 600 | Light.Enabled = true | |
| 601 | Light.Shadows = true | |
| 602 | Light.Brightness = 0 | |
| 603 | Light.Range = 6 | |
| 604 | ||
| 605 | local Part = Instance.new("Part",Model)
| |
| 606 | Part.Material = "Neon" | |
| 607 | Part.CanCollide = false | |
| 608 | Part.Position = Vector3.new(0,100,0) | |
| 609 | Part:BreakJoints() | |
| 610 | Part.FormFactor = "Custom" | |
| 611 | Part.Size = Vector3.new(0.2,0.2,0.2) | |
| 612 | Part.TopSurface = "SmoothNoOutlines" | |
| 613 | Part.BottomSurface = "SmoothNoOutlines" | |
| 614 | Part.FrontSurface = "SmoothNoOutlines" | |
| 615 | Part.BackSurface = "SmoothNoOutlines" | |
| 616 | Part.RightSurface = "SmoothNoOutlines" | |
| 617 | Part.LeftSurface = "SmoothNoOutlines" | |
| 618 | Part.BrickColor = BrickColor.new("Purple")
| |
| 619 | Part.Material = "Neon" | |
| 620 | Part.Transparency = 0.25 | |
| 621 | local RecoilMesh = Instance.new("SpecialMesh",Part)
| |
| 622 | RecoilMesh.MeshType = "FileMesh" | |
| 623 | RecoilMesh.MeshId = "http://www.roblox.com/Asset/?id=1323306" | |
| 624 | RecoilMesh.TextureId = "http://www.roblox.com/Asset/?id=98896228" | |
| 625 | RecoilMesh.Scale = Vector3.new(0.175,0,0.175) * Scale | |
| 626 | local PartWeld = Instance.new("Motor6D")
| |
| 627 | PartWeld.Part0 = RealBarrel | |
| 628 | PartWeld.Part1 = Part | |
| 629 | PartWeld.C0 = CFrame.new(Vector3.new(0,0.95,0)*Scale) | |
| 630 | PartWeld.Parent = Part | |
| 631 | ||
| 632 | function ShootBullet(Target,barrel) | |
| 633 | local barrel = barrel or Barrel | |
| 634 | local Bullet = Instance.new("Part",Workspace)
| |
| 635 | Barrel.CanCollide = false | |
| 636 | Bullet.FormFactor = "Custom" | |
| 637 | Bullet.Size = Vector3.new(0.2,0.2,5)*Scale | |
| 638 | Bullet.TopSurface = "Smooth" | |
| 639 | Bullet.BottomSurface = "Smooth" | |
| 640 | Bullet.Anchored = true | |
| 641 | Bullet.CanCollide = false | |
| 642 | Bullet.CFrame = CFrame.new((barrel.CFrame*CFrame.new(0,0,-barrel.Size.Z*barrel.Mesh.Scale.Z/2)).p,Target)*CFrame.new(0,0,-Bullet.Size.Z/2) | |
| 643 | Bullet.Transparency = 0.1 | |
| 644 | Bullet.BrickColor = BrickColor.new("Really Black")
| |
| 645 | Bullet.Material = "Neon" | |
| 646 | local Mesh = Instance.new("SpecialMesh",Bullet)
| |
| 647 | Mesh.MeshType = "FileMesh" | |
| 648 | Mesh.Scale = Vector3.new(0.5,0.5,0.2) | |
| 649 | Mesh.MeshId = "http://www.roblox.com/asset/?id=23259661" | |
| 650 | Mesh.TextureId = "http://www.roblox.com/asset/?id=185342772" | |
| 651 | - | local num = math.random(1, 3) |
| 651 | + | |
| 652 | Mesh.Scale = Vector3.new(0.2,0.2,5)*Scale/Bullet.Size | |
| 653 | IgnoreList[#IgnoreList+1] = Bullet | |
| 654 | RenderStepped:wait() | |
| 655 | for i = Speed,1000,Speed do -- Loop to do the bullet movement and stuff. | |
| 656 | local ray,Hit,Pos,SurfaceNormal; | |
| 657 | ray = Ray.new(Bullet.Position,((Bullet.CFrame*CFrame.Angles(math.rad(-Gravity),0,0)*CFrame.new(0,0,-Speed)).p-Bullet.Position).unit*Speed) | |
| 658 | Hit,Pos,SurfaceNormal = Workspace:FindPartOnRayWithIgnoreList(ray,IgnoreList) | |
| 659 | Bullet.CFrame = Bullet.CFrame*CFrame.Angles(math.rad(-Gravity),0,0)*CFrame.new(0,0,-Speed) | |
| 660 | if Hit ~= nil then | |
| 661 | local Hum = Hit.Parent:FindFirstChild("Humanoid") or Hit.Parent.Parent:FindFirstChild("Humanoid") or (Hit.Parent.Parent.Parent ~= nil and Hit.Parent.Parent.Parent:FindFirstChild("Humanoid"))
| |
| 662 | if Hum ~= nil then | |
| 663 | player2 = Hit.Parent | |
| 664 | Hum:TakeDamage(5) | |
| 665 | if Hum.Parent.Torso == nil then | |
| 666 | q = Instance.new("Sound", Hum.Parent.UpperTorso)
| |
| 667 | q.SoundId = "rbxassetid://924357545" | |
| 668 | q.Volume = 10910850295782 | |
| 669 | ||
| 670 | q:Play() | |
| 671 | ||
| 672 | elseif Hum.Parent.Torso ~= nil then | |
| 673 | q = Instance.new("Sound", Hum.Parent.Torso)
| |
| 674 | q.SoundId = "rbxassetid://924357545" | |
| 675 | q:Play() | |
| 676 | ||
| 677 | end | |
| 678 | ||
| 679 | for i,v in pairs(player2:GetChildren()) do | |
| 680 | if v.ClassName == "Accessory" or v.ClassName == "Hat" then | |
| 681 | v:destroy() | |
| 682 | end | |
| 683 | - | Sound.SoundId = "rbxassetid://426232201" -- 132373574 |
| 683 | + | |
| 684 | - | Sound.Volume = 5*Scale |
| 684 | + | |
| 685 | - | Sound.Pitch = (math.random(70,110)/100)/((Scale < 0.25 and 0.25) or (Scale > 4 and 4) or Scale) |
| 685 | + | |
| 686 | Hair.Parent = player2 | |
| 687 | Hair.Name = "Hair" | |
| 688 | Hair.Size = Vector3.new(0.1, 0.1, 0.1) | |
| 689 | Hair.CFrame = player2.Head.CFrame | |
| 690 | Hair:BreakJoints() | |
| 691 | Hair.CanCollide = false | |
| 692 | Hair.BrickColor = BrickColor.new("New Yeller")
| |
| 693 | Hair.TopSurface = "Smooth" | |
| 694 | Hair.BottomSurface = "Smooth" | |
| 695 | Weld = Instance.new("Weld")
| |
| 696 | Weld.Name = "Weld" | |
| 697 | Weld.Part0 = player2.Head | |
| 698 | Weld.Part1 = Hair | |
| 699 | Weld.Parent = player2.Head | |
| 700 | Weld.C0 = CFrame.new(0, -1.4, 0.2)*CFrame.fromEulerAnglesXYZ(0.1, 0, 0) | |
| 701 | Mesh = Instance.new("SpecialMesh")
| |
| 702 | Mesh.Parent = Hair | |
| 703 | Mesh.MeshId = "rbxassetid://1389678629" | |
| 704 | Mesh.TextureId = "http://www.roblox.com/asset/?id=1389678737" | |
| 705 | Mesh.Scale = Vector3.new(0.050, 0.050, 0.050) | |
| 706 | Hum.Parent.Head.face.Texture = "rbxassetid://318927908" | |
| 707 | ||
| 708 | local num = 1 | |
| 709 | print(num) | |
| 710 | local charPants = player2:FindFirstChildOfClass("Pants")
| |
| 711 | local charShirt = player2: FindFirstChildOfClass("Shirt")
| |
| 712 | if charPants and charShirt then | |
| 713 | if num == 1 then | |
| 714 | charShirt.ShirtTemplate = Shirt | |
| 715 | charPants.PantsTemplate = Pants | |
| 716 | elseif num == 2 then | |
| 717 | charShirt.ShirtTemplate = Shirt2 | |
| 718 | charPants.PantsTemplate = Pants2 | |
| 719 | elseif num == 3 then | |
| 720 | charShirt.ShirtTemplate = Shirt3 | |
| 721 | charPants.PantsTemplate = Pants3 | |
| 722 | end | |
| 723 | end | |
| 724 | end | |
| 725 | break | |
| 726 | end | |
| 727 | RenderStepped:wait() | |
| 728 | end | |
| 729 | Bullet:Destroy() | |
| 730 | end | |
| 731 | ||
| 732 | Mouse.Button1Down:connect(function() | |
| 733 | if not Down and not DB then | |
| 734 | Down = true | |
| 735 | while Down do | |
| 736 | if Humanoid.Health == 0 then break end | |
| 737 | if not DB then | |
| 738 | DB = true | |
| 739 | local Sound = Instance.new("Sound",Barrel)
| |
| 740 | Sound.SoundId = "rbxassetid://929619479" -- 132373574 | |
| 741 | Sound.Volume = 1 | |
| 742 | Sound.Pitch = 1 | |
| 743 | Sound:Play() | |
| 744 | Spawn(function() | |
| 745 | ShootBullet(Mouse.Hit.p,Barrel1) | |
| 746 | end) | |
| 747 | RecoilMesh.VertexColor = Vector3.new(1,math.random(160,245)/255,20/255) | |
| 748 | PartWeld.C0 = PartWeld.C0 * CFrame.Angles(0,math.rad(math.random(-40,40)),0) | |
| 749 | local Shell = Instance.new("Part",Workspace)
| |
| 750 | Shell.FormFactor = "Custom" | |
| 751 | Shell.BrickColor = BrickColor.new("Purple")
| |
| 752 | Shell.Material = "Neon" | |
| 753 | Shell.Size = Vector3.new(0.2,0.5,0.2)*Scale | |
| 754 | Shell.CFrame = Barrel.CFrame*CFrame.new(0.5,0.5,0)*CFrame.Angles(math.rad(-90),0,0) | |
| 755 | Shell.Velocity = ((Barrel.CFrame*CFrame.new(5,0,math.random(-2,2))).p-Barrel.CFrame.p)*5*Scale | |
| 756 | local Mesh = Instance.new("CylinderMesh",Shell)
| |
| 757 | Mesh.Scale = Vector3.new(0.2,0.5,0.2)*Scale/Shell.Size | |
| 758 | Spawn(function() | |
| 759 | wait(5) | |
| 760 | Shell:Destroy() | |
| 761 | end) | |
| 762 | for i = 1,20,7.5 do | |
| 763 | RotationOffset = RotationOffset*CFrame.Angles(math.rad(7.5),0,0) | |
| 764 | Part1Joint = Part1Joint*CFrame.new(Vector3.new(0,-0.15,0)*Scale) | |
| 765 | Barrel2Weld.C0 = Barrel2Weld.C0*CFrame.new(Vector3.new(0,0,0.15)*Scale) | |
| 766 | Light.Brightness = Light.Brightness+38 | |
| 767 | RecoilMesh.Scale = RecoilMesh.Scale+(Vector3.new(0,0.375,0)*Scale) | |
| 768 | RenderStepped:wait() | |
| 769 | end | |
| 770 | wait(0.02) | |
| 771 | for i = 1,20,3.75 do | |
| 772 | RotationOffset = RotationOffset*CFrame.Angles(math.rad(-3.75),0,0) | |
| 773 | Part1Joint = Part1Joint*CFrame.new(Vector3.new(0,0.075,0)*Scale) | |
| 774 | Barrel2Weld.C0 = Barrel2Weld.C0*CFrame.new(Vector3.new(0,0,-0.075)*Scale) | |
| 775 | Light.Brightness = Light.Brightness-19 | |
| 776 | RecoilMesh.Scale = RecoilMesh.Scale+(Vector3.new(0,-0.1875,0)*Scale) | |
| 777 | RenderStepped:wait() | |
| 778 | end | |
| 779 | wait(0.02) | |
| 780 | DB = false | |
| 781 | end | |
| 782 | end | |
| 783 | end | |
| 784 | end) | |
| 785 | ||
| 786 | Mouse.Button1Up:connect(function() | |
| 787 | Down = false | |
| 788 | end) | |
| 789 | ||
| 790 | Mouse.KeyDown:connect(function(Key) | |
| 791 | if Key:lower() == "g" and not DB then | |
| 792 | DB = true | |
| 793 | if Gangster == true then | |
| 794 | for i = 1,70,5 do | |
| 795 | RotationOffset = RotationOffset*CFrame.Angles(0,math.rad(-5),0) | |
| 796 | RenderStepped:wait() | |
| 797 | - | while true do |
| 797 | + | |
| 798 | - | wait(60) |
| 798 | + | |
| 799 | - | print("You're Using Trap Gun, Made By Melissa666666girl! :D")
|
| 799 | + | |
| 800 | - | end |
| 800 | + | |
| 801 | RotationOffset = RotationOffset*CFrame.Angles(0,math.rad(5),0) | |
| 802 | RenderStepped:wait() | |
| 803 | end | |
| 804 | Gangster = true | |
| 805 | end | |
| 806 | DB = false | |
| 807 | end | |
| 808 | end) | |
| 809 | ||
| 810 | local Weld = Instance.new("Weld")
| |
| 811 | Weld.Part0 = Torso | |
| 812 | Weld.Part1 = Character["Right Arm"] | |
| 813 | Weld.Parent = Torso | |
| 814 | ||
| 815 | local Weld2 = Instance.new("Weld")
| |
| 816 | Weld2.Part0 = Torso | |
| 817 | Weld2.Part1 = Character.Head | |
| 818 | Weld2.Parent = Torso | |
| 819 | ||
| 820 | local RA = Character["Right Arm"] | |
| 821 | ||
| 822 | ||
| 823 | game:GetService("RunService"):BindToRenderStep("Pistol",Enum.RenderPriority.Character.Value,function()
| |
| 824 | local Point = Torso.CFrame:vectorToObjectSpace(Mouse.Hit.p-Torso.CFrame.p) | |
| 825 | if Point.Z > 0 then | |
| 826 | if Point.X > 0 then | |
| 827 | Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(Mouse.Hit.X,Torso.Position.Y,Mouse.Hit.Z))*CFrame.Angles(0,math.rad(90),0) | |
| 828 | elseif Point.X < 0 then | |
| 829 | Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(Mouse.Hit.X,Torso.Position.Y,Mouse.Hit.Z))*CFrame.Angles(0,math.rad(-90),0) | |
| 830 | end | |
| 831 | end | |
| 832 | ||
| 833 | local CFr = (Torso.CFrame*Part0Joint):toObjectSpace(CFrame.new((Torso.CFrame*Part0Joint).p,Mouse.Hit.p))--RayEnd)) | |
| 834 | Weld.C0 = Part0Joint * (CFr-CFr.p) * RotationOffset | |
| 835 | Weld.C1 = Part1Joint | |
| 836 | Weld.Part0 = Torso | |
| 837 | Weld.Part1 = RA | |
| 838 | local CFr = (Torso.CFrame*Part0JointHead):toObjectSpace(CFrame.new((Torso.CFrame*Part0JointHead).p,Mouse.Hit.p))--RayEnd)) | |
| 839 | Weld2.C0 = Part0JointHead * (CFr-CFr.p) * RotationOffsetHead | |
| 840 | Weld2.C1 = Part1JointHead | |
| 841 | Weld2.Part0 = Torso | |
| 842 | Weld2.Part1 = Character.Head | |
| 843 | local Last = Scale | |
| 844 | Scale = game.Players.LocalPlayer.Character.Torso.Size.X/2*(game.Players.LocalPlayer.Character.Torso:FindFirstChild("ScaleInserted") ~= nil and game.Players.LocalPlayer.Character.Torso:FindFirstChild("ScaleInserted").Scale.Z or 1)*0.8
| |
| 845 | Speed = 20*Scale | |
| 846 | if Scale ~= Last then | |
| 847 | Part0Joint = CFrame.new(Vector3.new(1,0.75,0)*Scale*1.25) | |
| 848 | Part1Joint = CFrame.new(Vector3.new(-0.5,0.75,0)*Scale*1.25) | |
| 849 | Part0JointHead = CFrame.new(Vector3.new(0,1,0)*Scale*1.25) | |
| 850 | Part1JointHead = CFrame.new(Vector3.new(0,-0.5,0)*Scale*1.25) | |
| 851 | end | |
| 852 | end) |