Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- unganda Force
- --[[
- Uganda Force
- By: KYLETHORNTON
- --]]
- local p = game.Players.LocalPlayer.Character
- local weld = Instance.new("Weld",p.Head)
- weld.Part0 = p.Head
- local train = Instance.new("Part",p.Head)
- train.Name = "Head2"
- train.Orientation = Vector3.new(0, -100, 0)
- train.Anchored = true
- train.CanCollide = false
- train.Size = Vector3.new(1,1,1)
- train.BrickColor = BrickColor.new("Institutional white")
- train.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
- weld.Part1 = train
- weld.C1 = CFrame.new(0,-0.1,0.04) * CFrame.Angles(0,math.rad(-360),0)
- train.Anchored = false
- local TrainMesh = Instance.new("SpecialMesh",train)
- TrainMesh.MeshType = Enum.MeshType.FileMesh
- TrainMesh.Scale = Vector3.new(0.032, 0.031, 0.032)
- TrainMesh.MeshId = "rbxassetid://1446084994"
- TrainMesh.TextureId = ""
- --[[hair]]------------------------------------------------
- local weld2 = Instance.new("Weld",p.Head)
- weld2.Part0 = p.Head
- local Knuckles = Instance.new("Part",p.Head)
- Knuckles.Orientation = Vector3.new(0, -100, 0)
- Knuckles.Anchored = false
- Knuckles.BrickColor = BrickColor.new("Really black")
- Knuckles.Rotation = Vector3.new(-90, -75, -90)
- Knuckles.Orientation = Vector3.new(-15, -90, 0)
- Knuckles.CanCollide = false
- Knuckles.Size = Vector3.new(1,1,1)
- Knuckles.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
- weld2.Part1 = Knuckles
- weld2.C1 = CFrame.new(0,0.06,0.000001)-- * CFrame.Angles(0,math.rad(180),0)
- Knuckles.Anchored = false
- local KnucklesMesh = Instance.new("SpecialMesh",Knuckles)
- KnucklesMesh.MeshType = Enum.MeshType.FileMesh
- KnucklesMesh.Scale = Vector3.new(0.02, 0.02, 0.02)
- KnucklesMesh.MeshId = "rbxassetid://1446083485"
- KnucklesMesh.TextureId = ""
- ---------------------------------------------------------------------------
- local Particle = Instance.new("ParticleEmitter",Smoke)
- Particle.Rate = 50;
- Particle.Speed = NumberRange.new(30,60);
- Particle.VelocitySpread = 4;
- Particle.Texture = "rbxassetid://0"
- local Light = Instance.new("SpotLight",train)
- Light.Angle = 45;
- Light.Brightness = 0;
- Light.Face = Enum.NormalId.Back;
- Light.Range = 30;
- p.Humanoid.WalkSpeed = 16;
- local function SFX(id) local s=Instance.new("Sound",p.Torso); s.SoundId = "rbxassetid://"..id; s.Volume = 1; return s; end
- train.Touched:connect(function(p)
- if p.Parent then
- if p.Parent:IsA("Model") then
- if game.Players:FindFirstChild(p.Parent.Name) then
- if p.Parent.Name ~= game.Players.LocalPlayer.Name then
- local Whistle = SFX(0)
- Whistle:Play()
- end
- end
- end
- end
- end)
- local Music = SFX(0)
- Music.Looped = true;
- wait(0)
- Music:Play();
- -- ~CL 2016
- wait(0.1)
- local Player = game.Players.localPlayer
- local Character = Player.Character
- local Humanoid = Character.Humanoid
- local Mouse = Player:GetMouse()
- local LeftArm = Character["Left Arm"]
- local RightArm = Character["Right Arm"]
- local LeftLeg = Character["Left Leg"]
- local RightLeg = Character["Right Leg"]
- local Head = Character.Head
- local Torso = Character.Torso
- local Camera = game.Workspace.CurrentCamera
- local RootPart = Character.HumanoidRootPart
- local RootJoint = RootPart.RootJoint
- local attack = false
- local Anim = 'Idle'
- local attacktype = 1
- local delays = false
- local play = true
- local targetted = nil
- local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- local velocity = RootPart.Velocity.y
- local sine = 0
- local change = 1
- local doe = 0
- local Create = LoadLibrary("RbxUtility").Create
- Humanoid.WalkSpeed = 16
- local Orin = "rbxassetid://0"
- Head.face.Texture = Orin
- local Orin = "1"
- Head.Transparency = Orin
- spawn(function()
- while wait() do
- end
- end)
- for i,v in pairs(Character:children()) do
- if v:IsA("Hat") then
- v:Destroy()
- end
- end
- for i,v in pairs(Character:children()) do
- if v:IsA("Accessory") then
- v:Destroy()
- end
- end
- for i,v in pairs(Character:children()) do
- if v:IsA("Hair") then
- v:Destroy()
- end
- end
- for i,v in pairs(Character:children()) do
- if v:IsA("Shirt") then
- v:Destroy()
- end
- end
- for i,v in pairs(Character:children()) do
- if v:IsA("Pants") then
- v:Destroy()
- end
- end
- for i,v in pairs(Character:children()) do
- if v:IsA("Graphic Shirt") then
- v:Destroy()
- end
- end
- wait(0.1)
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- ForceField0 = Instance.new("ForceField")
- ForceField1 = Instance.new("ForceField")
- ForceField2 = Instance.new("ForceField")
- ForceField3 = Instance.new("ForceField")
- ForceField0.Parent = mas
- ForceField0.Visible = false
- ForceField1.Parent = mas
- ForceField1.Visible = false
- ForceField2.Parent = mas
- ForceField2.Visible = false
- ForceField3.Parent = mas
- ForceField3.Visible = false
- Script0 = Instance.new("Script")
- Sound1 = Instance.new("Sound")
- Sound2 = Instance.new("Sound")
- Sound3 = Instance.new("Sound")
- Sound4 = Instance.new("Sound")
- Sound5 = Instance.new("Sound")
- Script0.Name = "sound's"
- Script0.Parent = mas
- table.insert(cors,sandbox(Script0,function()
- --Uganda sound--
- function onKeyPress(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.F10 then
- script.Sound:Play()
- end
- end
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
- function onKeyPress(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.F1 then
- script.Sound2:Play()
- end
- end
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
- function onKeyPress(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.F1 then
- script.Sound3:Play()
- end
- end
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
- function onKeyPress(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.F1 then
- script.Sound4:Play()
- end
- end
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
- function onKeyPress(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.F1 then
- script.Sound5:Play()
- end
- end
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
- end))
- Sound1.Parent = Script0
- Sound1.SoundId = "rbxassetid://360299249"
- Sound1.Volume = 10
- Sound2.Name = "Sound2"
- Sound2.Parent = Script0
- Sound2.SoundId = "rbxassetid://1295525558"
- Sound2.Volume = 10
- Sound3.Name = "Sound3"
- Sound3.Parent = Script0
- Sound3.SoundId = "rbxassetid://1322795266"
- Sound3.Volume = 10
- Sound4.Name = "Sound4"
- Sound4.Parent = Script0
- Sound4.SoundId = "rbxassetid://1311432465"
- Sound4.Volume = 10
- Sound5.Name = "Sound5"
- Sound5.Parent = Script0
- Sound5.SoundId = "rbxassetid://1316278479"
- Sound5.Volume = 10
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Character
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- wait(0.1)
- local char = Player.Character
- local Character = Player.Character
- local Head = Character.Head
- local done = false
- local canheal = false
- local deathchat1 = false
- local once = true
- local dead = false
- local candie = true
- local deathchat = false
- local idleon = true
- local idle1 = true
- local idle = true
- for i, v in pairs(game:GetService("Players").LocalPlayer.Character:children()) do
- if v:IsA("Accessory") then
- v:Destroy()
- end
- end
- for i, v in pairs(game:GetService("Players").LocalPlayer.Character:GetChildren()) do
- if v:IsA("Shirt") then
- v:Remove()
- end
- end
- for i, v in pairs(game:GetService("Players").LocalPlayer.Character:GetChildren()) do
- if v:IsA("Pants") then
- v:Remove()
- end
- end
- wait()
- shirt = Instance.new("Shirt", game:GetService("Players").LocalPlayer.Character)
- shirt.Name = "Shirt"
- pants = Instance.new("Pants", game:GetService("Players").LocalPlayer.Character)
- pants.Name = "Pants"
- shirt = Instance.new("Shirt", char)
- shirt.Name = "Shirt"
- pants = Instance.new("Pants", char)
- pants.Name = "Pants"
- char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=295323003"
- char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=295323013"
- wait(0.1)
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Tool0 = Instance.new("Tool")
- Part1 = Instance.new("Part")
- BlockMesh2 = Instance.new("BlockMesh")
- PointLight3 = Instance.new("PointLight")
- BillboardGui4 = Instance.new("BillboardGui")
- ImageLabel5 = Instance.new("ImageLabel")
- LocalScript6 = Instance.new("LocalScript")
- Script7 = Instance.new("Script")
- ScreenGui8 = Instance.new("ScreenGui")
- Frame9 = Instance.new("Frame")
- Frame10 = Instance.new("Frame")
- TextLabel11 = Instance.new("TextLabel")
- Frame12 = Instance.new("Frame")
- Frame13 = Instance.new("Frame")
- Frame14 = Instance.new("Frame")
- Frame15 = Instance.new("Frame")
- TextLabel16 = Instance.new("TextLabel")
- ImageButton17 = Instance.new("ImageButton")
- Part18 = Instance.new("Part")
- BlockMesh19 = Instance.new("BlockMesh")
- Sound20 = Instance.new("Sound")
- Sound21 = Instance.new("Sound")
- Sound22 = Instance.new("Sound")
- Sound23 = Instance.new("Sound")
- Sound24 = Instance.new("Sound")
- Sound25 = Instance.new("Sound")
- Sound26 = Instance.new("Sound")
- Sound27 = Instance.new("Sound")
- Part28 = Instance.new("Part")
- SpecialMesh29 = Instance.new("SpecialMesh")
- LocalScript30 = Instance.new("LocalScript")
- Tool0.Name = "E-11"
- Tool0.Parent = mas
- Tool0.GripForward = Vector3.new(0, -5.88028779e-05, -1)
- Tool0.GripPos = Vector3.new(-0.0500000007, -0.200000003, -0.200000003)
- Tool0.GripUp = Vector3.new(0, 1, -5.88028779e-05)
- Tool0.ToolTip = "Standard Issue Blaster"
- Tool0.CanBeDropped = false
- Part1.Name = "Barrel"
- Part1.Parent = Tool0
- Part1.Material = Enum.Material.SmoothPlastic
- Part1.BrickColor = BrickColor.new("Black")
- Part1.Transparency = 1
- Part1.Anchored = true
- Part1.CanCollide = false
- Part1.FormFactor = Enum.FormFactor.Custom
- Part1.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part1.CFrame = CFrame.new(178.294815, 0.872389972, -125.593063, 0.999999881, -5.72530698e-05, 2.08904294e-06, 5.77678111e-05, 0.999999642, 3.48687172e-05, -6.48080459e-07, -3.439188e-05, 1)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part1.Position = Vector3.new(178.294815, 0.872389972, -125.593063)
- Part1.Color = Color3.new(0.105882, 0.164706, 0.207843)
- BlockMesh2.Parent = Part1
- BlockMesh2.Scale = Vector3.new(0.13333334, 0.666666687, 0.333333343)
- BlockMesh2.Scale = Vector3.new(0.13333334, 0.666666687, 0.333333343)
- PointLight3.Parent = Part1
- PointLight3.Color = Color3.new(0.666667, 0, 0)
- PointLight3.Enabled = false
- PointLight3.Range = 10
- PointLight3.Shadows = true
- PointLight3.Color = Color3.new(0.666667, 0, 0)
- BillboardGui4.Name = "Flash"
- BillboardGui4.Parent = Part1
- BillboardGui4.Size = UDim2.new(2, 0, 2, 0)
- BillboardGui4.Active = true
- ImageLabel5.Name = "Flash"
- ImageLabel5.Parent = BillboardGui4
- ImageLabel5.Transparency = 1
- ImageLabel5.Size = UDim2.new(0.75, 0, 0.660000026, 0)
- ImageLabel5.Position = UDim2.new(0.125, 0, 0.150000006, 0)
- ImageLabel5.Active = true
- ImageLabel5.Visible = false
- ImageLabel5.BackgroundColor3 = Color3.new(0.756863, 0.752941, 0.764706)
- ImageLabel5.BackgroundTransparency = 1
- ImageLabel5.Image = "http://www.roblox.com/asset/?id=58232701"
- LocalScript6.Name = "MainScript"
- LocalScript6.Parent = Tool0
- table.insert(cors,sandbox(LocalScript6,function()
- --Sith Empire Guns by LordStrakk
- script.Parent:WaitForChild("Barrel")
- local Barrel = script.Parent["Barrel"]
- --Gun Stats
- local MaxAmmo = 60 --Ammount of bullets you can fire.
- local FireRate = 0.2 --Time between shots.
- local AccuricyRange = 1 -- Degree's
- local Damage = 200000
- local DamageRange = 200000
- local Automatic = true
- local Burst = false
- local GunType = 2 -- 1 = Pistol, 2 = Rifle.
- local TeamKill = true -- Can kill team-mates or not.
- local BulletColor = BrickColor.new("Bright red")
- --Arm CFrames
- local LeftArmFireCF = CFrame.new(.84, .4, 1.1) * CFrame.fromEulerAnglesXYZ(math.rad(320), -0.2, math.rad(-90))
- local RightArmFireCF = CFrame.new(-.75, -0.4, -0.95) * CFrame.fromEulerAnglesXYZ(math.rad(-89), math.rad(-14), 0)
- local LeftArmWeld = Instance.new("Weld", script)
- local RightArmWeld = Instance.new("Weld", script)
- --Cursors
- local MainCursor = "http://www.roblox.com/asset/?id=147491857"
- local ReloadCursor = "http://www.roblox.com/asset/?id=147491879"
- --Values
- local Ammo = MaxAmmo
- local Reloading = false
- local Clicking = false
- local Fireing = false
- local IsEquipped = false
- local Gui = nil
- local BulletsModel = nil
- --Setup
- if script.Parent:findFirstChild("Bullets") == nil then
- BulletsModel = Instance.new("Model", script.Parent)
- BulletsModel.Name = "Bullets"
- end
- local Bullet = Barrel:clone()
- Bullet["PointLight"]:remove()
- Bullet["Flash"]:remove()
- Bullet["Mesh"]:remove()
- Bullet.Name = "Bullet"
- Bullet.Parent = BulletsModel
- Bullet.Anchored = true
- Bullet.CanCollide = false
- Bullet.FormFactor = "Custom"
- Bullet.Transparency = 1
- Bullet.Material = "Neon"
- Bullet.Size = Vector3.new(0.2, 0.2, 1)
- local BulletMesh = Instance.new("BlockMesh", Bullet)
- --Functions
- function ReloadAnimation(Speed)
- local weld55 = LeftArmWeld
- local weld33 = RightArmWeld
- weld33.C1 = CFrame.new(-1.25, 0.4, -.65) * CFrame.fromEulerAnglesXYZ(math.rad(-91), math.rad(-24), 0.02)
- wait(0.02)
- weld33.C1 = CFrame.new(-1.25, 0.4, -.65) * CFrame.fromEulerAnglesXYZ(math.rad(-92), math.rad(-24), 0.04)
- wait(0.02)
- weld33.C1 = CFrame.new(-1.25, 0.4, -.65) * CFrame.fromEulerAnglesXYZ(math.rad(-93), math.rad(-24), 0.06)
- wait(0.02)
- weld33.C1 = CFrame.new(-1.25, 0.4, -.65) * CFrame.fromEulerAnglesXYZ(math.rad(-94), math.rad(-24), 0.08)
- wait(0.02)
- weld33.C1 = CFrame.new(-1.25, 0.4, -.65) * CFrame.fromEulerAnglesXYZ(math.rad(-95), math.rad(-24), 0.1)
- wait(0.02)
- weld55.C1 = CFrame.new(0.65, 1, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(306), -0.02, math.rad(-90))
- wait(0.02)
- weld55.C1 = CFrame.new(0.65, 0.8, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(312), -0.02, math.rad(-90))
- wait(0.02)
- weld55.C1 = CFrame.new(0.65, 0.6, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(318), -0.02, math.rad(-90))
- wait(0.02)
- weld55.C1 = CFrame.new(0.65, 0.4, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(324), -0.02, math.rad(-90))
- wait(0.02)
- weld55.C1 = CFrame.new(0.65, 0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(330), -0.02, math.rad(-90))
- wait(0.02)
- weld55.C1 = CFrame.new(0.65, 0, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(336), -0.02, math.rad(-90))
- wait(0.02)
- weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.02, math.rad(-90))
- wait(0.02)
- weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.12, math.rad(-90))
- wait(0.005)
- weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.22, math.rad(-90))
- wait(0.005)
- weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.42, math.rad(-90))
- wait(0.005)
- weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.52, math.rad(-90))
- wait(0.005)
- weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.62, math.rad(-90))
- wait(0.005)
- weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.82, math.rad(-90))
- wait(0.2)
- weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.92, math.rad(-90))
- wait()
- weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.82, math.rad(-90))
- wait()
- weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.77, math.rad(-90))
- wait()
- weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.67, math.rad(-90))
- wait()
- weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.62, math.rad(-90))
- wait()
- weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.52, math.rad(-90))
- wait()
- weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.47, math.rad(-90))
- wait()
- weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.37, math.rad(-90))
- wait()
- weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.27, math.rad(-90))
- wait()
- weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.22, math.rad(-90))
- wait()
- weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.17, math.rad(-90))
- wait()
- weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.07, math.rad(-90))
- wait()
- weld55.C1 = CFrame.new(0.65, -0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(342), -0.02, math.rad(-90))
- --script.Parent.Handle.Reload:play()
- wait(0.2)
- weld55.C1 = CFrame.new(0.65, 0.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(321), 0.08, math.rad(-90))
- wait(0.03)
- weld55.C1 = CFrame.new(0.65, 0.4, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(312), 0.13, math.rad(-90))
- wait(0.03)
- weld55.C1 = CFrame.new(0.65, 0.6, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(303), 0.18, math.rad(-90))
- wait(0.03)
- weld55.C1 = CFrame.new(0.65, 0.8, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(294), 0.23, math.rad(-90))
- wait(0.03)
- weld55.C1 = CFrame.new(0.65, 1, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0.28, math.rad(-90))
- wait(0.03)
- weld55.C1 = CFrame.new(0.65, 1.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0.28, math.rad(-90))
- wait(0.03)
- weld55.C1 = CFrame.new(0.65, 1.4, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0.28, math.rad(-90))
- wait(0.03)
- weld55.C1 = CFrame.new(0.65, 1.6, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0.28, math.rad(-90))
- wait(0.03)
- weld55.C1 = CFrame.new(0.65, 1.8, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0.28, math.rad(-90))
- wait(0.1)
- weld55.C1 = CFrame.new(0.65, 1.6, 0.7) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0.28, math.rad(-90))
- wait(0.03)
- weld55.C1 = CFrame.new(0.65, 1.4, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0.28, math.rad(-90))
- wait(0.24)
- weld55.C1 = CFrame.new(0.65, 1.4, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0.28, math.rad(-90))
- wait(.03)
- weld33.C1 = CFrame.new(-1.15, 0.4, -1) * CFrame.fromEulerAnglesXYZ(math.rad(-94), math.rad(-19), 0.06)
- weld55.C1 = CFrame.new(0.65, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(293), 0.13, math.rad(-90))
- wait(.03)
- weld33.C1 = CFrame.new(-.95, 0.3, -1) * CFrame.fromEulerAnglesXYZ(math.rad(-93), math.rad(-14), 0.04)
- weld55.C1 = CFrame.new(0.65, 1.3, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(295), 0.13, math.rad(-90))
- wait(.03)
- weld33.C1 = CFrame.new(-.9, 0.2, -1.1) * CFrame.fromEulerAnglesXYZ(math.rad(-92), math.rad(-7), 0.02)
- weld55.C1 = CFrame.new(0.65, 1.25, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(297), 0.08, math.rad(-90))
- wait(.03)
- weld33.C1 = CFrame.new(-.85, .4, -1.1) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), 0)
- weld55.C1 = CFrame.new(0.65, 1.2, .8) * CFrame.fromEulerAnglesXYZ(math.rad(300), -0.02, math.rad(-90))
- wait(0.01)
- LeftArmWeld.C1 = LeftArmFireCF
- RightArmWeld.C1 = RightArmFireCF
- end
- function UpdateGui()
- coroutine.resume(coroutine.create(function()
- if Gui == nil then
- if game.Players.LocalPlayer.PlayerGui:findFirstChild("WeaponHud") ~= nil then
- Gui = game.Players.LocalPlayer.PlayerGui["WeaponHud"]
- else
- Gui = script["WeaponHud"]:clone()
- Gui.Parent = game.Players.LocalPlayer.PlayerGui
- end
- end
- Gui["MainFrame"]["Frame"]["WeaponName"].Text = script.Parent.Name
- if Ammo ~= MaxAmmo then
- Gui["MainFrame"]["Frame"]["BarFrame"]["Bar"].Size = UDim2.new(((1 / MaxAmmo) * (Ammo)), 0, 1, 0)
- else
- Gui["MainFrame"]["Frame"]["BarFrame"]["Bar"].Size = UDim2.new(1, 0, 1, 0)
- --Gui["Bar"]["Fill"].BackgroundColor3 = Color3.new(0, 1, 0)
- end
- local Percent = (((1 / MaxAmmo) * (Ammo)) * 100)
- local PercentText = tostring(Percent)
- if PercentText:sub(1):find(".") and PercentText ~= "100" then
- if Percent < 10 then
- PercentText = PercentText:sub(1, PercentText:sub(1):find("."))
- else
- PercentText = PercentText:sub(1, PercentText:sub(1):find(".") + 1)
- end
- end
- wait(0.1)
- if Reloading == false then
- Gui["MainFrame"]["Frame"]["Percent"].Text = PercentText .. "%"
- else
- Gui["MainFrame"]["Frame"]["Percent"].Text = "RELOADING..."
- end
- end))
- end
- function TestForLightsaber(Human, BulletPos, BulletHitPos)
- local ToReturn = false
- coroutine.resume(coroutine.create(function()
- local LightsaberFound = false
- local FoundLightsaber = nil
- if Human.Parent:findFirstChild("LightsaberEquipped") ~= nil then
- LightsaberFound = true
- FoundLightsaber = Human.Parent["LightsaberEquipped"].Value
- end
- --for i, v in pairs(Human.Parent:GetChildren()) do
- --if v then
- --if v:IsA("Tool") then
- --if v.Name:lower():sub(1):find("lightsaber") then
- --LightsaberFound = true
- --FoundLightsaber = v
- --end
- --end
- --end
- --end
- --for i, v in pairs(game.Lighting["LightsaberNames"]:GetChildren()) do
- --if Human.Parent:findFirstChild(v.Name) ~= nil then
- --FoundLightsaber = Human.Parent[v.Name]
- --LightsaberFound = true
- --end
- --wait(0.01)
- --end
- local BlockDist = 0.15
- if LightsaberFound == true then
- if FoundLightsaber:findFirstChild("BlockPrecentage") ~= nil then
- BlockDist = FoundLightsaber["BlockPrecentage"].Value
- else
- BlockDist = 0.15
- end
- end
- if LightsaberFound == true then
- local TheHandle = FoundLightsaber["Handle"]
- local Char = Human.Parent
- local Char2 = game.Players.LocalPlayer.Character
- local LookCF = CFrame.new(Vector3.new(TheHandle.Position.X, BulletPos.y, TheHandle.Position.Z), Vector3.new(Char["Torso"].Position.X, BulletPos.y, Char["Torso"].Position.Z))
- local Ray = Ray.new(LookCF.p, (LookCF * CFrame.new(0, 0, -999)).p - LookCF.p)
- local DistFromBullet = (Vector3.new(TheHandle.Position.X, BulletPos.y, TheHandle.Position.Z) - Vector3.new(Char2["Torso"].Position.X, BulletPos.y, Char2["Torso"].Position.Z)).magnitude
- local CP = Ray:ClosestPoint(Vector3.new(BulletHitPos.x, BulletPos.y, BulletHitPos.z))
- local DistFromCP = (Vector3.new(BulletHitPos.x, BulletPos.y, BulletHitPos.z) - Vector3.new(TheHandle.Position.X, BulletPos.y, TheHandle.Position.Z)).magnitude
- if DistFromCP <= (DistFromBullet * BlockDist) then
- ToReturn = true
- --coroutine.resume(coroutine.create(function()
- --if FoundLightsaber["ClashScript"]["Clash"].Value == true then
- --FoundLightsaber["ClashScript"]["Clash"].Value = false
- --else
- --FoundLightsaber["ClashScript"]["Clash"].Value = true
- --FoundLightsaber["ClashScript"]["Blade"].Value = FoundLightsaber["Blade"]
- --end
- --end))
- end
- end
- if LightsaberFound == true then
- if FoundLightsaber:findFirstChild("Handle3") then
- local TheHandle = FoundLightsaber["Handle3"]
- local Char = Human.Parent
- local Char2 = game.Players.LocalPlayer.Character
- local LookCF = CFrame.new(Vector3.new(TheHandle.Position.X, BulletPos.y, TheHandle.Position.Z), Vector3.new(Char["Torso"].Position.X, BulletPos.y, Char["Torso"].Position.Z))
- local Ray = Ray.new(LookCF.p, (LookCF * CFrame.new(0, 0, -999)).p - LookCF.p)
- local DistFromBullet = (Vector3.new(TheHandle.Position.X, BulletPos.y, TheHandle.Position.Z) - Vector3.new(Char2["Torso"].Position.X, BulletPos.y, Char2["Torso"].Position.Z)).magnitude
- local CP = Ray:ClosestPoint(Vector3.new(BulletHitPos.x, BulletPos.y, BulletHitPos.z))
- local DistFromCP = (Vector3.new(BulletHitPos.x, BulletPos.y, BulletHitPos.z) - Vector3.new(TheHandle.Position.X, BulletPos.y, TheHandle.Position.Z)).magnitude
- if DistFromCP <= (DistFromBullet * BlockDist) then
- ToReturn = true
- --coroutine.resume(coroutine.create(function()
- --if FoundLightsaber["ClashScript"]["Clash"].Value == true then
- --FoundLightsaber["ClashScript"]["Clash"].Value = false
- --else
- --FoundLightsaber["ClashScript"]["Clash"].Value = true
- --FoundLightsaber["ClashScript"]["Blade"].Value = FoundLightsaber["Blade3"]
- --end
- --end))
- end
- end
- end
- end))
- return ToReturn
- end
- function Fire(TargetPos)
- coroutine.resume(coroutine.create(function()
- if game.Players.LocalPlayer.Character["Humanoid"].Health > 0 then
- --coroutine.resume(coroutine.create(function()
- if Reloading == false and Ammo > 0 then
- local RotX = (math.random(-(AccuricyRange * 5), (AccuricyRange * 5)) * 0.1)
- local RotY = (math.random(-(AccuricyRange * 5), (AccuricyRange * 5)) * 0.1)
- local DirectionCF = CFrame.new(Barrel.Position, TargetPos) * CFrame.Angles(math.rad(RotX), math.rad(RotY), 0)
- local Dist = 1000
- local Ray = Ray.new(Barrel.Position, (DirectionCF * CFrame.new(0, 0, -1000)).p - Barrel.Position)
- local Hit, Pos = game.Workspace:FindPartOnRay(Ray, game.Players.LocalPlayer.Character)
- if Hit ~= nil then
- Dist = (Pos - Barrel.Position).magnitude
- local Human = nil
- if Hit.Parent:findFirstChild("Humanoid") then
- Human = Hit.Parent["Humanoid"]
- elseif Hit.Parent.Parent:findFirstChild("Humanoid") then
- Human = Hit.Parent.Parent["Humanoid"]
- end
- if Human ~= nil then
- coroutine.resume(coroutine.create(function()
- local BulletBlocked = false
- local BlockedBySaber = TestForLightsaber(Human, DirectionCF.p, Pos)
- if BlockedBySaber == true then
- BulletBlocked = true
- end
- if BulletBlocked == false then
- local EPlayer = game.Players:GetPlayerFromCharacter(Human.Parent)
- local DamageHuman = true
- if EPlayer ~= nil then
- if EPlayer.TeamColor == game.Players.LocalPlayer.TeamColor and TeamKill == false then
- DamageHuman = false
- end
- end
- --wait(0.01)
- if DamageHuman == true and Human.Parent:findFirstChild("ForceField") == nil then
- Human.Health = Human.Health - (math.random((Damage - DamageRange) * 10, (Damage + DamageRange) * 10) * 0.1)
- if Human.Health <= 0 then
- if Human:findFirstChild("creator") == nil then
- local CreatorValue = Instance.new("ObjectValue", Human)
- CreatorValue.Name = "creator"
- CreatorValue.Value = game.Players.LocalPlayer
- end
- end
- end
- end
- end))
- end
- end
- coroutine.resume(coroutine.create(function()
- Bullet.CFrame = DirectionCF
- script.Parent["Handle"]["Fire"]:Play()
- Barrel["PointLight"].Enabled = true
- if BulletColor == nil then
- Bullet.BrickColor = game.Players.LocalPlayer.TeamColor
- else
- Bullet.BrickColor = BulletColor
- end
- Barrel["PointLight"].Color = Bullet.BrickColor.Color
- Bullet.Transparency = 0.2
- wait(0.03)
- Bullet.Transparency = 1
- Barrel["Flash"]["Flash"].Visible = false
- Barrel["PointLight"].Enabled = false
- end))
- BulletMesh.Scale = Vector3.new(0.25, 0.25, Dist)
- BulletMesh.Offset = Vector3.new(0, 0, -(Dist / 2))
- end
- --end))
- end
- end))
- end
- function KeyDown(key, Mouse)
- if key == "r" then
- if Ammo < MaxAmmo then
- Reloading = true
- wait(0.1)
- UpdateGui()
- Mouse.Icon = ReloadCursor
- script.Parent["Handle"]["Reload"]:Play()
- ReloadAnimation()
- if Reloading == true then
- Ammo = MaxAmmo
- end
- Mouse.Icon = MainCursor
- UpdateGui()
- Reloading = false
- end
- end
- end
- function Button1Down(Mouse)
- if IsEquipped == true then
- Clicking = true
- if Automatic == true then
- Mouse.Button1Up:connect(function()
- Clicking = false
- end)
- end
- coroutine.resume(coroutine.create(function()
- while Clicking == true and Ammo > 0 and Reloading == false do
- coroutine.resume(coroutine.create(function()
- if Fireing == false then
- Fireing = true
- if Burst == false then
- Fire(Mouse.Hit.p)
- elseif Burst == true then
- Fire(Mouse.Hit.p)
- wait(0.02)
- Fire(Mouse.Hit.p)
- wait(0.02)
- Fire(Mouse.Hit.p)
- end
- Ammo = Ammo - 1
- coroutine.resume(coroutine.create(function()
- wait(FireRate)
- Fireing = false
- end))
- end
- if Automatic == false then
- Clicking = false
- end
- end))
- UpdateGui()
- wait(FireRate)
- end
- end))
- end
- end
- function KeyDown(key, Mouse)
- if key == "r" then
- if Ammo < MaxAmmo then
- UpdateGui()
- Reloading = true
- Mouse.Icon = ReloadCursor
- script.Parent["Handle"]["Reload"]:Play()
- ReloadAnimation()
- if Reloading == true then
- Ammo = MaxAmmo
- end
- Mouse.Icon = MainCursor
- UpdateGui()
- Reloading = false
- end
- end
- end
- function Button1Down(Mouse)
- if IsEquipped == true then
- Clicking = true
- if Automatic == true then
- Mouse.Button1Up:connect(function()
- Clicking = false
- end)
- end
- coroutine.resume(coroutine.create(function()
- while Clicking == true and Ammo > 0 and Reloading == false do
- coroutine.resume(coroutine.create(function()
- if Fireing == false then
- Fireing = true
- if Burst == false then
- Fire(Mouse.Hit.p)
- elseif Burst == true then
- Fire(Mouse.Hit.p)
- wait(0.02)
- Fire(Mouse.Hit.p)
- wait(0.02)
- Fire(Mouse.Hit.p)
- end
- Ammo = Ammo - 1
- coroutine.resume(coroutine.create(function()
- wait(FireRate)
- Fireing = false
- end))
- end
- if Automatic == false then
- Clicking = false
- end
- end))
- UpdateGui()
- wait(FireRate)
- end
- end))
- end
- end
- function Equipped(Mouse)
- Mouse.Icon = MainCursor
- IsEquipped = true
- Mouse.KeyDown:connect(function(key) KeyDown(key, Mouse) end)
- Mouse.Button1Down:connect(function() Button1Down(Mouse) end)
- UpdateGui()
- coroutine.resume(coroutine.create(function()
- local Char = game.Players.LocalPlayer.Character
- if Char:findFirstChild("Left Arm") ~= nil then
- LeftArmWeld.Parent = script
- LeftArmWeld.Part0 = Char["Head"]
- LeftArmWeld.Part1 = Char["Left Arm"]
- LeftArmWeld.C1 = LeftArmFireCF
- Char["Torso"]["Left Shoulder"].Part1 = nil
- end
- if Char:findFirstChild("Right Arm") ~= nil then
- RightArmWeld.Parent = script
- RightArmWeld.Part0 = Char["Head"]
- RightArmWeld.Part1 = Char["Right Arm"]
- RightArmWeld.C1 = RightArmFireCF
- Char["Torso"]["Right Shoulder"].Part1 = nil
- end
- end))
- end
- function UnEquipped()
- coroutine.resume(coroutine.create(function()
- local Char = game.Players.LocalPlayer.Character
- if Char:findFirstChild("Left Arm") then
- LeftArmWeld.Part0 = nil
- LeftArmWeld.Part1 = nil
- Char["Torso"]["Left Shoulder"].Part1 = Char["Left Arm"]
- end
- if Char:findFirstChild("Right Arm") then
- RightArmWeld.Part0 = nil
- RightArmWeld.Part1 = nil
- Char["Torso"]["Right Shoulder"].Part1 = Char["Right Arm"]
- end
- end))
- if Gui ~= nil then
- Gui:remove()Gui = nil
- end
- Reloading = false
- Fireing = false
- Clicking = false
- IsEquipped = false
- end
- script.Parent.Equipped:connect(Equipped)
- script.Parent.Unequipped:connect(UnEquipped)
- end))
- Script7.Name = "CleanScript"
- Script7.Parent = LocalScript6
- Script7.Disabled = true
- table.insert(cors,sandbox(Script7,function()
- local Char = script.Parent.Parent.Parent
- repeat
- wait(10)
- until Char == nil
- script.Parent:remove()
- end))
- ScreenGui8.Name = "WeaponHud"
- ScreenGui8.Parent = LocalScript6
- Frame9.Name = "MainFrame"
- Frame9.Parent = ScreenGui8
- Frame9.Transparency = 1
- Frame9.Size = UDim2.new(1, 0, 0.150000006, 0)
- Frame9.Position = UDim2.new(0, 0, 0.649999976, 0)
- Frame9.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame9.BackgroundTransparency = 1
- Frame9.BorderSizePixel = 0
- Frame10.Parent = Frame9
- Frame10.Transparency = 1
- Frame10.Size = UDim2.new(0.300000012, 0, 1, 0)
- Frame10.Position = UDim2.new(0.349999994, 0, 0, 0)
- Frame10.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame10.BackgroundTransparency = 1
- Frame10.BorderSizePixel = 0
- TextLabel11.Name = "WeaponName"
- TextLabel11.Parent = Frame10
- TextLabel11.Transparency = 1
- TextLabel11.Size = UDim2.new(1, 0, 0.300000012, 0)
- TextLabel11.Text = "Weapon"
- TextLabel11.BackgroundTransparency = 1
- TextLabel11.BorderSizePixel = 0
- TextLabel11.ZIndex = 4
- TextLabel11.ClipsDescendants = true
- TextLabel11.Font = Enum.Font.ArialBold
- TextLabel11.FontSize = Enum.FontSize.Size18
- TextLabel11.TextColor3 = Color3.new(1, 1, 1)
- TextLabel11.TextScaled = true
- TextLabel11.TextStrokeTransparency = 0
- TextLabel11.TextWrapped = true
- Frame12.Name = "BarFrame"
- Frame12.Parent = Frame10
- Frame12.Transparency = 1
- Frame12.Size = UDim2.new(1, 0, 0.300000012, 0)
- Frame12.Position = UDim2.new(0, 0, 0.600000024, 0)
- Frame12.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame12.BackgroundTransparency = 1
- Frame12.BorderSizePixel = 0
- Frame13.Name = "Bar"
- Frame13.Parent = Frame12
- Frame13.Size = UDim2.new(1, 0, 1, 0)
- Frame13.BackgroundColor3 = Color3.new(0.666667, 0, 0)
- Frame13.BorderColor3 = Color3.new(0, 0, 0)
- Frame14.Name = "Sperator"
- Frame14.Parent = Frame12
- Frame14.Size = UDim2.new(0.00999999978, 0, 1.25, 0)
- Frame14.Position = UDim2.new(1.01999998, 0, -0.125, 0)
- Frame14.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame14.BorderColor3 = Color3.new(0, 0, 0)
- Frame15.Name = "Sperator"
- Frame15.Parent = Frame12
- Frame15.Size = UDim2.new(0.00999999978, 0, 1.25, 0)
- Frame15.Position = UDim2.new(-0.0199999996, 0, -0.125, 0)
- Frame15.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame15.BorderColor3 = Color3.new(0, 0, 0)
- TextLabel16.Name = "Percent"
- TextLabel16.Parent = Frame10
- TextLabel16.Transparency = 1
- TextLabel16.Size = UDim2.new(1, 0, 0.200000003, 0)
- TextLabel16.Text = "100%"
- TextLabel16.Position = UDim2.new(0, 0, 0.324999988, 0)
- TextLabel16.BackgroundTransparency = 1
- TextLabel16.BorderSizePixel = 0
- TextLabel16.ZIndex = 4
- TextLabel16.ClipsDescendants = true
- TextLabel16.Font = Enum.Font.ArialBold
- TextLabel16.FontSize = Enum.FontSize.Size18
- TextLabel16.TextColor3 = Color3.new(0.666667, 0, 0)
- TextLabel16.TextStrokeTransparency = 0
- ImageButton17.Name = "Logo"
- ImageButton17.Parent = Frame10
- ImageButton17.Transparency = 1
- ImageButton17.Size = UDim2.new(0, 75, 0, 75)
- ImageButton17.Position = UDim2.new(0, -100, 0.25, 0)
- ImageButton17.BackgroundColor3 = Color3.new(0.301961, 0.301961, 0.301961)
- ImageButton17.BackgroundTransparency = 1
- ImageButton17.BorderColor3 = Color3.new(0.109804, 0.109804, 0.109804)
- ImageButton17.Image = "http://www.roblox.com/asset/?id=167043848"
- Part18.Name = "Handle"
- Part18.Parent = Tool0
- Part18.Material = Enum.Material.SmoothPlastic
- Part18.Transparency = 1
- Part18.Anchored = true
- Part18.CanCollide = false
- Part18.FormFactor = Enum.FormFactor.Symmetric
- Part18.Size = Vector3.new(1, 1, 1)
- Part18.CFrame = CFrame.new(178.262894, 0.500046015, -123.16272, 0.999999464, -5.21431575e-05, 1.69995983e-05, 5.44522663e-05, 0.999999046, 3.54494186e-05, -1.06023144e-05, -3.2707605e-05, 1.00000072)
- Part18.BottomSurface = Enum.SurfaceType.Smooth
- Part18.TopSurface = Enum.SurfaceType.Smooth
- Part18.Position = Vector3.new(178.262894, 0.500046015, -123.16272)
- BlockMesh19.Parent = Part18
- BlockMesh19.Scale = Vector3.new(0.0270270277, 0.0270270277, 0.135135144)
- BlockMesh19.Scale = Vector3.new(0.0270270277, 0.0270270277, 0.135135144)
- Sound20.Name = "Click"
- Sound20.Parent = Part18
- Sound20.Pitch = 0.89999997615814
- Sound20.SoundId = "http://roblox.com/asset/?id=10209881"
- Sound20.Volume = 1
- Sound20.PlayOnRemove = true
- Sound21.Name = "Trigger"
- Sound21.Parent = Part18
- Sound21.SoundId = "http://www.roblox.com/asset/?ID=10918913 "
- Sound21.Volume = 1
- Sound22.Name = "M1"
- Sound22.Parent = Part18
- Sound22.Pitch = 0.69999998807907
- Sound22.SoundId = "http://roblox.com/asset/?id=10209834"
- Sound22.Volume = 1
- Sound22.PlayOnRemove = true
- Sound23.Name = "M2"
- Sound23.Parent = Part18
- Sound23.Pitch = 0.89999997615814
- Sound23.SoundId = "http://roblox.com/asset/?id=10209636"
- Sound23.Volume = 1
- Sound23.PlayOnRemove = true
- Sound24.Name = "Fire2"
- Sound24.Parent = Part18
- Sound24.Pitch = 1.25
- Sound24.SoundId = "http://www.roblox.com/asset/?id=132149021"
- Sound25.Name = "Fire"
- Sound25.Parent = Part18
- Sound25.Pitch = 1.75
- Sound25.SoundId = "http://www.roblox.com/asset/?id=132149021"
- Sound25.Volume = 1
- Sound26.Name = "Reload"
- Sound26.Parent = Part18
- Sound26.SoundId = "http://www.roblox.com/asset/?id=2697432 "
- Sound27.Name = "Empty"
- Sound27.Parent = Part18
- Sound27.SoundId = "rbxasset://sounds//clickfast.wav"
- Sound27.Volume = 1
- Part28.Parent = Tool0
- Part28.Material = Enum.Material.Neon
- Part28.BrickColor = BrickColor.new("Really black")
- Part28.Rotation = Vector3.new(-180, 0, -180)
- Part28.Size = Vector3.new(0.200000212, 0.0500000529, 0.100000106)
- Part28.CFrame = CFrame.new(178.154739, 0.594373226, -123.750214, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part28.BottomSurface = Enum.SurfaceType.Smooth
- Part28.TopSurface = Enum.SurfaceType.Smooth
- Part28.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part28.Position = Vector3.new(178.154739, 0.594373226, -123.750214)
- Part28.Orientation = Vector3.new(0, 180, 0)
- Part28.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- SpecialMesh29.Parent = Part28
- SpecialMesh29.MeshId = "rbxassetid://430655284"
- SpecialMesh29.Scale = Vector3.new(0.0299999993, 0.0299999993, 0.0299999993)
- SpecialMesh29.MeshType = Enum.MeshType.FileMesh
- SpecialMesh29.Scale = Vector3.new(0.0299999993, 0.0299999993, 0.0299999993)
- LocalScript30.Name = "BackupWeld"
- LocalScript30.Parent = Tool0
- table.insert(cors,sandbox(LocalScript30,function()
- local Welds = {}
- local Part0s = {}
- local Part1s = {}
- local C0s = {}
- local C1s = {}
- function SetupWelds()
- print("------------------------")
- script.Parent:WaitForChild("Handle")
- for i, v in pairs(script.Parent:GetChildren()) do
- coroutine.resume(coroutine.create(function()
- if v then
- if v.ClassName == "Part" or v.ClassName == "WedgePart" or v.ClassName == "CornerWedgePart" then
- print(v.ClassName)
- local w = Instance.new("Weld", v)
- w.Name = "Weld"
- w.Part0 = script.Parent["Handle"]
- w.Part1 = v
- w.C0 = w.Part0.CFrame:inverse()
- w.C1 = v.CFrame:inverse()
- table.insert(Welds, w)
- table.insert(Part0s, w.Part0)
- table.insert(Part1s, w.Part1)
- table.insert(C0s, w.C0)
- table.insert(C1s, w.C1)
- end
- end
- end))
- end
- print("------------------------")
- print(#Welds)
- print(#Part0s)
- print(#Part1s)
- print(#C0s)
- print(#C1s)
- end
- function Weld()
- for i, v in pairs(Welds) do
- coroutine.resume(coroutine.create(function()
- if v then
- if v.Parent ~= Part1s[i] then
- v.Parent = Part1s[i]
- end
- v.Part0 = Part0s[i]
- v.Part1 = Part1s[i]
- v.C0 = C0s[i]
- v.C1 = C1s[i]
- end
- end))
- end
- for i, v in pairs(Part1s) do
- coroutine.resume(coroutine.create(function()
- if v then
- if v.ClassName == "Part" or v.ClassName == "WedgePart" or v.ClassName == "CornerWedgePart" then
- v.Anchored = false
- end
- end
- end))
- end
- end
- wait(0.1)
- SetupWelds()
- script.Parent.Equipped:connect(Weld)
- script.Parent.Unequipped:connect(Weld)
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Backpack
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- print([[
- -------------------------------------------------
- First Order StormTrooper V.1
- -------------------------------------------------]])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement