ManlyMemeScripter

Gunman

Mar 18th, 2018
720
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.68 KB | None | 0 0
  1. -- This script has convert to FE by who i don't know?
  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,game,owner = owner,game
  6. local RealPlayer = Player
  7. do
  8. print("FE Compatibility code by Mokiros | Showcase by Bacon Hair!")
  9. local rp = RealPlayer
  10. script.Parent = rp.Character
  11.  
  12. --RemoteEvent for communicating
  13. local Event = Instance.new("RemoteEvent")
  14. Event.Name = "UserInput_Event"
  15.  
  16. --Fake event to make stuff like Mouse.KeyDown work
  17. local function fakeEvent()
  18. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  19. t.connect = t.Connect
  20. return t
  21. end
  22.  
  23. --Creating fake input objects with fake variables
  24. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  25. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  26. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  27. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  28. end}
  29. --Merged 2 functions into one by checking amount of arguments
  30. CAS.UnbindAction = CAS.BindAction
  31.  
  32. --This function will trigger the events that have been :Connect()'ed
  33. local function te(self,ev,...)
  34. local t = m[ev]
  35. if t and t._fakeEvent then
  36. for _,f in pairs(t.Functions) do
  37. f(...)
  38. end
  39. end
  40. end
  41. m.TrigEvent = te
  42. UIS.TrigEvent = te
  43.  
  44. Event.OnServerEvent:Connect(function(plr,io)
  45. if plr~=rp then return end
  46. m.Target = io.Target
  47. m.Hit = io.Hit
  48. if not io.isMouse then
  49. local b = io.UserInputState == Enum.UserInputState.Begin
  50. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  51. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67.  
  68. local Mouse = Player:GetMouse()
  69. local UIS = game:GetService("UserInputService")
  70. local input = function(io,a)
  71. if a then return end
  72. --Since InputObject is a client-side instance, we create and pass table instead
  73. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  74. end
  75. UIS.InputBegan:Connect(input)
  76. UIS.InputEnded:Connect(input)
  77.  
  78. local h,t
  79. --Give the server mouse data 30 times every second, but only if the values changed
  80. --If player is not moving their mouse, client won't fire events
  81. while wait(1/30) do
  82. if h~=Mouse.Hit or t~=Mouse.Target then
  83. h,t=Mouse.Hit,Mouse.Target
  84. Event:FireServer({isMouse=true,Target=t,Hit=h})
  85. end
  86. end]==],Player.Character)
  87.  
  88. ----Sandboxed game object that allows the usage of client-side methods and services
  89. --Real game object
  90. local _rg = game
  91.  
  92. --Metatable for fake service
  93. local fsmt = {
  94. __index = function(self,k)
  95. local s = rawget(self,"_RealService")
  96. if s then return s[k] end
  97. end,
  98. __newindex = function(self,k,v)
  99. local s = rawget(self,"_RealService")
  100. if s then s[k]=v end
  101. end,
  102. __call = function(self,...)
  103. local s = rawget(self,"_RealService")
  104. if s then return s(...) end
  105. end
  106. }
  107. local function FakeService(t,RealService)
  108. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  109. return setmetatable(t,fsmt)
  110. end
  111.  
  112. --Fake game object
  113. local g = {
  114. GetService = function(self,s)
  115. return self[s]
  116. end,
  117. Players = FakeService({
  118. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  119. },"Players"),
  120. UserInputService = FakeService(UIS,"UserInputService"),
  121. ContextActionService = FakeService(CAS,"ContextActionService"),
  122. }
  123. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  124. g.service = g.GetService
  125.  
  126. g.RunService = FakeService({
  127. RenderStepped = _rg:GetService("RunService").Heartbeat,
  128. BindToRenderStep = function(self,name,_,fun)
  129.  
  130. end,
  131. UnbindFromRenderStep = function(self,name)
  132. self._btrs[name]:Disconnect()
  133. end,
  134. },"RunService")
  135.  
  136. setmetatable(g,{
  137. __index=function(self,s)
  138. return _rg:GetService(s) or typeof(_rg[s])=="function"
  139. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  140. end,
  141. __newindex = fsmt.__newindex,
  142. __call = fsmt.__call
  143. })
  144. --Changing owner to fake player object to support owner:GetMouse()
  145. game,owner = g,g.Players.LocalPlayer
  146. end
  147.  
  148. --nobody wanted to make a golden gun that I wanted... so I made one :D script made by sillynoob7
  149. function sandbox(var,func)
  150. local env = getfenv(func)
  151. local newenv = setmetatable({},{
  152. __index = function(self,k)
  153. if k=="script" then
  154. return var
  155. else
  156. return env[k]
  157. end
  158. end,
  159. })
  160. setfenv(func,newenv)
  161. return func
  162. end
  163. cors = {}
  164. mas = Instance.new("Model",game:GetService("Lighting"))
  165. Tool0 = Instance.new("Tool")
  166. Part1 = Instance.new("Part")
  167. SpecialMesh2 = Instance.new("SpecialMesh")
  168. Part3 = Instance.new("Part")
  169. BillboardGui4 = Instance.new("BillboardGui")
  170. Script5 = Instance.new("Script")
  171. ImageLabel6 = Instance.new("ImageLabel")
  172. CylinderMesh7 = Instance.new("CylinderMesh")
  173. Part8 = Instance.new("Part")
  174. Weld9 = Instance.new("Weld")
  175. Weld10 = Instance.new("Weld")
  176. Weld11 = Instance.new("Weld")
  177. BlockMesh12 = Instance.new("BlockMesh")
  178. IntValue13 = Instance.new("IntValue")
  179. IntValue14 = Instance.new("IntValue")
  180. StringValue15 = Instance.new("StringValue")
  181. BoolValue16 = Instance.new("BoolValue")
  182. Script17 = Instance.new("Script")
  183. LocalScript18 = Instance.new("LocalScript")
  184. SpecialMesh19 = Instance.new("SpecialMesh")
  185. SpecialMesh20 = Instance.new("SpecialMesh")
  186. LocalScript21 = Instance.new("LocalScript")
  187. LocalScript22 = Instance.new("LocalScript")
  188. LocalScript23 = Instance.new("LocalScript")
  189. LocalScript24 = Instance.new("LocalScript")
  190. ScreenGui25 = Instance.new("ScreenGui")
  191. Frame26 = Instance.new("Frame")
  192. TextButton27 = Instance.new("TextButton")
  193. TextButton28 = Instance.new("TextButton")
  194. TextButton29 = Instance.new("TextButton")
  195. TextButton30 = Instance.new("TextButton")
  196. Script31 = Instance.new("Script")
  197. LocalScript32 = Instance.new("LocalScript")
  198. Sound33 = Instance.new("Sound")
  199. Sound34 = Instance.new("Sound")
  200. StringValue35 = Instance.new("StringValue")
  201. Tool0.Name = "Luger"
  202. Tool0.Parent = mas
  203. Part1.Parent = Tool0
  204. Part1.BrickColor = BrickColor.new("Bright bluish green")
  205. Part1.Anchored = true
  206. Part1.FormFactor = Enum.FormFactor.Custom
  207. Part1.Size = Vector3.new(0.510000467, 1.18000245, 1.34999704)
  208. Part1.CFrame = CFrame.new(6.70000076, 0.590013027, -9.69999599, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.Angles(-190,math.rad(0),0)
  209. Part1.Color = Color3.new(0, 0.560784, 0.611765)
  210. Part1.Position = Vector3.new(6.70000076, 0.590013027, -11.56)
  211. Part1.Color = Color3.new(0, 0.560784, 0.611765)
  212. SpecialMesh2.Parent = Part1
  213. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=72012879"
  214. SpecialMesh2.Scale = Vector3.new(8, 8, 8)
  215. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=72012859"
  216. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  217. SpecialMesh2.Scale = Vector3.new(8, 8, 8)
  218. Part3.Name = "Barrel"
  219. Part3.Parent = Tool0
  220. Part3.BrickColor = BrickColor.new("Really black")
  221. Part3.Transparency = 1
  222. Part3.Rotation = Vector3.new(-90, 0, 0)
  223. Part3.Anchored = true
  224. Part3.FormFactor = Enum.FormFactor.Custom
  225. Part3.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  226. Part3.CFrame = CFrame.new(6.79500008, 0.98001498, -10.4250021, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  227. Part3.BottomSurface = Enum.SurfaceType.Smooth
  228. Part3.TopSurface = Enum.SurfaceType.Smooth
  229. Part3.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  230. Part3.Position = Vector3.new(6.79500008, 0.98001498, -10.4250021)
  231. Part3.Orientation = Vector3.new(-90, 0, 0)
  232. Part3.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  233. BillboardGui4.Name = "Light"
  234. BillboardGui4.Parent = Part3
  235. BillboardGui4.Size = UDim2.new(1.29999995, 0, 1.29999995, 0)
  236. BillboardGui4.Active = true
  237. BillboardGui4.Adornee = Part3
  238. Script5.Parent = BillboardGui4
  239. table.insert(cors,sandbox(Script5,function()
  240. script.Parent.Adornee = script.Parent.Parent
  241. end))
  242. ImageLabel6.Name = "Light"
  243. ImageLabel6.Parent = BillboardGui4
  244. ImageLabel6.Transparency = 1
  245. ImageLabel6.Size = UDim2.new(1, 0, 1, 0)
  246. ImageLabel6.Visible = false
  247. ImageLabel6.BackgroundColor3 = Color3.new(0.756863, 0.752941, 0.764706)
  248. ImageLabel6.BackgroundTransparency = 1
  249. ImageLabel6.Image = "http://www.roblox.com/asset/?id=42416376"
  250. CylinderMesh7.Parent = Part3
  251. CylinderMesh7.Scale = Vector3.new(0.9375, 0.0625, 0.62499994)
  252. CylinderMesh7.Scale = Vector3.new(0.9375, 0.0625, 0.62499994)
  253. Part8.Name = "Handle"
  254. Part8.Parent = Tool0
  255. Part8.BrickColor = BrickColor.new("Black")
  256. Part8.Transparency = 1
  257. Part8.Rotation = Vector3.new(0, 15, 0)
  258. Part8.Anchored = true
  259. Part8.FormFactor = Enum.FormFactor.Custom
  260. Part8.Size = Vector3.new(0.800000012, 0.800000012, 0.800000012)
  261. Part8.CFrame = CFrame.new(6.78499985, 0.468012989, -9.25, 0.965925634, -1.62808846e-07, 0.25881961, 1.62807055e-07, 1, 2.14409219e-08, -0.25881961, 2.14273292e-08, 0.965925634)
  262. Part8.BottomSurface = Enum.SurfaceType.Smooth
  263. Part8.TopSurface = Enum.SurfaceType.Smooth
  264. Part8.Color = Color3.new(0.105882, 0.164706, 0.207843)
  265. Part8.Position = Vector3.new(6.78499985, 0.468012989, -9.25)
  266. Part8.Orientation = Vector3.new(0, 15, 0)
  267. Part8.Color = Color3.new(0.105882, 0.164706, 0.207843)
  268. Weld9.Parent = Part8
  269. Weld9.C0 = CFrame.new(0, 0, 0, -1.00000191, -1.5067078e-06, -9.84804558e-08, -1.01587557e-06, 0.999997854, -2.52425416e-05, -8.14032717e-07, -2.34245799e-05, -0.999998748)
  270. Weld9.C1 = CFrame.new(0, 0, 0, -1.00000191, -1.5067078e-06, -9.84804558e-08, -1.01587557e-06, 0.999997854, -2.52425416e-05, -8.14032717e-07, -2.34245799e-05, -0.999998748)
  271. Weld9.Part0 = Part8
  272. Weld9.Part1 = Part8
  273. Weld10.Parent = Part8
  274. Weld10.C0 = CFrame.new(0, 0, 0, -1, -1.26128168e-06, 3.57787826e-07, -1.26129044e-06, 0.99999994, -2.43186951e-05, -3.57757187e-07, -2.42888927e-05, -0.99999994)
  275. Weld10.C1 = CFrame.new(0, 0, 0, -1, -1.26128168e-06, 3.57787826e-07, -1.26129044e-06, 0.99999994, -2.43186951e-05, -3.57757187e-07, -2.42888927e-05, -0.99999994)
  276. Weld10.Part0 = Part8
  277. Weld10.Part1 = Part8
  278. Weld11.Parent = Part8
  279. Weld11.C0 = CFrame.new(0, 0, 0, -0.000490181032, 0.999999642, 7.29662133e-07, 0.999998808, 0.000490319042, -0.000502735376, -0.00050124526, 4.34723916e-07, -0.999996543)
  280. Weld11.C1 = CFrame.new(0, 0, 0, -0.000490181032, 0.999999642, 7.29662133e-07, 0.999998808, 0.000490319042, -0.000502735376, -0.00050124526, 4.34723916e-07, -0.999996543)
  281. Weld11.Part0 = Part8
  282. Weld11.Part1 = Part8
  283. BlockMesh12.Parent = Part8
  284. BlockMesh12.Offset = Vector3.new(0, 0.00104166672, 0)
  285. BlockMesh12.Scale = Vector3.new(0.25, 0.0416666679, 0.0416666679)
  286. BlockMesh12.Scale = Vector3.new(0.25, 0.0416666679, 0.0416666679)
  287. IntValue13.Name = "Ammo"
  288. IntValue13.Parent = Tool0
  289. IntValue13.Value = 9999999999
  290. IntValue14.Name = "MaxAmmo"
  291. IntValue14.Parent = Tool0
  292. IntValue14.Value = 9999999999
  293. StringValue15.Name = "StringValue"
  294. StringValue15.Parent = Tool0
  295. BoolValue16.Name = "VisibleB"
  296. BoolValue16.Parent = Tool0
  297. Script17.Name = "WeldArm"
  298. Script17.Parent = Tool0
  299. table.insert(cors,sandbox(Script17,function()
  300. Tool = script.Parent
  301.  
  302.  
  303. local arms = nil
  304. local torso = nil
  305. local weld33 = nil -- right arm
  306. local weld55 = nil -- left arm
  307. local welds = {}
  308.  
  309.  
  310.  
  311.  
  312. colors = {26,}
  313.  
  314. function Equip(mouse)
  315. wait(0.01)
  316. arms = {Tool.Parent:FindFirstChild("Left Arm"), Tool.Parent:FindFirstChild("Right Arm")}
  317. torso = Tool.Parent:FindFirstChild("Torso")
  318. if arms ~= nil and torso ~= nil then
  319. local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
  320. if sh ~= nil then
  321. local yes = true
  322. if yes then
  323. yes = false
  324. sh[1].Part1 = nil
  325. sh[2].Part1 = nil
  326. local weld1 = Instance.new("Weld") -- left arm
  327. weld55 = weld1
  328. weld1.Part0 = torso
  329. weld1.Parent = torso
  330. weld1.Part1 = arms[1]
  331. weld1.C1 = CFrame.new(-0.35, 0.5, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0, math.rad(-90))
  332. welds[1] = weld1
  333. local weld2 = Instance.new("Weld") -- right arm
  334. weld33 = weld2
  335. weld2.Part0 = torso
  336. weld2.Parent = torso
  337. weld2.Part1 = arms[2]
  338. weld2.C1 = CFrame.new(-0.75, 0.5, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0)
  339. welds[2] = weld2
  340.  
  341. end
  342. else
  343. print("sh")
  344. end
  345. else
  346. print("arms")
  347. end
  348. end
  349.  
  350. function Unequip(mouse)
  351. if arms ~= nil and torso ~= nil then
  352. local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
  353. if sh ~= nil then
  354. local yes = true
  355. if yes then
  356. yes = false
  357. sh[1].Part1 = arms[1]
  358. sh[2].Part1 = arms[2]
  359. welds[1].Parent = nil
  360. welds[2].Parent = nil
  361.  
  362. end
  363. else
  364. print("sh")
  365. end
  366. else
  367. print("arms")
  368. end
  369. end
  370. Tool.Equipped:connect(Equip)
  371. Tool.Unequipped:connect(Unequip)
  372. end))
  373. LocalScript18.Name = "Arms"
  374. LocalScript18.Parent = Tool0
  375. table.insert(cors,sandbox(LocalScript18,function()
  376. sp = script.Parent
  377.  
  378. Mesh = false -- If true will load BC 2.0 Arm meshes as well.
  379. Shirt = true -- If true will load the user's shirt to the arms as well
  380.  
  381. function onEquipped(mouse)
  382. local Player = game:GetService("Players").LocalPlayer
  383. local Cam = game.Workspace.CurrentCamera
  384.  
  385. local Arms = Instance.new("Model")
  386. Arms.Name = "Arms"
  387. Arms.Parent = Cam
  388.  
  389. if Shirt == true then
  390. local Humanoid = Instance.new("Humanoid")
  391. Humanoid.MaxHealth = 0
  392. Humanoid.Health = 0
  393. Humanoid.Name = ""
  394. Humanoid.Parent = Arms
  395.  
  396. local newShirt = Player.Character:FindFirstChild("Shirt"):clone()
  397. newShirt.Parent = Arms
  398. else end
  399.  
  400. local RightArm = Player.Character:FindFirstChild("Right Arm"):clone()
  401. RightArm.Name = "Right Arm"
  402. RightArm.Transparency = 0.1
  403.  
  404. local w = Instance.new("Weld")
  405. w.Part0 = RightArm
  406. w.Part1 = Player.Character:FindFirstChild("Right Arm")
  407. w.C0 = CFrame.new()
  408. w.C1 = CFrame.new()
  409. w.Parent = RightArm
  410. RightArm.Parent = Arms
  411.  
  412. local LeftArm = Player.Character:FindFirstChild("Left Arm"):clone()
  413. LeftArm.Name = "Left Arm"
  414. LeftArm.Transparency = 0.1
  415.  
  416. local w = Instance.new("Weld")
  417. w.Part0 = LeftArm
  418. w.Part1 = Player.Character:FindFirstChild("Left Arm")
  419. w.C0 = CFrame.new()
  420. w.C1 = CFrame.new()
  421. w.Parent = LeftArm
  422. LeftArm.Parent = Arms
  423.  
  424. if Mesh ~= false then
  425. local LeftArmMesh = script:FindFirstChild("LeftArm")
  426. LeftArmMesh.Parent = LeftArm
  427. local RightArmMesh = script:FindFirstChild("RightArm")
  428. RightArmMesh.Parent = RightArm
  429. else end
  430.  
  431. end
  432.  
  433. function onUnequipped(mouse)
  434. local Player = game:GetService("Players").LocalPlayer
  435. local Cam = game.Workspace.CurrentCamera
  436. for _, Model in pairs(Cam:GetChildren()) do
  437. if Model.Name == "Arms" then
  438. Model:remove()
  439. else end
  440. end
  441. end
  442.  
  443. sp.Equipped:connect(onEquipped)
  444. sp.Unequipped:connect(onUnequipped)
  445.  
  446. end))
  447. SpecialMesh19.Name = "LeftArm"
  448. SpecialMesh19.Parent = LocalScript18
  449. SpecialMesh19.MeshId = "http://www.roblox.com/asset/?id=27111419"
  450. SpecialMesh19.MeshType = Enum.MeshType.FileMesh
  451. SpecialMesh20.Name = "RightArm"
  452. SpecialMesh20.Parent = LocalScript18
  453. SpecialMesh20.MeshId = "http://www.roblox.com/asset/?id=27111864"
  454. SpecialMesh20.MeshType = Enum.MeshType.FileMesh
  455. LocalScript21.Name = "BackupWeld"
  456. LocalScript21.Parent = Tool0
  457. table.insert(cors,sandbox(LocalScript21,function()
  458. function Weld(x,y)
  459. local W = Instance.new("Weld")
  460. W.Part0 = x
  461. W.Part1 = y
  462. local CJ = CFrame.new(x.Position)
  463. local C0 = x.CFrame:inverse()*CJ
  464. local C1 = y.CFrame:inverse()*CJ
  465. W.C0 = C0
  466. W.C1 = C1
  467. W.Parent = x
  468. end
  469.  
  470. function Get(A)
  471. if A.className == "Part" then
  472. Weld(script.Parent.Handle, A)
  473. A.Anchored = false
  474. else
  475. local C = A:GetChildren()
  476. for i=1, #C do
  477. Get(C[i])
  478. end
  479. end
  480. end
  481.  
  482. function Finale()
  483. Get(script.Parent)
  484. end
  485.  
  486. script.Parent.Equipped:connect(Finale)
  487. script.Parent.Unequipped:connect(Finale)
  488. Finale()
  489. end))
  490. LocalScript22.Name = "Crouch"
  491. LocalScript22.Parent = Tool0
  492. table.insert(cors,sandbox(LocalScript22,function()
  493. on = 0
  494. Tool = script.Parent
  495. welds = {}
  496. sh = {}
  497. arms = nil
  498. torso = nil
  499. f = nil
  500. function Crouch(ison)
  501. if arms == nil and torso == nil then
  502. arms = {Tool.Parent:FindFirstChild("Left Leg"), Tool.Parent:FindFirstChild("Right Leg")}
  503. torso = Tool.Parent:FindFirstChild("Torso")
  504. end
  505. if arms ~= nil and torso ~= nil then
  506. sh = {torso:FindFirstChild("Left Hip"), torso:FindFirstChild("Right Hip")}
  507. if sh ~= nil then
  508. local yes = true
  509. if yes then
  510. yes = false
  511. if ison == 1 then
  512. sh[1].Part1 = nil
  513. sh[2].Part1 = nil
  514. local weld1 = Instance.new("Weld")
  515. weld1.Part0 = torso
  516. weld1.Parent = torso
  517. weld1.Part1 = arms[1]
  518. weld1.C1 = CFrame.new(-0.5, 0.75, 1)
  519. arms[1].Name = "LDave"
  520. arms[1].CanCollide = true
  521. welds[1] = weld1
  522. Tool.Parent.Humanoid.WalkSpeed = 10
  523. -------------------------------------------
  524. local weld2 = Instance.new("Weld")
  525. weld2.Part0 = torso
  526. weld2.Parent = torso
  527. weld2.Part1 = arms[2]
  528. weld2.C1 = CFrame.new(0.5,0.495,1.25) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0)
  529. arms[2].Name = "RDave"
  530. arms[2].CanCollide = true
  531. welds[2] = weld2
  532. ---------------------------------
  533. local force = Instance.new("BodyForce")
  534. force.Parent = torso
  535. f = force
  536. wait(0.01)
  537. elseif ison == 0 then
  538. if arms then
  539. sh[1].Part1 = arms[1]
  540. sh[2].Part1 = arms[2]
  541. f.Parent = nil
  542. arms[2].Name = "Right Leg"
  543. arms[1].Name = "Left Leg"
  544. welds[1].Parent = nil
  545. welds[2].Parent = nil
  546. Tool.Parent.Humanoid.WalkSpeed = 16
  547. end
  548. end
  549. --
  550. end
  551. else
  552. print("sh")
  553. end
  554. else
  555. print("arms")
  556. end
  557. end
  558. function Key(key)
  559. if key then
  560. key = string.lower(key)
  561. if (key=="c") then
  562. if on == 1 then
  563. on = 0
  564. elseif on == 0 then
  565. on = 1
  566. end
  567. Crouch(on)
  568. end
  569. end
  570. end
  571. function Equip(mouse)
  572. mouse.KeyDown:connect(Key)
  573. end
  574. script.Parent.Equipped:connect(Equip)
  575.  
  576.  
  577. end))
  578. LocalScript23.Name = "Crouch/Patrol"
  579. LocalScript23.Parent = Tool0
  580. table.insert(cors,sandbox(LocalScript23,function()
  581. --Note this must be used with the accompanying weld script
  582. --This is an edited version of my V3 KeyCommand Script.
  583. --Heavily edited from a free model crouch script, ~ukwarrior6~
  584.  
  585. ----------------------------
  586. --Crouch and Patrol Script--
  587. ----------------------------
  588.  
  589. on = 0
  590. Tool = script.Parent
  591. welds = {}
  592. sh = {}
  593. arms = nil
  594. torso = nil
  595. f = nil
  596. Holstered = false
  597. wait()
  598. local Tool = script.Parent
  599. enabled = true
  600.  
  601. function Crouch(ison)
  602. if arms == nil and torso == nil then
  603. arms = {Tool.Parent:FindFirstChild("Left Leg"), Tool.Parent:FindFirstChild("Right Leg")}
  604. torso = Tool.Parent:FindFirstChild("Torso")
  605. end
  606. if arms ~= nil and torso ~= nil then
  607. sh = {torso:FindFirstChild("Left Hip"), torso:FindFirstChild("Right Hip")}
  608. if sh ~= nil then
  609. local yes = true
  610. if yes then
  611. yes = false
  612. if ison == 1 then
  613. sh[1].Part1 = nil
  614. sh[2].Part1 = nil
  615. local weld1 = Instance.new("Weld")
  616. weld1.Part0 = torso
  617. weld1.Parent = torso
  618. weld1.Part1 = arms[1]
  619. weld1.C1 = CFrame.new(-0.5, 0.75, 1)
  620. arms[1].Name = "LDave"
  621. arms[1].CanCollide = true
  622. welds[1] = weld1
  623. -------------------------------------------
  624. local weld2 = Instance.new("Weld")
  625. weld2.Part0 = torso
  626. weld2.Parent = torso
  627. weld2.Part1 = arms[2]
  628. weld2.C1 = CFrame.new(0.5,0.495,1.25) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0)
  629. arms[2].Name = "RDave"
  630. arms[2].CanCollide = true
  631. welds[2] = weld2
  632. ---------------------------------
  633. local force = Instance.new("BodyForce")
  634. force.Parent = torso
  635. f = force
  636. wait(0.01)
  637. elseif ison == 0 then
  638. if arms then
  639. sh[1].Part1 = arms[1]
  640. sh[2].Part1 = arms[2]
  641. f.Parent = nil
  642. arms[2].Name = "Right Leg"
  643. arms[1].Name = "Left Leg"
  644. welds[1].Parent = nil
  645. welds[2].Parent = nil
  646. end
  647. end
  648. --
  649. end
  650. else
  651. print("sh")
  652. end
  653. else
  654. print("arms")
  655. end
  656. end
  657. ----------------------------------------------------------------------------------------------------------------
  658. function GunUp()
  659. Holstered = false
  660. Tool.Enabled = true
  661. torso = Tool.Parent:FindFirstChild("Torso")
  662. if torso ~= nil then
  663. torso.weld1.C1 = CFrame.new(0.7, 0.9, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(28), math.rad(-1))
  664. torso.weld2.C1 = CFrame.new(-0.6, 0, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-0.01), 0)
  665. end
  666. end
  667.  
  668. function GunDown()
  669. Holstered = true
  670. Tool.Enabled = false -- You don't want to be shooting if your not aiming
  671. torso = Tool.Parent:FindFirstChild("Torso")
  672. if torso ~= nil then
  673. torso.weld1.C1 = CFrame.new(0.5,0,.5) * CFrame.fromEulerAnglesXYZ(math.rad(315), 0, math.rad(-40))
  674. torso.weld2.C1 = CFrame.new(-.8, -0.6, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-40), math.rad(-60), 0)
  675. end
  676. end
  677. -----------------------------------------------------------------------------------------------------------------
  678. function onEquippedLocal(mouse)
  679. mouse.Icon = "" -- Chuck in a cool crosshair here..
  680. mouse.KeyDown:connect(onKeyDown)
  681. end
  682. -----------------------------------------------------------------------------------------------------------------
  683. function onKeyDown(key)
  684. if (key~=nil) then
  685. key = key:lower()
  686.  
  687. if (key=="c") then -- Toggle Crouch (For some reason it breaks if you patrol first, working on this...
  688. if on == 1 then
  689. on = 0
  690. elseif on == 0 then
  691. on = 1
  692. end
  693. Crouch(on)
  694.  
  695. elseif (key=="e") then -- Toggle Patrol
  696. if Holstered == true then
  697. script.Parent.Parent.Humanoid.WalkSpeed = 16
  698. GunUp()
  699. elseif Holstered == false then
  700. script.Parent.Parent.Humanoid.WalkSpeed = 20
  701. GunDown()
  702. end end end end
  703. Tool.Equipped:connect(onEquippedLocal)
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710. end))
  711. LocalScript24.Name = "GuiScript"
  712. LocalScript24.Parent = Tool0
  713. table.insert(cors,sandbox(LocalScript24,function()
  714. local Tool = script.Parent
  715.  
  716. local vPlayer
  717. local Gui
  718. local Alt
  719. local Coords
  720. local Ammo
  721. local ready = false
  722.  
  723.  
  724. function setUpGui()
  725. if vPlayer == nil or vPlayer:findFirstChild("PlayerGui") == nil then
  726. return
  727. end
  728.  
  729. Gui = script.ScreenGui:Clone()
  730. Gui.Name = "GunDisplay"
  731. Gui.Parent = vPlayer.PlayerGui
  732. end
  733.  
  734. function onEquippedLocal(mouse)
  735. vPlayer = game.Players.LocalPlayer
  736.  
  737. setUpGui()
  738. ready = false
  739. end
  740.  
  741. function onUnequippedLocal(mouse)
  742. if Gui then
  743. Gui:remove()
  744. end
  745.  
  746. Gui = nil
  747. Alt = nil
  748. Coords = nil
  749. Ammo = nil
  750. vPlayer = nil
  751. end
  752.  
  753. Tool.Equipped:connect(onEquippedLocal)
  754. Tool.Unequipped:connect(onUnequippedLocal)
  755.  
  756. while true do
  757. wait()
  758. if Gui then
  759. Gui.Stats.Mode.Text = "Mode: " ..script.Parent.ModeText.Value
  760. Gui.Stats.Ammo.Ammo.Text = ""..math.floor((((script.Parent.Ammo.Value / script.Parent.MaxAmmo.Value)) * 100)).."%"
  761. Gui.Stats.Reload.Text = script.Parent.StringValue.Value
  762. if script.Parent.VisibleB.Value then
  763. Gui.Stats.Reload.Visible = true
  764. else
  765. Gui.Stats.Reload.Visible = false
  766. end
  767. if (((script.Parent.Ammo.Value / script.Parent.MaxAmmo.Value)) * 100) > 66 then
  768. Gui.Stats.Ammo.Ammo.TextColor3 = Color3.new(-0,-128,-0)
  769. elseif (((script.Parent.Ammo.Value / script.Parent.MaxAmmo.Value)) * 100) > 33 then
  770. Gui.Stats.Ammo.Ammo.TextColor3 = Color3.new(-255,-255,-102)
  771. elseif (((script.Parent.Ammo.Value / script.Parent.MaxAmmo.Value)) * 100) > 0 then
  772. Gui.Stats.Ammo.Ammo.TextColor3 = Color3.new(-255,-51,-0)
  773. end
  774.  
  775. end
  776. end
  777.  
  778. end))
  779. ScreenGui25.Parent = LocalScript24
  780. Frame26.Name = "Stats"
  781. Frame26.Parent = ScreenGui25
  782. Frame26.Transparency = 1
  783. Frame26.Size = UDim2.new(0.200000003, 0, 0.100000001, 0)
  784. Frame26.Position = UDim2.new(0.100000001, 0, 0.649999976, 0)
  785. Frame26.BackgroundTransparency = 1
  786. TextButton27.Name = "Mode"
  787. TextButton27.Parent = Frame26
  788. TextButton27.Transparency = 1
  789. TextButton27.Size = UDim2.new(1, 0, 0.5, 0)
  790. TextButton27.Text = "Mode: Nil"
  791. TextButton27.BackgroundTransparency = 1
  792. TextButton27.Font = Enum.Font.ArialBold
  793. TextButton27.FontSize = Enum.FontSize.Size18
  794. TextButton27.TextColor3 = Color3.new(0.866667, 0.866667, 0.866667)
  795. TextButton28.Name = "Ammo"
  796. TextButton28.Parent = Frame26
  797. TextButton28.Transparency = 1
  798. TextButton28.Size = UDim2.new(1, 0, 0.5, 0)
  799. TextButton28.Text = "Ammo: "
  800. TextButton28.Position = UDim2.new(-0.119999997, 0, 0.5, 0)
  801. TextButton28.BackgroundTransparency = 1
  802. TextButton28.Font = Enum.Font.ArialBold
  803. TextButton28.FontSize = Enum.FontSize.Size18
  804. TextButton28.TextColor3 = Color3.new(0.866667, 0.866667, 0.866667)
  805. TextButton29.Name = "Ammo"
  806. TextButton29.Parent = TextButton28
  807. TextButton29.Transparency = 1
  808. TextButton29.Size = UDim2.new(1, 0, 1, 0)
  809. TextButton29.Text = "90%"
  810. TextButton29.Position = UDim2.new(0.699999988, 0, 0, 0)
  811. TextButton29.BackgroundTransparency = 1
  812. TextButton29.Font = Enum.Font.ArialBold
  813. TextButton29.FontSize = Enum.FontSize.Size18
  814. TextButton29.TextColor3 = Color3.new(1, 0.2, 0)
  815. TextButton29.TextXAlignment = Enum.TextXAlignment.Left
  816. TextButton30.Name = "Reload"
  817. TextButton30.Parent = Frame26
  818. TextButton30.Transparency = 1
  819. TextButton30.Size = UDim2.new(1, 0, 0.5, 0)
  820. TextButton30.Text = "Reloading"
  821. TextButton30.Position = UDim2.new(0, 0, 1, 0)
  822. TextButton30.Visible = false
  823. TextButton30.BackgroundTransparency = 1
  824. TextButton30.Font = Enum.Font.ArialBold
  825. TextButton30.FontSize = Enum.FontSize.Size18
  826. TextButton30.TextColor3 = Color3.new(1, 0.2, 0)
  827. TextButton30.TextTransparency = 1.8000003099442
  828. Script31.Name = "Flash"
  829. Script31.Parent = TextButton30
  830. table.insert(cors,sandbox(Script31,function()
  831. while true do wait()
  832. for i=1,5 do
  833. script.Parent.TextTransparency = script.Parent.TextTransparency + 0.1
  834. wait(0.05)
  835. end
  836. wait(0.1)
  837. for i=1,5 do
  838. script.Parent.TextTransparency = script.Parent.TextTransparency - 0.1
  839. wait(0.05)
  840. end
  841. end
  842.  
  843. end))
  844. LocalScript32.Name = "MainScript"
  845. LocalScript32.Parent = Tool0
  846. table.insert(cors,sandbox(LocalScript32,function()
  847. wait(1)
  848. local Tool = script.Parent;
  849. local pewsound
  850. local bangsound
  851. local cam
  852. local ggui
  853.  
  854. enabled = true
  855. automatichold = false
  856. dmged = false
  857. shotgun = false
  858. equipped = false
  859. overheated = false
  860. isZoom = false
  861.  
  862. -----------------------------------------ONLY EDIT THESE VALUES!!!!!-----------------------------------------
  863. -----!Instructions!-----
  864. --Make sure you have a part in the gun named Barrel, it is where the raycast will shoot from.--
  865. --Just place this script into any gun and edit the values below.--
  866. --Editting anything else will risk breaking it.--
  867. ------------------------
  868. Damage = 78.9
  869. SPS = 0 -- Shots Per Second, gives a limit of how fast the gun shoots.
  870. Recoil = 1 -- [1-10] [1 = Minigun, 10 = Sniper]
  871. WallShoot = false -- Shoots through walls.
  872. GH = false -- [True = RB can't hurt RB.] [False = RB can hurt RB.]
  873. BulletColor = "Royal purple" -- Any Brickcolor will work.
  874. Flash = true
  875. --------------------------------------------------------------------------------------------------------
  876.  
  877. local zm = Instance.new("Part")
  878. zm.Name = "ZoomZM"
  879. zm.Anchored = true
  880. zm.Transparency = 1
  881. zm.Size = Vector3.new(1,1,1)
  882. zm.CanCollide = false
  883. GunType = 0
  884.  
  885. --[[local gui = Instance.new("ScreenGui")
  886. local bg = Instance.new("Frame",gui)
  887. local bar = Instance.new("Frame",bg)
  888. local bvl = Instance.new("ImageLabel", bg)
  889. bvl.Name = "Bevel"
  890. bvl.BackgroundTransparency = 1
  891. bvl.Image = "http://www.roblox.com/asset/?id=56852431"
  892. bvl.Size = UDim2.new(1,0,1,0)
  893. bg.Name = "Back"
  894. bar.Name = "Charge"
  895. bar.BackgroundColor3 = Color3.new(200/255,0/255,0/255)
  896. bg.BackgroundColor3 = Color3.new(200/255,200/255,200/255)
  897. bg.Size = UDim2.new(0,10,0,-100)
  898. bg.Position = UDim2.new(0,5,0,500)
  899. bar.Size = UDim2.new(0,4,-1,0)
  900. bar.Position = UDim2.new(0,3,1,0)
  901.  
  902. ggui = gui:Clone()
  903. ggui.Name = "GunGui"
  904. ggui.Back.Charge.Size = UDim2.new(0,4,-(script.Charge.Value/100),0)]]
  905.  
  906. GroupID = 9999
  907.  
  908. function AntiGH(char1,char2)
  909. if GH then
  910. local plyr1 = game.Players:findFirstChild(char1.Name)
  911. local plyr2 = game.Players:findFirstChild(char2.Name)
  912. if plyr1 and plyr2 then
  913. if plyr1:IsInGroup(GroupID) and plyr2:IsInGroup(GroupID) then
  914. return false
  915. end
  916. end
  917. return true
  918. elseif not GH then
  919. return true
  920. end
  921. end
  922.  
  923. MaxDist = 1000
  924.  
  925. function RayCast(Start,End,Ignore)
  926. if WallShoot then
  927. ray1 = Ray.new(Start, End.unit * 999.999)
  928. local Part1, TempPos = Workspace:FindPartOnRay(ray1,Ignore)
  929. ray2 = Ray.new(TempPos, End.unit * 999.999)
  930. local Part2, EndPos = Workspace:FindPartOnRay(ray2,Part1)
  931. return Part1, Part2, EndPos
  932. elseif not WallShoot then
  933. ray = Ray.new(Start, End.unit * 999.999)
  934. return Workspace:FindPartOnRay(ray,Ignore)
  935. end
  936. end
  937.  
  938. function DmgPlr(Part)
  939. if Part ~= nil then
  940. local c = Instance.new("ObjectValue")
  941. c.Name = "creator"
  942. c.Value = game.Players:findFirstChild(script.Parent.Parent.Name)
  943. local hum = Part.Parent:findFirstChild("Humanoid")
  944. local hathum = Part.Parent.Parent:findFirstChild("Humanoid")
  945. local hat = Part.Parent
  946. if hathum ~= nil and hat:IsA("Hat") and AntiGH(hathum.Parent, script.Parent.Parent) then
  947. hathum:TakeDamage(Damage/1)
  948. Part.Parent = game.Workspace
  949. Part.CFrame = CFrame.new(Part.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)))
  950. hat:Remove()
  951. c.Parent = hathum
  952. game.Debris:AddItem(c,1.5)
  953. elseif hum ~= nil and AntiGH(hum.Parent, script.Parent.Parent) then
  954. if Part.Name == "Head" then
  955. hum:TakeDamage(Damage*20.3)
  956. end
  957. hum:TakeDamage(Damage)
  958. c.Parent = hum
  959. game.Debris:AddItem(c,1.5)
  960. end
  961. end
  962. end
  963.  
  964. function onButton1Down(mouse)
  965. if script.Parent.Ammo.Value == 0 then
  966. else
  967. if GunType == 0 then
  968. if (not enabled) then return end
  969. enabled = false
  970. LaserShoot(mouse)
  971. if Flash then
  972. script.Parent.Barrel.Light.Light.Visible = true
  973. end
  974. script.Parent.Ammo.Value = script.Parent.Ammo.Value - 1
  975. wait(0.01)
  976. if Flash then
  977. script.Parent.Barrel.Light.Light.Visible = false
  978. end
  979. wait(1/SPS)
  980. enabled = true
  981. elseif GunType == 1 then
  982. automatichold = true
  983. while automatichold == true and script.Parent.Ammo.Value ~= 0 do wait()
  984. if (not enabled) then return end
  985. if script.Parent.Parent:findFirstChild("Humanoid").Health == 0 then script.Parent:Remove() end
  986. enabled = false
  987. LaserShoot(mouse)
  988. if Flash then
  989. script.Parent.Barrel.Light.Light.Visible = true
  990. end
  991. script.Parent.Ammo.Value = script.Parent.Ammo.Value - 1
  992. wait(0.01)
  993. if Flash then
  994. script.Parent.Barrel.Light.Light.Visible = false
  995. end
  996. wait(1/SPS)
  997. enabled = true
  998. end
  999. end
  1000. end
  1001. end
  1002.  
  1003. function LaserShoot(mouse)
  1004. hit = mouse.Hit.p
  1005. local StartPos = script.Parent.Barrel.CFrame.p
  1006. local rv = (StartPos-hit).magnitude/(Recoil * 20)
  1007. local rcl = Vector3.new(math.random(-rv,rv),math.random(-rv,rv),math.random(-rv,rv))
  1008. aim = hit + rcl
  1009. local P = Instance.new("Part")
  1010. P.Name = "Bullet"
  1011. P.formFactor = 3
  1012. P.BrickColor = BrickColor.new(BulletColor)
  1013. P.Size = Vector3.new(9,1,9)
  1014. P.Anchored = true
  1015. P.CanCollide = false
  1016. P.Transparency = 0.5
  1017. P.Parent = script.Parent.Parent
  1018. local m = Instance.new("CylinderMesh")
  1019. m.Name = "Mesh"
  1020. m.Parent = P
  1021. local c = Instance.new("ObjectValue")
  1022. c.Name = "creator"
  1023. c.Value = game.Players:findFirstChild(script.Parent.Parent.Name)
  1024. pewsound = script:FindFirstChild("Fire")
  1025. if pewsound then
  1026. pewsound:Play()
  1027. end --Brick created. Moving on to next part
  1028. local SPos = script.Parent.Barrel.CFrame.p
  1029. if WallShoot then
  1030. local Part1, Part2, EndPos = RayCast(SPos, (aim-SPos).unit * 999, script.Parent.Parent)
  1031. DmgPlr(Part1)
  1032. DmgPlr(Part2)
  1033. if Part1 and Part2 then
  1034. local enddist = (EndPos-SPos).magnitude
  1035. P.CFrame = CFrame.new(EndPos, SPos) * CFrame.new(0,0,-enddist/2) * CFrame.Angles(math.rad(90),0,0)
  1036. m.Scale = Vector3.new(.04,enddist,.04)
  1037. else
  1038. P.CFrame = CFrame.new(EndPos, SPos) * CFrame.new(0,0,-MaxDist/2) * CFrame.Angles(math.rad(90),0,0)
  1039. m.Scale = Vector3.new(.04,MaxDist,.04)
  1040. end
  1041. elseif not WallShoot then
  1042. local Part, Pos = RayCast(SPos, (aim-SPos).unit * 999, script.Parent.Parent)
  1043. DmgPlr(Part)
  1044. if Part then
  1045. local dist = (Pos-SPos).magnitude
  1046. P.CFrame = CFrame.new(Pos, SPos) * CFrame.new(0,0,-dist/2) * CFrame.Angles(math.rad(90),0,0)
  1047. m.Scale = Vector3.new(.1,dist,.1)
  1048. else
  1049. P.CFrame = CFrame.new(Pos, SPos) * CFrame.new(0,0,-MaxDist/2) * CFrame.Angles(math.rad(90),0,0)
  1050. m.Scale = Vector3.new(.1,MaxDist,.1)
  1051. end
  1052. end
  1053. game.Debris:AddItem(P,.1)
  1054. end
  1055.  
  1056. function onButton1Up(mouse)
  1057. automatichold = false
  1058. end
  1059.  
  1060. function onKeyDown(key, mouse)
  1061.  
  1062.  
  1063.  
  1064. if key:lower() == "r" then
  1065. if script.Parent.Ammo.Value ~= script.Parent.MaxAmmo.Value then
  1066. reloadsound = script:FindFirstChild("Reload")
  1067. if reloadsound then
  1068. reloadsound:Play()
  1069. end
  1070. enabled = false
  1071. script.Parent.VisibleB.Value = true
  1072. script.Parent.StringValue.Value = "Reloading"
  1073. repeat script.Parent.StringValue.Value = "Reloading" wait(0.3) script.Parent.Ammo.Value = script.Parent.Ammo.Value + 3 script.Parent.StringValue.Value = "Reloading" until script.Parent.Ammo.Value >= script.Parent.MaxAmmo.Value
  1074. script.Parent.Ammo.Value = script.Parent.MaxAmmo.Value
  1075. wait(0.2)
  1076. script.Parent.VisibleB.Value = false
  1077. enabled = true
  1078. end
  1079. end
  1080.  
  1081. if key:lower() == "m" then
  1082. if GunType == 0 then
  1083. GunType = 0
  1084. Recoil = 3
  1085. else
  1086. GunType = 1
  1087. Recoil = 3
  1088. end
  1089. end
  1090.  
  1091. end
  1092.  
  1093. function onEquipped(mouse)
  1094. equipped = true
  1095.  
  1096. if mouse == nil then
  1097. print("Mouse not found")
  1098. return
  1099. end
  1100. mouse.Icon = "http://www.roblox.com/asset/?id=52812029"
  1101. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  1102. mouse.Button1Up:connect(function() onButton1Up(mouse) end)
  1103. mouse.KeyDown:connect(function(key) onKeyDown(key, mouse) end)
  1104.  
  1105. end
  1106.  
  1107. function onUnequipped(mouse)
  1108. equipped = false
  1109. automatichold = false
  1110.  
  1111.  
  1112. end
  1113.  
  1114. script.Parent.Equipped:connect(onEquipped)
  1115. script.Parent.Unequipped:connect(onUnequipped)
  1116. while true do wait()
  1117. if script.Parent.Ammo.Value == 0 then
  1118. script.Parent.VisibleB.Value = true
  1119. script.Parent.StringValue.Value = "Reload"
  1120. end
  1121. if GunType == 1 then
  1122. script.Parent.ModeText.Value = "Auto"
  1123. else
  1124. script.Parent.ModeText.Value = "Semi"
  1125. end
  1126. end
  1127.  
  1128.  
  1129. end))
  1130. Sound33.Name = "Fire"
  1131. Sound33.Parent = LocalScript32
  1132. Sound33.SoundId = "http://roblox.com/asset/?id=444376855"
  1133. Sound33.Volume = 1
  1134. Sound34.Name = "Reload"
  1135. Sound34.Parent = LocalScript32
  1136. Sound34.SoundId = "http://www.roblox.com/asset/?id=519174837"
  1137. Sound34.Volume = 1
  1138. Sound34.PlayOnRemove = true
  1139. StringValue35.Name = "ModeText"
  1140. StringValue35.Parent = Tool0
  1141. StringValue35.Value = "Nil"
  1142. for i,v in pairs(mas:GetChildren()) do
  1143. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  1144. pcall(function() v:MakeJoints() end)
  1145. end
  1146. mas:Destroy()
  1147. for i,v in pairs(cors) do
  1148. spawn(function()
  1149. pcall(v)
  1150. end)
  1151. end
  1152.  
  1153.  
  1154. plr = game.Players.LocalPlayer.Character
  1155. part = Instance.new("Part", plr)
  1156. part.Size = Vector3.new(5,5,-9)
  1157. weld = Instance.new("Weld", part)
  1158. weld.C1 = CFrame.new(0,1.3,0)
  1159. weld.Part0 = plr.Torso
  1160. weld.Part1 = part
  1161. part.Transparency = 1
  1162. dec1 = Instance.new("Decal")
  1163. dec1.Parent = part
  1164. dec1.Texture = "http://www.roblox.com/asset/?id=2016758362"
  1165. dec1.Face = "Back"
  1166. dec = Instance.new("Decal")
  1167. dec.Parent = part
  1168. dec.Texture = "http://www.roblox.com/asset/?id=2016758362"
  1169. dec.Face = "Front"
  1170. plr.Torso.Transparency = 1
  1171. plr.Head.Transparency = 1
  1172. plr["Left Arm"].Transparency = 1
  1173. plr["Right Arm"].Transparency = 1
  1174. plr["Left Leg"].Transparency = 1
  1175. plr["Right Leg"].Transparency = 1
  1176.  
  1177. local p = game.Players.LocalPlayer
  1178. local char = p.Character
  1179. if char.Head:FindFirstChild'face' then
  1180. char.Head.face:Destroy()
  1181. end
  1182. game.Workspace.THECREATOR20029.Humanoid.WalkSpeed = 230
  1183. --This is a localscript; you will need to have access to using scripts wherever you want this
  1184. p = game:GetService('Players').LocalPlayer if p.Character then if p.Character:FindFirstChild('Humanoid') then p.Character.Humanoid.MaxHealth = math.huge end end
Add Comment
Please, Sign In to add comment