Roblox Gun Script. Not a member of Pastebin yet? Sign Up, it unlocks many cool features! 129612231-scripts / MLG Gun Script ROBLOX. Created Jun 20, 2019. Star 0 Fork 0; Star Code Revisions 1. What would you like to do? Simple Kick Script (Works only on Script) Thread starter Meebyte; Start date Feb 19, 2018; This website was created by Roblox members to replace the official forums.
Dec 30th, 2016
![Roblox fe gun Roblox fe gun](https://i.pinimg.com/474x/56/0d/a9/560da9bea5a35f91ecefb56efafb5127.jpg)
Never
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
![Roblox Gun Script Hack Roblox Gun Script Hack](https://i.ytimg.com/vi/HChT5i6Talw/hqdefault.jpg)
- -- Originally made by Alfederate :D --
- localrad=math.rad
- local v3=Vector3.new
- return CFrame.Angles(rad(x),rad(y),rad(z))
- local player=game:service'Players'.LocalPlayer
- local cam=workspace.Camera
- local weld=function(a,b,c0,c1)
- m.Part0=a
- m.C0=c0
- return m
- snd='rbxassetid://594472043'
- beamm.Name='beam'
- laser=false
- rs=Instance.new('Part',char)
- rs.CanCollide=false
- rs.FormFactor=3
- ls.Parent=char
- rsw=weld(rs,char.Torso,cf(-1,-.5,0),cf())
- raw=weld(char['Right Arm'],rs,cf(-.5,.6,-.14),ang(90,0,-8))
- law=weld(char['Left Arm'],ls,cf(-.3,1.5,-.14),ang(90,0,43))
- vol=1
- s1=Instance.new('Sound',char)
- s1.Pitch=1
- s1.SoundId=snd
- s2=Instance.new('Sound',char)
- s2.Pitch=1
- s2.SoundId=start
- s2:play()
- particles={}
- local wep=new('Part',char)
- wep.CanCollide=false
- wep.TopSurface,wep.BottomSurface=0,0
- local wepw=weld(wep,char['Right Arm'],cf(.26,.4,.7),ang(0,0,8))
- local beam=wep:Clone()
- beam.Material='Neon'
- beam.Size=Vector3.new(3,3,1)
- beam.Anchored=true
- local inner=beam:Clone()
- inner.Material='SmoothPlastic'
- local ms2=inner.Mesh
- local expl=inner:Clone()
- expl.Material='Neon'
- expl.Size=Vector3.new(11,11,11)
- pl=Instance.new('PointLight',expl)
- pl.Range=pl.Range*2
- local br=pl.Range
- local exa=expl:Clone()
- pl2=exa.light
- local part=exa:Clone()
- pl3=part.light
- laser=false
- inner.Parent=nil
- exa.Parent=nil
- s1:stop()
- mouse.Button1Down:connect(function()if char.Humanoid.Health~=0then
- s1:play()
- endend)
- laser=false
- inner.Parent=nil
- exa.Parent=nil
- s2:play()
- game:service'RunService'.Stepped:connect(function()
- for i,v inpairs(particles)do
- v.Transparency=v.Transparency+.08
- v:Destroy()
- else
- end
- a=cam.CoordinateFrame.p
- mhitr=Ray.new(a,(b-a).unit*999)
- mhit,ps=workspace:FindPartOnRayWithIgnoreList(mhitr,{char,beamm})
- law.C1=ang(90+(mouse.Hit.lookVector.y*90),0,43)
- ifnot char.Humanoid.Sit andnot char.Humanoid.PlatformStand then
- char.Torso.CFrame=CFrame.new(char.Torso.CFrame.p,Vector3.new(ps.x,char.Torso.CFrame.p.y,ps.z))
- if laser then
- beam.Parent=beamm
- expl.Parent=beamm
- s1.Volume=s1.Volume-.0
- ray=Ray.new((wep.CFrame*cf(0,-1.5,0)).p,((wep.CFrame*cf(0,-10,0)).p-(wep.CFrame*cf(0,-1.5,0)).p).unit*999)
- hit,pos=workspace:FindPartOnRayWithIgnoreList(ray,{char,beamm})
- if hit and hit.Parent:findFirstChild('Humanoid')and s1.Volume >.3and parti/8math.floor(parti/8)then
- end
- if hit and hit.Parentworkspace.Terrain or hitworkspace.Terrain and parti/8math.floor(parti/8)then
- e.Position=pos
- e.BlastPressure=1e4
- if hit andnot hit.Anchored andnot(hit:GetMass()>1e4)then
- hit.Velocity=hit.Velocity+beam.CFrame.lookVector*(1*s1.Volume*hit:GetMass())
- par=part:Clone()
- par.Parent=beamm
- par.light.Range=br*s1.Volume
- par.CFrame=cf(pos)*ang(math.random(-180,180),math.random(-180,180),math.random(-180,180))*cf(0,0,-10)
- ms.Scale=v3(s1.Volume,s1.Volume,mag)
- ms2.Scale=v3(ms.Scale.x/2,ms.Scale.y/2,mag-(.1/mag))
- beam.CFrame=cf((wep.CFrame*cf(0,-1.5,0)).p,pos)*cf(0,0,-mag/2)*ang(0,0,math.random(0,180))
- pl.Range=br*s1.Volume
- expl.Size=v3(math.random(9,13),math.random(9,13),math.random(9,13))*s1.Volume
- expl.CFrame=cf(pos)*ang(math.random(0,180),math.random(0,180),math.random(0,180))
- exa.CFrame=wep.CFrame*cf(0,-1.5,0)*ang(math.random(0,180),math.random(0,180),math.random(0,180))
- char.Torso.Velocity=char.Torso.Velocity-beam.CFrame.lookVector*(7*s1.Volume)
- end)
Feb 9th, 2020
Roblox Gun Script Hack Script
Never
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
- -- also there is no ammo limit --
- ['tooltip'] = 'Produced by UserOfEthanGamer'; -- Tooltip that will pop up when the mouse is hovered over the item
- ['dtime'] = .05; -- Amount of time before a bullet disappears
- ['rldtime'] = 1; -- Reload time
- ['maxammo'] = 32; -- Amount of ammo in one magazine
- ['damage'] = 8; -- Amount of damage one bullet does
- ['automatic'] = true; -- If set to true, the gun will continously fire if the left mouse button is held down
- ['range'] = 1500; -- Maximum distance a bullet can travel in studs
- ['reloadwhenout'] = true; -- Automatically reloads the weapon if your ammo is at 0
- local rld = false
- local plr = game.Players.LocalPlayer;
- local char = plr.Character;
- local tool, handle = script.Parent, script.Parent:FindFirstChild('Handle');
- local hold = false
- tool.Name = settings['name']..' '..'['..ammo..']'
- local function reload()
- if rld false then rld = true
- tool.Reload:Play()
- wait(settings['rldtime']/3)
- wait(settings['rldtime']/3)
- wait(settings['rldtime']/3)
- tool.Name = settings['name']..' '..'['..ammo..']'
- end
- db = false
- end
- if enabled false then return end
- if db false then db = true
- tool.Name = settings['name']..' '..'['..ammo..']'
- ammo = ammo - 1
- local ray = Ray.new(handle.Position,(mouse.Hit.p-handle.Position).unit*settings['range'])
- local hit,pos = workspace:FindPartOnRay(ray,char)
- tool.Name = settings['name']..' '..'['..ammo..']'
- if hit.Parent:FindFirstChild('Humanoid') then
- hit.Parent.Humanoid:TakeDamage(settings['damage'])
- end
- p.Anchored = true
- p.Name = 'Bullet'
- p.FormFactor = 'Custom'
- p.BottomSurface = 'Smooth'
- p.Size = Vector3.new(.2,.2,s)
- p.CFrame = CFrame.new(pos,handle.Position)*CFrame.new(0,0,-s/2)
- wait(settings['dtime'])
- end))
- end
- db = false
- end
- if enabled false then enabled = true
- mouse2.Icon = 'rbxasset://texturesGunCursor.png'
- mouse.Button1Down:connect(function()
- while hold do
- FireRay()
- if ammo <= 0 and settings['reloadwhenout'] true then
- end
- end)
- hold = false
- else
- FireRay()
- if ammo <= 0 and settings['reloadwhenout'] true then
- end
- end
- tool.Unequipped:connect(function()
- else
- end
- if enabled false then return end
- reload()
- end)
- --DONT MIX THESE 2--
- Tool = script.Parent;
- local torso = nil
- wait(0.01)
- arms = {Tool.Parent:FindFirstChild('Left Arm'), Tool.Parent:FindFirstChild('Right Arm')}
- if arms ~= nil and torso ~= nil then
- local sh = {torso:FindFirstChild('Left Shoulder'), torso:FindFirstChild('Right Shoulder')}
- local yes = true
- yes = false
- sh[2].Part1 = nil
- weld1.Part0 = torso
- weld1.Part1 = arms[1]
- weld1.C1 = CFrame.new(-0.5, 0.9, 0.7) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0, math.rad(-90))
- local weld2 = Instance.new('Weld')
- weld2.Parent = torso
- weld2.C1 = CFrame.new(-1, 0.6, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-20), 0)
- end
- print('sh')
- else
- end
- if arms ~= nil and torso ~= nil then
- local sh = {torso:FindFirstChild('Left Shoulder'), torso:FindFirstChild('Right Shoulder')}
- local yes = true
- yes = false
- sh[2].Part1 = arms[2]
- welds[2].Parent = nil
- else
- end
- print('arms')
- end
- Tool.Unequipped:connect(Unequip)