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