SyntaxIsHere

Untitled

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