Im trying to make it so when i walk up to the part the gui shows and when the person presses a key it changes the transparency of a part in the tool there holding
local HumanoidRootPart = game.Players.LocalPlayer.Character:WaitForChild(“HumanoidRootPart”)
local UIS = game:GetService(“UserInputService”)
local part = game.Workspace.Part
local tool = game.Players.LocalPlayer.Backpack.Pizza
local cheese = tool.cheese
UIS.InputBegan:connect(function(keyCode)
if keyCode.keyCode == Enum.keyCode.E then
cheese.Transparency = 0
end