Advertisement
waconline

trap pistol

Feb 19th, 2020
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code V2 by Mokiros")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. }}
  25. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26. local function fakeEvent()
  27. return setmetatable({Functions={}},FakeEvent_Metatable)
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. FakeMouse.keyUp = FakeMouse.KeyUp
  33. FakeMouse.keyDown = FakeMouse.KeyDown
  34. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37. end}
  38. --Merged 2 functions into one by checking amount of arguments
  39. CAS.UnbindAction = CAS.BindAction
  40.  
  41. --This function will trigger the events that have been :Connect()'ed
  42. local function TriggerEvent(self,ev,...)
  43. for _,f in pairs(self[ev].Functions) do
  44. f(...)
  45. end
  46. end
  47. FakeMouse.TriggerEvent = TriggerEvent
  48. UIS.TriggerEvent = TriggerEvent
  49.  
  50. --Client communication
  51. local Event = Instance.new("RemoteEvent")
  52. Event.Name = "UserInput_Event"
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=RealPlayer then return end
  55. FakeMouse.Target = io.Target
  56. FakeMouse.Hit = io.Hit
  57. if not io.isMouse then
  58. local b = io.UserInputState == Enum.UserInputState.Begin
  59. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61. end
  62. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = owner:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,RobloxHandled)
  80. if RobloxHandled then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86.  
  87. local h,t
  88. --Give the server mouse data every second frame, but only if the values changed
  89. --If player is not moving their mouse, client won't fire events
  90. local HB = game:GetService("RunService").Heartbeat
  91. while true do
  92. if h~=Mouse.Hit or t~=Mouse.Target then
  93. h,t=Mouse.Hit,Mouse.Target
  94. Event:FireServer({isMouse=true,Target=t,Hit=h})
  95. end
  96. --Wait 2 frames
  97. for i=1,2 do
  98. HB:Wait()
  99. end
  100. end]==],script)
  101.  
  102. ----Sandboxed game object that allows the usage of client-side methods and services
  103. --Real game object
  104. local RealGame = game
  105.  
  106. --Metatable for fake service
  107. local FakeService_Metatable = {
  108. __index = function(self,k)
  109. local s = rawget(self,"_RealService")
  110. if s then
  111. return typeof(s[k])=="function"
  112. and function(_,...)return s[k](s,...)end or s[k]
  113. end
  114. end,
  115. __newindex = function(self,k,v)
  116. local s = rawget(self,"_RealService")
  117. if s then s[k]=v end
  118. end
  119. }
  120. local function FakeService(t,RealService)
  121. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  122. return setmetatable(t,FakeService_Metatable)
  123. end
  124.  
  125. --Fake game object
  126. local FakeGame = {
  127. GetService = function(self,s)
  128. return rawget(self,s) or RealGame:GetService(s)
  129. end,
  130. Players = FakeService({
  131. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  132. },"Players"),
  133. UserInputService = FakeService(UIS,"UserInputService"),
  134. ContextActionService = FakeService(CAS,"ContextActionService"),
  135. RunService = FakeService({
  136. _btrs = {},
  137. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  138. BindToRenderStep = function(self,name,_,fun)
  139. self._btrs[name] = self.Heartbeat:Connect(fun)
  140. end,
  141. UnbindFromRenderStep = function(self,name)
  142. self._btrs[name]:Disconnect()
  143. end,
  144. },"RunService")
  145. }
  146. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  147. FakeGame.service = FakeGame.GetService
  148. FakeService(FakeGame,game)
  149. --Changing owner to fake player object to support owner:GetMouse()
  150. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  151. end
  152. --=================================--
  153.  
  154.  
  155. -- EDIT BY MELISSA666666GIRL --
  156. -- ORIGINAL SCRIPT --
  157. -- Kirky's Realistic Pistol script --
  158.  
  159. -- https://pastebin.com/raw/2W78wPwu --
  160.  
  161. -- THANKS FOR USING :> --
  162.  
  163.  
  164. --==================================--
  165.  
  166. AnimeHair = true --Change to true to get ANIME HAIR--
  167. TrapShirt = true --Change to true to get a TRAP SHIRT!--
  168.  
  169.  
  170. local Pants = "rbxassetid://889200276"
  171. local Shirt = "rbxassetid://889202926"
  172. local Pants2 = "rbxassetid://756532964"
  173. local Shirt2 = ""
  174. local Pants3 = "rbxassetid://587907973"
  175. local Shirt3 = "rbxassetid://1177765208"
  176. 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
  177. local Speed = 20*Scale
  178. local Gravity = 0.1
  179.  
  180. local Player = game.Players.LocalPlayer
  181. local Character = Player.Character
  182. local Humanoid = Character.Humanoid
  183. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,false)
  184. local Torso = Character.HumanoidRootPart
  185. local Mouse = game.Players.LocalPlayer:GetMouse()
  186. local RenderStepped = game:GetService("RunService").RenderStepped
  187. local Camera = Workspace.CurrentCamera
  188. Camera:ClearAllChildren()
  189. local Model = Instance.new("Model",Character)
  190. local IgnoreList = {Character,Workspace.Terrain}
  191.  
  192. Player.Character.Head.face.Texture = "rbxassetid://30233519"
  193.  
  194. if TrapShirt == true then
  195. Player.Character.Shirt.ShirtTexture = "rbxassetid://877679540"
  196. end
  197.  
  198. if AnimeHair == true then
  199. for i,v in pairs(Character:GetChildren()) do
  200. if v.ClassName == "Accessory" or v.ClassName == "Hat" then
  201. v:destroy()
  202. end
  203. end
  204.  
  205. local Hair = Instance.new("Part")
  206. Hair.Parent = Character
  207. Hair.Name = "Hair"
  208. Hair.Size = Vector3.new(0.1, 0.1, 0.1)
  209. Hair.CFrame = Character.Head.CFrame
  210. Hair:BreakJoints()
  211. Hair.CanCollide = false
  212. Hair.BrickColor = BrickColor.new("New Yeller")
  213. Hair.TopSurface = "Smooth"
  214. Hair.BottomSurface = "Smooth"
  215. Weld = Instance.new("Weld")
  216. Weld.Name = "Weld"
  217. Weld.Part0 = Character.Head
  218. Weld.Part1 = Hair
  219. Weld.Parent = Character.Head
  220. Weld.C0 = CFrame.new(0, -1.4, 0.2)*CFrame.fromEulerAnglesXYZ(0.1, 0, 0)
  221. Mesh = Instance.new("SpecialMesh")
  222. Mesh.Parent = Hair
  223. Mesh.MeshId = "rbxassetid://1389678629"
  224. Mesh.TextureId = "http://www.roblox.com/asset/?id=1389678737"
  225. Mesh.Scale = Vector3.new(0.050, 0.050, 0.050)
  226. end
  227.  
  228.  
  229. z = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  230. z.SoundId = "rbxassetid://974451759"
  231. z.Looped = true
  232. z.Pitch = 1.2
  233. z.Volume = 4
  234. wait(.1)
  235. z:Play()
  236.  
  237. local Part0Joint = CFrame.new(Vector3.new(1,0.75,0)*Scale*1.25)
  238. local Part1Joint = CFrame.new(Vector3.new(-0.5,0.75,0)*Scale*1.25)
  239. local RotationOffset = CFrame.Angles(math.rad(90),math.rad(0),0)
  240. local Gangster = false
  241.  
  242. local Part0JointHead = CFrame.new(Vector3.new(0,1,0)*Scale*1.25)
  243. local Part1JointHead = CFrame.new(Vector3.new(0,-0.5,0)*Scale*1.25)
  244. local RotationOffsetHead = CFrame.Angles(0,0,0)
  245.  
  246. local Handle = Instance.new("Part",Model)
  247. Handle.CanCollide = false
  248. Handle.Name = "Handle"
  249. Handle.Position = Vector3.new(0,100,0)
  250. Handle:BreakJoints()
  251. Handle.FormFactor = "Custom"
  252. Handle.Size = Vector3.new(0.2,0.2,0.2)
  253. Handle.TopSurface = "SmoothNoOutlines"
  254. Handle.BottomSurface = "SmoothNoOutlines"
  255. Handle.FrontSurface = "SmoothNoOutlines"
  256. Handle.BackSurface = "SmoothNoOutlines"
  257. Handle.RightSurface = "SmoothNoOutlines"
  258. Handle.LeftSurface = "SmoothNoOutlines"
  259. Handle.BrickColor = BrickColor.new("Pink")
  260. Handle.Material = "Neon"
  261. local Mesh = Instance.new("BlockMesh",Handle)
  262. Mesh.Scale = Vector3.new(0.25,1,0.4) / 0.2 * Scale
  263. local HandleWeld = Instance.new("Motor6D")
  264. HandleWeld.Part0 = Character["Right Arm"]
  265. HandleWeld.Part1 = Handle
  266. HandleWeld.C0 = CFrame.new(Vector3.new(0,-1,0)*Scale) * CFrame.Angles(math.rad(-105),0,0)
  267. HandleWeld.Parent = Handle
  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("CylinderMesh",Part)
  306. Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 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.115,-0.475,0.190)*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("CylinderMesh",Part)
  328. Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 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.115,-0.475,0.190)*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("CylinderMesh",Part)
  350. Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 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.115,-0.475,-0.190)*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.23,0.2,0.1) / 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,-0.475,-0.175)*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.23,0.2,0.1) / 0.2 * Scale
  395. local PartWeld = Instance.new("Motor6D")
  396. PartWeld.Part0 = Handle
  397. PartWeld.Part1 = Part
  398. PartWeld.C0 = CFrame.new(Vector3.new(0,-0.475,0.175)*Scale) * CFrame.Angles(0,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.2,0.38) / 0.2 * Scale
  417. local PartWeld = Instance.new("Motor6D")
  418. PartWeld.Part0 = Handle
  419. PartWeld.Part1 = Part
  420. PartWeld.C0 = CFrame.new(Vector3.new(-0.1,-0.475,0)*Scale) * CFrame.Angles(0,0,0)
  421. PartWeld.Parent = Part
  422.  
  423. local Part = Instance.new("Part",Model)
  424. Part.CanCollide = false
  425. Part.Position = Vector3.new(0,100,0)
  426. Part:BreakJoints()
  427. Part.FormFactor = "Custom"
  428. Part.Size = Vector3.new(0.2,0.2,0.2)
  429. Part.TopSurface = "SmoothNoOutlines"
  430. Part.BottomSurface = "SmoothNoOutlines"
  431. Part.FrontSurface = "SmoothNoOutlines"
  432. Part.BackSurface = "SmoothNoOutlines"
  433. Part.RightSurface = "SmoothNoOutlines"
  434. Part.LeftSurface = "SmoothNoOutlines"
  435. Part.BrickColor = BrickColor.new("Pink")
  436. Part.Material = "Neon"
  437. local Mesh = Instance.new("BlockMesh",Part)
  438. Mesh.Scale = Vector3.new(0.1,0.2,0.38) / 0.2 * Scale
  439. local PartWeld = Instance.new("Motor6D")
  440. PartWeld.Part0 = Handle
  441. PartWeld.Part1 = Part
  442. PartWeld.C0 = CFrame.new(Vector3.new(0.1,-0.475,0)*Scale) * CFrame.Angles(0,0,0)
  443. PartWeld.Parent = Part
  444.  
  445. local Part = Instance.new("Part",Model)
  446. Part.CanCollide = false
  447. Part.Position = Vector3.new(0,100,0)
  448. Part:BreakJoints()
  449. Part.FormFactor = "Custom"
  450. Part.Size = Vector3.new(0.2,0.2,0.2)
  451. Part.TopSurface = "SmoothNoOutlines"
  452. Part.BottomSurface = "SmoothNoOutlines"
  453. Part.FrontSurface = "SmoothNoOutlines"
  454. Part.BackSurface = "SmoothNoOutlines"
  455. Part.RightSurface = "SmoothNoOutlines"
  456. Part.LeftSurface = "SmoothNoOutlines"
  457. Part.BrickColor = BrickColor.new("Pink")
  458. Part.Material = "Neon"
  459. local Mesh = Instance.new("BlockMesh",Part)
  460. Mesh.Scale = Vector3.new(0.1,0.3,0.05) / 0.2 * Scale
  461. local PartWeld = Instance.new("Motor6D")
  462. PartWeld.Part0 = Handle
  463. PartWeld.Part1 = Part
  464. 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)
  465. PartWeld.Parent = Part
  466.  
  467. local Part = Instance.new("Part",Model)
  468. Part.CanCollide = false
  469. Part.Position = Vector3.new(0,100,0)
  470. Part:BreakJoints()
  471. Part.FormFactor = "Custom"
  472. Part.Size = Vector3.new(0.2,0.2,0.2)
  473. Part.TopSurface = "SmoothNoOutlines"
  474. Part.BottomSurface = "SmoothNoOutlines"
  475. Part.FrontSurface = "SmoothNoOutlines"
  476. Part.BackSurface = "SmoothNoOutlines"
  477. Part.RightSurface = "SmoothNoOutlines"
  478. Part.LeftSurface = "SmoothNoOutlines"
  479. Part.BrickColor = BrickColor.new("Pink")
  480. Part.Material = "Neon"
  481. local Mesh = Instance.new("BlockMesh",Part)
  482. Mesh.Scale = Vector3.new(0.1,0.05,0.625) / 0.2 * Scale
  483. local PartWeld = Instance.new("Motor6D")
  484. PartWeld.Part0 = Handle
  485. PartWeld.Part1 = Part
  486. PartWeld.C0 = CFrame.Angles(math.rad(15),0,0) * CFrame.new(Vector3.new(0,0.1,-0.435)*Scale)
  487. PartWeld.Parent = Part
  488.  
  489. for i = 0,80,10 do
  490. local Part = Instance.new("Part",Model)
  491. Part.CanCollide = false
  492. Part.Position = Vector3.new(0,100,0)
  493. Part:BreakJoints()
  494. Part.FormFactor = "Custom"
  495. Part.Size = Vector3.new(0.2,0.2,0.2)
  496. Part.TopSurface = "SmoothNoOutlines"
  497. Part.BottomSurface = "SmoothNoOutlines"
  498. Part.FrontSurface = "SmoothNoOutlines"
  499. Part.BackSurface = "SmoothNoOutlines"
  500. Part.RightSurface = "SmoothNoOutlines"
  501. Part.LeftSurface = "SmoothNoOutlines"
  502. Part.BrickColor = BrickColor.new("Pink")
  503. Part.Material = "Neon"
  504. local Mesh = Instance.new("BlockMesh",Part)
  505. Mesh.Scale = Vector3.new(0.25,0.15,0.03555*2) / 0.2 * Scale
  506. local PartWeld = Instance.new("Motor6D")
  507. PartWeld.Part0 = Handle
  508. PartWeld.Part1 = Part
  509. 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)
  510. PartWeld.Parent = Part
  511. end
  512.  
  513. local Barrel = Instance.new("Part",Model)
  514. Barrel.CanCollide = false
  515. Barrel.Position = Vector3.new(0,100,0)
  516. Barrel:BreakJoints()
  517. Barrel.FormFactor = "Custom"
  518. Barrel.Size = Vector3.new(0.2,0.2,0.2)
  519. Barrel.TopSurface = "SmoothNoOutlines"
  520. Barrel.BottomSurface = "SmoothNoOutlines"
  521. Barrel.FrontSurface = "SmoothNoOutlines"
  522. Barrel.BackSurface = "SmoothNoOutlines"
  523. Barrel.RightSurface = "SmoothNoOutlines"
  524. Barrel.LeftSurface = "SmoothNoOutlines"
  525. Barrel.BrickColor = BrickColor.new("Pink")
  526. Barrel.Material = "Neon"
  527. local Mesh = Instance.new("BlockMesh",Barrel)
  528. Mesh.Scale = Vector3.new(0.25,0.2,2) / 0.2 * Scale
  529. local BarrelWeld = Instance.new("Motor6D")
  530. BarrelWeld.Part0 = Handle
  531. BarrelWeld.Part1 = Barrel
  532. BarrelWeld.C0 = CFrame.Angles(math.rad(15),0,0) * CFrame.new(Vector3.new(0,0.5,-0.7)*Scale)
  533. BarrelWeld.Parent = Barrel
  534.  
  535. local Barrel1 = Barrel
  536.  
  537. local Barrel2 = Instance.new("Part",Model)
  538. Barrel2.CanCollide = false
  539. Barrel2.Position = Vector3.new(0,100,0)
  540. Barrel2:BreakJoints()
  541. Barrel2.FormFactor = "Custom"
  542. Barrel2.Size = Vector3.new(0.2,0.2,0.2)
  543. Barrel2.TopSurface = "SmoothNoOutlines"
  544. Barrel2.BottomSurface = "SmoothNoOutlines"
  545. Barrel2.FrontSurface = "SmoothNoOutlines"
  546. Barrel2.BackSurface = "SmoothNoOutlines"
  547. Barrel2.RightSurface = "SmoothNoOutlines"
  548. Barrel2.LeftSurface = "SmoothNoOutlines"
  549. Barrel2.BrickColor = BrickColor.new("Magenta")
  550. Barrel2.Material = "Neon"
  551. local Mesh = Instance.new("BlockMesh",Barrel2)
  552. Mesh.Scale = Vector3.new(0.25,0.25,2) / 0.2 * Scale
  553. local Barrel2Weld = Instance.new("Motor6D")
  554. Barrel2Weld.Part0 = Barrel
  555. Barrel2Weld.Part1 = Barrel2
  556. Barrel2Weld.C0 = CFrame.new(Vector3.new(0,0.225,0)*Scale)
  557. Barrel2Weld.Parent = Barrel2
  558.  
  559. local RealBarrel = Instance.new("Part",Model)
  560. RealBarrel.CanCollide = false
  561. RealBarrel.Position = Vector3.new(0,100,0)
  562. RealBarrel:BreakJoints()
  563. RealBarrel.FormFactor = "Custom"
  564. RealBarrel.Size = Vector3.new(0.2,0.2,0.2)
  565. RealBarrel.TopSurface = "SmoothNoOutlines"
  566. RealBarrel.BottomSurface = "SmoothNoOutlines"
  567. RealBarrel.FrontSurface = "SmoothNoOutlines"
  568. RealBarrel.BackSurface = "SmoothNoOutlines"
  569. RealBarrel.RightSurface = "SmoothNoOutlines"
  570. RealBarrel.LeftSurface = "SmoothNoOutlines"
  571. RealBarrel.BrickColor = BrickColor.new("Black")
  572. RealBarrel.Material = "Neon"
  573. local Mesh = Instance.new("CylinderMesh",RealBarrel)
  574. Mesh.Scale = Vector3.new(0.2,2,0.2) / 0.2 * Scale
  575. local RealBarrelWeld = Instance.new("Motor6D")
  576. RealBarrelWeld.Part0 = Barrel
  577. RealBarrelWeld.Part1 = RealBarrel
  578. RealBarrelWeld.C0 = CFrame.new(Vector3.new(0,0.1,-0.01)*Scale) * CFrame.Angles(math.rad(-90),0,0)
  579. RealBarrelWeld.Parent = RealBarrel
  580.  
  581. for i = 1,75,15 do
  582. local Part = Instance.new("Part",Model)
  583. Part.CanCollide = false
  584. Part.Position = Vector3.new(0,100,0)
  585. Part:BreakJoints()
  586. Part.FormFactor = "Custom"
  587. Part.Size = Vector3.new(0.2,0.2,0.2)
  588. Part.TopSurface = "SmoothNoOutlines"
  589. Part.BottomSurface = "SmoothNoOutlines"
  590. Part.FrontSurface = "SmoothNoOutlines"
  591. Part.BackSurface = "SmoothNoOutlines"
  592. Part.RightSurface = "SmoothNoOutlines"
  593. Part.LeftSurface = "SmoothNoOutlines"
  594. Part.BrickColor = BrickColor.new("Pink")
  595. Part.Material = "Neon"
  596. local Mesh = Instance.new("BlockMesh",Part)
  597. Mesh.Scale = Vector3.new(0.05,0.065,0.05) / 0.2 * Scale
  598. local PartWeld = Instance.new("Motor6D")
  599. PartWeld.Part0 = Handle
  600. PartWeld.Part1 = Part
  601. 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)
  602. PartWeld.Parent = Part
  603. end
  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.TopSurface = "SmoothNoOutlines"
  612. Part.BottomSurface = "SmoothNoOutlines"
  613. Part.FrontSurface = "SmoothNoOutlines"
  614. Part.BackSurface = "SmoothNoOutlines"
  615. Part.RightSurface = "SmoothNoOutlines"
  616. Part.LeftSurface = "SmoothNoOutlines"
  617. Part.BrickColor = BrickColor.new("Magenta")
  618. Part.Material = "Neon"
  619. local Mesh = Instance.new("BlockMesh",Part)
  620. Mesh.Scale = Vector3.new(0.05,0.11,0.1) / 0.2 * Scale
  621. local PartWeld = Instance.new("Motor6D")
  622. PartWeld.Part0 = Barrel2
  623. PartWeld.Part1 = Part
  624. PartWeld.C0 = CFrame.new(Vector3.new(0.06,0.135,0.925)*Scale)
  625. PartWeld.Parent = Part
  626.  
  627. local Part = Instance.new("Part",Model)
  628. Part.CanCollide = false
  629. Part.Position = Vector3.new(0,100,0)
  630. Part:BreakJoints()
  631. Part.FormFactor = "Custom"
  632. Part.Size = Vector3.new(0.2,0.2,0.2)
  633. Part.TopSurface = "SmoothNoOutlines"
  634. Part.BottomSurface = "SmoothNoOutlines"
  635. Part.FrontSurface = "SmoothNoOutlines"
  636. Part.BackSurface = "SmoothNoOutlines"
  637. Part.RightSurface = "SmoothNoOutlines"
  638. Part.LeftSurface = "SmoothNoOutlines"
  639. Part.BrickColor = BrickColor.new("Magenta")
  640. Part.Material = "Neon"
  641. local Mesh = Instance.new("BlockMesh",Part)
  642. Mesh.Scale = Vector3.new(0.05,0.11,0.1) / 0.2 * Scale
  643. local PartWeld = Instance.new("Motor6D")
  644. PartWeld.Part0 = Barrel2
  645. PartWeld.Part1 = Part
  646. PartWeld.C0 = CFrame.new(Vector3.new(-0.06,0.135,0.925)*Scale)
  647. PartWeld.Parent = Part
  648.  
  649. local Part = Instance.new("Part",Model)
  650. Part.CanCollide = false
  651. Part.Position = Vector3.new(0,100,0)
  652. Part:BreakJoints()
  653. Part.FormFactor = "Custom"
  654. Part.Size = Vector3.new(0.2,0.2,0.2)
  655. Part.TopSurface = "SmoothNoOutlines"
  656. Part.BottomSurface = "SmoothNoOutlines"
  657. Part.FrontSurface = "SmoothNoOutlines"
  658. Part.BackSurface = "SmoothNoOutlines"
  659. Part.RightSurface = "SmoothNoOutlines"
  660. Part.LeftSurface = "SmoothNoOutlines"
  661. Part.BrickColor = BrickColor.new("Magenta")
  662. Part.Material = "Neon"
  663. local Mesh = Instance.new("BlockMesh",Part)
  664. Mesh.Scale = Vector3.new(0.025,0.1,0.1) / 0.2 * Scale
  665. local PartWeld = Instance.new("Motor6D")
  666. PartWeld.Part0 = Barrel2
  667. PartWeld.Part1 = Part
  668. PartWeld.C0 = CFrame.new(Vector3.new(0,0.135,-0.925)*Scale)
  669. PartWeld.Parent = Part
  670.  
  671. local Part = Instance.new("Part",Model)
  672. Part.CanCollide = false
  673. Part.Position = Vector3.new(0,100,0)
  674. Part:BreakJoints()
  675. Part.FormFactor = "Custom"
  676. Part.Size = Vector3.new(0.2,0.2,0.2)
  677. Part.Transparency = 1
  678. Part.TopSurface = "SmoothNoOutlines"
  679. Part.BottomSurface = "SmoothNoOutlines"
  680. Part.FrontSurface = "SmoothNoOutlines"
  681. Part.BackSurface = "SmoothNoOutlines"
  682. Part.RightSurface = "SmoothNoOutlines"
  683. Part.LeftSurface = "SmoothNoOutlines"
  684. Part.BrickColor = BrickColor.new("Magenta")
  685. Part.Material = "Neon"
  686. local Mesh = Instance.new("BlockMesh",Part)
  687. Mesh.Scale = Vector3.new(0.1,0.1,0.1) / 0.2 * Scale
  688. local PartWeld = Instance.new("Motor6D")
  689. PartWeld.Part0 = Barrel
  690. PartWeld.Part1 = Part
  691. PartWeld.C0 = CFrame.new(Vector3.new(0,0,-5)*Scale)
  692. PartWeld.Parent = Part
  693.  
  694. local Light = Instance.new("PointLight",Part)
  695. Light.Color = BrickColor.new("Gold").Color
  696. Light.Enabled = true
  697. Light.Shadows = true
  698. Light.Brightness = 0
  699. Light.Range = 6
  700.  
  701. local Part = Instance.new("Part",Model)
  702. Part.Material = "Neon"
  703. Part.CanCollide = false
  704. Part.Position = Vector3.new(0,100,0)
  705. Part:BreakJoints()
  706. Part.FormFactor = "Custom"
  707. Part.Size = Vector3.new(0.2,0.2,0.2)
  708. Part.TopSurface = "SmoothNoOutlines"
  709. Part.BottomSurface = "SmoothNoOutlines"
  710. Part.FrontSurface = "SmoothNoOutlines"
  711. Part.BackSurface = "SmoothNoOutlines"
  712. Part.RightSurface = "SmoothNoOutlines"
  713. Part.LeftSurface = "SmoothNoOutlines"
  714. Part.BrickColor = BrickColor.new("Purple")
  715. Part.Material = "Neon"
  716. Part.Transparency = 0.25
  717. local RecoilMesh = Instance.new("SpecialMesh",Part)
  718. RecoilMesh.MeshType = "FileMesh"
  719. RecoilMesh.MeshId = "http://www.roblox.com/Asset/?id=1323306"
  720. RecoilMesh.TextureId = "http://www.roblox.com/Asset/?id=98896228"
  721. RecoilMesh.Scale = Vector3.new(0.175,0,0.175) * Scale
  722. local PartWeld = Instance.new("Motor6D")
  723. PartWeld.Part0 = RealBarrel
  724. PartWeld.Part1 = Part
  725. PartWeld.C0 = CFrame.new(Vector3.new(0,0.95,0)*Scale)
  726. PartWeld.Parent = Part
  727.  
  728. function ShootBullet(Target,barrel)
  729. local barrel = barrel or Barrel
  730. local Bullet = Instance.new("Part",Workspace)
  731. Barrel.CanCollide = false
  732. Bullet.FormFactor = "Custom"
  733. Bullet.Size = Vector3.new(0.2,0.2,5)*Scale
  734. Bullet.TopSurface = "Smooth"
  735. Bullet.BottomSurface = "Smooth"
  736. Bullet.Anchored = true
  737. Bullet.CanCollide = false
  738. 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)
  739. Bullet.Transparency = 0.1
  740. Bullet.BrickColor = BrickColor.new("Purple")
  741. Bullet.Material = "Neon"
  742. --[[local Mesh = Instance.new("SpecialMesh",Bullet)
  743. Mesh.MeshType = "FileMesh"
  744. Mesh.Scale = Vector3.new(0.5,0.5,0.2)
  745. Mesh.MeshId = "http://www.roblox.com/asset/?id=2697549"
  746. --Mesh.TextureId = "http://www.roblox.com/asset/?id=2697544"]]
  747. local Mesh = Instance.new("BlockMesh",Bullet)
  748. Mesh.Scale = Vector3.new(0.2,0.2,5)*Scale/Bullet.Size
  749. IgnoreList[#IgnoreList+1] = Bullet
  750. RenderStepped:wait()
  751. for i = Speed,1000,Speed do -- Loop to do the bullet movement and stuff.
  752. local ray,Hit,Pos,SurfaceNormal;
  753. ray = Ray.new(Bullet.Position,((Bullet.CFrame*CFrame.Angles(math.rad(-Gravity),0,0)*CFrame.new(0,0,-Speed)).p-Bullet.Position).unit*Speed)
  754. Hit,Pos,SurfaceNormal = Workspace:FindPartOnRayWithIgnoreList(ray,IgnoreList)
  755. Bullet.CFrame = Bullet.CFrame*CFrame.Angles(math.rad(-Gravity),0,0)*CFrame.new(0,0,-Speed)
  756. if Hit ~= nil then
  757. 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"))
  758. if Hum ~= nil then
  759. player2 = Hit.Parent
  760. Hum:TakeDamage(5)
  761. if Hum.Parent.Torso == nil then
  762. q = Instance.new("Sound", Hum.Parent.UpperTorso)
  763. q.SoundId = "rbxassetid://924357545"
  764. q:Play()
  765.  
  766. elseif Hum.Parent.Torso ~= nil then
  767. q = Instance.new("Sound", Hum.Parent.Torso)
  768. q.SoundId = "rbxassetid://924357545"
  769. q:Play()
  770.  
  771. end
  772.  
  773. for i,v in pairs(player2:GetChildren()) do
  774. if v.ClassName == "Accessory" or v.ClassName == "Hat" then
  775. v:destroy()
  776. end
  777. end
  778.  
  779. local Hair = Instance.new("Part")
  780. Hair.Parent = player2
  781. Hair.Name = "Hair"
  782. Hair.Size = Vector3.new(0.1, 0.1, 0.1)
  783. Hair.CFrame = player2.Head.CFrame
  784. Hair:BreakJoints()
  785. Hair.CanCollide = false
  786. Hair.BrickColor = BrickColor.new("New Yeller")
  787. Hair.TopSurface = "Smooth"
  788. Hair.BottomSurface = "Smooth"
  789. Weld = Instance.new("Weld")
  790. Weld.Name = "Weld"
  791. Weld.Part0 = player2.Head
  792. Weld.Part1 = Hair
  793. Weld.Parent = player2.Head
  794. Weld.C0 = CFrame.new(0, -1.4, 0.2)*CFrame.fromEulerAnglesXYZ(0.1, 0, 0)
  795. Mesh = Instance.new("SpecialMesh")
  796. Mesh.Parent = Hair
  797. Mesh.MeshId = "rbxassetid://1389678629"
  798. Mesh.TextureId = "http://www.roblox.com/asset/?id=1389678737"
  799. Mesh.Scale = Vector3.new(0.050, 0.050, 0.050)
  800. Hum.Parent.Head.face.Texture = "rbxassetid://318927908"
  801.  
  802. local num = math.random(1, 3)
  803. print(num)
  804. local charPants = player2:FindFirstChildOfClass("Pants")
  805. local charShirt = player2: FindFirstChildOfClass("Shirt")
  806. if charPants and charShirt then
  807. if num == 1 then
  808. charShirt.ShirtTemplate = Shirt
  809. charPants.PantsTemplate = Pants
  810. elseif num == 2 then
  811. charShirt.ShirtTemplate = Shirt2
  812. charPants.PantsTemplate = Pants2
  813. elseif num == 3 then
  814. charShirt.ShirtTemplate = Shirt3
  815. charPants.PantsTemplate = Pants3
  816. end
  817. end
  818. end
  819. break
  820. end
  821. RenderStepped:wait()
  822. end
  823. Bullet:Destroy()
  824. end
  825.  
  826. Mouse.Button1Down:connect(function()
  827. if not Down and not DB then
  828. Down = true
  829. while Down do
  830. if Humanoid.Health == 0 then break end
  831. if not DB then
  832. DB = true
  833. local Sound = Instance.new("Sound",Barrel)
  834. Sound.SoundId = "rbxassetid://426232201" -- 132373574
  835. Sound.Volume = 5*Scale
  836. Sound.Pitch = (math.random(70,110)/100)/((Scale < 0.25 and 0.25) or (Scale > 4 and 4) or Scale)
  837. Sound:Play()
  838. Spawn(function()
  839. ShootBullet(Mouse.Hit.p,Barrel1)
  840. end)
  841. RecoilMesh.VertexColor = Vector3.new(1,math.random(160,245)/255,20/255)
  842. PartWeld.C0 = PartWeld.C0 * CFrame.Angles(0,math.rad(math.random(-40,40)),0)
  843. local Shell = Instance.new("Part",Workspace)
  844. Shell.FormFactor = "Custom"
  845. Shell.BrickColor = BrickColor.new("Purple")
  846. Shell.Material = "Neon"
  847. Shell.Size = Vector3.new(0.2,0.5,0.2)*Scale
  848. Shell.CFrame = Barrel.CFrame*CFrame.new(0.5,0.5,0)*CFrame.Angles(math.rad(-90),0,0)
  849. Shell.Velocity = ((Barrel.CFrame*CFrame.new(5,0,math.random(-2,2))).p-Barrel.CFrame.p)*5*Scale
  850. local Mesh = Instance.new("CylinderMesh",Shell)
  851. Mesh.Scale = Vector3.new(0.2,0.5,0.2)*Scale/Shell.Size
  852. Spawn(function()
  853. wait(5)
  854. Shell:Destroy()
  855. end)
  856. for i = 1,20,7.5 do
  857. RotationOffset = RotationOffset*CFrame.Angles(math.rad(7.5),0,0)
  858. Part1Joint = Part1Joint*CFrame.new(Vector3.new(0,-0.15,0)*Scale)
  859. Barrel2Weld.C0 = Barrel2Weld.C0*CFrame.new(Vector3.new(0,0,0.15)*Scale)
  860. Light.Brightness = Light.Brightness+38
  861. RecoilMesh.Scale = RecoilMesh.Scale+(Vector3.new(0,0.375,0)*Scale)
  862. RenderStepped:wait()
  863. end
  864. wait(0.02)
  865. for i = 1,20,3.75 do
  866. RotationOffset = RotationOffset*CFrame.Angles(math.rad(-3.75),0,0)
  867. Part1Joint = Part1Joint*CFrame.new(Vector3.new(0,0.075,0)*Scale)
  868. Barrel2Weld.C0 = Barrel2Weld.C0*CFrame.new(Vector3.new(0,0,-0.075)*Scale)
  869. Light.Brightness = Light.Brightness-19
  870. RecoilMesh.Scale = RecoilMesh.Scale+(Vector3.new(0,-0.1875,0)*Scale)
  871. RenderStepped:wait()
  872. end
  873. wait(0.02)
  874. DB = false
  875. end
  876. end
  877. end
  878. end)
  879.  
  880. Mouse.Button1Up:connect(function()
  881. Down = false
  882. end)
  883.  
  884. Mouse.KeyDown:connect(function(Key)
  885. if Key:lower() == "g" and not DB then
  886. DB = true
  887. if Gangster == true then
  888. for i = 1,70,5 do
  889. RotationOffset = RotationOffset*CFrame.Angles(0,math.rad(-5),0)
  890. RenderStepped:wait()
  891. end
  892. Gangster = false
  893. else
  894. for i = 1,70,5 do
  895. RotationOffset = RotationOffset*CFrame.Angles(0,math.rad(5),0)
  896. RenderStepped:wait()
  897. end
  898. Gangster = true
  899. end
  900. DB = false
  901. end
  902. end)
  903.  
  904. local Weld = Instance.new("Weld")
  905. Weld.Part0 = Torso
  906. Weld.Part1 = Character["Right Arm"]
  907. Weld.Parent = Torso
  908.  
  909. local Weld2 = Instance.new("Weld")
  910. Weld2.Part0 = Torso
  911. Weld2.Part1 = Character.Head
  912. Weld2.Parent = Torso
  913.  
  914. local RA = Character["Right Arm"]
  915.  
  916.  
  917. game:GetService("RunService"):BindToRenderStep("Pistol",Enum.RenderPriority.Character.Value,function()
  918. local Point = Torso.CFrame:vectorToObjectSpace(Mouse.Hit.p-Torso.CFrame.p)
  919. if Point.Z > 0 then
  920. if Point.X > 0 then
  921. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(Mouse.Hit.X,Torso.Position.Y,Mouse.Hit.Z))*CFrame.Angles(0,math.rad(90),0)
  922. elseif Point.X < 0 then
  923. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(Mouse.Hit.X,Torso.Position.Y,Mouse.Hit.Z))*CFrame.Angles(0,math.rad(-90),0)
  924. end
  925. end
  926.  
  927. local CFr = (Torso.CFrame*Part0Joint):toObjectSpace(CFrame.new((Torso.CFrame*Part0Joint).p,Mouse.Hit.p))--RayEnd))
  928. Weld.C0 = Part0Joint * (CFr-CFr.p) * RotationOffset
  929. Weld.C1 = Part1Joint
  930. Weld.Part0 = Torso
  931. Weld.Part1 = RA
  932. local CFr = (Torso.CFrame*Part0JointHead):toObjectSpace(CFrame.new((Torso.CFrame*Part0JointHead).p,Mouse.Hit.p))--RayEnd))
  933. Weld2.C0 = Part0JointHead * (CFr-CFr.p) * RotationOffsetHead
  934. Weld2.C1 = Part1JointHead
  935. Weld2.Part0 = Torso
  936. Weld2.Part1 = Character.Head
  937. local Last = Scale
  938. 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
  939. Speed = 20*Scale
  940. if Scale ~= Last then
  941. Part0Joint = CFrame.new(Vector3.new(1,0.75,0)*Scale*1.25)
  942. Part1Joint = CFrame.new(Vector3.new(-0.5,0.75,0)*Scale*1.25)
  943. Part0JointHead = CFrame.new(Vector3.new(0,1,0)*Scale*1.25)
  944. Part1JointHead = CFrame.new(Vector3.new(0,-0.5,0)*Scale*1.25)
  945. end
  946. end)
  947.  
  948. while true do
  949. wait(60)
  950. print("You're Using Trap Gun, Made By Melissa666666girl! :D")
  951. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement