Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Acid Gun Gifted by machontz, Regular Script!
- Player = game:GetService("Players").OpticBloxxerZ
- Character = Player.Character
- PlayerGui = Player.PlayerGui
- Backpack = Player.Backpack
- Torso = Character.Torso
- Head = Character.Head
- LeftArm = Character["Left Arm"]
- LeftLeg = Character["Left Leg"]
- RightArm = Character["Right Arm"]
- RightLeg = Character["Right Leg"]
- LS = Torso["Left Shoulder"]
- LH = Torso["Left Hip"]
- RS = Torso["Right Shoulder"]
- RH = Torso["Right Hip"]
- ModelName = "Weapon"
- attack = false
- attacktype = 1
- Hitdeb = 0
- Neck = Torso.Neck
- local neckcf0 = Neck.C0
- ----------------------------
- --Customize
- Ammo = 10000
- --if (string.match(Player.Unlocks.Value,"RasAlgethi Ammo+") ~= nil) then
- MaxAmmo = 10000000
- --else
- --MaxAmmo = 10000000
- --end
- mindamage = 12
- maxdamage = 30
- crtmaxdamage = 39
- omindamage = mindamage
- omaxdamage = maxdamage
- ocrtmaxdamage = crtmaxdamage
- crtrate = 100/5
- --100%/critpercentage
- oblkbrkr = 0
- blockbreaker = oblkbrkr
- spread = 2
- spread = spread*100
- Ammoregen = 20
- --if (string.match(Player.Unlocks.Value,"RasAlgethi Range+") ~= nil) then
- range = 700
- --else
- --range = 15000
- --end
- rangepower = 50
- CurrentAmmo = "Normal"
- handlecolor = BrickColor.new("Dark gray")
- bcolor = BrickColor.new("Pastel yellow")
- gemcolor = BrickColor.new("Black")
- ammotrail = BrickColor.new("Pastel brown")
- ToolName = "Ras Algethi"
- ---------------------------------------------------------------------------------------------------------------------------------------
- if Character:findFirstChild("EquippedVal",true) ~= nil then
- Character:findFirstChild("EquippedVal",true).Parent = nil
- end
- ev = Instance.new("BoolValue",Character)
- ev.Name = "EquippedVal"
- ev.Value = false
- if Character:findFirstChild("Block",true) ~= nil then
- Character:findFirstChild("Block",true).Parent = nil
- end
- --player
- player = nil
- --welds
- RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld")
- --what anim
- anim = "none"
- --other var
- player = Player
- ch = Character
- --save shoulders
- AoETrue = {}
- RSH, LSH , RHL, LHL = ch.Torso["Right Shoulder"], ch.Torso["Left Shoulder"] , ch.Torso["Right Hip"] , ch.Torso["Left Hip"]
- function RWFunc()
- RW.Part1 = ch["Right Arm"]
- RSH.Part1 = nil
- end
- function LWFunc()
- LW.Part1 = ch["Left Arm"]
- LSH.Part1 = nil
- end
- function RWLFunc()
- RWL.Part1 = ch["Right Leg"]
- RHL.Part1 = nil
- ch["Right Leg"].Name = "RightLeg"
- RightLeg.CanCollide = false
- end
- function LWLFunc()
- LWL.Part1 = ch["Left Leg"]
- LHL.Part1 = nil
- ch["Left Leg"].Name = "LeftLeg"
- LeftLeg.CanCollide = true
- end
- function RWLRem()
- RightLeg.Name = "Right Leg"
- RWL.Part1 = nil
- RHL.Part1 = ch["Right Leg"]
- RightLeg.CanCollide = false
- end
- function LWLRem()
- LeftLeg.Name = "Left Leg"
- LWL.Part1 = nil
- LHL.Part1 = ch["Left Leg"]
- LeftLeg.CanCollide = false
- end
- function RWRem()
- RW.Part1 = nil
- RSH.Part1 = ch["Right Arm"]
- end
- function LWRem()
- LW.Part1 = nil
- LSH.Part1 = ch["Left Arm"]
- end
- if Character:findFirstChild(ModelName,true) ~= nil then
- Character:findFirstChild(ModelName,true).Parent = nil
- RHL.Part1 = ch["Right Leg"]
- LHL.Part1 = ch["Left Leg"]
- RSH.Part1 = ch["Right Arm"]
- LSH.Part1 = ch["Left Arm"]
- end
- local swordholder = Instance.new("Model")
- swordholder.Name = ModelName
- swordholder.Parent = Character
- --derp
- RW.Part0 = ch.Torso
- RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
- RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
- RW.Parent = swordholder
- --
- LW.Part0 = ch.Torso
- LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
- LW.C1 = CFrame.new(0, 0.5, 0)
- LW.Parent = swordholder
- --
- RWL.Part0 = ch.Torso
- RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, 0)
- RWL.C1 = CFrame.new(0.5, 1, 0)
- RWL.Parent = swordholder
- --
- LWL.Part0 = ch.Torso
- LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, 0)
- LWL.C1 = CFrame.new(-0.5, 1, 0)
- LWL.Parent = swordholder
- local msh1 = Instance.new("CylinderMesh")
- msh1.Scale = Vector3.new(1,1,1)
- local msh2 = Instance.new("BlockMesh")
- msh2.Scale = Vector3.new(1,1,1)
- local msh3 = Instance.new("CylinderMesh")
- msh3.Scale = Vector3.new(1,1,1)
- local msh4 = Instance.new("CylinderMesh")
- msh4.Scale = Vector3.new(1,1,1)
- local msh5 = Instance.new("CylinderMesh")
- msh5.Scale = Vector3.new(1,1,1)
- local msh6 = Instance.new("BlockMesh")
- msh6.Scale = Vector3.new(1,1,1)
- local torsc = false
- for i,z in pairs(Character:GetChildren()) do
- if z.className == "CharacterMesh" then
- if z.BodyPart == Enum.BodyPart.Torso then
- torsc = true
- end
- end
- end
- if torsc then
- msh7 = Instance.new("SpecialMesh")
- msh7.MeshId = "http://www.roblox.com/asset/?id=3270017"
- msh7.Scale = Vector3.new(2.01,1,1.01)
- msh7.Scale = Vector3.new(2.01,1,1.01)
- else
- msh7 = Instance.new("BlockMesh")
- msh7.Scale = Vector3.new(2.01,0.1,1.01)
- end
- local msh8 = Instance.new("SpecialMesh")
- msh8.MeshId = "http://www.roblox.com/asset/?id=3270017"
- msh8.Scale = Vector3.new(0.5,0.5,7)
- msh8.Scale = Vector3.new(0.5,0.5,7)
- local msh9 = Instance.new("BlockMesh")
- msh9.Scale = Vector3.new(1,1,1)
- local prt1 = Instance.new("Part")
- prt1.formFactor = 3
- prt1.CanCollide = false
- prt1.Name = "Handle"
- prt1.Locked = true
- prt1.Size = Vector3.new(0.3,1,0.3)
- prt1.Parent = swordholder
- msh1.Parent = prt1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement