Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Cyclically dupetools
- local toolamount = 1
- local LocalPlayer = game:GetService("Players").LocalPlayer
- local runservice = game:GetService("RunService")
- local characters = {}
- LocalPlayer.Character:FindFirstChild("Humanoid"):UnequipTools()
- local currentamount = #LocalPlayer.Backpack:GetChildren()
- LocalPlayer.Character.Archivable = true
- local tempchar = LocalPlayer.Character:Clone()
- tempchar.Parent = workspace
- local savepos = LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame
- local stepped = runservice.Stepped:Connect(function()
- workspace.CurrentCamera.CameraSubject = tempchar:FindFirstChild("Humanoid")
- for _, tool in pairs(LocalPlayer.Backpack:GetChildren()) do
- if tool:IsA("Tool") then
- tool.Parent = LocalPlayer
- end
- end
- LocalPlayer.Character:ClearAllChildren()
- local char = Instance.new("Model", workspace)
- table.insert(characters, char)
- Instance.new("Humanoid", char)
- LocalPlayer.Character = char
- repeat runservice.Stepped:Wait() until LocalPlayer.Character ~= nil
- end)
- repeat runservice.Stepped:Wait() until #LocalPlayer:GetChildren() - 4 - currentamount >= toolamount - 1
- stepped:Disconnect()
- repeat runservice.Stepped:Wait() until LocalPlayer.Character:FindFirstChild("HumanoidRootPart") ~= nil
- for _, char in pairs(characters) do
- char:Destroy()
- end
- for _, tool in pairs(LocalPlayer:GetChildren()) do
- if tool:IsA("Tool") then
- tool.Parent = LocalPlayer.Backpack
- end
- end
- LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = savepos
- tempchar:Destroy()
- game.Players.LocalPlayer.Backpack.Foil.Parent = game.Players.LocalPlayer.Character
- game.Players.LocalPlayer.Character.Foil.Handle.Massless = true
- for _=1,2 do
- game.Players.LocalPlayer.Character.Foil:Activate()
- end
- game.Players.LocalPlayer.Character.Foil.Parent = game.Players.LocalPlayer.Backpack
- local amount = 2
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = .5
- local LocalPlayer = game:GetService("Players").LocalPlayer
- local spray = workspace.Handle
- local savecframe = spray.CFrame
- LocalPlayer.Character.Humanoid:UnequipTools()
- local currentamount = #LocalPlayer.Backpack:GetChildren()
- spray.CanCollide = false
- spray.Transparency = 1
- local anim = Instance.new("Animation")
- anim.AnimationId = "rbxassetid://188632011"
- local loadanim = LocalPlayer.Character.Humanoid:LoadAnimation(anim)
- loadanim.Looped = true
- loadanim:Play()
- loadanim:AdjustSpeed(4)
- for _, tool in pairs(LocalPlayer.Backpack:GetChildren()) do
- tool.Parent = LocalPlayer
- end
- repeat
- repeat
- spray.CFrame = LocalPlayer.Character.Torso.CFrame
- LocalPlayer.Character.Humanoid:MoveTo(game.Players.LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(0,0,1))
- game:GetService("RunService").Stepped:wait()
- until LocalPlayer.Character:FindFirstChild("Spray") ~= nil
- LocalPlayer.Character:FindFirstChild("Spray").Parent = LocalPlayer
- until #LocalPlayer:GetChildren() - 4 - currentamount >= amount
- loadanim:Stop()
- anim:Destroy()
- for _, tool in pairs(LocalPlayer:GetChildren()) do
- if tool:IsA("Tool") then
- tool.Parent = LocalPlayer.Backpack
- end
- end
- spray.CFrame = savecframe
- spray.CanCollide = true
- spray.Transparency = 0
- game.Players.LocalPlayer.Backpack.Spray.Name = "GunPart1"
- game.Players.LocalPlayer.Backpack.Spray.Name = "GunPart2"
- game.Players.LocalPlayer.Backpack.Foil.Name = "Bullet"
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
- game.Players.LocalPlayer.Backpack.GunPart1.Parent = game.Players.LocalPlayer
- game.Players.LocalPlayer.Backpack.GunPart2.Parent = game.Players.LocalPlayer
- game.Players.LocalPlayer.Backpack.Bullet.Parent = game.Players.LocalPlayer
- game.Players.LocalPlayer.Backpack.Foil.Parent = game.Players.LocalPlayer
- local Gun = Instance.new("Tool")
- local GunHandle = Instance.new("Part")
- GunHandle.Name = "Handle"
- GunHandle.CanCollide = false
- GunHandle.Transparency = 1
- GunHandle.Parent = Gun
- Gun.Name = "Gun"
- Gun.RequiresHandle = false
- Gun.TextureId = "rbxassetid://205751358"
- game.Players.LocalPlayer.Foil.Parent = game.Players.LocalPlayer.Backpack
- Gun.Parent = game.Players.LocalPlayer.Backpack
- for _=1,8 do
- Instance.new("Tool", game.Players.LocalPlayer.Backpack)
- end
- game.Players.LocalPlayer.GunPart1.Parent = game.Players.LocalPlayer.Backpack
- game.Players.LocalPlayer.GunPart2.Parent = game.Players.LocalPlayer.Backpack
- game.Players.LocalPlayer.Bullet.Parent = game.Players.LocalPlayer.Backpack
- for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
- if v:IsA("Tool") and v.Name == "Tool" then
- v:Destroy()
- end
- end
- local Bullet = game.Players.LocalPlayer.Backpack.Bullet
- local GunPart1 = game.Players.LocalPlayer.Backpack.GunPart1
- local GunPart2 = game.Players.LocalPlayer.Backpack.GunPart2
- Bullet.Parent = game.Players.LocalPlayer.Character
- Bullet.Handle.Massless = true
- GunPart1.Parent = game.Players.LocalPlayer.Character
- GunPart2.Parent = game.Players.LocalPlayer.Character
- Bullet.Handle.Mesh:Destroy()
- GunPart1.LocalScript:Destroy()
- GunPart2.LocalScript:Destroy()
- GunPart1.Handle.Mesh:Destroy()
- GunPart2.Handle.Mesh:Destroy()
- Bullet.Parent = game.Players.LocalPlayer.Backpack
- GunPart1.Parent = game.Players.LocalPlayer.Backpack
- GunPart2.Parent = game.Players.LocalPlayer.Backpack
- Bullet.Grip = CFrame.new(Vector3.new(999,999,999)) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- GunPart1.Grip = CFrame.new(Vector3.new(0,-.25,0)) * CFrame.Angles(math.rad(10),math.rad(0),math.rad(0))
- GunPart2.Grip = CFrame.new(Vector3.new(0,-.625,-.75)) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(0))
- Gun.Parent = game.Players.LocalPlayer.Backpack
- Gun.Parent = game.Players.LocalPlayer.Character
- GunPart1.Parent = game.Players.LocalPlayer.Character
- GunPart2.Parent = game.Players.LocalPlayer.Character
- Bullet.Parent = game.Players.LocalPlayer.Character
- Bullet:Activate()
- wait(.5)
- Gun.Equipped:Connect(function()
- Gun.Parent = game.Players.LocalPlayer.Backpack
- Gun.Parent = game.Players.LocalPlayer.Character
- GunPart1.Parent = game.Players.LocalPlayer.Character
- GunPart2.Parent = game.Players.LocalPlayer.Character
- Bullet.Parent = game.Players.LocalPlayer.Character
- end)
- GunPart1.Parent = game.Players.LocalPlayer.Backpack
- GunPart2.Parent = game.Players.LocalPlayer.Backpack
- GunPart1.Parent = game.Players.LocalPlayer.Character
- GunPart2.Parent = game.Players.LocalPlayer.Character
- Bullet.Parent = game.Players.LocalPlayer.Backpack
- Bullet.Parent = game.Players.LocalPlayer.Character
- Bullet.Activated:Connect(function()
- for _,__ in pairs(Bullet.Handle:GetChildren()) do
- if __:IsA("Sound") then
- __:Destroy()
- end
- end
- for _=1,30 do
- game.Players.LocalPlayer.Character.HumanoidRootPart.Splash.TimePosition = .1
- game.Players.LocalPlayer.Character.HumanoidRootPart.Splash:Play()
- Bullet.Parent = game.Players.LocalPlayer.Character
- GunPart1.Parent = game.Players.LocalPlayer.Character
- GunPart2.Parent = game.Players.LocalPlayer.Character
- Gun.Parent = game.Players.LocalPlayer.Character
- game:GetService("RunService").Heartbeat:Wait()
- Bullet.Parent = game.Players.LocalPlayer.Backpack
- GunPart1.Parent = game.Players.LocalPlayer.Backpack
- GunPart2.Parent = game.Players.LocalPlayer.Backpack
- Gun.Parent = game.Players.LocalPlayer.Backpack
- Bullet.Grip = CFrame.new(Vector3.new(0,-1,0+3*_)) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- end
- GunPart1.Parent = game.Players.LocalPlayer.Character
- GunPart2.Parent = game.Players.LocalPlayer.Character
- Gun.Parent = game.Players.LocalPlayer.Character
- Bullet.Grip = CFrame.new(Vector3.new(999,999,999)) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- Bullet.Parent = game.Players.LocalPlayer.Character
- game.Players.LocalPlayer.Character.HumanoidRootPart.Splash:Stop()
- end)
- plr = game.Players.LocalPlayer
- mouse = plr:GetMouse()
- mouse.KeyDown:connect(function(key)
- if key == "e" then
- for _,__ in pairs(Bullet.Handle:GetChildren()) do
- if __:IsA("Sound") then
- __:Destroy()
- end
- end
- for _=1,30 do
- game.Players.LocalPlayer.Character.HumanoidRootPart.Splash.TimePosition = .1
- game.Players.LocalPlayer.Character.HumanoidRootPart.Splash:Play()
- Bullet.Parent = game.Players.LocalPlayer.Character
- GunPart1.Parent = game.Players.LocalPlayer.Character
- GunPart2.Parent = game.Players.LocalPlayer.Character
- Gun.Parent = game.Players.LocalPlayer.Character
- game:GetService("RunService").Heartbeat:Wait()
- Bullet.Parent = game.Players.LocalPlayer.Backpack
- GunPart1.Parent = game.Players.LocalPlayer.Backpack
- GunPart2.Parent = game.Players.LocalPlayer.Backpack
- Gun.Parent = game.Players.LocalPlayer.Backpack
- Bullet.Grip = CFrame.new(Vector3.new(0,-1,0+3*_)) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-1))
- end
- GunPart1.Parent = game.Players.LocalPlayer.Character
- GunPart2.Parent = game.Players.LocalPlayer.Character
- Gun.Parent = game.Players.LocalPlayer.Character
- Bullet.Grip = CFrame.new(Vector3.new(999,999,999)) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-1))
- Bullet.Parent = game.Players.LocalPlayer.Character
- game.Players.LocalPlayer.Character.HumanoidRootPart.Splash:Stop()
- end
- end)
- game.Players.LocalPlayer.Character.Humanoid.Died:Wait()
- game.Players.LocalPlayer.Character.Humanoid:UnequipTools()
- for _,__ in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
- if __:IsA("Tool") then
- __:Destroy()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement