Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plr = owner
- char = plr.Character
- tool1 = Instance.new("Tool",plr.Backpack)
- tool1.Name = "Parent to a Tool"
- h = Instance.new("Part",tool1)
- h.Name = "Handle"
- h.Size = Vector3.new(1,1,1)
- tool = Instance.new("Tool",plr.Backpack)
- tool.Name = "Handle Tool"
- h.Touched:connect(function(handle)
- handle:BreakJoints()
- handle.Name = "Handle"
- handle.Parent = tool
- handle.Anchored = false
- handle.CanCollide = false
- end)
- tool.Activated:connect(function()
- tool:FindFirstChildOfClass("Part").CanCollide = true
- tool:FindFirstChildOfClass("Part").Name = math.random(1,9999999)
- tool:FindFirstChildOfClass("Part").Anchored = false
- tool:FindFirstChildOfClass("Part").Parent = script
- end)
- tool3 = Instance.new("Tool",plr.Backpack)
- tool3.Name = "Parent to a Tool v2"
- h1 = Instance.new("Part",tool3)
- h1.Name = "Handle"
- h1.Size = Vector3.new(1,1,1)
- tool5 = Instance.new("Tool",plr.Backpack)
- tool5.Name = "Handle Tool v2"
- h1.Touched:connect(function(handle)
- handle:BreakJoints()
- handle.Name = "Handle"
- handle.Parent = tool5
- handle.Anchored = false
- handle.CanCollide = false
- end)
- tool5.Activated:connect(function()
- tool5:FindFirstChildOfClass("Part").CanCollide = true
- tool5:FindFirstChildOfClass("Part").Name = math.random(1,9999999)
- tool5:FindFirstChildOfClass("Part").Anchored = true
- tool5:FindFirstChildOfClass("Part").Parent = script
- end)
Add Comment
Please, Sign In to add comment