Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game.Players.LocalPlayer
- local event = game:GetService("ReplicatedStorage").ClientWeaponInteraction.TransparencyPart
- function tools()
- local backpack = plr:WaitForChild("Backpack")
- local tool = Instance.new("Tool")
- tool.RequiresHandle = false
- tool.Parent = backpack
- tool.Name = "Invisible"
- tool.Equipped:Connect(function(mouse)
- mouse.Button1Down:Connect(function()
- if mouse.Target and mouse.Target.Parent then
- event:FireServer(mouse.Target,1)
- end
- end)
- end)
- local tool1 = Instance.new("Tool")
- tool1.RequiresHandle = false
- tool1.Parent = backpack
- tool1.Name = "Visible"
- tool1.Equipped:Connect(function(mouse)
- mouse.Button1Down:Connect(function()
- if mouse.Target and mouse.Target.Parent then
- event:FireServer(mouse.Target,0)
- end
- end)
- end)
- end
- tools()
- plr.CharacterAdded:Connect(function()
- plr.Character:WaitForChild("HumanoidRootPart")
- tools()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement