Advertisement
BabyGoatz

Untitled

Jul 19th, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.05 KB | None | 0 0
  1. --Thanks for using Build2Script Plugin by jarredbcv!
  2. if (script:FindFirstChild("forCustomRun")~=nil) then
  3. local sc = script["forCustomRun"].Value
  4. assert(loadstring(sc))()
  5. return
  6. elseif (script:FindFirstChild("forCustomRunL")~=nil) then
  7. local locsc = workspace:FindFirstChild("_localrun")
  8. local sc = script["forCustomRunL"]
  9. if (locsc~=nil) then
  10. local loc = locsc:clone()
  11. loc["scrun"].Value = sc.Value
  12. loc.Name = script.Name
  13. for i,v in pairs(script:GetChildren()) do
  14. v:clone().Parent = loc
  15. end
  16. loc.Parent = script.Parent
  17. script:remove()
  18. return
  19. else
  20. assert(loadstring(sc.Value))()
  21. return
  22. end
  23. end
  24. local m = Instance.new("Model")
  25. m.Name = "Pistol"
  26. t1 = Instance.new("Tool", m)
  27. t1.Name = "Pistol"
  28. t1.GripForward = Vector3.new(0, 1, 0)
  29. t1.GripPos = Vector3.new(0.0500000007, -0.5, -0.200000003)
  30. t1.GripUp = Vector3.new(0, 0, 1)
  31. t1.TextureId = "http://www.roblox.com/asset/?id=72012902"
  32. t1.CanBeDropped = false
  33. g1 = Instance.new("ScreenGui", t1)
  34. s1 = script:clone()
  35. s1.Name = "LocalScript"
  36. s1.Disabled = false
  37. so1 = Instance.new("StringValue", s1)
  38. so1.Name = "forCustomRunL"
  39. so1.Value = [===[
  40. --Stickmasterluke
  41.  
  42.  
  43. sp=script.Parent
  44.  
  45.  
  46. while sp:FindFirstChild("Scope")==nil or sp:FindFirstChild("Frame1")==nil or sp:FindFirstChild("Frame2")==nil do
  47. wait()
  48. end
  49.  
  50. function update()
  51. sp.Scope.Position=UDim2.new(.5,-10-(sp.AbsoluteSize.y/2),0,-10)
  52. sp.Scope.Size=UDim2.new(0,20+sp.AbsoluteSize.y,0,20+sp.AbsoluteSize.y)
  53. sp.Frame1.Size=UDim2.new(0,20+((sp.AbsoluteSize.x-sp.AbsoluteSize.y)/2),1,20)
  54. sp.Frame2.Size=UDim2.new(0,20+((sp.AbsoluteSize.x-sp.AbsoluteSize.y)/2),1,20)
  55. sp.Frame2.Position=UDim2.new(1,-10-((sp.AbsoluteSize.x-sp.AbsoluteSize.y)/2),0,-10)
  56. end
  57.  
  58. sp.Changed:connect(update)
  59.  
  60.  
  61. ]===]
  62. s1.Parent = g1
  63. g1.Name = "ZoomGui"
  64. o1 = Instance.new("ImageLabel", g1)
  65. o1.BackgroundColor3 = Color3.new(0, 0, 0)
  66. o1.BackgroundTransparency = 1
  67. o1.Name = "Scope"
  68. o1.Position = UDim2.new(0.5, -10, 0, -10)
  69. o1.Size = UDim2.new(0, 20, 0, 20)
  70. o1.Image = "http://www.roblox.com/asset/?id=72002022"
  71. o2 = Instance.new("Frame", g1)
  72. o2.BackgroundColor3 = Color3.new(0, 0, 0)
  73. o2.BorderColor3 = Color3.new(0, 0, 0)
  74. o2.BorderSizePixel = 0
  75. o2.Name = "Frame2"
  76. o2.Position = UDim2.new(0, -10, 0, -10)
  77. o2.Size = UDim2.new(0, 0, 1, 20)
  78. o3 = Instance.new("Frame", g1)
  79. o3.BackgroundColor3 = Color3.new(0, 0, 0)
  80. o3.BorderColor3 = Color3.new(0, 0, 0)
  81. o3.BorderSizePixel = 0
  82. o3.Name = "Frame1"
  83. o3.Position = UDim2.new(0, -10, 0, -10)
  84. o3.Size = UDim2.new(0, 0, 1, 20)
  85. v1 = Instance.new("BoolValue", t1)
  86. v1.Name = "HitTarget"
  87. v1.Value = false
  88. s2 = script:clone()
  89. s2.Name = "Script"
  90. s2.Disabled = false
  91. so2 = Instance.new("StringValue", s2)
  92. so2.Name = "forCustomRun"
  93. so2.Value = [===[
  94. --Made by Stickmasterluke
  95.  
  96.  
  97. sp=script.Parent
  98.  
  99.  
  100. range=400 --can be any realistic number, even over 1000
  101. damage=28
  102. headshotmultiplier=1.5
  103. piercing=false
  104. splat=true
  105.  
  106.  
  107. spreadpercentoffset=.5
  108. targetshit={}
  109. local debris=game:GetService("Debris")
  110.  
  111.  
  112. function waitfor(a,b)
  113. while a:FindFirstChild(b)==nil do
  114. wait()
  115. end
  116. end
  117.  
  118. waitfor(sp,"Aim")
  119. waitfor(sp,"Spread")
  120. waitfor(sp,"HitTarget")
  121.  
  122.  
  123. function tagHumanoid(humanoid,player,didheadshot)
  124. if humanoid and player then
  125. for i,v in ipairs(humanoid:GetChildren()) do
  126. if v and v.Parent~=nil then
  127. if v.Name=="creator" then
  128. v:remove()
  129. end
  130. end
  131. end
  132. local creatortag=Instance.new("ObjectValue")
  133. creatortag.Value=player
  134. creatortag.Name="creator"
  135. local weapontag=Instance.new("StringValue")
  136. weapontag.Name="WeaponTag"
  137. weapontag.Value=sp.Name
  138. weapontag.Parent=creatortag
  139. if didheadshot then
  140. local headshottag=Instance.new("BoolValue")
  141. headshottag.Name="HeadshotTag"
  142. headshottag.Value=true
  143. headshottag.Parent=creatortag
  144. end
  145. creatortag.Parent=humanoid
  146. debris:AddItem(creatortag,2)
  147. end
  148. end
  149.  
  150. function hittarget()
  151. local hittargetvalue=sp:FindFirstChild("HitTarget")
  152. if hittargetvalue then
  153. hittargetvalue.Value=not hittargetvalue.Value
  154. end
  155. end
  156.  
  157. function rayignorecheck(hit3)
  158. if hit3 then
  159. if hit3.Transparency>=1 or string.lower(hit3.Name)=="water" or hit3.Name=="Effect" or hit3.Name=="Rocket" or hit3.Name=="Handle" or hit3:IsDescendantOf(sp.Parent) then
  160. return true
  161. end
  162. for i,v in ipairs(targetshit) do
  163. if v and v.Parent~=nil then
  164. if hit3:IsDescendantOf(v) then
  165. return true
  166. end
  167. end
  168. end
  169. end
  170. return false
  171. end
  172.  
  173. function raycast(spos,vec,dist)
  174. local hit2,pos2=game.Workspace:FindPartOnRay(Ray.new(spos+(vec*.01),vec*dist),sp)
  175. if hit2~=nil and pos2 then
  176. local dist2=dist-(pos2-spos).magnitude
  177. if rayignorecheck(hit2) and dist2>0 then
  178. return raycast(pos2,vec,dist2)
  179. end
  180. end
  181. return hit2,pos2
  182. end
  183.  
  184. function fire(targetpos)
  185. local chr=sp.Parent
  186. if chr==nil then
  187. return
  188. end
  189. local plr=game.Players:GetPlayerFromCharacter(chr)
  190. if plr==nil then
  191. return
  192. end
  193.  
  194. local head=chr:findFirstChild("Head")
  195. local humanoid=chr:findFirstChild("Humanoid")
  196. if head==nil or humanoid==nil then
  197. return
  198. end
  199.  
  200. local spread=sp:FindFirstChild("Spread")
  201. if humanoid.Health>0 and spread then
  202. local startpos=head.Position
  203. local targetdist=(targetpos-startpos).magnitude
  204. local flawedpos=Vector3.new(spread.Value*((math.random()*2)-1),spread.Value*((math.random()*2)-1),spread.Value*((math.random()*2)-1))*targetdist*spreadpercentoffset
  205. local vec=((targetpos+flawedpos)-startpos).unit
  206.  
  207. targetshit={}
  208. hitsolid=false
  209. while not hitsolid do
  210. hitsolid=true
  211. local hit,pos=raycast(startpos,vec,range)
  212. if hit~=nil and hit.Parent~=nil then
  213. chr=sp.Parent
  214. local h=hit.Parent:FindFirstChild("Humanoid")
  215. if h~=nil then
  216. local p=game.Players:GetPlayerFromCharacter(h.Parent)
  217. if p~=nil then
  218. if p.TeamColor~=plr.TeamColor and h.Health>0 then
  219. finaldamage=damage
  220. if hit.Name=="Head" then
  221. finaldamage=finaldamage*headshotmultiplier
  222. elseif hit.Name=="Torso" then
  223. finaldamage=finaldamage--*1.1
  224. end
  225. tagHumanoid(h,plr,hit.Name=="Head")
  226. h:TakeDamage(finaldamage)
  227. hittarget(hit.Parent)
  228. if piercing then
  229. hitsolid=false
  230. table.insert(targetshit,hit.Parent)
  231. end
  232. end
  233. end
  234. elseif hit.Name=="Target" then
  235. hittarget(hit.Parent)
  236. if piercing then
  237. hitsolid=false
  238. table.insert(targetshit,hit.Parent)
  239. end
  240. end
  241. end
  242.  
  243. local missile=Instance.new("Part")
  244. missile.Name="Effect"
  245. missile.formFactor="Custom"
  246. missile.Size=Vector3.new(.1,.1,.1)
  247. missile.Material=Enum.Material.Plastic
  248. missile.BrickColor=plr.TeamColor
  249. missile.Locked=true
  250. missile.TopSurface=0
  251. missile.BottomSurface=0
  252. missile.CFrame=CFrame.new(pos)
  253. missile.Transparency=1
  254. missile.Anchored=true
  255.  
  256. local mesh=Instance.new("SpecialMesh")
  257. mesh.MeshType="Sphere"
  258. mesh.Scale=Vector3.new(.5/missile.Size.x,.5/missile.Size.y,.5/missile.Size.z)
  259. mesh.Parent=missile
  260.  
  261. local paint=Instance.new("Fire")
  262. paint.Color=plr.TeamColor.Color
  263. paint.SecondaryColor=plr.TeamColor.Color
  264. paint.Size=5
  265. paint.Heat=0
  266. paint.Parent=missile
  267.  
  268. local hitsound=Instance.new("Sound")
  269. hitsound.Name="HitSound"
  270. hitsound.SoundId="http://www.roblox.com/asset/?id=27127113"
  271. hitsound.Volume=1
  272. hitsound.Parent=missile
  273.  
  274. missile.Parent=game.Workspace
  275. hitsound:Play()
  276.  
  277. thisreached=false
  278. if hit~=nil then
  279. if hit.Name=="Target" or (hit.Anchored and splat) then
  280. --hittarget()
  281. missile.Transparency=0
  282. delay(2/30,function()
  283. if missile then
  284. if paint then
  285. paint:remove()
  286. paint.Parent=nil
  287. end
  288. end
  289. end)
  290. debris:AddItem(missile,5)
  291. thisreached=true
  292. end
  293. end
  294. if not thisreached then
  295. delay(2/30,function()
  296. if missile then
  297. missile:Remove()
  298. missile=nil
  299. end
  300. end)
  301. debris:AddItem(missile,1)
  302. end
  303. end
  304. end
  305. end
  306.  
  307.  
  308. sp.Aim.ChildAdded:connect(function(item)
  309. if item~=nil and item.Parent~=nil then
  310. if item.ClassName=="Vector3Value" then
  311. fire(item.Value)
  312. end
  313. item:remove()
  314. end
  315. end)
  316.  
  317.  
  318.  
  319. ]===]
  320. s2.Parent = t1
  321. v2 = Instance.new("NumberValue", t1)
  322. v2.Name = "Spread"
  323. v2.Value = 0.03
  324. s3 = script:clone()
  325. s3.Name = "GunScript"
  326. s3.Disabled = false
  327. so3 = Instance.new("StringValue", s3)
  328. so3.Name = "forCustomRunL"
  329. so3.Value = [===[
  330. --Made by Stickmasterluke
  331.  
  332.  
  333. sp=script.Parent
  334.  
  335.  
  336. rate=1/30
  337. spreadpercentoffset=.5
  338.  
  339.  
  340. ----Gun statistics----
  341. automatic=false
  342. burst=false
  343. shotgun=false
  344. canzoom=0
  345.  
  346. firerate=.5
  347.  
  348. reloadtime=3
  349. startingammo=1000
  350. maxammo=2000
  351. clipsize=14
  352. noclip=false
  353. unlimitedammo=true
  354.  
  355. minspread=.03
  356. maxspread=.25
  357. spreadincrease=.1
  358. spreadcooldowntime=1
  359. zoomspread=0
  360.  
  361. function gunUp()
  362. sp.GripPos=Vector3.new(.05,-.3,-.2)
  363. end
  364. function gunOut()
  365. sp.GripPos=Vector3.new(.05,-.5,-.2)
  366. end
  367. ----------------------
  368.  
  369. function waitfor(a,b)
  370. while a:FindFirstChild(b)==nil do
  371. wait()
  372. end
  373. end
  374.  
  375. waitfor(sp,"Aim")
  376. waitfor(sp,"Spread")
  377. waitfor(sp,"HitTarget")
  378. waitfor(sp,"WeaponHud")
  379. waitfor(sp,"Handle")
  380. local gun=sp.Handle
  381. waitfor(gun,"Fire")
  382. waitfor(gun,"FireSound")
  383.  
  384. ammo=startingammo
  385. ammoinclip=clipsize
  386. originalminspread=minspread
  387. spread=minspread
  388. equipped=false
  389. reloading=false
  390. down=false
  391. ready=true
  392. local gui=sp.WeaponHud
  393. local zoomgui=sp.ZoomGui
  394. local debris=game:GetService("Debris")
  395. while plr==nil do
  396. plr=game.Players.LocalPlayer
  397. end
  398.  
  399. function unzoom()
  400. minspread=originalminspread
  401. local cam=game.Workspace.CurrentCamera
  402. if cam then
  403. cam.FieldOfView=70
  404. end
  405. zoomgui.Parent=sp
  406. end
  407.  
  408. function updateammo(additional)
  409. additional=additional or 0
  410. if noclip then
  411. if not unlimitedammo then
  412. ammo=ammo+additional
  413. if ammo<0 then
  414. ammo=0
  415. elseif ammo>maxammo then
  416. ammo=maxammo
  417. end
  418. end
  419. else
  420. ammoinclip=ammoinclip+additional
  421. if ammoinclip<0 then
  422. ammoinclip=0
  423. elseif ammoinclip>clipsize then
  424. ammoinclip=clipsize
  425. end
  426. end
  427. if gui then
  428. if noclip and unlimitedammo then
  429. gui.AmmoHud.TotalAmmo.Visible=false
  430. gui.AmmoHud.ForwardSlash.Visible=false
  431. gui.AmmoHud.ClipAmmo.Visible=false
  432. elseif noclip then
  433. gui.AmmoHud.TotalAmmo.Visible=true
  434. gui.AmmoHud.ForwardSlash.Visible=false
  435. gui.AmmoHud.ClipAmmo.Visible=false
  436. gui.AmmoHud.TotalAmmo.Text=tostring(ammo)
  437. elseif unlimitedammo then
  438. gui.AmmoHud.TotalAmmo.Visible=true
  439. gui.AmmoHud.ForwardSlash.Visible=true
  440. gui.AmmoHud.ClipAmmo.Visible=true
  441. gui.AmmoHud.TotalAmmo.Text=tostring(clipsize)
  442. gui.AmmoHud.ClipAmmo.Text=tostring(ammoinclip)
  443. else
  444. gui.AmmoHud.TotalAmmo.Visible=true
  445. gui.AmmoHud.ForwardSlash.Visible=true
  446. gui.AmmoHud.ClipAmmo.Visible=true
  447. gui.AmmoHud.TotalAmmo.Text=tostring(ammo)
  448. gui.AmmoHud.ClipAmmo.Text=tostring(ammoinclip)
  449. end
  450. end
  451. end
  452.  
  453. function reload()
  454. if not reloading and ready and equipped then
  455. unzoom()
  456. reloading=true
  457. if gui then
  458. gui.ReloadingLabel.Visible=true
  459. end
  460. --run an animation or sound here
  461. wait(reloadtime)
  462. if unlimitedammo then
  463. ammoinclip=clipsize
  464. else
  465. local extraammo=clipsize-ammoinclip
  466. if ammo>=extraammo then
  467. ammo=ammo-extraammo
  468. ammoinclip=clipsize
  469. else
  470. ammoinclip=ammo
  471. ammo=0
  472. end
  473. end
  474. if gui then
  475. gui.ReloadingLabel.Visible=false
  476. end
  477. reloading=false
  478. end
  479. updateammo(0)
  480. end
  481.  
  482. function hittarget()
  483. if gui then
  484. delay(0,function()
  485. if gui:FindFirstChild("TargetHitImage") then
  486. gui.TargetHitImage.Visible=true
  487. local lth=tick()
  488. lasttargethit=lth
  489. wait(.5)
  490. if lasttargethit<=lth then
  491. gui.TargetHitImage.Visible=false
  492. end
  493. end
  494. end)
  495. end
  496. end
  497. sp.HitTarget.Changed:connect(hittarget)
  498.  
  499. function updatespread()
  500. local spreadvalue=sp:FindFirstChild("Spread")
  501. if spreadvalue then
  502. spreadvalue.Value=spread
  503. end
  504. if spread>maxspread then
  505. spread=maxspread
  506. elseif spread<minspread then
  507. spread=minspread
  508. end
  509. if gui then
  510. local absoluteY=gui.AbsoluteSize.Y
  511. gui.Crosshair.Position=UDim2.new(.5,(1-(spread*absoluteY))/2,.5,(1-(spread*absoluteY))/2)
  512. gui.Crosshair.Size=UDim2.new(0,spread*absoluteY,0,spread*absoluteY)
  513. end
  514. end
  515.  
  516. function fire(pos)
  517. if pos then
  518. local newaim=Instance.new("Vector3Value")
  519. newaim.Value=pos
  520. newaim.Parent=sp.Aim
  521. end
  522. end
  523.  
  524. function ammocheck(thismuch)
  525. return (noclip and (unlimitedammo or ammo>=thismuch)) or (noclip==false and ammoinclip>=thismuch)
  526. end
  527.  
  528. function onEquipped(mouse)
  529. plr=game.Players.LocalPlayer
  530. equipped=true
  531. if mouse~=nil then
  532. mouse.Icon="http://www.roblox.com/asset/?id=18662154"--"rbxasset://textures\\GunCursor.png"
  533. mouse.KeyDown:connect(function(key)
  534. if key then
  535. key=string.lower(key)
  536. if key=="r" then
  537. reload()
  538. elseif key=="z" and canzoom~=0 and not reloading and equipped then
  539. local cam=game.Workspace.CurrentCamera
  540. if cam then
  541. zoomed=math.floor(math.deg(cam.FieldOfView)+.5)
  542. if zoomed==70 and canzoom>=1 then
  543. minspread=zoomspread
  544. cam.FieldOfView=40
  545. zoomgui.Parent=plr.PlayerGui
  546. elseif zoomed==40 and canzoom>=2 then
  547. minspread=zoomspread
  548. cam.FieldOfView=20
  549. zoomgui.Parent=plr.PlayerGui
  550. else
  551. unzoom()
  552. end
  553. end
  554. end
  555. end
  556. end)
  557. mouse.Button1Down:connect(function()
  558. if not down then
  559. down=true
  560. local chr=plr.Character
  561. if chr~=nil then
  562. local h=chr:FindFirstChild("Humanoid")
  563. if h then
  564. while equipped and down and ready and reloading==false and ammocheck(1) and h.Health>0 and mouse do
  565. ready=false
  566. gunUp()
  567. gun.Fire.Enabled=true
  568. sp.Handle.FireSound:Play()
  569. updateammo(-1)
  570. local aimpos=mouse.Hit.p
  571. if shotgun then
  572. for i=1,10 do
  573. fire(aimpos)
  574. end
  575. elseif burst then
  576. fire(aimpos)
  577. if ammocheck(1) then
  578. wait(rate*1.5)
  579. sp.Handle.FireSound:Play()
  580. updateammo(-1)
  581. fire(aimpos)
  582. if ammocheck(1) then
  583. wait(rate*1.5)
  584. sp.Handle.FireSound:Play()
  585. updateammo(-1)
  586. fire(aimpos)
  587. end
  588. end
  589. else
  590. fire(aimpos)
  591. end
  592. wait(2/30)
  593. spread=spread+spreadincrease
  594. updatespread()
  595. gun.Fire.Enabled=false
  596. gunOut()
  597. if firerate>(2/30) then
  598. wait(firerate-(2/30))
  599. end
  600. ready=true
  601. if not automatic then
  602. break
  603. end
  604. end
  605. end
  606. end
  607. down=false
  608. if not ammocheck(1) then
  609. reload()
  610. end
  611. end
  612. end)
  613. mouse.Button1Up:connect(function()
  614. down=false
  615. end)
  616. end
  617. if gui and plr:FindFirstChild("PlayerGui") then
  618. gui.Parent=plr.PlayerGui
  619. end
  620. updateammo(0)
  621. unzoom()
  622. end
  623.  
  624. function onUnequipped()
  625. equipped=false
  626. sp.Handle.FireSound:Stop()
  627. if gui then
  628. gui.Parent=sp
  629. end
  630. unzoom()
  631. end
  632.  
  633. sp.Equipped:connect(onEquipped)
  634. sp.Unequipped:connect(onUnequipped)
  635.  
  636.  
  637. while true do
  638. wait(rate)
  639. if spread>minspread then
  640. spread=spread-((rate/spreadcooldowntime)*(maxspread-minspread))
  641. end
  642. updatespread()
  643. end
  644.  
  645.  
  646.  
  647.  
  648. ]===]
  649. s3.Parent = t1
  650. g2 = Instance.new("ScreenGui", t1)
  651. g2.Name = "WeaponHud"
  652. o4 = Instance.new("Frame", g2)
  653. o4.BackgroundColor3 = Color3.new(0, 1, 0)
  654. o4.BackgroundTransparency = 1
  655. o4.BorderSizePixel = 0
  656. o4.Name = "Crosshair"
  657. o4.Position = UDim2.new(0.5, -10, 0.5, -10)
  658. o4.Size = UDim2.new(0, 21, 0, 21)
  659. o5 = Instance.new("Frame", o4)
  660. o5.BackgroundColor3 = Color3.new(0, 0, 0)
  661. o5.BorderColor3 = Color3.new(0, 1, 0)
  662. o5.Name = "TopFrame"
  663. o5.Position = UDim2.new(0.5, -1, 0, -15)
  664. o5.Size = UDim2.new(0, 2, 0, 15)
  665. o6 = Instance.new("Frame", o4)
  666. o6.BackgroundColor3 = Color3.new(0, 0, 0)
  667. o6.BorderColor3 = Color3.new(0, 1, 0)
  668. o6.Name = "BottomFrame"
  669. o6.Position = UDim2.new(0.5, -1, 1, 0)
  670. o6.Size = UDim2.new(0, 2, 0, 15)
  671. o7 = Instance.new("Frame", o4)
  672. o7.BackgroundColor3 = Color3.new(0, 0, 0)
  673. o7.BorderColor3 = Color3.new(0, 1, 0)
  674. o7.Name = "LeftFrame"
  675. o7.Position = UDim2.new(0, -15, 0.5, -1)
  676. o7.Size = UDim2.new(0, 15, 0, 2)
  677. o8 = Instance.new("Frame", o4)
  678. o8.BackgroundColor3 = Color3.new(0, 0, 0)
  679. o8.BorderColor3 = Color3.new(0, 1, 0)
  680. o8.Name = "RightFrame"
  681. o8.Position = UDim2.new(1, 0, 0.5, -1)
  682. o8.Size = UDim2.new(0, 15, 0, 2)
  683. o9 = Instance.new("ImageLabel", g2)
  684. o9.BackgroundTransparency = 1
  685. o9.BorderSizePixel = 0
  686. o9.Name = "TargetHitImage"
  687. o9.Position = UDim2.new(0.5, -25, 0.5, -25)
  688. o9.Size = UDim2.new(0, 50, 0, 50)
  689. o9.Visible = false
  690. o9.Image = "http://www.roblox.com/asset/?id=69368028"
  691. o10 = Instance.new("Frame", g2)
  692. o10.BackgroundTransparency = 1
  693. o10.BorderSizePixel = 0
  694. o10.Name = "AmmoHud"
  695. o10.Position = UDim2.new(1, -265, 1, -60)
  696. o10.Size = UDim2.new(0, 200, 0, 50)
  697. o11 = Instance.new("TextLabel", o10)
  698. o11.BackgroundTransparency = 1
  699. o11.BorderSizePixel = 0
  700. o11.Name = "ForwardSlash"
  701. o11.Position = UDim2.new(0.5, 0, 0.5, 0)
  702. o11.Text = "/"
  703. o11.TextColor3 = Color3.new(0, 0, 0)
  704. o11.TextStrokeColor3 = Color3.new(0, 1, 0)
  705. o11.TextStrokeTransparency = 0
  706. o11.FontSize = Enum.FontSize.Size18
  707. o12 = Instance.new("TextLabel", o10)
  708. o12.BackgroundTransparency = 1
  709. o12.BorderSizePixel = 0
  710. o12.Name = "ClipAmmo"
  711. o12.Position = UDim2.new(0.44999998807907, 0, 0.5, 0)
  712. o12.Text = "13"
  713. o12.TextColor3 = Color3.new(0, 0, 0)
  714. o12.TextStrokeColor3 = Color3.new(0, 1, 0)
  715. o12.TextStrokeTransparency = 0
  716. o12.FontSize = Enum.FontSize.Size18
  717. o12.TextXAlignment = Enum.TextXAlignment.Right
  718. o13 = Instance.new("TextLabel", o10)
  719. o13.BackgroundTransparency = 1
  720. o13.BorderSizePixel = 0
  721. o13.Name = "TotalAmmo"
  722. o13.Position = UDim2.new(0.55000001192093, 0, 0.5, 0)
  723. o13.Text = "14"
  724. o13.TextColor3 = Color3.new(0, 0, 0)
  725. o13.TextStrokeColor3 = Color3.new(0, 1, 0)
  726. o13.TextStrokeTransparency = 0
  727. o13.FontSize = Enum.FontSize.Size18
  728. o13.TextXAlignment = Enum.TextXAlignment.Left
  729. o14 = Instance.new("TextLabel", g2)
  730. o14.BackgroundTransparency = 1
  731. o14.BorderSizePixel = 0
  732. o14.Name = "ReloadingLabel"
  733. o14.Position = UDim2.new(0.5, 20, 0.5, -20)
  734. o14.Visible = false
  735. o14.Text = "Reloading"
  736. o14.TextColor3 = Color3.new(0, 0, 0)
  737. o14.TextStrokeColor3 = Color3.new(0, 1, 0)
  738. o14.TextStrokeTransparency = 0
  739. o14.Font = Enum.Font.ArialBold
  740. o14.FontSize = Enum.FontSize.Size18
  741. o14.TextXAlignment = Enum.TextXAlignment.Left
  742. o14.TextYAlignment = Enum.TextYAlignment.Bottom
  743. p1 = Instance.new("Part", t1)
  744. p1.BrickColor = BrickColor.new("Pastel yellow")
  745. p1.Name = "Handle"
  746. p1.FormFactor = Enum.FormFactor.Custom
  747. p1.Size = Vector3.new(0.200000003, 1.20000005, 0.699999988)
  748. p1.CFrame = CFrame.new(19.6203575, 4.59839296, -87.4173355, 0.539916992, -0.841717899, -0.000657309021, -1.30087665e-05, -0.000789257814, 0.999999642, -0.841718078, -0.539916873, -0.000437083479)
  749. p1.Locked = true
  750. x1 = Instance.new("Sound", p1)
  751. x1.Name = "FireSound"
  752. x1.Pitch = 0.69999998807907
  753. x1.SoundId = "http://www.roblox.com/asset/?id=27127089"
  754. x1.Volume = 1
  755. x1.Looped = false
  756. x1.PlayOnRemove = false
  757. b1 = Instance.new("SpecialMesh", p1)
  758. b1.MeshId = "http://www.roblox.com/asset/?id=72012879"
  759. b1.TextureId = "http://www.roblox.com/asset/?id=72012859"
  760. b1.MeshType = Enum.MeshType.FileMesh
  761. b1.Name = "Mesh"
  762. b1.VertexColor = Vector3.new(2, 2, 2)
  763. b1.Scale = Vector3.new(1.25, 1.25, 1.25)
  764. s4 = script:clone()
  765. s4.Name = "MapScript"
  766. s4.Disabled = false
  767. so4 = Instance.new("StringValue", s4)
  768. so4.Name = "forCustomRunL"
  769. so4.Value = [===[
  770. local Tool = script.Parent
  771. local Gun = Tool.Handle
  772.  
  773. local vCharacter
  774. local myTorso
  775. local myHumanoid
  776. local vPlayer
  777.  
  778. local gunCrossHair
  779.  
  780. local mapFrame
  781.  
  782. local guiSet = false
  783.  
  784. function showMap(key)
  785. key = key:lower()
  786. if key == "v" or key == "e" then
  787. if mapFrame then
  788. mapFrame.Visible = true
  789. end
  790. elseif key == "q" then
  791. if gameVictoryScreen and not gameVictoryScreen.Visible then
  792. guiSet = true
  793. gameVictoryScreen.Visible = true
  794. end
  795. elseif key == "c" then
  796. if gameClassesFrame then
  797. gameClassesFrame.Visible = not gameClassesFrame.Visible
  798. end
  799. end
  800. end
  801.  
  802. function closeMap(key)
  803. key = key:lower()
  804. if key == "v" or key == "e" then
  805. if mapFrame then
  806. mapFrame.Visible = false
  807. end
  808. elseif key == "q" then
  809. if gameVictoryScreen and guiSet then
  810. guiSet = false
  811. gameVictoryScreen.Visible = false
  812. end
  813. end
  814. end
  815.  
  816. function onEquipped(mouse)
  817. vCharacter = Tool.Parent
  818. vPlayer = game.Players:GetPlayerFromCharacter(vCharacter)
  819. if mouse then
  820. mouse.KeyDown:connect(showMap)
  821. mouse.KeyUp:connect(closeMap)
  822. end
  823.  
  824. if vPlayer then
  825. local playerGui = vPlayer:FindFirstChild("PlayerGui")
  826. if playerGui then
  827. gameGui = playerGui:FindFirstChild("GameGui")
  828. if gameGui then
  829. mapFrame = gameGui:FindFirstChild("MapFrame")
  830. gameVictoryScreen = gameGui:FindFirstChild("GameVictoryScreen")
  831. gameClassesFrame = gameGui:FindFirstChild("ClassesFrame")
  832. end
  833. local gunGui = playerGui:FindFirstChild("GunHud")
  834. if gunGui then
  835. gunCrossHair = gunGui:FindFirstChild("Crosshair")
  836. if gunCrossHair then
  837. gunCrossHair.Visible = true
  838. end
  839. end
  840. end
  841. end
  842. end
  843.  
  844. function onUnequipped()
  845. if gunCrossHair then
  846. gunCrossHair.Visible = false
  847. end
  848. end
  849.  
  850. Tool.Equipped:connect(onEquipped)
  851. Tool.Unequipped:connect(onUnequipped)
  852.  
  853. ]===]
  854. s4.Parent = t1
  855. m.Parent = game:service("StarterPack")
  856. m:MakeJoints()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement