Advertisement
GalaxyDelta

Untitled

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