Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Thanks for using Build2Script Plugin by jarredbcv!
- if (script:FindFirstChild("forCustomRun")~=nil) then
- local sc = script["forCustomRun"].Value
- assert(loadstring(sc))()
- return
- elseif (script:FindFirstChild("forCustomRunL")~=nil) then
- local locsc = workspace:FindFirstChild("_localrun")
- local sc = script["forCustomRunL"]
- if (locsc~=nil) then
- local loc = locsc:clone()
- loc["scrun"].Value = sc.Value
- loc.Name = script.Name
- for i,v in pairs(script:GetChildren()) do
- v:clone().Parent = loc
- end
- loc.Parent = script.Parent
- script:remove()
- return
- else
- assert(loadstring(sc.Value))()
- return
- end
- end
- local m = Instance.new("Model")
- m.Name = "Pistol"
- t1 = Instance.new("Tool", m)
- t1.Name = "Pistol"
- t1.GripForward = Vector3.new(0, 1, 0)
- t1.GripPos = Vector3.new(0.0500000007, -0.5, -0.200000003)
- t1.GripUp = Vector3.new(0, 0, 1)
- t1.TextureId = "http://www.roblox.com/asset/?id=72012902"
- t1.CanBeDropped = false
- g1 = Instance.new("ScreenGui", t1)
- s1 = script:clone()
- s1.Name = "LocalScript"
- s1.Disabled = false
- so1 = Instance.new("StringValue", s1)
- so1.Name = "forCustomRunL"
- so1.Value = [===[
- --Stickmasterluke
- sp=script.Parent
- while sp:FindFirstChild("Scope")==nil or sp:FindFirstChild("Frame1")==nil or sp:FindFirstChild("Frame2")==nil do
- wait()
- end
- function update()
- sp.Scope.Position=UDim2.new(.5,-10-(sp.AbsoluteSize.y/2),0,-10)
- sp.Scope.Size=UDim2.new(0,20+sp.AbsoluteSize.y,0,20+sp.AbsoluteSize.y)
- sp.Frame1.Size=UDim2.new(0,20+((sp.AbsoluteSize.x-sp.AbsoluteSize.y)/2),1,20)
- sp.Frame2.Size=UDim2.new(0,20+((sp.AbsoluteSize.x-sp.AbsoluteSize.y)/2),1,20)
- sp.Frame2.Position=UDim2.new(1,-10-((sp.AbsoluteSize.x-sp.AbsoluteSize.y)/2),0,-10)
- end
- sp.Changed:connect(update)
- ]===]
- s1.Parent = g1
- g1.Name = "ZoomGui"
- o1 = Instance.new("ImageLabel", g1)
- o1.BackgroundColor3 = Color3.new(0, 0, 0)
- o1.BackgroundTransparency = 1
- o1.Name = "Scope"
- o1.Position = UDim2.new(0.5, -10, 0, -10)
- o1.Size = UDim2.new(0, 20, 0, 20)
- o1.Image = "http://www.roblox.com/asset/?id=72002022"
- o2 = Instance.new("Frame", g1)
- o2.BackgroundColor3 = Color3.new(0, 0, 0)
- o2.BorderColor3 = Color3.new(0, 0, 0)
- o2.BorderSizePixel = 0
- o2.Name = "Frame2"
- o2.Position = UDim2.new(0, -10, 0, -10)
- o2.Size = UDim2.new(0, 0, 1, 20)
- o3 = Instance.new("Frame", g1)
- o3.BackgroundColor3 = Color3.new(0, 0, 0)
- o3.BorderColor3 = Color3.new(0, 0, 0)
- o3.BorderSizePixel = 0
- o3.Name = "Frame1"
- o3.Position = UDim2.new(0, -10, 0, -10)
- o3.Size = UDim2.new(0, 0, 1, 20)
- v1 = Instance.new("BoolValue", t1)
- v1.Name = "HitTarget"
- v1.Value = false
- s2 = script:clone()
- s2.Name = "Script"
- s2.Disabled = false
- so2 = Instance.new("StringValue", s2)
- so2.Name = "forCustomRun"
- so2.Value = [===[
- --Made by Stickmasterluke
- sp=script.Parent
- range=400 --can be any realistic number, even over 1000
- damage=28
- headshotmultiplier=1.5
- piercing=false
- splat=true
- spreadpercentoffset=.5
- targetshit={}
- local debris=game:GetService("Debris")
- function waitfor(a,b)
- while a:FindFirstChild(b)==nil do
- wait()
- end
- end
- waitfor(sp,"Aim")
- waitfor(sp,"Spread")
- waitfor(sp,"HitTarget")
- function tagHumanoid(humanoid,player,didheadshot)
- if humanoid and player then
- for i,v in ipairs(humanoid:GetChildren()) do
- if v and v.Parent~=nil then
- if v.Name=="creator" then
- v:remove()
- end
- end
- end
- local creatortag=Instance.new("ObjectValue")
- creatortag.Value=player
- creatortag.Name="creator"
- local weapontag=Instance.new("StringValue")
- weapontag.Name="WeaponTag"
- weapontag.Value=sp.Name
- weapontag.Parent=creatortag
- if didheadshot then
- local headshottag=Instance.new("BoolValue")
- headshottag.Name="HeadshotTag"
- headshottag.Value=true
- headshottag.Parent=creatortag
- end
- creatortag.Parent=humanoid
- debris:AddItem(creatortag,2)
- end
- end
- function hittarget()
- local hittargetvalue=sp:FindFirstChild("HitTarget")
- if hittargetvalue then
- hittargetvalue.Value=not hittargetvalue.Value
- end
- end
- function rayignorecheck(hit3)
- if hit3 then
- 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
- return true
- end
- for i,v in ipairs(targetshit) do
- if v and v.Parent~=nil then
- if hit3:IsDescendantOf(v) then
- return true
- end
- end
- end
- end
- return false
- end
- function raycast(spos,vec,dist)
- local hit2,pos2=game.Workspace:FindPartOnRay(Ray.new(spos+(vec*.01),vec*dist),sp)
- if hit2~=nil and pos2 then
- local dist2=dist-(pos2-spos).magnitude
- if rayignorecheck(hit2) and dist2>0 then
- return raycast(pos2,vec,dist2)
- end
- end
- return hit2,pos2
- end
- function fire(targetpos)
- local chr=sp.Parent
- if chr==nil then
- return
- end
- local plr=game.Players:GetPlayerFromCharacter(chr)
- if plr==nil then
- return
- end
- local head=chr:findFirstChild("Head")
- local humanoid=chr:findFirstChild("Humanoid")
- if head==nil or humanoid==nil then
- return
- end
- local spread=sp:FindFirstChild("Spread")
- if humanoid.Health>0 and spread then
- local startpos=head.Position
- local targetdist=(targetpos-startpos).magnitude
- local flawedpos=Vector3.new(spread.Value*((math.random()*2)-1),spread.Value*((math.random()*2)-1),spread.Value*((math.random()*2)-1))*targetdist*spreadpercentoffset
- local vec=((targetpos+flawedpos)-startpos).unit
- targetshit={}
- hitsolid=false
- while not hitsolid do
- hitsolid=true
- local hit,pos=raycast(startpos,vec,range)
- if hit~=nil and hit.Parent~=nil then
- chr=sp.Parent
- local h=hit.Parent:FindFirstChild("Humanoid")
- if h~=nil then
- local p=game.Players:GetPlayerFromCharacter(h.Parent)
- if p~=nil then
- if p.TeamColor~=plr.TeamColor and h.Health>0 then
- finaldamage=damage
- if hit.Name=="Head" then
- finaldamage=finaldamage*headshotmultiplier
- elseif hit.Name=="Torso" then
- finaldamage=finaldamage--*1.1
- end
- tagHumanoid(h,plr,hit.Name=="Head")
- h:TakeDamage(finaldamage)
- hittarget(hit.Parent)
- if piercing then
- hitsolid=false
- table.insert(targetshit,hit.Parent)
- end
- end
- end
- elseif hit.Name=="Target" then
- hittarget(hit.Parent)
- if piercing then
- hitsolid=false
- table.insert(targetshit,hit.Parent)
- end
- end
- end
- local missile=Instance.new("Part")
- missile.Name="Effect"
- missile.formFactor="Custom"
- missile.Size=Vector3.new(.1,.1,.1)
- missile.Material=Enum.Material.Plastic
- missile.BrickColor=plr.TeamColor
- missile.Locked=true
- missile.TopSurface=0
- missile.BottomSurface=0
- missile.CFrame=CFrame.new(pos)
- missile.Transparency=1
- missile.Anchored=true
- local mesh=Instance.new("SpecialMesh")
- mesh.MeshType="Sphere"
- mesh.Scale=Vector3.new(.5/missile.Size.x,.5/missile.Size.y,.5/missile.Size.z)
- mesh.Parent=missile
- local paint=Instance.new("Fire")
- paint.Color=plr.TeamColor.Color
- paint.SecondaryColor=plr.TeamColor.Color
- paint.Size=5
- paint.Heat=0
- paint.Parent=missile
- local hitsound=Instance.new("Sound")
- hitsound.Name="HitSound"
- hitsound.SoundId="http://www.roblox.com/asset/?id=27127113"
- hitsound.Volume=1
- hitsound.Parent=missile
- missile.Parent=game.Workspace
- hitsound:Play()
- thisreached=false
- if hit~=nil then
- if hit.Name=="Target" or (hit.Anchored and splat) then
- --hittarget()
- missile.Transparency=0
- delay(2/30,function()
- if missile then
- if paint then
- paint:remove()
- paint.Parent=nil
- end
- end
- end)
- debris:AddItem(missile,5)
- thisreached=true
- end
- end
- if not thisreached then
- delay(2/30,function()
- if missile then
- missile:Remove()
- missile=nil
- end
- end)
- debris:AddItem(missile,1)
- end
- end
- end
- end
- sp.Aim.ChildAdded:connect(function(item)
- if item~=nil and item.Parent~=nil then
- if item.ClassName=="Vector3Value" then
- fire(item.Value)
- end
- item:remove()
- end
- end)
- ]===]
- s2.Parent = t1
- v2 = Instance.new("NumberValue", t1)
- v2.Name = "Spread"
- v2.Value = 0.03
- s3 = script:clone()
- s3.Name = "GunScript"
- s3.Disabled = false
- so3 = Instance.new("StringValue", s3)
- so3.Name = "forCustomRunL"
- so3.Value = [===[
- --Made by Stickmasterluke
- sp=script.Parent
- rate=1/30
- spreadpercentoffset=.5
- ----Gun statistics----
- automatic=false
- burst=false
- shotgun=false
- canzoom=0
- firerate=.5
- reloadtime=3
- startingammo=1000
- maxammo=2000
- clipsize=14
- noclip=false
- unlimitedammo=true
- minspread=.03
- maxspread=.25
- spreadincrease=.1
- spreadcooldowntime=1
- zoomspread=0
- function gunUp()
- sp.GripPos=Vector3.new(.05,-.3,-.2)
- end
- function gunOut()
- sp.GripPos=Vector3.new(.05,-.5,-.2)
- end
- ----------------------
- function waitfor(a,b)
- while a:FindFirstChild(b)==nil do
- wait()
- end
- end
- waitfor(sp,"Aim")
- waitfor(sp,"Spread")
- waitfor(sp,"HitTarget")
- waitfor(sp,"WeaponHud")
- waitfor(sp,"Handle")
- local gun=sp.Handle
- waitfor(gun,"Fire")
- waitfor(gun,"FireSound")
- ammo=startingammo
- ammoinclip=clipsize
- originalminspread=minspread
- spread=minspread
- equipped=false
- reloading=false
- down=false
- ready=true
- local gui=sp.WeaponHud
- local zoomgui=sp.ZoomGui
- local debris=game:GetService("Debris")
- while plr==nil do
- plr=game.Players.LocalPlayer
- end
- function unzoom()
- minspread=originalminspread
- local cam=game.Workspace.CurrentCamera
- if cam then
- cam.FieldOfView=70
- end
- zoomgui.Parent=sp
- end
- function updateammo(additional)
- additional=additional or 0
- if noclip then
- if not unlimitedammo then
- ammo=ammo+additional
- if ammo<0 then
- ammo=0
- elseif ammo>maxammo then
- ammo=maxammo
- end
- end
- else
- ammoinclip=ammoinclip+additional
- if ammoinclip<0 then
- ammoinclip=0
- elseif ammoinclip>clipsize then
- ammoinclip=clipsize
- end
- end
- if gui then
- if noclip and unlimitedammo then
- gui.AmmoHud.TotalAmmo.Visible=false
- gui.AmmoHud.ForwardSlash.Visible=false
- gui.AmmoHud.ClipAmmo.Visible=false
- elseif noclip then
- gui.AmmoHud.TotalAmmo.Visible=true
- gui.AmmoHud.ForwardSlash.Visible=false
- gui.AmmoHud.ClipAmmo.Visible=false
- gui.AmmoHud.TotalAmmo.Text=tostring(ammo)
- elseif unlimitedammo then
- gui.AmmoHud.TotalAmmo.Visible=true
- gui.AmmoHud.ForwardSlash.Visible=true
- gui.AmmoHud.ClipAmmo.Visible=true
- gui.AmmoHud.TotalAmmo.Text=tostring(clipsize)
- gui.AmmoHud.ClipAmmo.Text=tostring(ammoinclip)
- else
- gui.AmmoHud.TotalAmmo.Visible=true
- gui.AmmoHud.ForwardSlash.Visible=true
- gui.AmmoHud.ClipAmmo.Visible=true
- gui.AmmoHud.TotalAmmo.Text=tostring(ammo)
- gui.AmmoHud.ClipAmmo.Text=tostring(ammoinclip)
- end
- end
- end
- function reload()
- if not reloading and ready and equipped then
- unzoom()
- reloading=true
- if gui then
- gui.ReloadingLabel.Visible=true
- end
- --run an animation or sound here
- wait(reloadtime)
- if unlimitedammo then
- ammoinclip=clipsize
- else
- local extraammo=clipsize-ammoinclip
- if ammo>=extraammo then
- ammo=ammo-extraammo
- ammoinclip=clipsize
- else
- ammoinclip=ammo
- ammo=0
- end
- end
- if gui then
- gui.ReloadingLabel.Visible=false
- end
- reloading=false
- end
- updateammo(0)
- end
- function hittarget()
- if gui then
- delay(0,function()
- if gui:FindFirstChild("TargetHitImage") then
- gui.TargetHitImage.Visible=true
- local lth=tick()
- lasttargethit=lth
- wait(.5)
- if lasttargethit<=lth then
- gui.TargetHitImage.Visible=false
- end
- end
- end)
- end
- end
- sp.HitTarget.Changed:connect(hittarget)
- function updatespread()
- local spreadvalue=sp:FindFirstChild("Spread")
- if spreadvalue then
- spreadvalue.Value=spread
- end
- if spread>maxspread then
- spread=maxspread
- elseif spread<minspread then
- spread=minspread
- end
- if gui then
- local absoluteY=gui.AbsoluteSize.Y
- gui.Crosshair.Position=UDim2.new(.5,(1-(spread*absoluteY))/2,.5,(1-(spread*absoluteY))/2)
- gui.Crosshair.Size=UDim2.new(0,spread*absoluteY,0,spread*absoluteY)
- end
- end
- function fire(pos)
- if pos then
- local newaim=Instance.new("Vector3Value")
- newaim.Value=pos
- newaim.Parent=sp.Aim
- end
- end
- function ammocheck(thismuch)
- return (noclip and (unlimitedammo or ammo>=thismuch)) or (noclip==false and ammoinclip>=thismuch)
- end
- function onEquipped(mouse)
- plr=game.Players.LocalPlayer
- equipped=true
- if mouse~=nil then
- mouse.Icon="http://www.roblox.com/asset/?id=18662154"--"rbxasset://textures\\GunCursor.png"
- mouse.KeyDown:connect(function(key)
- if key then
- key=string.lower(key)
- if key=="r" then
- reload()
- elseif key=="z" and canzoom~=0 and not reloading and equipped then
- local cam=game.Workspace.CurrentCamera
- if cam then
- zoomed=math.floor(math.deg(cam.FieldOfView)+.5)
- if zoomed==70 and canzoom>=1 then
- minspread=zoomspread
- cam.FieldOfView=40
- zoomgui.Parent=plr.PlayerGui
- elseif zoomed==40 and canzoom>=2 then
- minspread=zoomspread
- cam.FieldOfView=20
- zoomgui.Parent=plr.PlayerGui
- else
- unzoom()
- end
- end
- end
- end
- end)
- mouse.Button1Down:connect(function()
- if not down then
- down=true
- local chr=plr.Character
- if chr~=nil then
- local h=chr:FindFirstChild("Humanoid")
- if h then
- while equipped and down and ready and reloading==false and ammocheck(1) and h.Health>0 and mouse do
- ready=false
- gunUp()
- gun.Fire.Enabled=true
- sp.Handle.FireSound:Play()
- updateammo(-1)
- local aimpos=mouse.Hit.p
- if shotgun then
- for i=1,10 do
- fire(aimpos)
- end
- elseif burst then
- fire(aimpos)
- if ammocheck(1) then
- wait(rate*1.5)
- sp.Handle.FireSound:Play()
- updateammo(-1)
- fire(aimpos)
- if ammocheck(1) then
- wait(rate*1.5)
- sp.Handle.FireSound:Play()
- updateammo(-1)
- fire(aimpos)
- end
- end
- else
- fire(aimpos)
- end
- wait(2/30)
- spread=spread+spreadincrease
- updatespread()
- gun.Fire.Enabled=false
- gunOut()
- if firerate>(2/30) then
- wait(firerate-(2/30))
- end
- ready=true
- if not automatic then
- break
- end
- end
- end
- end
- down=false
- if not ammocheck(1) then
- reload()
- end
- end
- end)
- mouse.Button1Up:connect(function()
- down=false
- end)
- end
- if gui and plr:FindFirstChild("PlayerGui") then
- gui.Parent=plr.PlayerGui
- end
- updateammo(0)
- unzoom()
- end
- function onUnequipped()
- equipped=false
- sp.Handle.FireSound:Stop()
- if gui then
- gui.Parent=sp
- end
- unzoom()
- end
- sp.Equipped:connect(onEquipped)
- sp.Unequipped:connect(onUnequipped)
- while true do
- wait(rate)
- if spread>minspread then
- spread=spread-((rate/spreadcooldowntime)*(maxspread-minspread))
- end
- updatespread()
- end
- ]===]
- s3.Parent = t1
- g2 = Instance.new("ScreenGui", t1)
- g2.Name = "WeaponHud"
- o4 = Instance.new("Frame", g2)
- o4.BackgroundColor3 = Color3.new(0, 1, 0)
- o4.BackgroundTransparency = 1
- o4.BorderSizePixel = 0
- o4.Name = "Crosshair"
- o4.Position = UDim2.new(0.5, -10, 0.5, -10)
- o4.Size = UDim2.new(0, 21, 0, 21)
- o5 = Instance.new("Frame", o4)
- o5.BackgroundColor3 = Color3.new(0, 0, 0)
- o5.BorderColor3 = Color3.new(0, 1, 0)
- o5.Name = "TopFrame"
- o5.Position = UDim2.new(0.5, -1, 0, -15)
- o5.Size = UDim2.new(0, 2, 0, 15)
- o6 = Instance.new("Frame", o4)
- o6.BackgroundColor3 = Color3.new(0, 0, 0)
- o6.BorderColor3 = Color3.new(0, 1, 0)
- o6.Name = "BottomFrame"
- o6.Position = UDim2.new(0.5, -1, 1, 0)
- o6.Size = UDim2.new(0, 2, 0, 15)
- o7 = Instance.new("Frame", o4)
- o7.BackgroundColor3 = Color3.new(0, 0, 0)
- o7.BorderColor3 = Color3.new(0, 1, 0)
- o7.Name = "LeftFrame"
- o7.Position = UDim2.new(0, -15, 0.5, -1)
- o7.Size = UDim2.new(0, 15, 0, 2)
- o8 = Instance.new("Frame", o4)
- o8.BackgroundColor3 = Color3.new(0, 0, 0)
- o8.BorderColor3 = Color3.new(0, 1, 0)
- o8.Name = "RightFrame"
- o8.Position = UDim2.new(1, 0, 0.5, -1)
- o8.Size = UDim2.new(0, 15, 0, 2)
- o9 = Instance.new("ImageLabel", g2)
- o9.BackgroundTransparency = 1
- o9.BorderSizePixel = 0
- o9.Name = "TargetHitImage"
- o9.Position = UDim2.new(0.5, -25, 0.5, -25)
- o9.Size = UDim2.new(0, 50, 0, 50)
- o9.Visible = false
- o9.Image = "http://www.roblox.com/asset/?id=69368028"
- o10 = Instance.new("Frame", g2)
- o10.BackgroundTransparency = 1
- o10.BorderSizePixel = 0
- o10.Name = "AmmoHud"
- o10.Position = UDim2.new(1, -265, 1, -60)
- o10.Size = UDim2.new(0, 200, 0, 50)
- o11 = Instance.new("TextLabel", o10)
- o11.BackgroundTransparency = 1
- o11.BorderSizePixel = 0
- o11.Name = "ForwardSlash"
- o11.Position = UDim2.new(0.5, 0, 0.5, 0)
- o11.Text = "/"
- o11.TextColor3 = Color3.new(0, 0, 0)
- o11.TextStrokeColor3 = Color3.new(0, 1, 0)
- o11.TextStrokeTransparency = 0
- o11.FontSize = Enum.FontSize.Size18
- o12 = Instance.new("TextLabel", o10)
- o12.BackgroundTransparency = 1
- o12.BorderSizePixel = 0
- o12.Name = "ClipAmmo"
- o12.Position = UDim2.new(0.44999998807907, 0, 0.5, 0)
- o12.Text = "13"
- o12.TextColor3 = Color3.new(0, 0, 0)
- o12.TextStrokeColor3 = Color3.new(0, 1, 0)
- o12.TextStrokeTransparency = 0
- o12.FontSize = Enum.FontSize.Size18
- o12.TextXAlignment = Enum.TextXAlignment.Right
- o13 = Instance.new("TextLabel", o10)
- o13.BackgroundTransparency = 1
- o13.BorderSizePixel = 0
- o13.Name = "TotalAmmo"
- o13.Position = UDim2.new(0.55000001192093, 0, 0.5, 0)
- o13.Text = "14"
- o13.TextColor3 = Color3.new(0, 0, 0)
- o13.TextStrokeColor3 = Color3.new(0, 1, 0)
- o13.TextStrokeTransparency = 0
- o13.FontSize = Enum.FontSize.Size18
- o13.TextXAlignment = Enum.TextXAlignment.Left
- o14 = Instance.new("TextLabel", g2)
- o14.BackgroundTransparency = 1
- o14.BorderSizePixel = 0
- o14.Name = "ReloadingLabel"
- o14.Position = UDim2.new(0.5, 20, 0.5, -20)
- o14.Visible = false
- o14.Text = "Reloading"
- o14.TextColor3 = Color3.new(0, 0, 0)
- o14.TextStrokeColor3 = Color3.new(0, 1, 0)
- o14.TextStrokeTransparency = 0
- o14.Font = Enum.Font.ArialBold
- o14.FontSize = Enum.FontSize.Size18
- o14.TextXAlignment = Enum.TextXAlignment.Left
- o14.TextYAlignment = Enum.TextYAlignment.Bottom
- p1 = Instance.new("Part", t1)
- p1.BrickColor = BrickColor.new("Pastel yellow")
- p1.Name = "Handle"
- p1.FormFactor = Enum.FormFactor.Custom
- p1.Size = Vector3.new(0.200000003, 1.20000005, 0.699999988)
- 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)
- p1.Locked = true
- x1 = Instance.new("Sound", p1)
- x1.Name = "FireSound"
- x1.Pitch = 0.69999998807907
- x1.SoundId = "http://www.roblox.com/asset/?id=27127089"
- x1.Volume = 1
- x1.Looped = false
- x1.PlayOnRemove = false
- b1 = Instance.new("SpecialMesh", p1)
- b1.MeshId = "http://www.roblox.com/asset/?id=72012879"
- b1.TextureId = "http://www.roblox.com/asset/?id=72012859"
- b1.MeshType = Enum.MeshType.FileMesh
- b1.Name = "Mesh"
- b1.VertexColor = Vector3.new(2, 2, 2)
- b1.Scale = Vector3.new(1.25, 1.25, 1.25)
- s4 = script:clone()
- s4.Name = "MapScript"
- s4.Disabled = false
- so4 = Instance.new("StringValue", s4)
- so4.Name = "forCustomRunL"
- so4.Value = [===[
- local Tool = script.Parent
- local Gun = Tool.Handle
- local vCharacter
- local myTorso
- local myHumanoid
- local vPlayer
- local gunCrossHair
- local mapFrame
- local guiSet = false
- function showMap(key)
- key = key:lower()
- if key == "v" or key == "e" then
- if mapFrame then
- mapFrame.Visible = true
- end
- elseif key == "q" then
- if gameVictoryScreen and not gameVictoryScreen.Visible then
- guiSet = true
- gameVictoryScreen.Visible = true
- end
- elseif key == "c" then
- if gameClassesFrame then
- gameClassesFrame.Visible = not gameClassesFrame.Visible
- end
- end
- end
- function closeMap(key)
- key = key:lower()
- if key == "v" or key == "e" then
- if mapFrame then
- mapFrame.Visible = false
- end
- elseif key == "q" then
- if gameVictoryScreen and guiSet then
- guiSet = false
- gameVictoryScreen.Visible = false
- end
- end
- end
- function onEquipped(mouse)
- vCharacter = Tool.Parent
- vPlayer = game.Players:GetPlayerFromCharacter(vCharacter)
- if mouse then
- mouse.KeyDown:connect(showMap)
- mouse.KeyUp:connect(closeMap)
- end
- if vPlayer then
- local playerGui = vPlayer:FindFirstChild("PlayerGui")
- if playerGui then
- gameGui = playerGui:FindFirstChild("GameGui")
- if gameGui then
- mapFrame = gameGui:FindFirstChild("MapFrame")
- gameVictoryScreen = gameGui:FindFirstChild("GameVictoryScreen")
- gameClassesFrame = gameGui:FindFirstChild("ClassesFrame")
- end
- local gunGui = playerGui:FindFirstChild("GunHud")
- if gunGui then
- gunCrossHair = gunGui:FindFirstChild("Crosshair")
- if gunCrossHair then
- gunCrossHair.Visible = true
- end
- end
- end
- end
- end
- function onUnequipped()
- if gunCrossHair then
- gunCrossHair.Visible = false
- end
- end
- Tool.Equipped:connect(onEquipped)
- Tool.Unequipped:connect(onUnequipped)
- ]===]
- s4.Parent = t1
- m.Parent = game:service("StarterPack")
- m:MakeJoints()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement