The document creates two invisible tools that are placed in a player's backpack. When the tools are equipped, they connect to the player's mouse such that clicking other players or objects will fire server events to apply effects from an "OddPotion" player object. One tool applies effect with value 1, the other applies it with value 0.
Original Description:
Original Title
Ragdoll Engine Invis Tools [Click Objects & Make Them Invisible]
The document creates two invisible tools that are placed in a player's backpack. When the tools are equipped, they connect to the player's mouse such that clicking other players or objects will fire server events to apply effects from an "OddPotion" player object. One tool applies effect with value 1, the other applies it with value 0.
The document creates two invisible tools that are placed in a player's backpack. When the tools are equipped, they connect to the player's mouse such that clicking other players or objects will fire server events to apply effects from an "OddPotion" player object. One tool applies effect with value 1, the other applies it with value 0.
Players:FindFirstChild("OddPotion",true) local Players = game:GetService("Players") local localPlayer = Players.LocalPlayer local backpack = localPlayer:WaitForChild("Backpack")
local tool = Instance.new("Tool")
tool.RequiresHandle = false tool.Parent = backpack tool.Name = "Invisible Object" tool.Equipped:Connect(function(mouse) mouse.Button1Down:Connect(function() if mouse.Target and mouse.Target.Parent then a.TransEvent:FireServer(mouse.Target,1) end end) end) a=game.Players:FindFirstChild("OddPotion",true) local Players = game:GetService("Players") local localPlayer = Players.LocalPlayer local backpack = localPlayer:WaitForChild("Backpack")
local tool = Instance.new("Tool")
tool.RequiresHandle = false tool.Parent = backpack tool.Name = "Visible Object" tool.Equipped:Connect(function(mouse) mouse.Button1Down:Connect(function() if mouse.Target and mouse.Target.Parent then a.TransEvent:FireServer(mouse.Target,0) end end) end)