Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- repeat wait() until game.Players.LocalPlayer
- --------------------------------------------------------------
- --Global Variables:
- --------------------------------------------------------------
- sp = script.Parent
- player = game.Players.LocalPlayer
- c = player.Character
- necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- tool = script.Parent
- handle = script.Parent.Handle
- knife = script.Parent.Knife
- debounce = false
- --------------------------------------------------------------
- --Creating the arms function
- --------------------------------------------------------------
- function makearms()
- ------- Weld the knife ------
- local w = Instance.new("Weld")
- w.Part0 = handle
- w.Part1 = knife
- w.C0 = CFrame.new(0, 1, 0)
- w.C1 = CFrame.new()
- w.Parent = handle
- -----------------------------
- local Player = game:GetService("Players").LocalPlayer
- local Cam = game.Workspace.CurrentCamera
- local Arms = Instance.new("Model")
- Arms.Name = "Arms"
- Arms.Parent = Cam
- -- scanning player info
- local Humanoid = Instance.new("Humanoid")
- Humanoid.MaxHealth = 0
- Humanoid.Health = 0
- Humanoid.Name = ""
- Humanoid.Parent = Arms
- --Packages bro
- for i,v in ipairs(Player.Character:GetChildren()) do
- if v.className == "CharacterMesh" or v.className == "Shirt" or v.className == "Pants" then
- baws = v:clone()
- baws.Parent = Arms
- else
- end
- end
- --done scanning and adding
- -- Making Right Arm
- local RightArm = c:FindFirstChild("Right Arm"):clone()
- RightArm.Name = "Right Arm"
- RightArm.Transparency = 0
- RightArm.CanCollide = false
- RightArm.TopSurface = 0
- RightArm.BottomSurface = 0
- -- Welding Right Arm
- local w = Instance.new("Weld")
- w.Part0 = RightArm
- w.Part1 = c:FindFirstChild("Right Arm")
- w.C0 = CFrame.new()
- w.C1 = CFrame.new()
- w.Parent = RightArm
- RightArm.Parent = Arms
- -- Making Left Arm
- local LeftArm = c:FindFirstChild("Left Arm"):clone()
- LeftArm.Name = "Left Arm"
- LeftArm.Transparency = 0
- LeftArm.CanCollide = false
- LeftArm.TopSurface = 0
- LeftArm.BottomSurface = 0
- -- Welding Left Arm
- local w = Instance.new("Weld")
- w.Part0 = LeftArm
- w.Part1 = c:FindFirstChild("Left Arm")
- w.C0 = CFrame.new()
- w.C1 = CFrame.new()
- w.Parent = LeftArm
- LeftArm.Parent = Arms
- -- Making Left Leg
- local LeftLeg = c:FindFirstChild("Left Leg"):clone()
- LeftLeg.Name = "Left Leg"
- LeftLeg.Transparency = 0
- LeftLeg.CanCollide = false
- LeftLeg.TopSurface = 0
- LeftLeg.BottomSurface = 0
- -- Welding Left Leg
- local w = Instance.new("Weld")
- w.Part0 = LeftLeg
- w.Part1 = c:FindFirstChild("Left Leg")
- w.C0 = CFrame.new()
- w.C1 = CFrame.new()
- w.Parent = LeftLeg
- LeftLeg.Parent = Arms
- -- Making Right Leg
- local LeftLeg = c:FindFirstChild("Right Leg"):clone()
- LeftLeg.Name = "Right Leg"
- LeftLeg.Transparency = 0
- LeftLeg.CanCollide = false
- LeftLeg.TopSurface = 0
- LeftLeg.BottomSurface = 0
- -- Welding Right Leg
- local w = Instance.new("Weld")
- w.Part0 = LeftLeg
- w.Part1 = c:FindFirstChild("Right Leg")
- w.C0 = CFrame.new()
- w.C1 = CFrame.new()
- w.Parent = LeftLeg
- LeftLeg.Parent = Arms
- end
- --------------------------------------------------------------
- --User Controls
- --------------------------------------------------------------
- function equippedtool()
- if debounce == false then
- debounce = true
- makearms()
- debounce = false
- end
- end
- function unequippedtool(mouse)
- local Player = game:GetService("Players").LocalPlayer
- local Cam = script.Parent
- local neck = c.Torso.Neck
- neck.C0 = necko * CFrame.fromEulerAnglesXYZ(0,0,0)
- for _, Model in pairs(game.Workspace.CurrentCamera:GetChildren()) do
- if Model.Name == "Arms" then
- Model:remove()
- else end
- end
- end
- tool.Unequipped:connect(unequippedtool)
- tool.Equipped:connect(equippedtool)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement