im trying to make a ui show up when u hold a object, and when i try to fire the event to show the ui it just give me an error.
heres the ode:
local Tool = script.Parent
local Event = game.ReplicatedStorage:WaitForChild("ObjInfo")
local val = script.Parent["Gas/Gal"].Value
script.Parent.Equipped:Connect(function()
local character = Tool.Parent
local player = game:GetService("Players"):GetPlayerFromCharacter(character)
local player = player.Name
print(player)
Event:FireClient(player, "Gas Container", val)
end)