replicatedStorage.RemoteEvents.StaminaUpdate.OnClientEvent:Connect (function(stamina, maxStamina) player.LocalPlayer.PlayerGui.Stamina.Bar.Size = UDim2.new((stamina / maxStamina) * .2, 0, 0.051,0) end)

--It also says that player is "unknown"

1 comment

0

Is "player" a variable or are you just grabbing player out of the blue?