I'm trying to make it so the PlayerGui TextLabel says 4 and SurfaceGui TextLabel says 4 i shoot the gun the PlayerGui text turns into 3 and the SurfaceGui's TextLabel changes to 3 as well and know that im not that good at scripting and im using the Template Assault Rifle script. I tried it and i get this error
02:30:07.736 - WeaponHud is not a valid member of PlayerGui
local Player = game.Players.LocalPlayer
local GUI = Player.PlayerGui
local ClipAmmo = GUI.WeaponHud.AmmoHud.ClipAmmo
local TextLabel = script.Parent
GUI:WaitforChild("AmmoHud")
while true do
TextLabel.Text = ClipAmmo
end

1 comment
use remotevnts