Hey there i was working on a project but i encountered a error. When i activated one proximity prompt it appears every other was hidden. i checked both server and client side and they were enabled and nothing was different about them. The fix to that was to reset the character but obviously there is a much better fix.
if obj.Name == "FuelPump" then
obj.Triggered:Connect(function()
showhowmuchfuel(diselfuelpanel)
open(diselfuelpanel)
end)
end
end)
function showhowmuchfuel(gui)
local plrscar = game.Workspace:FindFirstChild(plr.Name.."'s Car")
if plrscar then
local values = plrscar.Values
local maxFuel = values.MaxFuel.Value --30
local CurrentFuel = values.CurrentFuel.Value --3
local avr1icrement = maxFuel/10
local guifuel = CurrentFuel / avr1icrement
for i,v in pairs(diselfuelpanel.FuelBar:GetChildren()) do
if v:IsA('Frame') and v.Name ~= 'Space' then
print('debug2',guifuel)
for i = 1,guifuel do
print('onedown')
gui.FuelBar:FindFirstChild(i).BackgroundColor3 = Color3.fromRGB(0, 25, 255)
end
end
end
end
end
function open(gui)
--openmodule.Toggle(gui,true)
gui.Visible = true
end